summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorAndreas Enge <andreas@enge.fr>2025-10-23 18:46:24 +0200
committerAndreas Enge <andreas@enge.fr>2025-10-23 18:47:23 +0200
commit892fa358acdd9b4d7560b18489e913b9059aa249 (patch)
treeba3736107d3b8e9824e3e6a42d341d26845da7db /gnu
parentc0d1fd916844ac2dc9abe6bb489c8e300b5abd4e (diff)
gnu: Remove glibc-2.30.
* gnu/packages/base.scm (glibc-2.30): Delete variable. * gnu/packages/patches/glibc-2.29-supported-locales.patch, gnu/packages/patches/glibc-CVE-2019-19126.patch, gnu/packages/patches/glibc-CVE-2019-7309.patch, gnu/packages/patches/glibc-CVE-2019-9169.patch: Remove files. * gnu/local.mk (dist_patch_DATA): Unregister files. Change-Id: Iaf2ad2ccd938780f6f90ad846d81635b07e485f5
Diffstat (limited to 'gnu')
-rw-r--r--gnu/local.mk4
-rw-r--r--gnu/packages/base.scm24
-rw-r--r--gnu/packages/patches/glibc-2.29-supported-locales.patch33
-rw-r--r--gnu/packages/patches/glibc-CVE-2019-19126.patch22
-rw-r--r--gnu/packages/patches/glibc-CVE-2019-7309.patch76
-rw-r--r--gnu/packages/patches/glibc-CVE-2019-9169.patch22
6 files changed, 0 insertions, 181 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index 8ec4e6216b5..52dc856b1bc 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1438,9 +1438,6 @@ dist_patch_DATA = \
1438 %D%/packages/patches/glibc-2.33-riscv64-miscompilation.patch \ 1438 %D%/packages/patches/glibc-2.33-riscv64-miscompilation.patch \
1439 %D%/packages/patches/glibc-2.39-git-updates.patch \ 1439 %D%/packages/patches/glibc-2.39-git-updates.patch \
1440 %D%/packages/patches/glibc-2.40-dl-cache.patch \ 1440 %D%/packages/patches/glibc-2.40-dl-cache.patch \
1441 %D%/packages/patches/glibc-CVE-2019-7309.patch \
1442 %D%/packages/patches/glibc-CVE-2019-9169.patch \
1443 %D%/packages/patches/glibc-CVE-2019-19126.patch \
1444 %D%/packages/patches/glibc-2.35-CVE-2023-4911.patch \ 1441 %D%/packages/patches/glibc-2.35-CVE-2023-4911.patch \
1445 %D%/packages/patches/glibc-allow-kernel-2.6.32.patch \ 1442 %D%/packages/patches/glibc-allow-kernel-2.6.32.patch \
1446 %D%/packages/patches/glibc-boot-2.16.0.patch \ 1443 %D%/packages/patches/glibc-boot-2.16.0.patch \
@@ -1477,7 +1474,6 @@ dist_patch_DATA = \
1477 %D%/packages/patches/glibc-reinstate-prlimit64-fallback.patch \ 1474 %D%/packages/patches/glibc-reinstate-prlimit64-fallback.patch \
1478 %D%/packages/patches/glibc-skip-c++.patch \ 1475 %D%/packages/patches/glibc-skip-c++.patch \
1479 %D%/packages/patches/glibc-versioned-locpath.patch \ 1476 %D%/packages/patches/glibc-versioned-locpath.patch \
1480 %D%/packages/patches/glibc-2.29-supported-locales.patch \
1481 %D%/packages/patches/glibc-supported-locales.patch \ 1477 %D%/packages/patches/glibc-supported-locales.patch \
1482 %D%/packages/patches/gmime-disable-tests.patch \ 1478 %D%/packages/patches/gmime-disable-tests.patch \
1483 %D%/packages/patches/gmp-arm-asm-nothumb.patch \ 1479 %D%/packages/patches/gmp-arm-asm-nothumb.patch \
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 031858ab02f..3addc2b34f1 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -1448,30 +1448,6 @@ with the Linux kernel.")
1448 (("^install-others =.*$") 1448 (("^install-others =.*$")
1449 (string-append "install-others = " out "/etc/rpc\n")))))))))))) 1449 (string-append "install-others = " out "/etc/rpc\n"))))))))))))
1450 1450
1451(define-public glibc-2.30
1452 (package
1453 (inherit glibc-2.31)
1454 (version "2.30")
1455 (native-inputs
1456 ;; This fails with a build error in libc-tls.c when using GCC 10. Use an
1457 ;; older compiler.
1458 (modify-inputs (package-native-inputs glibc)
1459 (prepend gcc-8)))
1460 (source (origin
1461 (inherit (package-source glibc))
1462 (uri (string-append "mirror://gnu/glibc/glibc-" version ".tar.xz"))
1463 (sha256
1464 (base32
1465 "1bxqpg91d02qnaz837a5kamm0f43pr1il4r9pknygywsar713i72"))
1466 (patches (search-patches "glibc-skip-c++.patch"
1467 "glibc-ldd-x86_64.patch"
1468 "glibc-CVE-2019-19126.patch"
1469 "glibc-hidden-visibility-ldconfig.patch"
1470 "glibc-versioned-locpath.patch"
1471 "glibc-allow-kernel-2.6.32.patch"
1472 "glibc-reinstate-prlimit64-fallback.patch"
1473 "glibc-2.29-supported-locales.patch"))))))
1474
1475(define-public (make-gcc-libc base-gcc libc) 1451(define-public (make-gcc-libc base-gcc libc)
1476 "Return a GCC that targets LIBC." 1452 "Return a GCC that targets LIBC."
1477 (package (inherit base-gcc) 1453 (package (inherit base-gcc)
diff --git a/gnu/packages/patches/glibc-2.29-supported-locales.patch b/gnu/packages/patches/glibc-2.29-supported-locales.patch
deleted file mode 100644
index 05865dc7be2..00000000000
--- a/gnu/packages/patches/glibc-2.29-supported-locales.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1This patch is taken from debian's glibc package (generate-supported.mk).
2It install the localedata/SUPPORTED file of the glibc. This file lists
3all the supported locales of the glibc.
4
5diff --git a/localedata/Makefile b/localedata/Makefile
6index 65079f9eb8..14818f84e0 100644
7--- a/localedata/Makefile
8+++ b/localedata/Makefile
9@@ -169,7 +169,8 @@ endif
10 # Files to install.
11 install-others := $(addprefix $(inst_i18ndir)/, \
12 $(addsuffix .gz, $(charmaps)) \
13- $(locales))
14+ $(locales)) \
15+ $(inst_i18ndir)/SUPPORTED
16
17 tests: $(objdir)/iconvdata/gconv-modules
18
19@@ -380,6 +381,14 @@ endif
20
21 include SUPPORTED
22
23+$(inst_i18ndir)/SUPPORTED: SUPPORTED $(+force)
24+ for locale in $(SUPPORTED-LOCALES); do \
25+ [ $$locale = true ] && continue; \
26+ echo $$locale | sed 's,/, ,' >> LOCALES; \
27+ done
28+ $(make-target-directory)
29+ $(INSTALL_DATA) LOCALES $@
30+
31 INSTALL-SUPPORTED-LOCALE-ARCHIVE=$(addprefix install-archive-, $(SUPPORTED-LOCALES))
32 INSTALL-SUPPORTED-LOCALE-FILES=$(addprefix install-files-, $(SUPPORTED-LOCALES))
33 \ No newline at end of file
diff --git a/gnu/packages/patches/glibc-CVE-2019-19126.patch b/gnu/packages/patches/glibc-CVE-2019-19126.patch
deleted file mode 100644
index 5b9ac58ab7f..00000000000
--- a/gnu/packages/patches/glibc-CVE-2019-19126.patch
+++ /dev/null
@@ -1,22 +0,0 @@
1Fix CVE-2019-19126:
2
3https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19126
4https://sourceware.org/bugzilla/show_bug.cgi?id=25204
5
6Taken from upstream:
7https://sourceware.org/git/?p=glibc.git;a=commit;h=37c90e117310728a4ad1eb998c0bbe7d79c4a398
8
9diff --git a/sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h b/sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
10index 975cbe2..df2cdfd 100644
11--- a/sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
12+++ b/sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
13@@ -31,7 +31,8 @@
14 environment variable, LD_PREFER_MAP_32BIT_EXEC. */
15 #define EXTRA_LD_ENVVARS \
16 case 21: \
17- if (memcmp (envline, "PREFER_MAP_32BIT_EXEC", 21) == 0) \
18+ if (!__libc_enable_secure \
19+ && memcmp (envline, "PREFER_MAP_32BIT_EXEC", 21) == 0) \
20 GLRO(dl_x86_cpu_features).feature[index_arch_Prefer_MAP_32BIT_EXEC] \
21 |= bit_arch_Prefer_MAP_32BIT_EXEC; \
22 break;
diff --git a/gnu/packages/patches/glibc-CVE-2019-7309.patch b/gnu/packages/patches/glibc-CVE-2019-7309.patch
deleted file mode 100644
index f9f623830a0..00000000000
--- a/gnu/packages/patches/glibc-CVE-2019-7309.patch
+++ /dev/null
@@ -1,76 +0,0 @@
1Fix <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-7309>.
2
3Taken from this upstream commit, sans ChangeLog updates and tests:
4<https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=3f635fb43389b54f682fc9ed2acc0b2aaf4a923d>.
5
6diff --git a/sysdeps/x86_64/memcmp.S b/sysdeps/x86_64/memcmp.S
7index 1fc487caa5..1322bb3b92 100644
8--- a/sysdeps/x86_64/memcmp.S
9+++ b/sysdeps/x86_64/memcmp.S
10@@ -21,14 +21,18 @@
11
12 .text
13 ENTRY (memcmp)
14- test %rdx, %rdx
15+#ifdef __ILP32__
16+ /* Clear the upper 32 bits. */
17+ movl %edx, %edx
18+#endif
19+ test %RDX_LP, %RDX_LP
20 jz L(finz)
21 cmpq $1, %rdx
22- jle L(finr1b)
23+ jbe L(finr1b)
24 subq %rdi, %rsi
25 movq %rdx, %r10
26 cmpq $32, %r10
27- jge L(gt32)
28+ jae L(gt32)
29 /* Handle small chunks and last block of less than 32 bytes. */
30 L(small):
31 testq $1, %r10
32@@ -156,7 +160,7 @@ L(A32):
33 movq %r11, %r10
34 andq $-32, %r10
35 cmpq %r10, %rdi
36- jge L(mt16)
37+ jae L(mt16)
38 /* Pre-unroll to be ready for unrolled 64B loop. */
39 testq $32, %rdi
40 jz L(A64)
41@@ -178,7 +182,7 @@ L(A64):
42 movq %r11, %r10
43 andq $-64, %r10
44 cmpq %r10, %rdi
45- jge L(mt32)
46+ jae L(mt32)
47
48 L(A64main):
49 movdqu (%rdi,%rsi), %xmm0
50@@ -216,7 +220,7 @@ L(mt32):
51 movq %r11, %r10
52 andq $-32, %r10
53 cmpq %r10, %rdi
54- jge L(mt16)
55+ jae L(mt16)
56
57 L(A32main):
58 movdqu (%rdi,%rsi), %xmm0
59@@ -254,7 +258,7 @@ L(ATR):
60 movq %r11, %r10
61 andq $-32, %r10
62 cmpq %r10, %rdi
63- jge L(mt16)
64+ jae L(mt16)
65 testq $16, %rdi
66 jz L(ATR32)
67
68@@ -325,7 +329,7 @@ L(ATR64main):
69 movq %r11, %r10
70 andq $-32, %r10
71 cmpq %r10, %rdi
72- jge L(mt16)
73+ jae L(mt16)
74
75 L(ATR32res):
76 movdqa (%rdi,%rsi), %xmm0
diff --git a/gnu/packages/patches/glibc-CVE-2019-9169.patch b/gnu/packages/patches/glibc-CVE-2019-9169.patch
deleted file mode 100644
index 029b4ddbd74..00000000000
--- a/gnu/packages/patches/glibc-CVE-2019-9169.patch
+++ /dev/null
@@ -1,22 +0,0 @@
1Fix <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-9169>.
2
3Taken from this upstream commit, sans ChangeLog updates:
4https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=583dd860d5b833037175247230a328f0050dbfe9
5
6diff --git a/posix/regexec.c b/posix/regexec.c
7index 91d5a797b8..084b1222d9 100644
8--- a/posix/regexec.c
9+++ b/posix/regexec.c
10@@ -1293,8 +1293,10 @@ proceed_next_node (const re_match_context_t *mctx, Idx nregs, regmatch_t *regs,
11 else if (naccepted)
12 {
13 char *buf = (char *) re_string_get_buffer (&mctx->input);
14- if (memcmp (buf + regs[subexp_idx].rm_so, buf + *pidx,
15- naccepted) != 0)
16+ if (mctx->input.valid_len - *pidx < naccepted
17+ || (memcmp (buf + regs[subexp_idx].rm_so, buf + *pidx,
18+ naccepted)
19+ != 0))
20 return -1;
21 }
22 }