From patchwork Fri Apr 28 11:48:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos O'Donell X-Patchwork-Id: 1774900 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=DAbUFqhz; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Q79qB5mLFz23v6 for ; Fri, 28 Apr 2023 21:48:38 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 616123858C1F for ; Fri, 28 Apr 2023 11:48:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 616123858C1F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1682682513; bh=zCgqmiYiYuVPdXR1Gt04Mt2FLnwRBZSwU6oIlGrka/U=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=DAbUFqhzJBBBtBLfng1ZT75k3/FyuoZ8f0MYRnS/srX+ptNN7GPTlSFUb7IP6PCbm Zgep3LdDFhaKqb4nPKzR+SagVEfI3rmYnbE9x4mdqrmMaCmDTOFYbjUu3rjTD4Q8hc glWL8ITc/yYBqFlrQ5QME+i0JLZlMhlzlwRmmUIo= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 9C0153858D37 for ; Fri, 28 Apr 2023 11:48:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9C0153858D37 Received: from mail-yb1-f197.google.com (mail-yb1-f197.google.com [209.85.219.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-593-KON8OSLSOvyZhfyJ8ibGgg-1; Fri, 28 Apr 2023 07:48:15 -0400 X-MC-Unique: KON8OSLSOvyZhfyJ8ibGgg-1 Received: by mail-yb1-f197.google.com with SMTP id 3f1490d57ef6-b9a77926afbso3649535276.3 for ; Fri, 28 Apr 2023 04:48:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682682494; x=1685274494; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zCgqmiYiYuVPdXR1Gt04Mt2FLnwRBZSwU6oIlGrka/U=; b=WVd0nC+bLx470pMwFGA+V53QKfYabAs7TcnE/z5GE4vhN7rnrcnrkx95HbKFQNHKTa Heuo/6WgdguDGMVyG2cnFmIESGuBPBRFN/MxKtgiAtEirNY4vlmZhVW78J0UbCoLgO16 GPXZYuybN6RXeGAQZHMTy3Yhbldt+pfR/KyatcG8wv/XciVlc24BQj3YAT3Xj3cQa1kh fFY9Lp33UWeol6axqWWtJtyESzeJ+841cspimXX0o0hFvayjeaJXVk4ydyyfUNqwtHqH UxTADocjN67j/zQWUW7GKb8CI7x0ZBmgnf9Kov8W5WOSsCAwAlCmwUsiVDvNmoa2wfVQ D8Vg== X-Gm-Message-State: AC+VfDxtqga5CGAFPK7hKlZc2vgT+YOR7qAEs+7I9dEyEdCjwbHTrpMa FcKweJgW/HcO8EYQGDubV6gFBk1lC0DDpVrWJ1A5WNtC7ipjaU1BT2OyMS3aRnblwGF/cjn+DtD qZkc2cypePIJOBgmKxvRtYMw1ky8CKkXUwl66vYR4r6st8Mt7iYa6Nrhslrm6XBfxTSpYMX0TaR efvA== X-Received: by 2002:a25:a82:0:b0:b95:8f10:5936 with SMTP id 124-20020a250a82000000b00b958f105936mr3820911ybk.54.1682682494554; Fri, 28 Apr 2023 04:48:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4P/7CqxhWuYL6Osaca1iTFCGGU2wYtHtySPQZa4Nucfd15v1gz6DYMZozdI6Ak/GECHYmv5w== X-Received: by 2002:a25:a82:0:b0:b95:8f10:5936 with SMTP id 124-20020a250a82000000b00b958f105936mr3820897ybk.54.1682682494211; Fri, 28 Apr 2023 04:48:14 -0700 (PDT) Received: from athas.redhat.com ([198.48.244.52]) by smtp.gmail.com with ESMTPSA id i3-20020a258b03000000b00b8c08669033sm5064956ybl.40.2023.04.28.04.48.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 04:48:13 -0700 (PDT) To: libc-alpha@sourceware.org Cc: Carlos O'Donell Subject: [PATCH 0/2] Standardize the sorting of Makefile variables Date: Fri, 28 Apr 2023 07:48:09 -0400 Message-Id: <20230428114811.4129539-1-carlos@redhat.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-type: text/plain; charset=UTF-8 X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Carlos O'Donell via Libc-alpha From: Carlos O'Donell Reply-To: Carlos O'Donell Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" The project has started to re-flow and sort Makefile variables to make it easier to manage the lists of inputs and tests. While splitting the lines is easy to do, the sorting is more onerous because of the desire to sort like tests with like tests. The following is my attempt to standardize teh sorting following the consensus discussion on the list which suggested using LC_COLLATE=C and sorting similar tests in numerical order of their prefix. The series re-flows and then sorts sysdeps/pthread/Makefile using the new helper python script. Carlos O'Donell (2): nptl: Re-flow and sort variables in Makefile. scripts: Add sort-makefile-lines.py to sort Makefile variables. scripts/sort-makefile-lines.py | 217 +++++++++ sysdeps/pthread/Makefile | 433 +++++++++++++----- .../{tst-mutex7robust.c => tst-robust11.c} | 0 3 files changed, 537 insertions(+), 113 deletions(-) create mode 100755 scripts/sort-makefile-lines.py rename sysdeps/pthread/{tst-mutex7robust.c => tst-robust11.c} (100%)