From patchwork Tue Sep 3 21:03:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerzy Grzegorek X-Patchwork-Id: 1157297 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LPLls4HO"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46NKFv0HZDz9s4Y for ; Wed, 4 Sep 2019 07:04:35 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 235E6883B2; Tue, 3 Sep 2019 21:04:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MWEsRZvdntNw; Tue, 3 Sep 2019 21:04:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 7613F883C8; Tue, 3 Sep 2019 21:04:32 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E108C1BF4DD for ; Tue, 3 Sep 2019 21:04:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D3ECA855D2 for ; Tue, 3 Sep 2019 21:04:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WL-Sd9Ea3B7w for ; Tue, 3 Sep 2019 21:04:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) by whitealder.osuosl.org (Postfix) with ESMTPS id DA61C8506D for ; Tue, 3 Sep 2019 21:04:05 +0000 (UTC) Received: by mail-lj1-f170.google.com with SMTP id x18so17516644ljh.1 for ; Tue, 03 Sep 2019 14:04:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=c2FVT7DQ/lk7P5zAFkp+0qGB4aviqgWqR/vA4AnS9Ws=; b=LPLls4HO1CEiofbd5Rm/HwlkEKJw//GcBMKUutuvjlbXOUglXKWcuGI4/JHg1zWNqP eltE0FBWCI6Yc7IxjDtjl5HpI8yyuqZKisepUL6ABD4j1P5SR0DQO1MIhWU21A+b06Uk KFRoOQe9UH9RnHhxXeXJ7JUbhG0gml2cT1jnwaphYeIzx2LnXbvEK/SVHB8PKFt4q9Ac jDkJQY+xeQMYdqufjczWNkmiGlWNOsQxhOqQ79GVzFGEKVvVspAux3e3aZM1eU7HZ69q NmDoT+vJCe0IJ40uXZEL6FoWVKrhFZ4JGxIHXups6Fr4xRVRSEPoVIMy5kd+ggWNRl1W KqmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=c2FVT7DQ/lk7P5zAFkp+0qGB4aviqgWqR/vA4AnS9Ws=; b=nIGZG6R6HtmE0exOGkKmkq5PgYbsB7BUnZ24bK8qOMWh0dPGQ95IH1Xr4KTfjU8v/3 YViWKa10dgp2MqbdRu7gVUnyaKosvpGARBSiN5Gi11jhlEZBntoetelGMVliCAI1SElK XvwXEIkBvi7hwuLeDxjYdyLVgfPKqs8pPVE8Akgj9cNGghbkNakGC0STVIRFxnVReXqY qt3kdm+vgM2MKcpchrUCgp7iYzkaXHABn+fh4VYFiDDJzNeUcaNHPlr5fbB6s8TbvP8v lQMwlZYdTAe/oXZjjOG3MAKE5mXA+7279kPDPmU1DGiyhp2vQKHv+yzNxon8zC+vDR9V JLgQ== X-Gm-Message-State: APjAAAW6cCBLzRY2Q7MlyV9EF0GIjJW213rAj4Dbhyqjlkc4ixRMa/BA 6uHGgQPquurNFRzFUYRwrRIDwD2Wvkc= X-Google-Smtp-Source: APXvYqwB6EYvdkH356q2Sc7+xtZnSA3mb5Iv1q4i1p6t55O1lelry28z+8qi/TRkDi+8Lz9idbShEg== X-Received: by 2002:a2e:81ca:: with SMTP id s10mr5223034ljg.181.1567544643847; Tue, 03 Sep 2019 14:04:03 -0700 (PDT) Received: from localhost.localdomain (user-5-173-240-120.play-internet.pl. [5.173.240.120]) by smtp.gmail.com with ESMTPSA id w1sm3137624lfe.67.2019.09.03.14.04.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2019 14:04:03 -0700 (PDT) From: Jerzy Grzegorek To: buildroot@busybox.net Date: Tue, 3 Sep 2019 23:03:33 +0200 Message-Id: <20190903210351.9997-1-jerzy.m.grzegorek@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH 00/18] Improve alphabetical order checking of Config.in files X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jerzy Grzegorek MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The main purpose of this patch series is to improve alphabetical order checking of comments, menus and packages in Config.in files. Patches 1-11 are preliminary ones and add small improvements. Patches 12, 14, 15 do the main work. Patches 13, 16-18 fix issues in Config.in files. Jerzy Grzegorek (18): checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: rename variable 'm' checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: change the type of variable 'level' checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: get value of variable 'level' checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: add functions to initialize arrays elements checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: change the type of variable 'new_package' checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: remove '-comment' state before the '-menu' one checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: separate the lines support checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: use '-' to describe state checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: drop function get_line checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: initialize 'menu_of_packages' array checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: add more Config.in files to check checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: check package ordering just before 'if ' statement package/Config.in: fix packages ordering checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: check the order of comments menu checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: check the order of menu of menus package/Config.in: fix menus ordering package/kodi/Config.in: fix menus ordering package/kodi/Config.in: fix menus ordering package/Config.in | 72 +++++------ package/kodi/Config.in | 16 +-- utils/checkpackagelib/lib_config.py | 184 ++++++++++++++++++++++------ 3 files changed, 190 insertions(+), 82 deletions(-)