Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1q4ctK-0006EU-6B for mharc-grub-devel@gnu.org; Thu, 01 Jun 2023 03:38:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4ctI-0006BQ-UX for grub-devel@gnu.org; Thu, 01 Jun 2023 03:38:36 -0400 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q4ctB-0000MD-QQ for grub-devel@gnu.org; Thu, 01 Jun 2023 03:38:35 -0400 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-510f525e06cso837999a12.2 for ; Thu, 01 Jun 2023 00:38:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685605108; x=1688197108; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4LizH6MHzuHTDiHA7ONsB7rJtg0ukwEH+ZJGrd31/Zg=; b=ZT1B8CZPhgD2Vcfaxxz6U0J9P3IaE7msFzixavnUXEBVtBeF1wRnDHG/ygNdC7jhqV T7Kj5eoTbw2V7XywuUAzP+RjJsflQT2X62LRGo0VzlDbnIb91dFJMogS+CNRWeYycymm LsvfiCLmCwzlS1UpdiwqIHeKo2gnp7A23lshy2IdDZ1ZKHeGfXr3iAswYdM7Om6cGAXw MsOos68KGxk7+umKvuoZXw0iGdFbrOtzbUqB9/XjK2eJJ3Ea2I285irfAaQPh174CHUv Kkh7lHpe3I++tmEj+u0eeFtnkabrWUuFYhuNLbDc2mu1XE/zKzOGH/+Ic4GZ8FqH/iGd NMPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685605108; x=1688197108; 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=4LizH6MHzuHTDiHA7ONsB7rJtg0ukwEH+ZJGrd31/Zg=; b=TCD/H63c1A7BwBimrGFUnVdAtY70TnquT9i/dliFxvgOnnuRRblUnTHhXx6UP+6bM7 fZlqR1h1tEQ9oYdkgLUaS7tgLmP788VgY0kuxhrmcdlR3+qxFhn92rVbVt9X0Kebdi3T AbA7sjiUU7S1z3nxCEFdX2mZe7PkklZxgiL8LQcvDleFJHgFFXLmXM7qWwoZfO6wknf6 gOX7hM4hPgTg7+Ei4avaO6JC30JD9k8/R62nQ20oAuoKvU5AnDblXiGK0VwAErlB3WHO QTsBnmKrZNiR13OSH5RLwGkQAvXU2Ck3JgG3Zzrh8DjwLTa72ceq8qhN+iT4/KRXt2YE RosA== X-Gm-Message-State: AC+VfDwv33vcac9q4QI8gFtlHsimqCe/WJf8uCTXaPVYMHZUN+/QpYf4 xyK7qfOjCCG+U+FbxKKQmHliO5Kbei2wMw== X-Google-Smtp-Source: ACHHUZ5ggoUHm66YsM2tW+3siZXYYqMXvSldq4jPO8xaTyacc44ykH3tq3k4S3KRfoBnU2hYUi+AuA== X-Received: by 2002:a17:907:162c:b0:974:4f34:b04a with SMTP id hb44-20020a170907162c00b009744f34b04amr378769ejc.34.1685605107466; Thu, 01 Jun 2023 00:38:27 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id m13-20020a170906160d00b0095342bfb701sm10340175ejd.16.2023.06.01.00.38.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 00:38:27 -0700 (PDT) From: Alexander Kanavin X-Google-Original-From: Alexander Kanavin To: grub-devel@gnu.org Cc: Alexander Kanavin Subject: [PATCH 1/3] gentpl.py: ensure output is deterministic Date: Thu, 1 Jun 2023 09:38:18 +0200 Message-Id: <20230601073820.307470-1-alex@linutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=alex.kanavin@gmail.com; helo=mail-ed1-x529.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2023 07:38:37 -0000 The output of the SOURCES lines in grub-core/Makefile.core.am, generated from grub-core/Makefile.core.def with gentpl.py is not deterministic due to missing sorting of the list used to generate it. Add such a sort. Signed-off-by: Alexander Kanavin --- gentpl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gentpl.py b/gentpl.py index d0470b3b2..bfab2113a 100644 --- a/gentpl.py +++ b/gentpl.py @@ -569,6 +569,7 @@ def foreach_platform_value(defn, platform, suffix, closure): for group in RMAP[platform]: for value in defn.find_all(group + suffix): r.append(closure(value)) + r.sort() return ''.join(r) def platform_conditional(platform, closure): -- 2.30.2