]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-131261: generate_sbom.py: Exclude the refresh script from SBOM (GH-131359...
authorPetr Viktorin <encukou@gmail.com>
Tue, 10 Feb 2026 09:49:00 +0000 (10:49 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Feb 2026 09:49:00 +0000 (10:49 +0100)
- generate_sbom.py: Exclude the refresh script from SBOM
- Modules/expat/refresh.sh: Expand the list of manual steps

(cherry picked from commit 51d309988b3041cae20cca89172b4fd825c9a1cc)

Misc/sbom.spdx.json
Modules/expat/refresh.sh
Tools/build/generate_sbom.py

index 7b0976df65fe3d3ec2ec3acded99307e87903177..e40dcc140c6008913eaf24c5c7bc0bed727731ba 100644 (file)
       ],
       "fileName": "Modules/expat/nametab.h"
     },
-    {
-      "SPDXID": "SPDXRef-FILE-Modules-expat-refresh.sh",
-      "checksums": [
-        {
-          "algorithm": "SHA1",
-          "checksumValue": "32a10fbb8027cea3134674912b896abca516b085"
-        },
-        {
-          "algorithm": "SHA256",
-          "checksumValue": "51d08c697d1e409f5ce0749c1a136a0e1618d3069cf544d86005f966f43a8f97"
-        }
-      ],
-      "fileName": "Modules/expat/refresh.sh"
-    },
     {
       "SPDXID": "SPDXRef-FILE-Modules-expat-siphash.h",
       "checksums": [
       "relationshipType": "CONTAINS",
       "spdxElementId": "SPDXRef-PACKAGE-expat"
     },
-    {
-      "relatedSpdxElement": "SPDXRef-FILE-Modules-expat-refresh.sh",
-      "relationshipType": "CONTAINS",
-      "spdxElementId": "SPDXRef-PACKAGE-expat"
-    },
     {
       "relatedSpdxElement": "SPDXRef-FILE-Modules-expat-siphash.h",
       "relationshipType": "CONTAINS",
index a8cca16a7a41f548cb68cb6d8d59d483e0d50e72..6564e82d2d37164c63ede52a78df79e7e78f91c7 100755 (executable)
@@ -54,4 +54,11 @@ rm libexpat.tar.gz
 # Step 3: Add the namespacing include to expat_external.h
 sed -i 's/#  define Expat_External_INCLUDED 1/&\n\/* Namespace external symbols to allow multiple libexpat version to\n   co-exist. \*\/\n#include "pyexpatns.h"/' expat_external.h
 
-echo "Updated; verify all is okay using git diff and git status."
+echo "
+Updated! next steps:
+- Verify all is okay:
+    git diff
+    git status
+- Regenerate the sbom file
+    make regen-sbom
+"
index 10391ab48ad06737ab0f27908c17c5ec610c5b3f..f8ddebf84a00b1d879ae60b81fdb94466c7c8534 100644 (file)
@@ -64,7 +64,7 @@ PACKAGE_TO_FILES = {
         exclude=[
             "Modules/expat/expat_config.h",
             "Modules/expat/pyexpatns.h",
-            "Modules/_hacl/refresh.sh",
+            "Modules/expat/refresh.sh",
         ]
     ),
     "macholib": PackageFiles(