diff --git a/docs/packages/semgrep.yaml b/docs/packages/semgrep.yaml index cfaa7367c072..ebf81a7b748e 100644 --- a/docs/packages/semgrep.yaml +++ b/docs/packages/semgrep.yaml @@ -92,3 +92,7 @@ versions: gpl-sources: filename: gpl-sources.tar description: the shared libraries bundled next to semgrep-core +- version: 1.181.0 +- version: 1.181.1 +- version: 1.182.0 +- version: 1.182.1 diff --git a/patches/semgrep/1.181.0/0001-setup.py-tag-riscv64-linux-wheels-as-manylinux_2_39.patch b/patches/semgrep/1.181.0/0001-setup.py-tag-riscv64-linux-wheels-as-manylinux_2_39.patch new file mode 100644 index 000000000000..d9c08f528d59 --- /dev/null +++ b/patches/semgrep/1.181.0/0001-setup.py-tag-riscv64-linux-wheels-as-manylinux_2_39.patch @@ -0,0 +1,26 @@ +From: RISE Project +Subject: [PATCH] setup.py: tag riscv64 linux wheels as manylinux_2_39_riscv64 + +cli/setup.py rewrites the default linux_ platform tag into a +manylinux/musllinux one through plat_libc_to_tag, which only knows x86_64 +and aarch64. On riscv64 the lookup raises KeyError and no wheel can be +built at all. + +Add the glibc riscv64 entry. Unlike x86_64/aarch64, riscv64 has no glibc +2.34 build environment available, so the tag names glibc 2.39 (Ubuntu +24.04 / Debian trixie), the oldest riscv64 userland in general use. + +Upstream-Status: To upstream [only meaningful together with a riscv64 semgrep-core build job, which semgrep does not have yet] + +--- a/cli/setup.py ++++ b/cli/setup.py +@@ -57,6 +57,9 @@ plat_libc_to_tag = { + ("linux_x86_64", "musl"): "musllinux_1_2_x86_64", + ("linux_aarch64", "glibc"): "manylinux_2_34_aarch64", + ("linux_x86_64", "glibc"): "manylinux_2_34_x86_64", ++ # riscv64 has no glibc 2.34 build environment; the oldest widely available ++ # one is glibc 2.39 (Ubuntu 24.04 / Debian trixie), so tag it accordingly. ++ ("linux_riscv64", "glibc"): "manylinux_2_39_riscv64", + } + + diff --git a/patches/semgrep/1.181.1/0001-setup.py-tag-riscv64-linux-wheels-as-manylinux_2_39.patch b/patches/semgrep/1.181.1/0001-setup.py-tag-riscv64-linux-wheels-as-manylinux_2_39.patch new file mode 100644 index 000000000000..d9c08f528d59 --- /dev/null +++ b/patches/semgrep/1.181.1/0001-setup.py-tag-riscv64-linux-wheels-as-manylinux_2_39.patch @@ -0,0 +1,26 @@ +From: RISE Project +Subject: [PATCH] setup.py: tag riscv64 linux wheels as manylinux_2_39_riscv64 + +cli/setup.py rewrites the default linux_ platform tag into a +manylinux/musllinux one through plat_libc_to_tag, which only knows x86_64 +and aarch64. On riscv64 the lookup raises KeyError and no wheel can be +built at all. + +Add the glibc riscv64 entry. Unlike x86_64/aarch64, riscv64 has no glibc +2.34 build environment available, so the tag names glibc 2.39 (Ubuntu +24.04 / Debian trixie), the oldest riscv64 userland in general use. + +Upstream-Status: To upstream [only meaningful together with a riscv64 semgrep-core build job, which semgrep does not have yet] + +--- a/cli/setup.py ++++ b/cli/setup.py +@@ -57,6 +57,9 @@ plat_libc_to_tag = { + ("linux_x86_64", "musl"): "musllinux_1_2_x86_64", + ("linux_aarch64", "glibc"): "manylinux_2_34_aarch64", + ("linux_x86_64", "glibc"): "manylinux_2_34_x86_64", ++ # riscv64 has no glibc 2.34 build environment; the oldest widely available ++ # one is glibc 2.39 (Ubuntu 24.04 / Debian trixie), so tag it accordingly. ++ ("linux_riscv64", "glibc"): "manylinux_2_39_riscv64", + } + + diff --git a/patches/semgrep/1.182.0/0001-setup.py-tag-riscv64-linux-wheels-as-manylinux_2_39.patch b/patches/semgrep/1.182.0/0001-setup.py-tag-riscv64-linux-wheels-as-manylinux_2_39.patch new file mode 100644 index 000000000000..d9c08f528d59 --- /dev/null +++ b/patches/semgrep/1.182.0/0001-setup.py-tag-riscv64-linux-wheels-as-manylinux_2_39.patch @@ -0,0 +1,26 @@ +From: RISE Project +Subject: [PATCH] setup.py: tag riscv64 linux wheels as manylinux_2_39_riscv64 + +cli/setup.py rewrites the default linux_ platform tag into a +manylinux/musllinux one through plat_libc_to_tag, which only knows x86_64 +and aarch64. On riscv64 the lookup raises KeyError and no wheel can be +built at all. + +Add the glibc riscv64 entry. Unlike x86_64/aarch64, riscv64 has no glibc +2.34 build environment available, so the tag names glibc 2.39 (Ubuntu +24.04 / Debian trixie), the oldest riscv64 userland in general use. + +Upstream-Status: To upstream [only meaningful together with a riscv64 semgrep-core build job, which semgrep does not have yet] + +--- a/cli/setup.py ++++ b/cli/setup.py +@@ -57,6 +57,9 @@ plat_libc_to_tag = { + ("linux_x86_64", "musl"): "musllinux_1_2_x86_64", + ("linux_aarch64", "glibc"): "manylinux_2_34_aarch64", + ("linux_x86_64", "glibc"): "manylinux_2_34_x86_64", ++ # riscv64 has no glibc 2.34 build environment; the oldest widely available ++ # one is glibc 2.39 (Ubuntu 24.04 / Debian trixie), so tag it accordingly. ++ ("linux_riscv64", "glibc"): "manylinux_2_39_riscv64", + } + + diff --git a/patches/semgrep/1.182.1/0001-setup.py-tag-riscv64-linux-wheels-as-manylinux_2_39.patch b/patches/semgrep/1.182.1/0001-setup.py-tag-riscv64-linux-wheels-as-manylinux_2_39.patch new file mode 100644 index 000000000000..d9c08f528d59 --- /dev/null +++ b/patches/semgrep/1.182.1/0001-setup.py-tag-riscv64-linux-wheels-as-manylinux_2_39.patch @@ -0,0 +1,26 @@ +From: RISE Project +Subject: [PATCH] setup.py: tag riscv64 linux wheels as manylinux_2_39_riscv64 + +cli/setup.py rewrites the default linux_ platform tag into a +manylinux/musllinux one through plat_libc_to_tag, which only knows x86_64 +and aarch64. On riscv64 the lookup raises KeyError and no wheel can be +built at all. + +Add the glibc riscv64 entry. Unlike x86_64/aarch64, riscv64 has no glibc +2.34 build environment available, so the tag names glibc 2.39 (Ubuntu +24.04 / Debian trixie), the oldest riscv64 userland in general use. + +Upstream-Status: To upstream [only meaningful together with a riscv64 semgrep-core build job, which semgrep does not have yet] + +--- a/cli/setup.py ++++ b/cli/setup.py +@@ -57,6 +57,9 @@ plat_libc_to_tag = { + ("linux_x86_64", "musl"): "musllinux_1_2_x86_64", + ("linux_aarch64", "glibc"): "manylinux_2_34_aarch64", + ("linux_x86_64", "glibc"): "manylinux_2_34_x86_64", ++ # riscv64 has no glibc 2.34 build environment; the oldest widely available ++ # one is glibc 2.39 (Ubuntu 24.04 / Debian trixie), so tag it accordingly. ++ ("linux_riscv64", "glibc"): "manylinux_2_39_riscv64", + } + +