* [PR PATCH] [WIP] gcc: update to 14.1.0.
@ 2024-06-14 6:45 oreo639
2024-06-14 20:52 ` [PR PATCH] [Updated] " oreo639
` (63 more replies)
0 siblings, 64 replies; 65+ messages in thread
From: oreo639 @ 2024-06-14 6:45 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2373 bytes --]
There is a new pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
[WIP] gcc: update to 14.1.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also tests, so some tests that might have been considered conformant C99 may now be fail due to these changes (which may not result in a package build error and instead result in configuration changes).
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename (good) instead of segfaulting later due to implicit pointer truncation.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to this in [Fedora](https://src.fedoraproject.org/) or upstream.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 29799 bytes --]
From 21e6eb72d5d4f10e5553f77cd9a8cf8448b039db Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 1/2] binutils: update to 2.42.
---
srcpkgs/binutils/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index a23501510376a7..2cd023b495accc 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.42
+revision=1
bootstrap=yes
hostmakedepends="pkgconf"
makedepends="zlib-devel libzstd-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=f6e4d41fd5fc778b06b7891457b3620da5ecea1006c6a4a41ae998109f85a800
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From 077ea8776b3f441e20b0d0a743d4c1cf34a604fb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 2/2] gcc: update to 14.1.0.
---
common/shlibs | 2 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 6 +-
6 files changed, 4 insertions(+), 628 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index a33bb85772e392..a63feb93eac561 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.38 perl-5.38.0_1
libgmp.so.10 gmp-5.0.1_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 0792954c232887..cf8edb36c3b30f 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=2
+version=14.1.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] [WIP] gcc: update to 14.1.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
@ 2024-06-14 20:52 ` oreo639
2024-06-14 20:59 ` oreo639
` (62 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2024-06-14 20:52 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2389 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
[WIP] gcc: update to 14.1.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration (good) instead of segfaulting later due to implicit pointer truncation.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 34830 bytes --]
From 01d51c4acaec26b7cd81dfd15268cb5d77443833 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 1/6] binutils: update to 2.42.
---
srcpkgs/binutils/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index a23501510376a7..2cd023b495accc 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.42
+revision=1
bootstrap=yes
hostmakedepends="pkgconf"
makedepends="zlib-devel libzstd-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=f6e4d41fd5fc778b06b7891457b3620da5ecea1006c6a4a41ae998109f85a800
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From 2019336796fab68e3d8cc0ca134c08d8e336fbec Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 2/6] gcc: update to 14.1.0.
---
common/shlibs | 2 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 6 +-
6 files changed, 4 insertions(+), 628 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 80eca3e0a08dca..159c9a5014127a 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.38 perl-5.38.0_1
libgmp.so.10 gmp-5.0.1_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 0792954c232887..cf8edb36c3b30f 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=2
+version=14.1.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
From 4c5e72b0eaa982d090b9c8f5b7fa7377d5d043e1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:02 -0700
Subject: [PATCH 3/6] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index ff545abd3f0da5..76b263cff53293 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=6
+revision=7
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
depends="tar"
From c5d2997a486b5f559de14eee55bdf208096b3d0f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 4/6] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index b8320aa5129f98..1a46e170042d85 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.39.3
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 27a171ff061beaad9241e6ab6137e217935397e3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 5/6] gcc-multilib: update to 14.1.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..b05b1c3c2d643b 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.1.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From 1eb434d7ce33843bc4a614c7be72ca5bfeb08523 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 6/6] libgccjit: update to 14.1.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..4ec631f4e5e1ad 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.1.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] [WIP] gcc: update to 14.1.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
2024-06-14 20:52 ` [PR PATCH] [Updated] " oreo639
@ 2024-06-14 20:59 ` oreo639
2024-06-14 21:09 ` oreo639
` (61 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2024-06-14 20:59 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2389 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
[WIP] gcc: update to 14.1.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration (good) instead of segfaulting later due to implicit pointer truncation.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 75776 bytes --]
From 01d51c4acaec26b7cd81dfd15268cb5d77443833 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/32] binutils: update to 2.42.
---
srcpkgs/binutils/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index a23501510376a7..2cd023b495accc 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.42
+revision=1
bootstrap=yes
hostmakedepends="pkgconf"
makedepends="zlib-devel libzstd-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=f6e4d41fd5fc778b06b7891457b3620da5ecea1006c6a4a41ae998109f85a800
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From 2019336796fab68e3d8cc0ca134c08d8e336fbec Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/32] gcc: update to 14.1.0.
---
common/shlibs | 2 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 6 +-
6 files changed, 4 insertions(+), 628 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 80eca3e0a08dca..159c9a5014127a 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.38 perl-5.38.0_1
libgmp.so.10 gmp-5.0.1_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 0792954c232887..cf8edb36c3b30f 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=2
+version=14.1.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
From 4c5e72b0eaa982d090b9c8f5b7fa7377d5d043e1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:02 -0700
Subject: [PATCH 03/32] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index ff545abd3f0da5..76b263cff53293 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=6
+revision=7
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
depends="tar"
From c5d2997a486b5f559de14eee55bdf208096b3d0f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 04/32] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index b8320aa5129f98..1a46e170042d85 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.39.3
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 27a171ff061beaad9241e6ab6137e217935397e3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 05/32] gcc-multilib: update to 14.1.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..b05b1c3c2d643b 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.1.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From 1eb434d7ce33843bc4a614c7be72ca5bfeb08523 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 06/32] libgccjit: update to 14.1.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..4ec631f4e5e1ad 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.1.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From 9a3577ab2a6f3746ae062fec2cf000da8b7d45f1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:43 -0700
Subject: [PATCH 07/32] cross-aarch64-linux-gnu: update to gcc 14.1.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..9aa60f0ec3305e 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From e35064e956d71e7a81f3dc71c10d2b0358f0dada Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:43 -0700
Subject: [PATCH 08/32] cross-aarch64-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-aarch64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 074001d0288098..c61157a89e2694 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 02a25191c81010ab4b20b6291fa24a75e3323bf0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:43 -0700
Subject: [PATCH 09/32] cross-arm-linux-gnueabi: update to gcc 14.1.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..f204e1a4a68355 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 2df952a049191161f65d901304174e4291a128c5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:43 -0700
Subject: [PATCH 10/32] cross-arm-linux-gnueabihf: update to gcc 14.1.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..96f89eafd0e02b 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 77c29d9bca2e6d7a9bb6e7c4167f6ca5ffd007ba Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 11/32] cross-arm-linux-musleabi: update to gcc 14.1.0
---
srcpkgs/cross-arm-linux-musleabi/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 79801b4d7b0255..3de330c05af1f4 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -25,7 +25,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 781cdb1b39fa0c54aaa73d63361caada78504200 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 12/32] cross-arm-linux-musleabihf: update to gcc 14.1.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index 87629a415a1352..56473a79e70a3f 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -25,7 +25,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From aa4981d6efcb73863c83aa76150ca5047a9d3382 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 13/32] cross-armv7l-linux-gnueabihf: update to gcc 14.1.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..d2c128bef96f14 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From e45b574f23d7d106c067f483ce3a343bd956b2ba Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 14/32] cross-armv7l-linux-musleabihf: update to gcc 14.1.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index b08278c7207386..67ff5b1343ddd6 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From c6520554863c443fc022173ec9305e2d56c5291d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 15/32] cross-i686-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-i686-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index d37bb61b0e5a08..35cc91db60f367 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -23,7 +23,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From ae2129e5a87f7ac59921d3ec956619e88557b155 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 16/32] cross-i686-pc-linux-gnu: update to gcc 14.1.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..a37677f5ac87cc 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,7 +20,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 358eb6bfea06ca48131d2547e960807ff038bf08 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 17/32] cross-mips-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-mips-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index bfb9d16a1be021..94c2ede4f46711 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 5cb4aa21ba8a54bd32dbfdfd1c73222327257b1b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 18/32] cross-mips-linux-muslhf: update to gcc 14.1.0
---
srcpkgs/cross-mips-linux-muslhf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 6ca7fc6274d4db..94422d3fa09291 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 6c98a139bc1763a50317350f25e1a52b045ab7c4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 19/32] cross-mipsel-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-mipsel-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 1ed2f94ad10d43..046f36c0753c7e 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 6cc29c31bc02fb1089f86a8b71a31c1a4c54d934 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 20/32] cross-mipsel-linux-muslhf: update to gcc 14.1.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index fc8f1294f6a017..380bdf58c2f9bf 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 277669192317e0181bddc649cb84255091f53348 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 21/32] cross-powerpc-linux-gnu: update to gcc 14.1.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..03eab919c3ac87 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 48425aec6d84f02573c9b0ad05308f3f5769ef55 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 22/32] cross-powerpc-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-powerpc-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52844bf5512cca..05a04696fda062 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From fa2e09ebb6fa4b17cf8e5b27d59124ce189134fe Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 23/32] cross-powerpc64-linux-gnu: update to gcc 14.1.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..159f2d18262b96 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 4e6b1bdcc4bd63383ab438b190a07d2293eda9da Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 24/32] cross-powerpc64-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 02fe3f55f82c65..4c8cec0c297b20 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -26,7 +26,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From bb856edf039dd4d1647829c9df3c047d2951aa4b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 25/32] cross-powerpc64le-linux-gnu: update to gcc 14.1.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..176eb64178cca1 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 6e0b04a60426271f60c1fc263826c9648e32acbc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 26/32] cross-powerpc64le-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index 9cc49d05a23398..ebe1b15e119cb7 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -26,7 +26,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 901bb624d625d431e7e55b5d375eede888be4f5d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 27/32] cross-powerpcle-linux-gnu: update to gcc 14.1.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..1f006a9d7ba431 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From eaad04c0f30a3a1baec55e213d985df5010f1366 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 28/32] cross-powerpcle-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index 15615e6d7f98d7..f647419ddaa4c5 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From c0bc5cfaffdaecd6bf667b28d710da2340011a71 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 29/32] cross-riscv64-linux-gnu: update to gcc 14.1.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..1b650fc76e457b 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7a63c3f14f2bc6f151bc2a9075852d21cf12bde7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 30/32] cross-riscv64-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-riscv64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index c3ade518330dcb..3ca3b7dc27ec5f 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 86ad8045c1d1f7146d5037490a25e78bf0e50e33 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 31/32] cross-x86_64-linux-gnu: update to gcc 14.1.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..fc815acb0ff028 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,7 +20,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 478178efae84c62ffa1d32d17eb971d84db58a8d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 32/32] cross-x86_64-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-x86_64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 0ba8decce2aeb1..38f2ae80a2035e 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -23,7 +23,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] [WIP] gcc: update to 14.1.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
2024-06-14 20:52 ` [PR PATCH] [Updated] " oreo639
2024-06-14 20:59 ` oreo639
@ 2024-06-14 21:09 ` oreo639
2024-07-09 1:06 ` Calandracas606
` (60 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2024-06-14 21:09 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2389 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
[WIP] gcc: update to 14.1.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration (good) instead of segfaulting later due to implicit pointer truncation.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 77050 bytes --]
From 01d51c4acaec26b7cd81dfd15268cb5d77443833 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/33] binutils: update to 2.42.
---
srcpkgs/binutils/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index a23501510376a7..2cd023b495accc 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.42
+revision=1
bootstrap=yes
hostmakedepends="pkgconf"
makedepends="zlib-devel libzstd-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=f6e4d41fd5fc778b06b7891457b3620da5ecea1006c6a4a41ae998109f85a800
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From 4e871d565994b95152ff5dc65c682e1d36128be5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/33] gcc: update to 14.1.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 6 +-
6 files changed, 6 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 80eca3e0a08dca..11ef4d2f6da129 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.38 perl-5.38.0_1
libgmp.so.10 gmp-5.0.1_1
@@ -853,8 +853,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 0792954c232887..cf8edb36c3b30f 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=2
+version=14.1.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
From 4fa4b17595cb4a4ed182935c61f73ecfcb0ce7c3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:02 -0700
Subject: [PATCH 03/33] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index ff545abd3f0da5..76b263cff53293 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=6
+revision=7
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
depends="tar"
From 3505017195bc3f7bf3f4269471ad7ca499cc9f67 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 04/33] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index b8320aa5129f98..1a46e170042d85 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.39.3
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From d1dcad9fbdd734707056914fe2a5ee97118dc43c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 05/33] gcc-multilib: update to 14.1.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..b05b1c3c2d643b 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.1.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From 0cc1ee08cd641da8c13953023432300259fadcae Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 06/33] libgccjit: update to 14.1.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..4ec631f4e5e1ad 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.1.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From 8117bd7ae29854812c70e717e542df72d6f3213e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 07/33] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From e5da9f16da0ca112f8f9f731eb119517d88ec88f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:43 -0700
Subject: [PATCH 08/33] cross-aarch64-linux-gnu: update to gcc 14.1.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..9aa60f0ec3305e 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 07329e10bf2418bca6e710609e51b84114b42d62 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:43 -0700
Subject: [PATCH 09/33] cross-aarch64-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-aarch64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 074001d0288098..c61157a89e2694 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From c459b73b7b35e33ffc00d6145daba07005c9874f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:43 -0700
Subject: [PATCH 10/33] cross-arm-linux-gnueabi: update to gcc 14.1.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..f204e1a4a68355 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f9cc956b862f1affd37c1360ea1feef7a3e4cb71 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:43 -0700
Subject: [PATCH 11/33] cross-arm-linux-gnueabihf: update to gcc 14.1.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..96f89eafd0e02b 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From d49cea7691ee3c759f898b9f4d43be08c464ffcb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 12/33] cross-arm-linux-musleabi: update to gcc 14.1.0
---
srcpkgs/cross-arm-linux-musleabi/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 79801b4d7b0255..3de330c05af1f4 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -25,7 +25,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 41efae64b8c4704b893271232cf59f8776b2b763 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 13/33] cross-arm-linux-musleabihf: update to gcc 14.1.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index 87629a415a1352..56473a79e70a3f 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -25,7 +25,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From ae48f7cc963da6a5c3caecd322633c1d24a82787 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 14/33] cross-armv7l-linux-gnueabihf: update to gcc 14.1.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..d2c128bef96f14 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 740237c23fdfa67d5a398c9d0ce1e70bcb78a277 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 15/33] cross-armv7l-linux-musleabihf: update to gcc 14.1.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index b08278c7207386..67ff5b1343ddd6 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 609f20b231673e4dc1a397cbae6115ee542fc31e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 16/33] cross-i686-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-i686-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index d37bb61b0e5a08..35cc91db60f367 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -23,7 +23,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From c6516781336a010afe7388f5ca0f84ab845c9b96 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 17/33] cross-i686-pc-linux-gnu: update to gcc 14.1.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..a37677f5ac87cc 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,7 +20,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 12be54e3489c6620447677e7ffeded0ab221517b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 18/33] cross-mips-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-mips-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index bfb9d16a1be021..94c2ede4f46711 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f40b7471a450f77015729817b73598c8ac48dc19 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 19/33] cross-mips-linux-muslhf: update to gcc 14.1.0
---
srcpkgs/cross-mips-linux-muslhf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 6ca7fc6274d4db..94422d3fa09291 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 2219bc6d0a6cd89cfc77d27eae0c2b1661259380 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 20/33] cross-mipsel-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-mipsel-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 1ed2f94ad10d43..046f36c0753c7e 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 34648bd2967f7ccf1236c05e15345d3797f4d0f3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 21/33] cross-mipsel-linux-muslhf: update to gcc 14.1.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index fc8f1294f6a017..380bdf58c2f9bf 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 62cd8f632c5f8091045ea761001dea4795564f19 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 22/33] cross-powerpc-linux-gnu: update to gcc 14.1.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..03eab919c3ac87 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 729e1dbf70f8d3915996fb99b7c9713b7f22d9b7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:44 -0700
Subject: [PATCH 23/33] cross-powerpc-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-powerpc-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52844bf5512cca..05a04696fda062 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 377f3ad5fa2e4916d35766dbcaef8249c6797add Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 24/33] cross-powerpc64-linux-gnu: update to gcc 14.1.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..159f2d18262b96 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From bf2f066a0d07ef3136e81f219af200b9231b5d60 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 25/33] cross-powerpc64-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 02fe3f55f82c65..4c8cec0c297b20 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -26,7 +26,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 54f2353ecb5fb9d2156e2fc6bc958310d5adadfe Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 26/33] cross-powerpc64le-linux-gnu: update to gcc 14.1.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..176eb64178cca1 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From b848aa03fd744ad0469e8b41e799e84bb54a537f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 27/33] cross-powerpc64le-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index 9cc49d05a23398..ebe1b15e119cb7 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -26,7 +26,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 7500cd7142e13c6d6090a11e81ff020e9b623b7d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 28/33] cross-powerpcle-linux-gnu: update to gcc 14.1.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..1f006a9d7ba431 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From e9a4c938f8d73f3ac5d535182fe8cad06dbf86f2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 29/33] cross-powerpcle-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index 15615e6d7f98d7..f647419ddaa4c5 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From b48e69a6ce1c3d2563e71737ff8be437fb7d3552 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 30/33] cross-riscv64-linux-gnu: update to gcc 14.1.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..1b650fc76e457b 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 12429fef1168b74a3013d938d750fbdb7cea5d6d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 31/33] cross-riscv64-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-riscv64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index c3ade518330dcb..3ca3b7dc27ec5f 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 23e9dc1d6e33c065f2ec478aba1f8c44461c22ba Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 32/33] cross-x86_64-linux-gnu: update to gcc 14.1.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..fc815acb0ff028 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,7 +20,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 3044ae9d810e73bf588e8719d493a38cc6a82e8c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:59:45 -0700
Subject: [PATCH 33/33] cross-x86_64-linux-musl: update to gcc 14.1.0
---
srcpkgs/cross-x86_64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 0ba8decce2aeb1..38f2ae80a2035e 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -23,7 +23,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.1.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (2 preceding siblings ...)
2024-06-14 21:09 ` oreo639
@ 2024-07-09 1:06 ` Calandracas606
2024-07-09 6:40 ` oreo639
` (59 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: Calandracas606 @ 2024-07-09 1:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 332 bytes --]
New comment by Calandracas606 on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2215934287
Comment:
gcc is working for me
i've added `--enable-host-pie`, and `--enable-host-bind-now` to my build, and removed `nopie`. maybe void should consider adding those configure args too.
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.1.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (3 preceding siblings ...)
2024-07-09 1:06 ` Calandracas606
@ 2024-07-09 6:40 ` oreo639
2024-07-09 7:08 ` oreo639
` (58 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2024-07-09 6:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1026 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2216705467
Comment:
> i've added `--enable-host-pie`, and `--enable-host-bind-now` to my build, and removed `nopie`. maybe void should consider adding those configure args too.
Thanks for pointing those out.
Keep in mind those flags only apply to the host executables (e.g. `/usr/bin/gcc`, `cc1`, `cc1plus`, etc. as opposed to the libraries or the default flags when compiling).
Those flags are relatively new, and looking upstream there is a patch for a runtime issue caused by `--enable-host-pie` on PPC https://github.com/gcc-mirror/gcc/commit/4cf2de9b5268224816a3d53fdd2c3d799ebfd9c8 so it might make sense to give more time for those regressions to get found and ironed out before enabling.
The only distro that enables them by default atm, afaict, is RHEL (whereas it is disabled when building gcc for Fedora).
That is just my 2 cents, feel free to let me know if I am missing something.
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.1.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (4 preceding siblings ...)
2024-07-09 6:40 ` oreo639
@ 2024-07-09 7:08 ` oreo639
2024-07-09 7:08 ` oreo639
` (57 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2024-07-09 7:08 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 988 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2216705467
Comment:
> i've added `--enable-host-pie`, and `--enable-host-bind-now` to my build, and removed `nopie`. maybe void should consider adding those configure args too.
Thanks for pointing those out.
Keep in mind those flags only apply to the host executables (e.g. `/usr/bin/gcc`, `cc1`, `cc1plus`, etc. as opposed to the libraries or the default flags when compiling).
Those flags are relatively new, and looking upstream there is a patch for a runtime issue caused by `--enable-host-pie` on PPC https://github.com/gcc-mirror/gcc/commit/4cf2de9b5268224816a3d53fdd2c3d799ebfd9c8 so it might make sense to give more time for those regressions to get found and ironed out before enabling.
The only distro that enables them by default atm, afaict, is RHEL (whereas it is disabled when building gcc for Fedora).
Let me know if I am missing something.
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.1.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (5 preceding siblings ...)
2024-07-09 7:08 ` oreo639
@ 2024-07-09 7:08 ` oreo639
2024-07-09 11:39 ` Calandracas606
` (56 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2024-07-09 7:08 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2216705467
Comment:
> i've added `--enable-host-pie`, and `--enable-host-bind-now` to my build, and removed `nopie`. maybe void should consider adding those configure args too.
Thanks for pointing those out.
Keep in mind those flags only apply to the host executables (e.g. `/usr/bin/gcc`, `cc1`, `cc1plus`, etc. as opposed to the libraries or the default flags when compiling).
Those flags are relatively new, and looking upstream there is a patch for a runtime issue caused by `--enable-host-pie` on PPC https://github.com/gcc-mirror/gcc/commit/4cf2de9b5268224816a3d53fdd2c3d799ebfd9c8 so it might make sense to give more time for those regressions to get found and ironed out before enabling.
The only distro that enables them by default atm, afaict, is RHEL (whereas it is disabled when building gcc for Fedora).
Feel free to let me know if I am missing something.
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.1.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (6 preceding siblings ...)
2024-07-09 7:08 ` oreo639
@ 2024-07-09 11:39 ` Calandracas606
2024-07-09 22:06 ` oreo639
` (55 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: Calandracas606 @ 2024-07-09 11:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 373 bytes --]
New comment by Calandracas606 on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2217421667
Comment:
> The only distro that enables them by default atm, afaict, is RHEL (whereas it is disabled when building gcc for Fedora).
out of curiosity, where can one find RedHat RMP specs? I've had trouble locating them in the past
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.1.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (7 preceding siblings ...)
2024-07-09 11:39 ` Calandracas606
@ 2024-07-09 22:06 ` oreo639
2024-07-09 22:08 ` oreo639
` (54 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2024-07-09 22:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 326 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2218811098
Comment:
> out of curiosity, where can one find RedHat RMP specs? I've had trouble locating them in the past
https://src.fedoraproject.org/rpms/gcc/c/20746dd85fbe810c19ef7e6dea76d3a110bb4a4d
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.1.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (8 preceding siblings ...)
2024-07-09 22:06 ` oreo639
@ 2024-07-09 22:08 ` oreo639
2024-09-03 19:25 ` Calandracas606
` (53 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2024-07-09 22:08 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 359 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2218811098
Comment:
> out of curiosity, where can one find RedHat RMP specs? I've had trouble locating them in the past
This is what I was referring to: https://src.fedoraproject.org/rpms/gcc/c/20746dd85fbe810c19ef7e6dea76d3a110bb4a4d
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.1.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (9 preceding siblings ...)
2024-07-09 22:08 ` oreo639
@ 2024-09-03 19:25 ` Calandracas606
2024-10-06 12:28 ` [PR PATCH] [Updated] " oreo639
` (52 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: Calandracas606 @ 2024-09-03 19:25 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2069 bytes --]
New comment by Calandracas606 on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2327260931
Comment:
I've been using this for quite a while now.
I used this patch to work around one issue I encountered, although I think its included in newer bugfix releases
```patch
From 99a1fe6c12c733fe4923a75a79d09a66ff8abcec Mon Sep 17 00:00:00 2001
From: Jonathan Wakely <jwakely@redhat.com>
Date: Wed, 12 Jun 2024 16:47:17 +0100
Subject: [PATCH] libstdc++: Fix unwanted #pragma messages from PSTL headers
[PR113376]
When we rebased the PSTL on upstream, in r14-2109-g3162ca09dbdc2e, a
change to how _PSTL_USAGE_WARNINGS is set was missed out, but the change
to how it's tested was included. This means that the macro is always
defined, so testing it with #ifdef (instead of using #if to test its
value) doesn't work as intended.
Revert the test to use #if again, since that part of the upstream change
was unnecessary in the first place (the macro is always defined, so
there's no need to use #ifdef to avoid -Wundef warnings).
libstdc++-v3/ChangeLog:
PR libstdc++/113376
* include/pstl/pstl_config.h: Use #if instead of #ifdef to test
the _PSTL_USAGE_WARNINGS macro.
---
libstdc++-v3/include/pstl/pstl_config.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libstdc++-v3/include/pstl/pstl_config.h b/libstdc++-v3/include/pstl/pstl_config.h
index 7157a8a492ed..6fae15460eac 100644
--- a/libstdc++-v3/include/pstl/pstl_config.h
+++ b/libstdc++-v3/include/pstl/pstl_config.h
@@ -177,7 +177,7 @@
#define _PSTL_PRAGMA_MESSAGE_IMPL(x) _PSTL_PRAGMA(message(_PSTL_STRING_CONCAT(_PSTL_PRAGMA_LOCATION, x)))
-#if defined(_PSTL_USAGE_WARNINGS)
+#if _PSTL_USAGE_WARNINGS
# define _PSTL_PRAGMA_MESSAGE(x) _PSTL_PRAGMA_MESSAGE_IMPL(x)
# define _PSTL_PRAGMA_MESSAGE_POLICIES(x) _PSTL_PRAGMA_MESSAGE_IMPL(x)
#else
--
2.43.5
```
Other than that, I've also been using the aforementioned `--enable-host-pie`, `--enable-host-bind-now`, and removed `nopie`
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.1.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (10 preceding siblings ...)
2024-09-03 19:25 ` Calandracas606
@ 2024-10-06 12:28 ` oreo639
2024-11-12 0:47 ` oreo639
` (51 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2024-10-06 12:28 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2530 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.1.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration (good) instead of segfaulting later due to implicit pointer truncation.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, feel free to test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 77057 bytes --]
From 13173741a3306686ab9359771b564f0302bdb38a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/33] binutils: update to 2.43.1.
---
srcpkgs/binutils/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..92142bb6788fda 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.43.1
+revision=1
bootstrap=yes
hostmakedepends="pkgconf"
makedepends="zlib-devel libzstd-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=13f74202a3c4c51118b797a39ea4200d3f6cfbe224da6d1d95bb938480132dfd
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From aa69b16597c4692056ecc2f266e8b8e3c7ad2e6e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/33] gcc: update to 14.1.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 6 +-
6 files changed, 6 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 95f5918baf9991..30d55b560e528c 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.38 perl-5.38.0_1
libgmp.so.10 gmp-5.0.1_1
@@ -864,8 +864,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 0792954c232887..940990a02b63dd 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=2
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
From f057042a93d3c90f4813c7c4da26f289d827253f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 03/33] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From b9e5b7e1957415a1380077f6735051c8c63beda7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 04/33] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fd06085075c6c9..64fa363e63036a 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.39.4
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From b80d62bae2fe31da8e05194e6893903c13cadcfc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 05/33] gcc-multilib: update to 14.1.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From 75c1ab7800f20304f16077773ae1d93b167ef3e7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 06/33] libgccjit: update to 14.1.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From 40a508f8c891da330b9669321f2565daaf6d22c5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 07/33] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From fa8beb6a5948545418d2625b68ccf339902bfba4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 08/33] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..917e16f2caf575 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 32de208d96029f3da8c5d01a108fba7a2c5d08b9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 09/33] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 074001d0288098..20d5cb03ef9ebd 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From e11911ce438cf23c000a55df8e4f45aa6a1ad2b9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 10/33] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..13adcec7be0c00 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From dd36487a586f85a6a2922d124c18ea8f2d7165ad Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 11/33] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..d31ad31490d210 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f92dd3d18d211179a3ad3598e2edb0d9c22774e2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 12/33] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 79801b4d7b0255..52772d1b48d342 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -25,7 +25,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From be517743036be17ff6b33aa4b37facf93942c49d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 13/33] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index 87629a415a1352..12a98a66ff56ac 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -25,7 +25,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From e8de428e0302977a25c8769a4b74f409af4ebc46 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 14/33] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..3c1a0dea67e400 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ddcde6f62412e0304907efbbc919206803e90bba Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 15/33] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index b08278c7207386..833efee5bad842 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 0166ceecff1bb2c1a5d39ab5bfaf13153dd8253d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 16/33] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index d37bb61b0e5a08..300211f6c931d8 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -23,7 +23,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 2d173d576b2ded210ef68443dbf36f2deb767dc4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 17/33] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..ce0ab0e1744887 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,7 +20,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 8a146d6f742d32571001c394d439074e93a8fa4a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 18/33] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index bfb9d16a1be021..9ebeb0e87ef1d8 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From baa6bdd1ec4a29d7b89f72b9400070b585a0d625 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 19/33] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 6ca7fc6274d4db..62535238b3bccc 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 56c9b70c7fdc205b1b287964ac9699fc1e70a1cf Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 20/33] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 1ed2f94ad10d43..d72be3de81ad32 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 8edfab75894a3e7fe410ac22ecdd17e1c9caa6e9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 21/33] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index fc8f1294f6a017..b32888584d2306 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 6a706a03df09b83e481981f713111bf78af8c0e3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 22/33] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..0b6209edb37c75 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From c0d88c8c45fbe6ea35d1b597a71cab42cc8cac0b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 23/33] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52844bf5512cca..0d114cc9993440 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7c3cae55156821b45d8a7be397a5b63ee6877e7a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 24/33] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..eda2f7ee9be0c1 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From e72b0b237eab0c0656ef3f57303df132ac5db644 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 25/33] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 02fe3f55f82c65..a6704808ed177b 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -26,7 +26,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From debb4bc2c99d5a2707b4ed35b792b33e6804722e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 26/33] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..3a6c80b1bc1cd4 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 0285bbf4f402cb2d3c2e5d700cc2557695f2459f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 27/33] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index 9cc49d05a23398..d0aadb435e0d18 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -26,7 +26,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 0279e9cc174eb21658de6ba40c58d07d70001860 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 28/33] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..0066d33e6ffd40 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 02f8cb9ba19dc69f213e2adb93c4a25904b75bcc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 29/33] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index 15615e6d7f98d7..59bdf11c55729e 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From bfd326e4c08804f1b93eec2117ef5c7d8b712854 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 30/33] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..40168cfe9d92f1 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 6bf559355d93e71f7919909aa32e05663b8ef7a9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 31/33] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index c3ade518330dcb..e4e67b1c5b5136 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 72c2ed11ba5a3a10b430ef77a81e564253f2920d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 32/33] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..54b219feec1540 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,7 +20,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 750d66ab7ba129fa2409da093b026a58f2d9954c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 33/33] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 0ba8decce2aeb1..5d8153ce22f980 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -23,7 +23,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.1.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (11 preceding siblings ...)
2024-10-06 12:28 ` [PR PATCH] [Updated] " oreo639
@ 2024-11-12 0:47 ` oreo639
2024-11-12 1:36 ` [PR PATCH] [Updated] gcc: update to 14.2.0 oreo639
` (50 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2024-11-12 0:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2530 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.1.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration (good) instead of segfaulting later due to implicit pointer truncation.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, feel free to test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 77057 bytes --]
From 979de5c7a518fa4b32c95b5387a82bbba09fc80a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/33] binutils: update to 2.43.1.
---
srcpkgs/binutils/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..92142bb6788fda 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.43.1
+revision=1
bootstrap=yes
hostmakedepends="pkgconf"
makedepends="zlib-devel libzstd-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=13f74202a3c4c51118b797a39ea4200d3f6cfbe224da6d1d95bb938480132dfd
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From 7dea154af1c50b3017628076419c7c5c2e2466d5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/33] gcc: update to 14.1.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 6 +-
6 files changed, 6 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 9a42d7e0255fb1..aee18298e25bf0 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.38 perl-5.38.0_1
libgmp.so.10 gmp-5.0.1_1
@@ -864,8 +864,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 0792954c232887..940990a02b63dd 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=2
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
From 2cd3734964c011be7b9cff46f98caa84ace0ee3f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 03/33] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From e249c2fff23e9fce1abf2489a500cdae533c8384 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 04/33] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 6ca9bbfd61724f8f042bea23a58d4372f113b504 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 05/33] gcc-multilib: update to 14.1.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From 1a8e89f9f397bcf60bdbdfd6f51deb56431cdba6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 06/33] libgccjit: update to 14.1.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From 599973d9db24de8adac6e6e400265cf5b302a147 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 07/33] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From 8933000aef92b56a297f504ac24a4e4b73f5631c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 08/33] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..917e16f2caf575 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 6415b89c7a423e76babdf8b0f544f6c75e3c1204 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 09/33] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 074001d0288098..20d5cb03ef9ebd 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From d81076ea03f679ba654cdd716f4e242bde7690e9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 10/33] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..13adcec7be0c00 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 66b26d823bca6aea535bd9e6145cc9ea114b9b69 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 11/33] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..d31ad31490d210 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From b03acc6249d7a0decf775ebdff5afe05668146bb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 12/33] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 79801b4d7b0255..52772d1b48d342 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -25,7 +25,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From c5508d5a8c29e841bdf4d48482c4ac2bc09e30b8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 13/33] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index 87629a415a1352..12a98a66ff56ac 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -25,7 +25,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From dde56685511f5246cc26d2abe59348f9f34dd7f8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 14/33] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..3c1a0dea67e400 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7d4152a35a3092f4eb6ddf88a5dff85bbcf5899a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 15/33] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index b08278c7207386..833efee5bad842 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 99c6ad392de7e1ada5a92d683534f9870733448b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 16/33] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index d37bb61b0e5a08..300211f6c931d8 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -23,7 +23,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From fab997c8d6ea7fa470ee684d125e4075730c3c67 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 17/33] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..ce0ab0e1744887 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,7 +20,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From dc61d44b9bce51003f8f6ab988f4a5eafbaced27 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 18/33] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index bfb9d16a1be021..9ebeb0e87ef1d8 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 80236418db9a80a14f182edd0a0cf3c813ae1795 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 19/33] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 6ca7fc6274d4db..62535238b3bccc 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 73c81812f5f8de0bab334fb94e95caf19a6d6916 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 20/33] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 1ed2f94ad10d43..d72be3de81ad32 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 4e2a5c37f496a55a91d8be20aa7525feeecb90a6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 21/33] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index fc8f1294f6a017..b32888584d2306 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 53a708c41cfda2d1dac28f1b049aefde5490bf19 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 22/33] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..0b6209edb37c75 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 608b420875671eec728c61302a73d57c5a5e324a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 23/33] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52844bf5512cca..0d114cc9993440 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 27005a98727d638ac0057a98164893f391c0e291 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 24/33] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..eda2f7ee9be0c1 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 61708c891d2756e6dd7878c37320d8bafb8cb123 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 25/33] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 02fe3f55f82c65..a6704808ed177b 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -26,7 +26,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From d229acb2b36ce2194f6eb9d71c82d9da25ec006c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 26/33] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..3a6c80b1bc1cd4 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 671fa055fb117bcaa4065f3e4e1f0e6c0772bb99 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 27/33] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index 9cc49d05a23398..d0aadb435e0d18 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -26,7 +26,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 621fec276364b7798edf7d8debb7067214e91f3b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 28/33] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..0066d33e6ffd40 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From bff6a0277e6238b85ef6a78a27f8c0d388157549 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 29/33] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index 15615e6d7f98d7..59bdf11c55729e 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 4c247597e56ee4b48fbd2fd5848a8bfed550c171 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 30/33] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..40168cfe9d92f1 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 547954a18da493a490207e4e672eac6e4e8fce18 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 31/33] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index c3ade518330dcb..e4e67b1c5b5136 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From c3ac2865c2f45099086c12546461083fd0a3d78a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 32/33] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..54b219feec1540 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,7 +20,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From e2388f6f2c92c4c6799857a21f37df60e47cbbfd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 33/33] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 0ba8decce2aeb1..5d8153ce22f980 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -23,7 +23,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (12 preceding siblings ...)
2024-11-12 0:47 ` oreo639
@ 2024-11-12 1:36 ` oreo639
2024-11-12 1:37 ` oreo639
` (49 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2024-11-12 1:36 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2530 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration (good) instead of segfaulting later due to implicit pointer truncation.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, feel free to test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 82299 bytes --]
From 979de5c7a518fa4b32c95b5387a82bbba09fc80a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/34] binutils: update to 2.43.1.
---
srcpkgs/binutils/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..92142bb6788fda 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.43.1
+revision=1
bootstrap=yes
hostmakedepends="pkgconf"
makedepends="zlib-devel libzstd-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=13f74202a3c4c51118b797a39ea4200d3f6cfbe224da6d1d95bb938480132dfd
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From 2607e302b8f67dc18d461114c00ba23f222777c8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/34] gcc: update to 14.2.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...658cbb200729b7c2ad069fa4b6498e028ff1.patch | 40 +++
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 6 +-
7 files changed, 46 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
create mode 100644 srcpkgs/gcc/patches/d920658cbb200729b7c2ad069fa4b6498e028ff1.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 9a42d7e0255fb1..aee18298e25bf0 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.38 perl-5.38.0_1
libgmp.so.10 gmp-5.0.1_1
@@ -864,8 +864,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/d920658cbb200729b7c2ad069fa4b6498e028ff1.patch b/srcpkgs/gcc/patches/d920658cbb200729b7c2ad069fa4b6498e028ff1.patch
new file mode 100644
index 00000000000000..3f0491d8adbbe5
--- /dev/null
+++ b/srcpkgs/gcc/patches/d920658cbb200729b7c2ad069fa4b6498e028ff1.patch
@@ -0,0 +1,40 @@
+From d920658cbb200729b7c2ad069fa4b6498e028ff1 Mon Sep 17 00:00:00 2001
+From: Jonathan Wakely <jwakely@redhat.com>
+Date: Wed, 12 Jun 2024 16:47:17 +0100
+Subject: [PATCH] libstdc++: Fix unwanted #pragma messages from PSTL headers
+ [PR113376]
+
+When we rebased the PSTL on upstream, in r14-2109-g3162ca09dbdc2e, a
+change to how _PSTL_USAGE_WARNINGS is set was missed out, but the change
+to how it's tested was included. This means that the macro is always
+defined, so testing it with #ifdef (instead of using #if to test its
+value) doesn't work as intended.
+
+Revert the test to use #if again, since that part of the upstream change
+was unnecessary in the first place (the macro is always defined, so
+there's no need to use #ifdef to avoid -Wundef warnings).
+
+libstdc++-v3/ChangeLog:
+
+ PR libstdc++/113376
+ * include/pstl/pstl_config.h: Use #if instead of #ifdef to test
+ the _PSTL_USAGE_WARNINGS macro.
+
+(cherry picked from commit 99a1fe6c12c733fe4923a75a79d09a66ff8abcec)
+---
+ libstdc++-v3/include/pstl/pstl_config.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libstdc++-v3/include/pstl/pstl_config.h b/libstdc++-v3/include/pstl/pstl_config.h
+index ccb9dd32838d3..e157e4d486f6d 100644
+--- a/libstdc++-v3/include/pstl/pstl_config.h
++++ b/libstdc++-v3/include/pstl/pstl_config.h
+@@ -177,7 +177,7 @@
+
+ #define _PSTL_PRAGMA_MESSAGE_IMPL(x) _PSTL_PRAGMA(message(_PSTL_STRING_CONCAT(_PSTL_PRAGMA_LOCATION, x)))
+
+-#if defined(_PSTL_USAGE_WARNINGS)
++#if _PSTL_USAGE_WARNINGS
+ # define _PSTL_PRAGMA_MESSAGE(x) _PSTL_PRAGMA_MESSAGE_IMPL(x)
+ # define _PSTL_PRAGMA_MESSAGE_POLICIES(x) _PSTL_PRAGMA_MESSAGE_IMPL(x)
+ #else
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 0792954c232887..940990a02b63dd 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=2
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
From c871fa3b3acb9e217e891b98576d1da894df2490 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 03/34] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 66e5cf056e9624..04e22c4fb01166 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=22
+revision=23
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From 03f7b4ec8431cc418ea793961fd5bef48c046828 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 04/34] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 5a3a043167229871d0f263c51a5672a88c0ec353 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 05/34] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From a2129fb1da8269299a1e7b24fbef6110ca2e3981 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 06/34] gcc-multilib: update to 14.2.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From d10bcdae625f802acdbf6f7dd65f5f5b91b428fc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 07/34] libgccjit: update to 14.2.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From f58f5d601054094fbb12306ed0214dc98de06ae7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 08/34] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From 7bfb9b1cca41bf07371ba4ccf3041832fe067a75 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 09/34] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..917e16f2caf575 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 78ec397b7a6ca0a0023f30d984de03e7bc600b72 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 10/34] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 074001d0288098..20d5cb03ef9ebd 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 85d672bee14142ed9439e87a25775f0d7aabd7c2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 11/34] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..13adcec7be0c00 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 75d08cfab498d51a07453eb089630d2bbea9c9ef Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 12/34] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..d31ad31490d210 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 1d84e123a5d3a4c3cb1c01c0ab5e92ca48a13e91 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 13/34] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 79801b4d7b0255..52772d1b48d342 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -25,7 +25,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From f21e256458767f33ce506a05aa1d36e0d760d2a5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 14/34] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index 87629a415a1352..12a98a66ff56ac 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -25,7 +25,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 4409f1d41f61a04fbc7bf36b3afa7fa428ef63a9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 15/34] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..3c1a0dea67e400 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 6e686ec86fa4de33914596ca80b611ac84818e54 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 16/34] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index b08278c7207386..833efee5bad842 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From f9a17a91174bcb99c05442ba4826a3f709a6da05 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 17/34] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index d37bb61b0e5a08..300211f6c931d8 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -23,7 +23,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From dab5f086928c8ead790d9119c8a754ac219b67c4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 18/34] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..ce0ab0e1744887 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,7 +20,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 36558fdf33d57a49b85c8abd3280f231e12087d4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 19/34] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index bfb9d16a1be021..9ebeb0e87ef1d8 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From c1bbfc01c6841d65d150d7858f433fb05a503185 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 20/34] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 6ca7fc6274d4db..62535238b3bccc 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 11fcac64f0148525009334282bde70d5b24f9b28 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 21/34] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 1ed2f94ad10d43..d72be3de81ad32 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 3aa03453f352b3435bf023fa706f906d3bd0487e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 22/34] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index fc8f1294f6a017..b32888584d2306 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f4533a87e49d05f0bdd7d4a67b6cbaf38e09ca5a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 23/34] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..0b6209edb37c75 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 9ad1d918994bf00f7c231a201ad7e75be80daad4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 24/34] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52844bf5512cca..0d114cc9993440 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 4987c910623bafde3911aec8e941a4d8d727e380 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 25/34] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..eda2f7ee9be0c1 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 40ba4f35a4a473639b46eb2f34886c1c33ff5be7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 26/34] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 02fe3f55f82c65..a6704808ed177b 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -26,7 +26,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 2d67afb375554bee86cd5d88d60774a2fa164169 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 27/34] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..3a6c80b1bc1cd4 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 2052d299e0eac46ea7ade64f8886f674b82b1eec Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 28/34] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index 9cc49d05a23398..d0aadb435e0d18 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -26,7 +26,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 0eb9e219929f00809a65c29d60cc4944ba9c70d4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 29/34] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..0066d33e6ffd40 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 5579d9bbc1143f563b9d0a1275d24ff2a9704593 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 30/34] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index 15615e6d7f98d7..59bdf11c55729e 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 0658cd2c8786a6a2ed2737af522f3e7efe9daf27 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 31/34] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..40168cfe9d92f1 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 4bd5175c759d5466bfa534d65fe2882cf5868c8e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 32/34] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index c3ade518330dcb..e4e67b1c5b5136 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 2e5d2b2fff4a4c8da79d83ebe3787259a91bcc1e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 33/34] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..54b219feec1540 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,7 +20,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 08594ebd38fe95901434a9da2cbe7beb2b745b32 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 34/34] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 0ba8decce2aeb1..5d8153ce22f980 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -23,7 +23,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (13 preceding siblings ...)
2024-11-12 1:36 ` [PR PATCH] [Updated] gcc: update to 14.2.0 oreo639
@ 2024-11-12 1:37 ` oreo639
2024-12-14 5:37 ` oreo639
` (48 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2024-11-12 1:37 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2530 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration (good) instead of segfaulting later due to implicit pointer truncation.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, feel free to test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 80165 bytes --]
From 979de5c7a518fa4b32c95b5387a82bbba09fc80a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/34] binutils: update to 2.43.1.
---
srcpkgs/binutils/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..92142bb6788fda 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.43.1
+revision=1
bootstrap=yes
hostmakedepends="pkgconf"
makedepends="zlib-devel libzstd-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=13f74202a3c4c51118b797a39ea4200d3f6cfbe224da6d1d95bb938480132dfd
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From c99f74425468f385f2a1f21815b3acaa4636e126 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/34] gcc: update to 14.2.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 6 +-
6 files changed, 6 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 9a42d7e0255fb1..aee18298e25bf0 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.38 perl-5.38.0_1
libgmp.so.10 gmp-5.0.1_1
@@ -864,8 +864,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 0792954c232887..940990a02b63dd 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=2
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
From ec640d597f4765edc4755cb2a452ca698980740d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 03/34] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 66e5cf056e9624..04e22c4fb01166 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=22
+revision=23
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From 5f4d791cae93b8c406ac0d9e6e16547b7e743d60 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 04/34] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 0358dc4144f7b2901749e818dfe22cc6ec87238d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 05/34] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 7f1d3e708662a175db039723c2d92abbbad6ef3b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 06/34] gcc-multilib: update to 14.2.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From c67b78342bb1fd77e1b41a66984b0c152f147f83 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 07/34] libgccjit: update to 14.2.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From 63fc3e9b920a6168d1bd3796d39574709df412c9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 08/34] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From 2f882c9e9f7cb42d2e44804c341bbfa93ca9ce2c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 09/34] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..917e16f2caf575 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From b99b46b077c996e9881cf5617863af7d1c2130ec Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 10/34] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 074001d0288098..20d5cb03ef9ebd 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 2d035664c8eb307a5a2cdb79cbaf54d72766e5aa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 11/34] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..13adcec7be0c00 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 9162463b59249ec0883e4ec2a83350a085507d3e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 12/34] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..d31ad31490d210 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 1887184f6d443e573a721c7406e4a8d966294b84 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 13/34] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 79801b4d7b0255..52772d1b48d342 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -25,7 +25,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 36669fd025aea95aae6afc51227132ac7012a39f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 14/34] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index 87629a415a1352..12a98a66ff56ac 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -25,7 +25,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 70c0876da2a31ecedf27e3d5d81f483dbfaacc28 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 15/34] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..3c1a0dea67e400 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ef03e45e8dfeed014f519bf093c664aa06c5aa3e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 16/34] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index b08278c7207386..833efee5bad842 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From e9caa1cf09ef391575944b64967d87f37b8976e1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 17/34] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index d37bb61b0e5a08..300211f6c931d8 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -23,7 +23,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From d9cd99790cf0eacc84e5872adc1dadb1203ef9ff Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 18/34] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..ce0ab0e1744887 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,7 +20,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 57edb4beb0087aa59f2683033614ca3cc428f8c2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 19/34] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index bfb9d16a1be021..9ebeb0e87ef1d8 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From b00c6290a9d04dc5e9ce91c4a843341a57645b21 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 20/34] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 6ca7fc6274d4db..62535238b3bccc 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 637dafc780d01967f5d77cc83e86090f4ffc6712 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 21/34] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 1ed2f94ad10d43..d72be3de81ad32 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 178391bc64db1b698dfa7e5f213b587df0a0416d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 22/34] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index fc8f1294f6a017..b32888584d2306 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f68c5da0d5eecdd780a8e106b2f6d5d820bedf5b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 23/34] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..0b6209edb37c75 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From b8aab237d61d0699383a5bcacab7f8cf2e21a258 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 24/34] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52844bf5512cca..0d114cc9993440 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 385d89d75ed00b0f3c6f479fc8de7d24af6dcf84 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 25/34] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..eda2f7ee9be0c1 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From b9648934394b856390e80eb0b75355d791928a44 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 26/34] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 02fe3f55f82c65..a6704808ed177b 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -26,7 +26,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 8f03d9a4e30cf8bb52e9127445d38899a14e311b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 27/34] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..3a6c80b1bc1cd4 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 5e007523d1d27f68cd02fc3322f635343a96589d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 28/34] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index 9cc49d05a23398..d0aadb435e0d18 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -26,7 +26,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 64080575e3e3c8d4b85336073d9be5bb3d28609c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 29/34] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..0066d33e6ffd40 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 503c642fb9931d55770cc0f65488a230495c5504 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 30/34] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index 15615e6d7f98d7..59bdf11c55729e 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7eb161b749d4ee33d1c5f18d716f3d3eee95452b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 31/34] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..40168cfe9d92f1 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f91d151fca212a65e8b351ec5356f41f401ea3df Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 32/34] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index c3ade518330dcb..e4e67b1c5b5136 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 9b3204fd8ce665d13ff32d4cdc23814d8fcdc455 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 33/34] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..54b219feec1540 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,7 +20,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 9162e425502903db29602ad8b953179bdce714e7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 34/34] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 0ba8decce2aeb1..5d8153ce22f980 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -23,7 +23,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (14 preceding siblings ...)
2024-11-12 1:37 ` oreo639
@ 2024-12-14 5:37 ` oreo639
2024-12-14 5:38 ` oreo639
` (47 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2024-12-14 5:37 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2911 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [ ] runit https://github.com/void-linux/void-packages/pull/52408
- [ ] ntp
- [ ] libsasl
- [ ] nvi
- [ ] xbps (-Werror=calloc-transposed-args)
- [x] db (done in this pr)
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration (good) instead of segfaulting later due to implicit pointer truncation.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, feel free to test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 165204 bytes --]
From 979de5c7a518fa4b32c95b5387a82bbba09fc80a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/40] binutils: update to 2.43.1.
---
srcpkgs/binutils/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..92142bb6788fda 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.43.1
+revision=1
bootstrap=yes
hostmakedepends="pkgconf"
makedepends="zlib-devel libzstd-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=13f74202a3c4c51118b797a39ea4200d3f6cfbe224da6d1d95bb938480132dfd
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From c99f74425468f385f2a1f21815b3acaa4636e126 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/40] gcc: update to 14.2.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 6 +-
6 files changed, 6 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 9a42d7e0255fb1..aee18298e25bf0 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.38 perl-5.38.0_1
libgmp.so.10 gmp-5.0.1_1
@@ -864,8 +864,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 0792954c232887..940990a02b63dd 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=2
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
From 0d9d5a3c84125711920f4007c1dc7381e91cb010 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 03/40] glibc: update to 2.40.
https://sourceware.org/pipermail/libc-alpha/2024-July/158467.html
---
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...a358428bcec2d203fa408b85f442c9a465ca.patch | 53 ++
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
...e2ba144a554809161d488f25e4bae07c9405.patch | 300 ++++++++++
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
...3d58ff12e27771d9c960a727d74992a3f2a3.patch | 27 +
srcpkgs/glibc/template | 6 +-
9 files changed, 383 insertions(+), 973 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
create mode 100644 srcpkgs/glibc/patches/3433a358428bcec2d203fa408b85f442c9a465ca.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
create mode 100644 srcpkgs/glibc/patches/6a97e2ba144a554809161d488f25e4bae07c9405.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
create mode 100644 srcpkgs/glibc/patches/aa533d58ff12e27771d9c960a727d74992a3f2a3.patch
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/3433a358428bcec2d203fa408b85f442c9a465ca.patch b/srcpkgs/glibc/patches/3433a358428bcec2d203fa408b85f442c9a465ca.patch
new file mode 100644
index 00000000000000..3a11cafcb4e839
--- /dev/null
+++ b/srcpkgs/glibc/patches/3433a358428bcec2d203fa408b85f442c9a465ca.patch
@@ -0,0 +1,53 @@
+From 3433a358428bcec2d203fa408b85f442c9a465ca Mon Sep 17 00:00:00 2001
+From: "H.J. Lu" <hjl.tools@gmail.com>
+Date: Wed, 24 Jul 2024 14:05:13 -0700
+Subject: [PATCH] linux: Update the mremap C implementation [BZ #31968]
+
+Update the mremap C implementation to support the optional argument for
+MREMAP_DONTUNMAP added in Linux 5.7 since it may not always be correct
+to implement a variadic function as a non-variadic function on all Linux
+targets. Return MAP_FAILED and set errno to EINVAL for unknown flag bits.
+This fixes BZ #31968.
+
+Note: A test must be added when a new flag bit is introduced.
+
+Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
+Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
+(cherry picked from commit 6c40cb0e9f893d49dc7caee580a055de53562206)
+---
+ NEWS | 1 +
+ sysdeps/unix/sysv/linux/mremap.c | 14 +++++++++++++-
+ 2 files changed, 14 insertions(+), 1 deletion(-)
+
+diff --git a/sysdeps/unix/sysv/linux/mremap.c b/sysdeps/unix/sysv/linux/mremap.c
+index 4f770799c4f..1ada5c1f40d 100644
+--- a/sysdeps/unix/sysv/linux/mremap.c
++++ b/sysdeps/unix/sysv/linux/mremap.c
+@@ -20,6 +20,12 @@
+ #include <sysdep.h>
+ #include <stdarg.h>
+ #include <stddef.h>
++#include <errno.h>
++
++#define MREMAP_KNOWN_BITS \
++ (MREMAP_MAYMOVE \
++ | MREMAP_FIXED \
++ | MREMAP_DONTUNMAP)
+
+ void *
+ __mremap (void *addr, size_t old_len, size_t new_len, int flags, ...)
+@@ -27,7 +33,13 @@ __mremap (void *addr, size_t old_len, size_t new_len, int flags, ...)
+ va_list va;
+ void *new_addr = NULL;
+
+- if (flags & MREMAP_FIXED)
++ if (flags & ~(MREMAP_KNOWN_BITS))
++ {
++ __set_errno (EINVAL);
++ return MAP_FAILED;
++ }
++
++ if (flags & (MREMAP_FIXED | MREMAP_DONTUNMAP))
+ {
+ va_start (va, flags);
+ new_addr = va_arg (va, void *);
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/6a97e2ba144a554809161d488f25e4bae07c9405.patch b/srcpkgs/glibc/patches/6a97e2ba144a554809161d488f25e4bae07c9405.patch
new file mode 100644
index 00000000000000..e26d797a75c23e
--- /dev/null
+++ b/srcpkgs/glibc/patches/6a97e2ba144a554809161d488f25e4bae07c9405.patch
@@ -0,0 +1,300 @@
+From 6a97e2ba144a554809161d488f25e4bae07c9405 Mon Sep 17 00:00:00 2001
+From: Andreas Schwab <schwab@suse.de>
+Date: Mon, 5 Aug 2024 10:55:51 +0200
+Subject: [PATCH] Fix name space violation in fortify wrappers (bug 32052)
+
+Rename the identifier sz to __sz everywhere.
+
+Fixes: a643f60c53 ("Make sure that the fortified function conditionals are constant")
+(cherry picked from commit 39ca997ab378990d5ac1aadbaa52aaf1db6d526f)
+---
+ NEWS | 1 +
+ libio/bits/stdio2.h | 40 +++++++++++++++----------------
+ socket/bits/socket2.h | 20 ++++++++--------
+ stdlib/bits/stdlib.h | 10 ++++----
+ wcsmbs/bits/wchar2.h | 56 +++++++++++++++++++++----------------------
+ 5 files changed, 64 insertions(+), 63 deletions(-)
+
+diff --git a/libio/bits/stdio2.h b/libio/bits/stdio2.h
+index 91a80dd7c63..4b8bc35bdf3 100644
+--- a/libio/bits/stdio2.h
++++ b/libio/bits/stdio2.h
+@@ -308,14 +308,14 @@ fgets (__fortify_clang_overload_arg (char *, __restrict, __s), int __n,
+ "fgets called with bigger size than length of "
+ "destination buffer")
+ {
+- size_t sz = __glibc_objsize (__s);
+- if (__glibc_safe_or_unknown_len (__n, sizeof (char), sz))
++ size_t __sz = __glibc_objsize (__s);
++ if (__glibc_safe_or_unknown_len (__n, sizeof (char), __sz))
+ return __fgets_alias (__s, __n, __stream);
+ #if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, sizeof (char), sz))
+- return __fgets_chk_warn (__s, sz, __n, __stream);
++ if (__glibc_unsafe_len (__n, sizeof (char), __sz))
++ return __fgets_chk_warn (__s, __sz, __n, __stream);
+ #endif
+- return __fgets_chk (__s, sz, __n, __stream);
++ return __fgets_chk (__s, __sz, __n, __stream);
+ }
+
+ __fortify_function __wur __nonnull ((4)) __attribute_overloadable__ size_t
+@@ -326,14 +326,14 @@ fread (__fortify_clang_overload_arg (void *, __restrict, __ptr),
+ "fread called with bigger size * n than length "
+ "of destination buffer")
+ {
+- size_t sz = __glibc_objsize0 (__ptr);
+- if (__glibc_safe_or_unknown_len (__n, __size, sz))
++ size_t __sz = __glibc_objsize0 (__ptr);
++ if (__glibc_safe_or_unknown_len (__n, __size, __sz))
+ return __fread_alias (__ptr, __size, __n, __stream);
+ #if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, __size, sz))
+- return __fread_chk_warn (__ptr, sz, __size, __n, __stream);
++ if (__glibc_unsafe_len (__n, __size, __sz))
++ return __fread_chk_warn (__ptr, __sz, __size, __n, __stream);
+ #endif
+- return __fread_chk (__ptr, sz, __size, __n, __stream);
++ return __fread_chk (__ptr, __sz, __size, __n, __stream);
+ }
+
+ #ifdef __USE_GNU
+@@ -345,14 +345,14 @@ fgets_unlocked (__fortify_clang_overload_arg (char *, __restrict, __s),
+ "fgets called with bigger size than length of "
+ "destination buffer")
+ {
+- size_t sz = __glibc_objsize (__s);
+- if (__glibc_safe_or_unknown_len (__n, sizeof (char), sz))
++ size_t __sz = __glibc_objsize (__s);
++ if (__glibc_safe_or_unknown_len (__n, sizeof (char), __sz))
+ return __fgets_unlocked_alias (__s, __n, __stream);
+ #if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, sizeof (char), sz))
+- return __fgets_unlocked_chk_warn (__s, sz, __n, __stream);
++ if (__glibc_unsafe_len (__n, sizeof (char), __sz))
++ return __fgets_unlocked_chk_warn (__s, __sz, __n, __stream);
+ #endif
+- return __fgets_unlocked_chk (__s, sz, __n, __stream);
++ return __fgets_unlocked_chk (__s, __sz, __n, __stream);
+ }
+ #endif
+
+@@ -366,8 +366,8 @@ fread_unlocked (__fortify_clang_overload_arg0 (void *, __restrict, __ptr),
+ "fread_unlocked called with bigger size * n than "
+ "length of destination buffer")
+ {
+- size_t sz = __glibc_objsize0 (__ptr);
+- if (__glibc_safe_or_unknown_len (__n, __size, sz))
++ size_t __sz = __glibc_objsize0 (__ptr);
++ if (__glibc_safe_or_unknown_len (__n, __size, __sz))
+ {
+ # ifdef __USE_EXTERN_INLINES
+ if (__builtin_constant_p (__size)
+@@ -393,10 +393,10 @@ fread_unlocked (__fortify_clang_overload_arg0 (void *, __restrict, __ptr),
+ return __fread_unlocked_alias (__ptr, __size, __n, __stream);
+ }
+ # if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, __size, sz))
+- return __fread_unlocked_chk_warn (__ptr, sz, __size, __n, __stream);
++ if (__glibc_unsafe_len (__n, __size, __sz))
++ return __fread_unlocked_chk_warn (__ptr, __sz, __size, __n, __stream);
+ # endif
+- return __fread_unlocked_chk (__ptr, sz, __size, __n, __stream);
++ return __fread_unlocked_chk (__ptr, __sz, __size, __n, __stream);
+
+ }
+ #endif
+diff --git a/socket/bits/socket2.h b/socket/bits/socket2.h
+index 04780f320e9..bd91647f37c 100644
+--- a/socket/bits/socket2.h
++++ b/socket/bits/socket2.h
+@@ -37,14 +37,14 @@ recv (int __fd, __fortify_clang_overload_arg0 (void *, ,__buf), size_t __n,
+ "recv called with bigger length than "
+ "size of destination buffer")
+ {
+- size_t sz = __glibc_objsize0 (__buf);
+- if (__glibc_safe_or_unknown_len (__n, sizeof (char), sz))
++ size_t __sz = __glibc_objsize0 (__buf);
++ if (__glibc_safe_or_unknown_len (__n, sizeof (char), __sz))
+ return __recv_alias (__fd, __buf, __n, __flags);
+ #if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, sizeof (char), sz))
+- return __recv_chk_warn (__fd, __buf, __n, sz, __flags);
++ if (__glibc_unsafe_len (__n, sizeof (char), __sz))
++ return __recv_chk_warn (__fd, __buf, __n, __sz, __flags);
+ #endif
+- return __recv_chk (__fd, __buf, __n, sz, __flags);
++ return __recv_chk (__fd, __buf, __n, __sz, __flags);
+ }
+
+ extern ssize_t __recvfrom_chk (int __fd, void *__restrict __buf, size_t __n,
+@@ -71,13 +71,13 @@ recvfrom (int __fd, __fortify_clang_overload_arg0 (void *, __restrict, __buf),
+ "recvfrom called with bigger length "
+ "than size of destination buffer")
+ {
+- size_t sz = __glibc_objsize0 (__buf);
+- if (__glibc_safe_or_unknown_len (__n, sizeof (char), sz))
++ size_t __sz = __glibc_objsize0 (__buf);
++ if (__glibc_safe_or_unknown_len (__n, sizeof (char), __sz))
+ return __recvfrom_alias (__fd, __buf, __n, __flags, __addr, __addr_len);
+ #if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, sizeof (char), sz))
+- return __recvfrom_chk_warn (__fd, __buf, __n, sz, __flags, __addr,
++ if (__glibc_unsafe_len (__n, sizeof (char), __sz))
++ return __recvfrom_chk_warn (__fd, __buf, __n, __sz, __flags, __addr,
+ __addr_len);
+ #endif
+- return __recvfrom_chk (__fd, __buf, __n, sz, __flags, __addr, __addr_len);
++ return __recvfrom_chk (__fd, __buf, __n, __sz, __flags, __addr, __addr_len);
+ }
+diff --git a/stdlib/bits/stdlib.h b/stdlib/bits/stdlib.h
+index 1557b862b17..9c78ecf458b 100644
+--- a/stdlib/bits/stdlib.h
++++ b/stdlib/bits/stdlib.h
+@@ -43,16 +43,16 @@ __NTH (realpath (const char *__restrict __name,
+ "bytes long buffer")
+ #endif
+ {
+- size_t sz = __glibc_objsize (__resolved);
++ size_t __sz = __glibc_objsize (__resolved);
+
+- if (sz == (size_t) -1)
++ if (__sz == (size_t) -1)
+ return __realpath_alias (__name, __resolved);
+
+ #if !__fortify_use_clang && defined _LIBC_LIMITS_H_ && defined PATH_MAX
+- if (__glibc_unsafe_len (PATH_MAX, sizeof (char), sz))
+- return __realpath_chk_warn (__name, __resolved, sz);
++ if (__glibc_unsafe_len (PATH_MAX, sizeof (char), __sz))
++ return __realpath_chk_warn (__name, __resolved, __sz);
+ #endif
+- return __realpath_chk (__name, __resolved, sz);
++ return __realpath_chk (__name, __resolved, __sz);
+ }
+
+
+diff --git a/wcsmbs/bits/wchar2.h b/wcsmbs/bits/wchar2.h
+index 9fdff47ee29..43c6b63027b 100644
+--- a/wcsmbs/bits/wchar2.h
++++ b/wcsmbs/bits/wchar2.h
+@@ -74,9 +74,9 @@ __fortify_function __attribute_overloadable__ wchar_t *
+ __NTH (wcscpy (__fortify_clang_overload_arg (wchar_t *, __restrict, __dest),
+ const wchar_t *__restrict __src))
+ {
+- size_t sz = __glibc_objsize (__dest);
+- if (sz != (size_t) -1)
+- return __wcscpy_chk (__dest, __src, sz / sizeof (wchar_t));
++ size_t __sz = __glibc_objsize (__dest);
++ if (__sz != (size_t) -1)
++ return __wcscpy_chk (__dest, __src, __sz / sizeof (wchar_t));
+ return __wcscpy_alias (__dest, __src);
+ }
+
+@@ -84,9 +84,9 @@ __fortify_function __attribute_overloadable__ wchar_t *
+ __NTH (wcpcpy (__fortify_clang_overload_arg (wchar_t *, __restrict, __dest),
+ const wchar_t *__restrict __src))
+ {
+- size_t sz = __glibc_objsize (__dest);
+- if (sz != (size_t) -1)
+- return __wcpcpy_chk (__dest, __src, sz / sizeof (wchar_t));
++ size_t __sz = __glibc_objsize (__dest);
++ if (__sz != (size_t) -1)
++ return __wcpcpy_chk (__dest, __src, __sz / sizeof (wchar_t));
+ return __wcpcpy_alias (__dest, __src);
+ }
+
+@@ -118,9 +118,9 @@ __fortify_function __attribute_overloadable__ wchar_t *
+ __NTH (wcscat (__fortify_clang_overload_arg (wchar_t *, __restrict, __dest),
+ const wchar_t *__restrict __src))
+ {
+- size_t sz = __glibc_objsize (__dest);
+- if (sz != (size_t) -1)
+- return __wcscat_chk (__dest, __src, sz / sizeof (wchar_t));
++ size_t __sz = __glibc_objsize (__dest);
++ if (__sz != (size_t) -1)
++ return __wcscat_chk (__dest, __src, __sz / sizeof (wchar_t));
+ return __wcscat_alias (__dest, __src);
+ }
+
+@@ -128,9 +128,9 @@ __fortify_function __attribute_overloadable__ wchar_t *
+ __NTH (wcsncat (__fortify_clang_overload_arg (wchar_t *, __restrict, __dest),
+ const wchar_t *__restrict __src, size_t __n))
+ {
+- size_t sz = __glibc_objsize (__dest);
+- if (sz != (size_t) -1)
+- return __wcsncat_chk (__dest, __src, __n, sz / sizeof (wchar_t));
++ size_t __sz = __glibc_objsize (__dest);
++ if (__sz != (size_t) -1)
++ return __wcsncat_chk (__dest, __src, __n, __sz / sizeof (wchar_t));
+ return __wcsncat_alias (__dest, __src, __n);
+ }
+
+@@ -170,10 +170,10 @@ __fortify_function int
+ __NTH (swprintf (wchar_t *__restrict __s, size_t __n,
+ const wchar_t *__restrict __fmt, ...))
+ {
+- size_t sz = __glibc_objsize (__s);
+- if (sz != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
++ size_t __sz = __glibc_objsize (__s);
++ if (__sz != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
+ return __swprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
+- sz / sizeof (wchar_t), __fmt, __va_arg_pack ());
++ __sz / sizeof (wchar_t), __fmt, __va_arg_pack ());
+ return __swprintf_alias (__s, __n, __fmt, __va_arg_pack ());
+ }
+ #elif __fortify_use_clang
+@@ -206,10 +206,10 @@ __fortify_function int
+ __NTH (vswprintf (wchar_t *__restrict __s, size_t __n,
+ const wchar_t *__restrict __fmt, __gnuc_va_list __ap))
+ {
+- size_t sz = __glibc_objsize (__s);
+- if (sz != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
++ size_t __sz = __glibc_objsize (__s);
++ if (__sz != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
+ return __vswprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
+- sz / sizeof (wchar_t), __fmt, __ap);
++ __sz / sizeof (wchar_t), __fmt, __ap);
+ return __vswprintf_alias (__s, __n, __fmt, __ap);
+ }
+
+@@ -257,14 +257,14 @@ fgetws (__fortify_clang_overload_arg (wchar_t *, __restrict, __s), int __n,
+ "fgetws called with length bigger "
+ "than size of destination buffer")
+ {
+- size_t sz = __glibc_objsize (__s);
+- if (__glibc_safe_or_unknown_len (__n, sizeof (wchar_t), sz))
++ size_t __sz = __glibc_objsize (__s);
++ if (__glibc_safe_or_unknown_len (__n, sizeof (wchar_t), __sz))
+ return __fgetws_alias (__s, __n, __stream);
+ #if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, sizeof (wchar_t), sz))
+- return __fgetws_chk_warn (__s, sz / sizeof (wchar_t), __n, __stream);
++ if (__glibc_unsafe_len (__n, sizeof (wchar_t), __sz))
++ return __fgetws_chk_warn (__s, __sz / sizeof (wchar_t), __n, __stream);
+ #endif
+- return __fgetws_chk (__s, sz / sizeof (wchar_t), __n, __stream);
++ return __fgetws_chk (__s, __sz / sizeof (wchar_t), __n, __stream);
+ }
+
+ #ifdef __USE_GNU
+@@ -275,15 +275,15 @@ fgetws_unlocked (__fortify_clang_overload_arg (wchar_t *, __restrict, __s),
+ "fgetws_unlocked called with length bigger "
+ "than size of destination buffer")
+ {
+- size_t sz = __glibc_objsize (__s);
+- if (__glibc_safe_or_unknown_len (__n, sizeof (wchar_t), sz))
++ size_t __sz = __glibc_objsize (__s);
++ if (__glibc_safe_or_unknown_len (__n, sizeof (wchar_t), __sz))
+ return __fgetws_unlocked_alias (__s, __n, __stream);
+ # if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, sizeof (wchar_t), sz))
+- return __fgetws_unlocked_chk_warn (__s, sz / sizeof (wchar_t), __n,
++ if (__glibc_unsafe_len (__n, sizeof (wchar_t), __sz))
++ return __fgetws_unlocked_chk_warn (__s, __sz / sizeof (wchar_t), __n,
+ __stream);
+ # endif
+- return __fgetws_unlocked_chk (__s, sz / sizeof (wchar_t), __n, __stream);
++ return __fgetws_unlocked_chk (__s, __sz / sizeof (wchar_t), __n, __stream);
+ }
+ #endif
+
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/patches/aa533d58ff12e27771d9c960a727d74992a3f2a3.patch b/srcpkgs/glibc/patches/aa533d58ff12e27771d9c960a727d74992a3f2a3.patch
new file mode 100644
index 00000000000000..68ef9a8009696a
--- /dev/null
+++ b/srcpkgs/glibc/patches/aa533d58ff12e27771d9c960a727d74992a3f2a3.patch
@@ -0,0 +1,27 @@
+From aa533d58ff12e27771d9c960a727d74992a3f2a3 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Fri, 2 Aug 2024 15:22:14 +0200
+Subject: [PATCH] x86: Tunables may incorrectly set Prefer_PMINUB_for_stringop
+ (bug 32047)
+
+Fixes commit 5bcf6265f215326d14dfacdce8532792c2c7f8f8 ("x86:
+Disable non-temporal memset on Skylake Server").
+
+Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
+(cherry picked from commit 7a630f7d3392ca391a399486ce2846f9e4b4ee63)
+---
+ sysdeps/x86/cpu-tunables.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/sysdeps/x86/cpu-tunables.c b/sysdeps/x86/cpu-tunables.c
+index ae9dcd6180c..ccc6b64dc20 100644
+--- a/sysdeps/x86/cpu-tunables.c
++++ b/sysdeps/x86/cpu-tunables.c
+@@ -248,6 +248,7 @@ TUNABLE_CALLBACK (set_hwcaps) (tunable_val_t *valp)
+ CHECK_GLIBC_IFUNC_PREFERRED_BOTH (n, cpu_features,
+ Avoid_Non_Temporal_Memset, 25);
+ }
++ break;
+ case 26:
+ {
+ CHECK_GLIBC_IFUNC_PREFERRED_NEED_BOTH
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..7a8623c869dcf1 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.40
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=19a890175e9263d748f627993de6f4b1af9cd21e03f080e4bfb3a1fac10205a2
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From 6b982bc4207a4f45058f019bea168721445ebebe Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 04/40] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 66e5cf056e9624..04e22c4fb01166 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=22
+revision=23
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From a8254c787944745539d0297233bfe34ef9f4058c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 05/40] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 05571a5bd7cd91479ee6b743926824647838829a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 06/40] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 4e697e7566a111b6958e2f8a8d9fa48d0651eeaa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 07/40] gcc-multilib: update to 14.2.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From fe09574d845ad52a72ee18ab59e617f0eb2b276e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 08/40] libgccjit: update to 14.2.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From 78bcfc49eb60478ae2cac08aae5c6a7e24cf2ba7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 09/40] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From 3c671c69bec0708d65a9ac82c5d6c6910e0ccbdd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 10/40] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From 931b21fe7d768debdc534226fe735e0631940fdd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 11/40] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..917e16f2caf575 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 9c41695c40a66c0b6befacd2d68c8ea40b5b9bc6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 12/40] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 074001d0288098..20d5cb03ef9ebd 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 21f8239a59d9c57679649faf9990af3051b5062f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 13/40] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..13adcec7be0c00 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 35193ea1dfbb5260d955c30145bc83b75bdc1c1a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 14/40] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..d31ad31490d210 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7dfc09940ad4fbf87e999cd83fdbb907c8f3d903 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 15/40] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 79801b4d7b0255..52772d1b48d342 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -25,7 +25,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From fa795ef7a9d10eb1aa443655dd6a5f88cb7090be Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 16/40] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index 87629a415a1352..12a98a66ff56ac 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -25,7 +25,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From f641a49273ad58f520f0c147eaa3a2e32ab9c601 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 17/40] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..3c1a0dea67e400 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 1595a7e82524eb79822f6502672948a34aa4f852 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 18/40] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index b08278c7207386..833efee5bad842 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 4705a79ea06c226b8ad27bf90b011ec75e660afc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 19/40] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index d37bb61b0e5a08..300211f6c931d8 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -23,7 +23,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 21eaeb8f2222688f4eabd0e9ebd366312dfd68b0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 20/40] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..ce0ab0e1744887 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,7 +20,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From b5aeac8b62058ccd38220a17c650f0563c3b32d6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 21/40] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index bfb9d16a1be021..9ebeb0e87ef1d8 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f2b04a6328dd8313e89c8f1ffea4983d21363557 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 22/40] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 6ca7fc6274d4db..62535238b3bccc 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 5fdb8634263c26aba8c288dc0de737eb6146ea11 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 23/40] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 1ed2f94ad10d43..d72be3de81ad32 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 5a2d783af37c9a81abf4c3ce0dcfa6be6c11988b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 24/40] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index fc8f1294f6a017..b32888584d2306 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 651abbdcaa89d8712b338bdfcfb01795479d2338 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 25/40] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..0b6209edb37c75 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 3758fb184e521328a8249f9527e7816efeb038c8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 26/40] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52844bf5512cca..0d114cc9993440 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ba91996cbc0e3e9dd6a99ca6df3ff24d7ec377fc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 27/40] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..eda2f7ee9be0c1 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 69df47154b0a3cf5cf3d69810b4384f32444f61d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 28/40] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 02fe3f55f82c65..a6704808ed177b 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -26,7 +26,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 3d8627ed4cc647a0502d48c7dbac1d415a10ebea Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 29/40] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..3a6c80b1bc1cd4 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 16df5df2ae8ea24c40c2ea2cb392272736906b13 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 30/40] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index 9cc49d05a23398..d0aadb435e0d18 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -26,7 +26,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 88281836d5dc785f11665a92ebecb6157fe0c491 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 31/40] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..0066d33e6ffd40 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7731c0478686c5756202b30c42ad3a877ab5e5fc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 32/40] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index 15615e6d7f98d7..59bdf11c55729e 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From fc1ab8817ce3c770bb75e5da3295f6656a5c64bd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 33/40] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..40168cfe9d92f1 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f1f7e06c28bed6cf11ae7bc6e9cd818ed528261e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 34/40] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index c3ade518330dcb..e4e67b1c5b5136 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 99650f0d928636a00cd8eef90101463ea89a841a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 35/40] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..54b219feec1540 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,7 +20,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 53dd6d1c89416d6e7b8c3eef6f0fd277ffb15b7c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 36/40] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 0ba8decce2aeb1..5d8153ce22f980 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -23,7 +23,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 8585c57514fa38807eaa06b1cf3a5d47959fb098 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:56:36 -0800
Subject: [PATCH 37/40] ntp: fix build with gcc14
---
srcpkgs/ntp/patches/gcc14.patch | 612 ++++++++++++++++++++++++++++++++
srcpkgs/ntp/template | 6 +-
2 files changed, 617 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/ntp/patches/gcc14.patch
diff --git a/srcpkgs/ntp/patches/gcc14.patch b/srcpkgs/ntp/patches/gcc14.patch
new file mode 100644
index 00000000000000..925543ee1fe669
--- /dev/null
+++ b/srcpkgs/ntp/patches/gcc14.patch
@@ -0,0 +1,612 @@
+Source: https://gitweb.gentoo.org/repo/gentoo.git/plain/net-misc/ntp/files/ntp-4.2.8_p15-configure-clang16.patch?id=9cc28f1d1f1f13da5537fe125931bd4b1fef97cf
+
+Sync with OpenLDAP. Uses Arsen's patch from https://bugs.gentoo.org/871288.
+
+https://bugs.gentoo.org/871372
+--- a/sntp/m4/openldap-thread-check.m4
++++ b/sntp/m4/openldap-thread-check.m4
+@@ -262,10 +262,8 @@ pthread_rwlock_t rwlock;
+ dnl save the flags
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #include <pthread.h>
+-#ifndef NULL
+-#define NULL (void*)0
+-#endif
+-]], [[pthread_detach(NULL);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
++pthread_t thread;
++]], [[pthread_detach(thread);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
+ ])
+
+ if test $ol_cv_func_pthread_detach = no ; then
+--- a/sntp/m4/openldap.m4
++++ b/sntp/m4/openldap.m4
+@@ -1,16 +1,16 @@
+ dnl OpenLDAP Autoconf Macros
+-dnl $OpenLDAP: pkg/ldap/build/openldap.m4,v 1.157.2.10 2010/04/13 20:22:21 kurt Exp $
++dnl $OpenLDAP$
+ dnl This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ dnl
+-dnl Copyright 1998-2010 The OpenLDAP Foundation.
++dnl Copyright 1998-2022 The OpenLDAP Foundation.
+ dnl All rights reserved.
+ dnl
+ dnl Redistribution and use in source and binary forms, with or without
+ dnl modification, are permitted only as authorized by the OpenLDAP
+ dnl Public License.
+ dnl
+-dnl A copy of this license is available in the file LICENSE-OPENLDAP in
+-dnl this directory of the distribution or, alternatively, at
++dnl A copy of this license is available in the file LICENSE in the
++dnl top-level directory of the distribution or, alternatively, at
+ dnl <http://www.OpenLDAP.org/license.html>.
+ dnl
+ dnl --------------------------------------------------------------------
+@@ -154,6 +154,7 @@ fi
+ if test $ol_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <ctype.h>
++#include <stdlib.h>
+ #ifndef HAVE_EBCDIC
+ # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+ # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+@@ -170,7 +171,7 @@ exit (0); }
+ ]])],[],[ol_cv_header_stdc=no],[:])
+ fi])
+ if test $ol_cv_header_stdc = yes; then
+- AC_DEFINE([STDC_HEADERS], [1], [is standard C provided?])
++ AC_DEFINE(STDC_HEADERS)
+ fi
+ ac_cv_header_stdc=disable
+ ])
+@@ -242,313 +243,40 @@ AC_DEFUN([OL_RESOLVER_LINK],
+ OL_RESOLVER_TRY(ol_cv_resolver_none)
+ OL_RESOLVER_TRY(ol_cv_resolver_resolv,[-lresolv])
+ OL_RESOLVER_TRY(ol_cv_resolver_bind,[-lbind])
+-])
+-dnl
+-dnl ====================================================================
+-dnl International Components for Unicode (ICU)
+-AC_DEFUN([OL_ICU],
+-[ol_icu=no
+-AC_CHECK_HEADERS( unicode/utypes.h )
+-if test $ac_cv_header_unicode_utypes_h = yes ; then
+- dnl OL_ICULIBS="-licui18n -licuuc -licudata"
+- OL_ICULIBS="-licuuc -licudata"
+-
+- AC_CACHE_CHECK([for ICU libraries], [ol_cv_lib_icu], [
+- ol_LIBS="$LIBS"
+- LIBS="$OL_ICULIBS $LIBS"
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+-#include <unicode/utypes.h>
+-]], [[
+-(void) u_errorName(0);
+-]])],[ol_cv_lib_icu=yes],[ol_cv_lib_icu=no])
+- LIBS="$ol_LIBS"
+-])
+-
+- if test $ol_cv_lib_icu != no ; then
+- ol_icu="$OL_ICULIBS"
+- AC_DEFINE([HAVE_ICU], [1], [define if you actually have ICU])
+- fi
+-fi
+-])
+-dnl
+-dnl ====================================================================
+-dnl Berkeley DB macros
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Try to link
+-AC_DEFUN([OL_BERKELEY_DB_TRY],
+-[if test $ol_cv_lib_db = no ; then
+- AC_CACHE_CHECK([for Berkeley DB link (]ifelse($2,,default,$2)[)],[$1],
+-[
+- ol_DB_LIB=ifelse($2,,,$2)
+- ol_LIBS=$LIBS
+- LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
+-
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+-#ifdef HAVE_DB_185_H
+-# include <db_185.h>
+-#else
+-# include <db.h>
+-#endif
+-
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-
+-#ifndef NULL
+-#define NULL ((void*)0)
+-#endif
+-]], [[
+-#if DB_VERSION_MAJOR > 2
+- db_env_create( NULL, 0 );
+-#elif DB_VERSION_MAJOR > 1
+- db_appexit( NULL );
+-#else
+- (void) dbopen( NULL, 0, 0, 0, NULL);
+-#endif
+-]])],[$1=yes],[$1=no])
+-
+- LIBS="$ol_LIBS"
+-])
+-
+- if test $$1 = yes ; then
+- ol_cv_lib_db=ifelse($2,,yes,$2)
+- fi
+-fi
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Get major and minor version from <db.h>
+-AC_DEFUN([OL_BDB_HEADER_VERSION],
+-[AC_CACHE_CHECK([for Berkeley DB major version in db.h], [ol_cv_bdb_major],[
+- AC_LANG_CONFTEST([
+-#include <db.h>
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-__db_version DB_VERSION_MAJOR
+-])
+- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
+- ol_cv_bdb_major=${3}
+-])
+-case $ol_cv_bdb_major in [[1-9]]*) : ;; *)
+- AC_MSG_ERROR([Unknown Berkeley DB major version in db.h]) ;;
+-esac
+-
+-dnl Determine minor version
+-AC_CACHE_CHECK([for Berkeley DB minor version in db.h], [ol_cv_bdb_minor],[
+- AC_LANG_CONFTEST([
+-#include <db.h>
+-#ifndef DB_VERSION_MINOR
+-# define DB_VERSION_MINOR 0
+-#endif
+-__db_version DB_VERSION_MINOR
+-])
+- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
+- ol_cv_bdb_minor=${3}
+-])
+-case $ol_cv_bdb_minor in [[0-9]]*) : ;; *)
+- AC_MSG_ERROR([Unknown Berkeley DB minor version in db.h]) ;;
+-esac
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Try to locate appropriate library
+-AC_DEFUN([OL_BERKELEY_DB_LINK],
+-[ol_cv_lib_db=no
+-
+-if test $ol_cv_bdb_major = 4 ; then
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4_dot_m,[-ldb-4.$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db4m,[-ldb4$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4m,[-ldb-4$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4_m,[-ldb-4-$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4,[-ldb-4])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db4,[-ldb4])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db,[-ldb])
+-fi
+-OL_BERKELEY_DB_TRY(ol_cv_db_none)
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Check if Berkeley DB version
+-AC_DEFUN([OL_BERKELEY_DB_VERSION],
+-[AC_CACHE_CHECK([for Berkeley DB library and header version match], [ol_cv_berkeley_db_version], [
+- ol_LIBS="$LIBS"
+- LIBS="$LTHREAD_LIBS $LIBS"
+- if test $ol_cv_lib_db != yes ; then
+- LIBS="$ol_cv_lib_db $LIBS"
+- fi
+-
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-#ifdef HAVE_DB_185_H
+- choke me;
+-#else
+-#include <db.h>
+-#endif
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-#ifndef NULL
+-#define NULL ((void *)0)
+-#endif
+-main()
+-{
+-#if DB_VERSION_MAJOR > 1
+- char *version;
+- int major, minor, patch;
+-
+- version = db_version( &major, &minor, &patch );
+-
+- if( major != DB_VERSION_MAJOR ||
+- minor != DB_VERSION_MINOR ||
+- patch != DB_VERSION_PATCH )
+- {
+- printf("Berkeley DB version mismatch\n"
+- "\theader: %s\n\tlibrary: %s\n",
+- DB_VERSION_STRING, version);
+- return 1;
+- }
+-#endif
+-
+- return 0;
+-}]])],[ol_cv_berkeley_db_version=yes],[ol_cv_berkeley_db_version=no],[ol_cv_berkeley_db_version=cross])
+-
+- LIBS="$ol_LIBS"
+ ])
+
+- if test $ol_cv_berkeley_db_version = no ; then
+- AC_MSG_ERROR([Berkeley DB version mismatch])
+- fi
+-])dnl
+-dnl
+ dnl --------------------------------------------------------------------
+-dnl Check if Berkeley DB supports DB_THREAD
+-AC_DEFUN([OL_BERKELEY_DB_THREAD],
+-[AC_CACHE_CHECK([for Berkeley DB thread support], [ol_cv_berkeley_db_thread], [
+- ol_LIBS="$LIBS"
+- LIBS="$LTHREAD_LIBS $LIBS"
+- if test $ol_cv_lib_db != yes ; then
+- LIBS="$ol_cv_lib_db $LIBS"
+- fi
+-
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-#ifdef HAVE_DB_185_H
+- choke me;
+-#else
+-#include <db.h>
+-#endif
+-#ifndef NULL
+-#define NULL ((void *)0)
+-#endif
+-main()
+-{
+- int rc;
+- u_int32_t flags = DB_CREATE |
+-#ifdef DB_PRIVATE
+- DB_PRIVATE |
+-#endif
+- DB_THREAD;
+-
+-#if DB_VERSION_MAJOR > 2
+- DB_ENV *env = NULL;
+-
+- rc = db_env_create( &env, 0 );
++dnl Check for version compatility with back-mdb
++AC_DEFUN([OL_MDB_COMPAT],
++[AC_CACHE_CHECK([if LMDB version supported by MDB backends], [ol_cv_mdb_compat],[
++ AC_EGREP_CPP(__mdb_version_compat,[
++#include <lmdb.h>
+
+- flags |= DB_INIT_MPOOL;
+-#ifdef DB_MPOOL_PRIVATE
+- flags |= DB_MPOOL_PRIVATE;
++/* require 0.9.18 or later */
++#if MDB_VERSION_FULL >= 0x000000090012
++ __mdb_version_compat
+ #endif
+-
+- if( rc ) {
+- printf("BerkeleyDB: %s\n", db_strerror(rc) );
+- return rc;
+- }
+-
+-#if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
+- rc = (env->open)( env, NULL, flags, 0 );
+-#else
+- rc = (env->open)( env, NULL, NULL, flags, 0 );
+-#endif
+-
+- if ( rc == 0 ) {
+- rc = env->close( env, 0 );
+- }
+-
+- if( rc ) {
+- printf("BerkeleyDB: %s\n", db_strerror(rc) );
+- return rc;
+- }
+-
+-#else
+- DB_ENV env;
+- memset( &env, '\0', sizeof(env) );
+-
+- rc = db_appinit( NULL, NULL, &env, flags );
+-
+- if( rc == 0 ) {
+- db_appexit( &env );
+- }
+-
+- unlink("__db_mpool.share");
+- unlink("__db_lock.share");
+-#endif
+-
+- return rc;
+-}]])],[ol_cv_berkeley_db_thread=yes],[ol_cv_berkeley_db_thread=no],[ol_cv_berkeley_db_thread=cross])
+-
+- LIBS="$ol_LIBS"
++ ], [ol_cv_mdb_compat=yes], [ol_cv_mdb_compat=no])])
+ ])
+
+- if test $ol_cv_berkeley_db_thread != no ; then
+- AC_DEFINE([HAVE_BERKELEY_DB_THREAD], [1],
+- [define if Berkeley DB has DB_THREAD support])
+- fi
+-])dnl
+ dnl
+ dnl --------------------------------------------------------------------
+-dnl Find any DB
+-AC_DEFUN([OL_BERKELEY_DB],
+-[ol_cv_berkeley_db=no
+-AC_CHECK_HEADERS(db.h)
+-if test $ac_cv_header_db_h = yes; then
+- OL_BDB_HEADER_VERSION
+- OL_BDB_COMPAT
+-
+- if test $ol_cv_bdb_compat != yes ; then
+- AC_MSG_ERROR([BerkeleyDB version incompatible with BDB/HDB backends])
++dnl Find any MDB
++AC_DEFUN([OL_MDB],
++[ol_cv_mdb=no
++AC_CHECK_HEADERS(lmdb.h)
++if test $ac_cv_header_lmdb_h = yes; then
++ OL_MDB_COMPAT
++
++ if test $ol_cv_mdb_compat != yes ; then
++ AC_MSG_ERROR([LMDB version incompatible with MDB backends])
+ fi
+
+- OL_BERKELEY_DB_LINK
+- if test "$ol_cv_lib_db" != no ; then
+- ol_cv_berkeley_db=yes
+- OL_BERKELEY_DB_VERSION
+- OL_BERKELEY_DB_THREAD
+- fi
++ ol_cv_lib_mdb=-llmdb
++ ol_cv_mdb=yes
+ fi
+ ])
+-dnl --------------------------------------------------------------------
+-dnl Check for version compatility with back-bdb
+-AC_DEFUN([OL_BDB_COMPAT],
+-[AC_CACHE_CHECK([if Berkeley DB version supported by BDB/HDB backends], [ol_cv_bdb_compat],[
+- AC_EGREP_CPP(__db_version_compat,[
+-#include <db.h>
+-
+- /* this check could be improved */
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-#ifndef DB_VERSION_MINOR
+-# define DB_VERSION_MINOR 0
+-#endif
+-
+-#define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
+
+-/* require 4.4 or later */
+-#if DB_VERSION_MM >= 0x0404
+- __db_version_compat
+-#endif
+- ], [ol_cv_bdb_compat=yes], [ol_cv_bdb_compat=no])])
+-])
+
+ dnl
+ dnl ====================================================================
+@@ -664,12 +392,10 @@ AC_DEFUN([OL_PTHREAD_TEST_FUNCTION],[[
+ return 0;
+ ]])
+
+-AC_DEFUN([OL_PTHREAD_TEST_PROGRAM], [
+-AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
++AC_DEFUN([OL_PTHREAD_TEST_PROGRAM],
++[AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
+
+-int main(argc, argv)
+- int argc;
+- char **argv;
++int main(int argc, char **argv)
+ {
+ OL_PTHREAD_TEST_FUNCTION
+ }
+@@ -706,7 +432,7 @@ dnl Check GNU Pth pthread Header
+ dnl
+ dnl defines ol_cv_header linux_threads to 'yes' or 'no'
+ dnl 'no' implies pthreads.h is not LinuxThreads or pthreads.h
+-dnl doesn't exists. Existance of pthread.h should separately
++dnl doesn't exist. Existence of pthread.h should separately
+ dnl checked.
+ dnl
+ AC_DEFUN([OL_HEADER_GNU_PTH_PTHREAD_H], [
+@@ -728,7 +454,7 @@ AC_DEFUN([OL_NT_THREADS], [
+ AC_CHECK_FUNC(_beginthread)
+
+ if test $ac_cv_func__beginthread = yes ; then
+- AC_DEFINE([HAVE_NT_THREADS], [1], [if you have NT Threads])
++ AC_DEFINE(HAVE_NT_THREADS,1,[if you have NT Threads])
+ ol_cv_nt_threads=yes
+ fi
+ ])
+@@ -737,7 +463,7 @@ dnl Check LinuxThreads Header
+ dnl
+ dnl defines ol_cv_header linux_threads to 'yes' or 'no'
+ dnl 'no' implies pthreads.h is not LinuxThreads or pthreads.h
+-dnl doesn't exists. Existance of pthread.h should separately
++dnl doesn't exist. Existence of pthread.h should separately
+ dnl checked.
+ dnl
+ AC_DEFUN([OL_HEADER_LINUX_THREADS], [
+@@ -749,7 +475,7 @@ AC_DEFUN([OL_HEADER_LINUX_THREADS], [
+ [ol_cv_header_linux_threads=no])
+ ])
+ if test $ol_cv_header_linux_threads = yes; then
+- AC_DEFINE([HAVE_LINUX_THREADS], [1], [if you have LinuxThreads])
++ AC_DEFINE(HAVE_LINUX_THREADS,1,[if you have LinuxThreads])
+ fi
+ ])dnl
+ dnl --------------------------------------------------------------------
+@@ -791,7 +517,7 @@ AC_CACHE_CHECK([for compatible POSIX regex],ol_cv_c_posix_regex,[
+ #include <sys/types.h>
+ #include <regex.h>
+ static char *pattern, *string;
+-main()
++int main(void)
+ {
+ int rc;
+ regex_t re;
+@@ -818,7 +544,8 @@ AC_DEFUN([OL_C_UPPER_LOWER],
+ [AC_CACHE_CHECK([if toupper() requires islower()],ol_cv_c_upper_lower,[
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+ #include <ctype.h>
+-main()
++#include <stdlib.h>
++int main(void)
+ {
+ if ('C' == toupper('C'))
+ exit(0);
+@@ -826,7 +553,7 @@ main()
+ exit(1);
+ }]])],[ol_cv_c_upper_lower=no],[ol_cv_c_upper_lower=yes],[ol_cv_c_upper_lower=safe])])
+ if test $ol_cv_c_upper_lower != no ; then
+- AC_DEFINE([C_UPPER_LOWER], [1], [define if toupper() requires islower()])
++ AC_DEFINE(C_UPPER_LOWER,1, [define if toupper() requires islower()])
+ fi
+ ])
+ dnl
+@@ -837,29 +564,32 @@ dnl Check for declaration of sys_errlist in one of stdio.h and errno.h.
+ dnl Declaration of sys_errlist on BSD4.4 interferes with our declaration.
+ dnl Reported by Keith Bostic.
+ AC_DEFUN([OL_SYS_ERRLIST],
+-[AC_CACHE_CHECK([declaration of sys_errlist],ol_cv_dcl_sys_errlist,[
+- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
++[AC_CACHE_CHECK([existence of sys_errlist],ol_cv_have_sys_errlist,[
++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[char *c = (char *) *sys_errlist]])],[ol_cv_have_sys_errlist=yes],[ol_cv_have_sys_errlist=no])])
++if test $ol_cv_have_sys_errlist = yes ; then
++ AC_DEFINE(HAVE_SYS_ERRLIST,1,
++ [define if you actually have sys_errlist in your libs])
++ AC_CACHE_CHECK([declaration of sys_errlist],ol_cv_dcl_sys_errlist,[
++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <errno.h>
+ #ifdef _WIN32
+ #include <stdlib.h>
+-#endif ]], [[char *c = (char *) *sys_errlist]])],[ol_cv_dcl_sys_errlist=yes
+- ol_cv_have_sys_errlist=yes],[ol_cv_dcl_sys_errlist=no])])
++#endif ]], [[char *c = (char *) *sys_errlist]])],[ol_cv_dcl_sys_errlist=yes],
++ [ol_cv_dcl_sys_errlist=no])])
+ #
+-# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
+-if test $ol_cv_dcl_sys_errlist = no ; then
+- AC_DEFINE([DECL_SYS_ERRLIST], [1],
+- [define if sys_errlist is not declared in stdio.h or errno.h])
+-
+- AC_CACHE_CHECK([existence of sys_errlist],ol_cv_have_sys_errlist,[
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[char *c = (char *) *sys_errlist]])],[ol_cv_have_sys_errlist=yes],[ol_cv_have_sys_errlist=no])])
+-fi
+-if test $ol_cv_have_sys_errlist = yes ; then
+- AC_DEFINE([HAVE_SYS_ERRLIST], [1],
+- [define if you actually have sys_errlist in your libs])
++ # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
++ if test $ol_cv_dcl_sys_errlist = no ; then
++ AC_DEFINE(DECL_SYS_ERRLIST,1,
++ [define if sys_errlist is not declared in stdio.h or errno.h])
++ fi
+ fi
+ ])dnl
++dnl
++dnl ====================================================================
++dnl glibc supplies a non-standard strerror_r if _GNU_SOURCE is defined.
++dnl It's actually preferable to the POSIX version, if available.
+ AC_DEFUN([OL_NONPOSIX_STRERROR_R],
+ [AC_CACHE_CHECK([non-posix strerror_r],ol_cv_nonposix_strerror_r,[
+ AC_EGREP_CPP(strerror_r,[#include <string.h>],
+@@ -873,24 +603,23 @@ AC_DEFUN([OL_NONPOSIX_STRERROR_R],
+ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no])
+ else
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+- main() {
++ int main(void) {
+ char buf[100];
+ buf[0] = 0;
+ strerror_r( 1, buf, sizeof buf );
+ exit( buf[0] == 0 );
+ }
+- ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror=no],[ol_cv_nonposix_strerror=no])
++ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no],[ol_cv_nonposix_strerror_r=no])
+ fi
+ ])
+ if test $ol_cv_nonposix_strerror_r = yes ; then
+- AC_DEFINE([HAVE_NONPOSIX_STRERROR_R], [1],
++ AC_DEFINE(HAVE_NONPOSIX_STRERROR_R,1,
+ [define if strerror_r returns char* instead of int])
+ fi
+ ])dnl
+ dnl
+ AC_DEFUN([OL_STRERROR],
+-[OL_SYS_ERRLIST dnl TEMPORARY
+-AC_CHECK_FUNCS(strerror strerror_r)
++[AC_CHECK_FUNCS(strerror strerror_r)
+ ol_cv_func_strerror_r=no
+ if test "${ac_cv_func_strerror_r}" = yes ; then
+ OL_NONPOSIX_STRERROR_R
+@@ -910,7 +639,7 @@ AC_DEFUN([OL_C_VOLATILE],
+ if test $ol_cv_c_volatile = yes; then
+ :
+ else
+- AC_DEFINE([volatile], [], [define as empty if volatile is not supported])
++ AC_DEFINE(volatile,,[define as empty if volatile is not supported])
+ fi
+ ])dnl
+ dnl
+@@ -918,7 +647,7 @@ dnl ====================================================================
+ dnl Look for fetch(3)
+ AC_DEFUN([OL_LIB_FETCH],
+ [ol_LIBS=$LIBS
+-LIBS="-lfetch -lcom_err $LIBS"
++LIBS="-lfetch $LIBS"
+ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #ifdef HAVE_SYS_PARAM_H
+@@ -928,8 +657,8 @@ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
+ #include <fetch.h>]], [[struct url *u = fetchParseURL("file:///"); ]])],[ol_cv_lib_fetch=yes],[ol_cv_lib_fetch=no])])
+ LIBS=$ol_LIBS
+ if test $ol_cv_lib_fetch != no ; then
+- ol_link_fetch="-lfetch -lcom_err"
+- AC_DEFINE([HAVE_FETCH], [1],
++ ol_link_fetch="-lfetch"
++ AC_DEFINE(HAVE_FETCH,1,
+ [define if you actually have FreeBSD fetch(3)])
+ fi
+ ])dnl
+@@ -1094,7 +823,7 @@ AC_DEFUN([OL_FUNC_GETHOSTBYADDR_R_NARGS],
+ ])dnl
+ dnl
+ dnl --------------------------------------------------------------------
+-dnl Check for Cyrus SASL version compatility
++dnl Check for Cyrus SASL version compatibility
+ AC_DEFUN([OL_SASL_COMPAT],
+ [AC_CACHE_CHECK([Cyrus SASL library version], [ol_cv_sasl_compat],[
+ AC_EGREP_CPP(__sasl_compat,[
+@@ -1113,19 +842,3 @@ AC_DEFUN([OL_SASL_COMPAT],
+ #endif
+ ], [ol_cv_sasl_compat=yes], [ol_cv_sasl_compat=no])])
+ ])
+-dnl ====================================================================
+-dnl check for SSL compatibility
+-AC_DEFUN([OL_SSL_COMPAT],
+-[AC_CACHE_CHECK([OpenSSL library version (CRL checking capability)],
+- [ol_cv_ssl_crl_compat],[
+- AC_EGREP_CPP(__ssl_compat,[
+-#ifdef HAVE_OPENSSL_SSL_H
+-#include <openssl/ssl.h>
+-#endif
+-
+-/* Require 0.9.7d+ */
+-#if OPENSSL_VERSION_NUMBER >= 0x0090704fL
+- char *__ssl_compat = "0.9.7d";
+-#endif
+- ], [ol_cv_ssl_crl_compat=yes], [ol_cv_ssl_crl_compat=no])])
+-])
+--
+2.38.1
+
diff --git a/srcpkgs/ntp/template b/srcpkgs/ntp/template
index e190300a74a3a7..c7030f9b7f9d0d 100644
--- a/srcpkgs/ntp/template
+++ b/srcpkgs/ntp/template
@@ -5,7 +5,7 @@ revision=7
build_style=gnu-configure
configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --enable-ntp-signd
--enable-all-clocks ol_cv_pthread_select_yields=yes"
-hostmakedepends="pkg-config bison perl"
+hostmakedepends="pkg-config autoconf automake libtool bison perl"
makedepends="libedit-devel openssl-devel libcap-devel libevent-devel pps-tools-devel"
short_desc="Network Time Protocol daemon and utilities"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -28,6 +28,10 @@ post_extract() {
sed -i 's/linux/GLIBC/g' ntpd/ntpd.c
}
+pre_configure() {
+ autoreconf -fi
+}
+
post_install() {
# Rename files for alternatives.
vmkdir usr/share/man/man8
From f6ff53e8edbdb8d89efb6aaf5cb4069a92e3aa14 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:57:58 -0800
Subject: [PATCH 38/40] nvi: fix build with gcc14
---
srcpkgs/nvi/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/nvi/template b/srcpkgs/nvi/template
index 8a43e9f7a601b5..3923150ff5a1a6 100644
--- a/srcpkgs/nvi/template
+++ b/srcpkgs/nvi/template
@@ -22,6 +22,8 @@ alternatives="
vi:view.1:/usr/share/man/man1/nview.1
"
+CFLAGS="-fpermissive"
+
post_extract() {
chmod +w $wrksrc/common/options_def.h
}
From 9bc3b3d1dc6697af55aec4e122e39f6b66ae21ea Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 21:19:48 -0800
Subject: [PATCH 39/40] libsasl: fix build for gcc14
---
srcpkgs/libsasl/patches/gcc14.patch | 70 +++++++++++++++++++++++++++++
1 file changed, 70 insertions(+)
create mode 100644 srcpkgs/libsasl/patches/gcc14.patch
diff --git a/srcpkgs/libsasl/patches/gcc14.patch b/srcpkgs/libsasl/patches/gcc14.patch
new file mode 100644
index 00000000000000..bdaade22f1c903
--- /dev/null
+++ b/srcpkgs/libsasl/patches/gcc14.patch
@@ -0,0 +1,70 @@
+diff -rup digestmd5.c.orig digestmd5.c
+--- a/plugins/digestmd5.c
++++ b/plugins/digestmd5.c
+@@ -86,6 +86,8 @@
+ # include <netinet/in.h>
+ #endif /* WIN32 */
+
++#include <time.h>
++
+ #include <sasl.h>
+ #include <saslplug.h>
+
+
+From 266f0acf7f5e029afbb3e263437039e50cd6c262 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Wed, 23 Feb 2022 00:45:15 +0000
+Subject: [PATCH] Fix <time.h> check
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+We're conditionally including based on HAVE_TIME_H in a bunch of places,
+but we're not actually checking for time.h, so that's never going to be defined.
+
+While at it, add in a missing include in the cram plugin.
+
+This fixes a bunch of implicit declaration warnings:
+```
+ * cyrus-sasl-2.1.28/lib/saslutil.c:280:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:364:41: warning: implicit declaration of function ‘clock’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/plugins/cram.c:132:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:280:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:364:41: warning: implicit declaration of function ‘clock’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/plugins/cram.c:132:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+```
+
+Signed-off-by: Sam James <sam@gentoo.org>
+---
+ configure.ac | 2 +-
+ plugins/cram.c | 4 ++++
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index e1bf53b6..ad781830 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1290,7 +1290,7 @@ AC_CHECK_HEADERS_ONCE([sys/time.h])
+
+ AC_HEADER_DIRENT
+ AC_HEADER_SYS_WAIT
+-AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
++AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h time.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
+
+ IPv6_CHECK_SS_FAMILY()
+ IPv6_CHECK_SA_LEN()
+diff --git a/plugins/cram.c b/plugins/cram.c
+index d02e9baa..695aaa91 100644
+--- a/plugins/cram.c
++++ b/plugins/cram.c
+@@ -53,6 +53,10 @@
+ #endif
+ #include <fcntl.h>
+
++#ifdef HAVE_TIME_H
++#include <time.h>
++#endif
++
+ #include <sasl.h>
+ #include <saslplug.h>
+ #include <saslutil.h>
From 6b8a1309d6ce4205246ee8b476299ac351367ec5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 21:37:47 -0800
Subject: [PATCH 40/40] xbps: fix build with gcc14
---
srcpkgs/xbps/patches/fix-transposed-calloc.patch | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 srcpkgs/xbps/patches/fix-transposed-calloc.patch
diff --git a/srcpkgs/xbps/patches/fix-transposed-calloc.patch b/srcpkgs/xbps/patches/fix-transposed-calloc.patch
new file mode 100644
index 00000000000000..67341372dab79a
--- /dev/null
+++ b/srcpkgs/xbps/patches/fix-transposed-calloc.patch
@@ -0,0 +1,13 @@
+diff --git a/bin/xbps-fbulk/main.c b/bin/xbps-fbulk/main.c
+index 6591bb61..4408bf20 100644
+--- a/bin/xbps-fbulk/main.c
++++ b/bin/xbps-fbulk/main.c
+@@ -397,7 +397,7 @@ runBuilds(const char *bpath)
+ static void
+ addDepn(struct item *item, struct item *xitem)
+ {
+- struct depn *depn = calloc(sizeof(*depn), 1);
++ struct depn *depn = calloc(1, sizeof(*depn));
+ char *logpath3;
+ FILE *fp;
+
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (15 preceding siblings ...)
2024-12-14 5:37 ` oreo639
@ 2024-12-14 5:38 ` oreo639
2024-12-14 5:40 ` oreo639
` (46 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2024-12-14 5:38 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2911 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [ ] runit https://github.com/void-linux/void-packages/pull/52408
- [ ] ntp
- [ ] libsasl
- [ ] nvi
- [ ] xbps (-Werror=calloc-transposed-args)
- [x] db (done in this pr)
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration (good) instead of segfaulting later due to implicit pointer truncation.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, feel free to test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 165204 bytes --]
From 12f7e12e7ebfd30be4d3f60d4357eeef057ca008 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/40] binutils: update to 2.43.1.
---
srcpkgs/binutils/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..92142bb6788fda 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.43.1
+revision=1
bootstrap=yes
hostmakedepends="pkgconf"
makedepends="zlib-devel libzstd-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=13f74202a3c4c51118b797a39ea4200d3f6cfbe224da6d1d95bb938480132dfd
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From f17e4ce55f9f06ff1aea0f47f6d0364477db6d59 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/40] gcc: update to 14.2.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 6 +-
6 files changed, 6 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 5e8f45495580ef..f8ce7e9bc1f84c 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.38 perl-5.38.0_1
libgmp.so.10 gmp-5.0.1_1
@@ -864,8 +864,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 0792954c232887..940990a02b63dd 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=2
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
From c05f6ce0c075abc86a835a7df599ee077eefbb37 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 03/40] glibc: update to 2.40.
https://sourceware.org/pipermail/libc-alpha/2024-July/158467.html
---
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...a358428bcec2d203fa408b85f442c9a465ca.patch | 53 ++
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
...e2ba144a554809161d488f25e4bae07c9405.patch | 300 ++++++++++
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
...3d58ff12e27771d9c960a727d74992a3f2a3.patch | 27 +
srcpkgs/glibc/template | 6 +-
9 files changed, 383 insertions(+), 973 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
create mode 100644 srcpkgs/glibc/patches/3433a358428bcec2d203fa408b85f442c9a465ca.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
create mode 100644 srcpkgs/glibc/patches/6a97e2ba144a554809161d488f25e4bae07c9405.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
create mode 100644 srcpkgs/glibc/patches/aa533d58ff12e27771d9c960a727d74992a3f2a3.patch
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/3433a358428bcec2d203fa408b85f442c9a465ca.patch b/srcpkgs/glibc/patches/3433a358428bcec2d203fa408b85f442c9a465ca.patch
new file mode 100644
index 00000000000000..3a11cafcb4e839
--- /dev/null
+++ b/srcpkgs/glibc/patches/3433a358428bcec2d203fa408b85f442c9a465ca.patch
@@ -0,0 +1,53 @@
+From 3433a358428bcec2d203fa408b85f442c9a465ca Mon Sep 17 00:00:00 2001
+From: "H.J. Lu" <hjl.tools@gmail.com>
+Date: Wed, 24 Jul 2024 14:05:13 -0700
+Subject: [PATCH] linux: Update the mremap C implementation [BZ #31968]
+
+Update the mremap C implementation to support the optional argument for
+MREMAP_DONTUNMAP added in Linux 5.7 since it may not always be correct
+to implement a variadic function as a non-variadic function on all Linux
+targets. Return MAP_FAILED and set errno to EINVAL for unknown flag bits.
+This fixes BZ #31968.
+
+Note: A test must be added when a new flag bit is introduced.
+
+Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
+Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
+(cherry picked from commit 6c40cb0e9f893d49dc7caee580a055de53562206)
+---
+ NEWS | 1 +
+ sysdeps/unix/sysv/linux/mremap.c | 14 +++++++++++++-
+ 2 files changed, 14 insertions(+), 1 deletion(-)
+
+diff --git a/sysdeps/unix/sysv/linux/mremap.c b/sysdeps/unix/sysv/linux/mremap.c
+index 4f770799c4f..1ada5c1f40d 100644
+--- a/sysdeps/unix/sysv/linux/mremap.c
++++ b/sysdeps/unix/sysv/linux/mremap.c
+@@ -20,6 +20,12 @@
+ #include <sysdep.h>
+ #include <stdarg.h>
+ #include <stddef.h>
++#include <errno.h>
++
++#define MREMAP_KNOWN_BITS \
++ (MREMAP_MAYMOVE \
++ | MREMAP_FIXED \
++ | MREMAP_DONTUNMAP)
+
+ void *
+ __mremap (void *addr, size_t old_len, size_t new_len, int flags, ...)
+@@ -27,7 +33,13 @@ __mremap (void *addr, size_t old_len, size_t new_len, int flags, ...)
+ va_list va;
+ void *new_addr = NULL;
+
+- if (flags & MREMAP_FIXED)
++ if (flags & ~(MREMAP_KNOWN_BITS))
++ {
++ __set_errno (EINVAL);
++ return MAP_FAILED;
++ }
++
++ if (flags & (MREMAP_FIXED | MREMAP_DONTUNMAP))
+ {
+ va_start (va, flags);
+ new_addr = va_arg (va, void *);
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/6a97e2ba144a554809161d488f25e4bae07c9405.patch b/srcpkgs/glibc/patches/6a97e2ba144a554809161d488f25e4bae07c9405.patch
new file mode 100644
index 00000000000000..e26d797a75c23e
--- /dev/null
+++ b/srcpkgs/glibc/patches/6a97e2ba144a554809161d488f25e4bae07c9405.patch
@@ -0,0 +1,300 @@
+From 6a97e2ba144a554809161d488f25e4bae07c9405 Mon Sep 17 00:00:00 2001
+From: Andreas Schwab <schwab@suse.de>
+Date: Mon, 5 Aug 2024 10:55:51 +0200
+Subject: [PATCH] Fix name space violation in fortify wrappers (bug 32052)
+
+Rename the identifier sz to __sz everywhere.
+
+Fixes: a643f60c53 ("Make sure that the fortified function conditionals are constant")
+(cherry picked from commit 39ca997ab378990d5ac1aadbaa52aaf1db6d526f)
+---
+ NEWS | 1 +
+ libio/bits/stdio2.h | 40 +++++++++++++++----------------
+ socket/bits/socket2.h | 20 ++++++++--------
+ stdlib/bits/stdlib.h | 10 ++++----
+ wcsmbs/bits/wchar2.h | 56 +++++++++++++++++++++----------------------
+ 5 files changed, 64 insertions(+), 63 deletions(-)
+
+diff --git a/libio/bits/stdio2.h b/libio/bits/stdio2.h
+index 91a80dd7c63..4b8bc35bdf3 100644
+--- a/libio/bits/stdio2.h
++++ b/libio/bits/stdio2.h
+@@ -308,14 +308,14 @@ fgets (__fortify_clang_overload_arg (char *, __restrict, __s), int __n,
+ "fgets called with bigger size than length of "
+ "destination buffer")
+ {
+- size_t sz = __glibc_objsize (__s);
+- if (__glibc_safe_or_unknown_len (__n, sizeof (char), sz))
++ size_t __sz = __glibc_objsize (__s);
++ if (__glibc_safe_or_unknown_len (__n, sizeof (char), __sz))
+ return __fgets_alias (__s, __n, __stream);
+ #if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, sizeof (char), sz))
+- return __fgets_chk_warn (__s, sz, __n, __stream);
++ if (__glibc_unsafe_len (__n, sizeof (char), __sz))
++ return __fgets_chk_warn (__s, __sz, __n, __stream);
+ #endif
+- return __fgets_chk (__s, sz, __n, __stream);
++ return __fgets_chk (__s, __sz, __n, __stream);
+ }
+
+ __fortify_function __wur __nonnull ((4)) __attribute_overloadable__ size_t
+@@ -326,14 +326,14 @@ fread (__fortify_clang_overload_arg (void *, __restrict, __ptr),
+ "fread called with bigger size * n than length "
+ "of destination buffer")
+ {
+- size_t sz = __glibc_objsize0 (__ptr);
+- if (__glibc_safe_or_unknown_len (__n, __size, sz))
++ size_t __sz = __glibc_objsize0 (__ptr);
++ if (__glibc_safe_or_unknown_len (__n, __size, __sz))
+ return __fread_alias (__ptr, __size, __n, __stream);
+ #if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, __size, sz))
+- return __fread_chk_warn (__ptr, sz, __size, __n, __stream);
++ if (__glibc_unsafe_len (__n, __size, __sz))
++ return __fread_chk_warn (__ptr, __sz, __size, __n, __stream);
+ #endif
+- return __fread_chk (__ptr, sz, __size, __n, __stream);
++ return __fread_chk (__ptr, __sz, __size, __n, __stream);
+ }
+
+ #ifdef __USE_GNU
+@@ -345,14 +345,14 @@ fgets_unlocked (__fortify_clang_overload_arg (char *, __restrict, __s),
+ "fgets called with bigger size than length of "
+ "destination buffer")
+ {
+- size_t sz = __glibc_objsize (__s);
+- if (__glibc_safe_or_unknown_len (__n, sizeof (char), sz))
++ size_t __sz = __glibc_objsize (__s);
++ if (__glibc_safe_or_unknown_len (__n, sizeof (char), __sz))
+ return __fgets_unlocked_alias (__s, __n, __stream);
+ #if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, sizeof (char), sz))
+- return __fgets_unlocked_chk_warn (__s, sz, __n, __stream);
++ if (__glibc_unsafe_len (__n, sizeof (char), __sz))
++ return __fgets_unlocked_chk_warn (__s, __sz, __n, __stream);
+ #endif
+- return __fgets_unlocked_chk (__s, sz, __n, __stream);
++ return __fgets_unlocked_chk (__s, __sz, __n, __stream);
+ }
+ #endif
+
+@@ -366,8 +366,8 @@ fread_unlocked (__fortify_clang_overload_arg0 (void *, __restrict, __ptr),
+ "fread_unlocked called with bigger size * n than "
+ "length of destination buffer")
+ {
+- size_t sz = __glibc_objsize0 (__ptr);
+- if (__glibc_safe_or_unknown_len (__n, __size, sz))
++ size_t __sz = __glibc_objsize0 (__ptr);
++ if (__glibc_safe_or_unknown_len (__n, __size, __sz))
+ {
+ # ifdef __USE_EXTERN_INLINES
+ if (__builtin_constant_p (__size)
+@@ -393,10 +393,10 @@ fread_unlocked (__fortify_clang_overload_arg0 (void *, __restrict, __ptr),
+ return __fread_unlocked_alias (__ptr, __size, __n, __stream);
+ }
+ # if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, __size, sz))
+- return __fread_unlocked_chk_warn (__ptr, sz, __size, __n, __stream);
++ if (__glibc_unsafe_len (__n, __size, __sz))
++ return __fread_unlocked_chk_warn (__ptr, __sz, __size, __n, __stream);
+ # endif
+- return __fread_unlocked_chk (__ptr, sz, __size, __n, __stream);
++ return __fread_unlocked_chk (__ptr, __sz, __size, __n, __stream);
+
+ }
+ #endif
+diff --git a/socket/bits/socket2.h b/socket/bits/socket2.h
+index 04780f320e9..bd91647f37c 100644
+--- a/socket/bits/socket2.h
++++ b/socket/bits/socket2.h
+@@ -37,14 +37,14 @@ recv (int __fd, __fortify_clang_overload_arg0 (void *, ,__buf), size_t __n,
+ "recv called with bigger length than "
+ "size of destination buffer")
+ {
+- size_t sz = __glibc_objsize0 (__buf);
+- if (__glibc_safe_or_unknown_len (__n, sizeof (char), sz))
++ size_t __sz = __glibc_objsize0 (__buf);
++ if (__glibc_safe_or_unknown_len (__n, sizeof (char), __sz))
+ return __recv_alias (__fd, __buf, __n, __flags);
+ #if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, sizeof (char), sz))
+- return __recv_chk_warn (__fd, __buf, __n, sz, __flags);
++ if (__glibc_unsafe_len (__n, sizeof (char), __sz))
++ return __recv_chk_warn (__fd, __buf, __n, __sz, __flags);
+ #endif
+- return __recv_chk (__fd, __buf, __n, sz, __flags);
++ return __recv_chk (__fd, __buf, __n, __sz, __flags);
+ }
+
+ extern ssize_t __recvfrom_chk (int __fd, void *__restrict __buf, size_t __n,
+@@ -71,13 +71,13 @@ recvfrom (int __fd, __fortify_clang_overload_arg0 (void *, __restrict, __buf),
+ "recvfrom called with bigger length "
+ "than size of destination buffer")
+ {
+- size_t sz = __glibc_objsize0 (__buf);
+- if (__glibc_safe_or_unknown_len (__n, sizeof (char), sz))
++ size_t __sz = __glibc_objsize0 (__buf);
++ if (__glibc_safe_or_unknown_len (__n, sizeof (char), __sz))
+ return __recvfrom_alias (__fd, __buf, __n, __flags, __addr, __addr_len);
+ #if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, sizeof (char), sz))
+- return __recvfrom_chk_warn (__fd, __buf, __n, sz, __flags, __addr,
++ if (__glibc_unsafe_len (__n, sizeof (char), __sz))
++ return __recvfrom_chk_warn (__fd, __buf, __n, __sz, __flags, __addr,
+ __addr_len);
+ #endif
+- return __recvfrom_chk (__fd, __buf, __n, sz, __flags, __addr, __addr_len);
++ return __recvfrom_chk (__fd, __buf, __n, __sz, __flags, __addr, __addr_len);
+ }
+diff --git a/stdlib/bits/stdlib.h b/stdlib/bits/stdlib.h
+index 1557b862b17..9c78ecf458b 100644
+--- a/stdlib/bits/stdlib.h
++++ b/stdlib/bits/stdlib.h
+@@ -43,16 +43,16 @@ __NTH (realpath (const char *__restrict __name,
+ "bytes long buffer")
+ #endif
+ {
+- size_t sz = __glibc_objsize (__resolved);
++ size_t __sz = __glibc_objsize (__resolved);
+
+- if (sz == (size_t) -1)
++ if (__sz == (size_t) -1)
+ return __realpath_alias (__name, __resolved);
+
+ #if !__fortify_use_clang && defined _LIBC_LIMITS_H_ && defined PATH_MAX
+- if (__glibc_unsafe_len (PATH_MAX, sizeof (char), sz))
+- return __realpath_chk_warn (__name, __resolved, sz);
++ if (__glibc_unsafe_len (PATH_MAX, sizeof (char), __sz))
++ return __realpath_chk_warn (__name, __resolved, __sz);
+ #endif
+- return __realpath_chk (__name, __resolved, sz);
++ return __realpath_chk (__name, __resolved, __sz);
+ }
+
+
+diff --git a/wcsmbs/bits/wchar2.h b/wcsmbs/bits/wchar2.h
+index 9fdff47ee29..43c6b63027b 100644
+--- a/wcsmbs/bits/wchar2.h
++++ b/wcsmbs/bits/wchar2.h
+@@ -74,9 +74,9 @@ __fortify_function __attribute_overloadable__ wchar_t *
+ __NTH (wcscpy (__fortify_clang_overload_arg (wchar_t *, __restrict, __dest),
+ const wchar_t *__restrict __src))
+ {
+- size_t sz = __glibc_objsize (__dest);
+- if (sz != (size_t) -1)
+- return __wcscpy_chk (__dest, __src, sz / sizeof (wchar_t));
++ size_t __sz = __glibc_objsize (__dest);
++ if (__sz != (size_t) -1)
++ return __wcscpy_chk (__dest, __src, __sz / sizeof (wchar_t));
+ return __wcscpy_alias (__dest, __src);
+ }
+
+@@ -84,9 +84,9 @@ __fortify_function __attribute_overloadable__ wchar_t *
+ __NTH (wcpcpy (__fortify_clang_overload_arg (wchar_t *, __restrict, __dest),
+ const wchar_t *__restrict __src))
+ {
+- size_t sz = __glibc_objsize (__dest);
+- if (sz != (size_t) -1)
+- return __wcpcpy_chk (__dest, __src, sz / sizeof (wchar_t));
++ size_t __sz = __glibc_objsize (__dest);
++ if (__sz != (size_t) -1)
++ return __wcpcpy_chk (__dest, __src, __sz / sizeof (wchar_t));
+ return __wcpcpy_alias (__dest, __src);
+ }
+
+@@ -118,9 +118,9 @@ __fortify_function __attribute_overloadable__ wchar_t *
+ __NTH (wcscat (__fortify_clang_overload_arg (wchar_t *, __restrict, __dest),
+ const wchar_t *__restrict __src))
+ {
+- size_t sz = __glibc_objsize (__dest);
+- if (sz != (size_t) -1)
+- return __wcscat_chk (__dest, __src, sz / sizeof (wchar_t));
++ size_t __sz = __glibc_objsize (__dest);
++ if (__sz != (size_t) -1)
++ return __wcscat_chk (__dest, __src, __sz / sizeof (wchar_t));
+ return __wcscat_alias (__dest, __src);
+ }
+
+@@ -128,9 +128,9 @@ __fortify_function __attribute_overloadable__ wchar_t *
+ __NTH (wcsncat (__fortify_clang_overload_arg (wchar_t *, __restrict, __dest),
+ const wchar_t *__restrict __src, size_t __n))
+ {
+- size_t sz = __glibc_objsize (__dest);
+- if (sz != (size_t) -1)
+- return __wcsncat_chk (__dest, __src, __n, sz / sizeof (wchar_t));
++ size_t __sz = __glibc_objsize (__dest);
++ if (__sz != (size_t) -1)
++ return __wcsncat_chk (__dest, __src, __n, __sz / sizeof (wchar_t));
+ return __wcsncat_alias (__dest, __src, __n);
+ }
+
+@@ -170,10 +170,10 @@ __fortify_function int
+ __NTH (swprintf (wchar_t *__restrict __s, size_t __n,
+ const wchar_t *__restrict __fmt, ...))
+ {
+- size_t sz = __glibc_objsize (__s);
+- if (sz != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
++ size_t __sz = __glibc_objsize (__s);
++ if (__sz != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
+ return __swprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
+- sz / sizeof (wchar_t), __fmt, __va_arg_pack ());
++ __sz / sizeof (wchar_t), __fmt, __va_arg_pack ());
+ return __swprintf_alias (__s, __n, __fmt, __va_arg_pack ());
+ }
+ #elif __fortify_use_clang
+@@ -206,10 +206,10 @@ __fortify_function int
+ __NTH (vswprintf (wchar_t *__restrict __s, size_t __n,
+ const wchar_t *__restrict __fmt, __gnuc_va_list __ap))
+ {
+- size_t sz = __glibc_objsize (__s);
+- if (sz != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
++ size_t __sz = __glibc_objsize (__s);
++ if (__sz != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
+ return __vswprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
+- sz / sizeof (wchar_t), __fmt, __ap);
++ __sz / sizeof (wchar_t), __fmt, __ap);
+ return __vswprintf_alias (__s, __n, __fmt, __ap);
+ }
+
+@@ -257,14 +257,14 @@ fgetws (__fortify_clang_overload_arg (wchar_t *, __restrict, __s), int __n,
+ "fgetws called with length bigger "
+ "than size of destination buffer")
+ {
+- size_t sz = __glibc_objsize (__s);
+- if (__glibc_safe_or_unknown_len (__n, sizeof (wchar_t), sz))
++ size_t __sz = __glibc_objsize (__s);
++ if (__glibc_safe_or_unknown_len (__n, sizeof (wchar_t), __sz))
+ return __fgetws_alias (__s, __n, __stream);
+ #if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, sizeof (wchar_t), sz))
+- return __fgetws_chk_warn (__s, sz / sizeof (wchar_t), __n, __stream);
++ if (__glibc_unsafe_len (__n, sizeof (wchar_t), __sz))
++ return __fgetws_chk_warn (__s, __sz / sizeof (wchar_t), __n, __stream);
+ #endif
+- return __fgetws_chk (__s, sz / sizeof (wchar_t), __n, __stream);
++ return __fgetws_chk (__s, __sz / sizeof (wchar_t), __n, __stream);
+ }
+
+ #ifdef __USE_GNU
+@@ -275,15 +275,15 @@ fgetws_unlocked (__fortify_clang_overload_arg (wchar_t *, __restrict, __s),
+ "fgetws_unlocked called with length bigger "
+ "than size of destination buffer")
+ {
+- size_t sz = __glibc_objsize (__s);
+- if (__glibc_safe_or_unknown_len (__n, sizeof (wchar_t), sz))
++ size_t __sz = __glibc_objsize (__s);
++ if (__glibc_safe_or_unknown_len (__n, sizeof (wchar_t), __sz))
+ return __fgetws_unlocked_alias (__s, __n, __stream);
+ # if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, sizeof (wchar_t), sz))
+- return __fgetws_unlocked_chk_warn (__s, sz / sizeof (wchar_t), __n,
++ if (__glibc_unsafe_len (__n, sizeof (wchar_t), __sz))
++ return __fgetws_unlocked_chk_warn (__s, __sz / sizeof (wchar_t), __n,
+ __stream);
+ # endif
+- return __fgetws_unlocked_chk (__s, sz / sizeof (wchar_t), __n, __stream);
++ return __fgetws_unlocked_chk (__s, __sz / sizeof (wchar_t), __n, __stream);
+ }
+ #endif
+
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/patches/aa533d58ff12e27771d9c960a727d74992a3f2a3.patch b/srcpkgs/glibc/patches/aa533d58ff12e27771d9c960a727d74992a3f2a3.patch
new file mode 100644
index 00000000000000..68ef9a8009696a
--- /dev/null
+++ b/srcpkgs/glibc/patches/aa533d58ff12e27771d9c960a727d74992a3f2a3.patch
@@ -0,0 +1,27 @@
+From aa533d58ff12e27771d9c960a727d74992a3f2a3 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Fri, 2 Aug 2024 15:22:14 +0200
+Subject: [PATCH] x86: Tunables may incorrectly set Prefer_PMINUB_for_stringop
+ (bug 32047)
+
+Fixes commit 5bcf6265f215326d14dfacdce8532792c2c7f8f8 ("x86:
+Disable non-temporal memset on Skylake Server").
+
+Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
+(cherry picked from commit 7a630f7d3392ca391a399486ce2846f9e4b4ee63)
+---
+ sysdeps/x86/cpu-tunables.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/sysdeps/x86/cpu-tunables.c b/sysdeps/x86/cpu-tunables.c
+index ae9dcd6180c..ccc6b64dc20 100644
+--- a/sysdeps/x86/cpu-tunables.c
++++ b/sysdeps/x86/cpu-tunables.c
+@@ -248,6 +248,7 @@ TUNABLE_CALLBACK (set_hwcaps) (tunable_val_t *valp)
+ CHECK_GLIBC_IFUNC_PREFERRED_BOTH (n, cpu_features,
+ Avoid_Non_Temporal_Memset, 25);
+ }
++ break;
+ case 26:
+ {
+ CHECK_GLIBC_IFUNC_PREFERRED_NEED_BOTH
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..7a8623c869dcf1 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.40
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=19a890175e9263d748f627993de6f4b1af9cd21e03f080e4bfb3a1fac10205a2
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From 48f5e276cf98adcb4c4f0771f4def3b29c6b5e2f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 04/40] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 66e5cf056e9624..04e22c4fb01166 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=22
+revision=23
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From 0e69db1a3bd390386907fd703b73d971769c1fd9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 05/40] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 5a3048b3e79b33e289bda82d8edb3215c1c23d51 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 06/40] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 0073f632c3795083585a3d0bc4beca3a3896e6c9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 07/40] gcc-multilib: update to 14.2.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From 02400bdad347f6d17b24063f4ad09609c7fef960 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 08/40] libgccjit: update to 14.2.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From c644b9eed4b200e5b7270010f2855af078acd42b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 09/40] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From 8252c655879f03cf0d9cc53ae8090424829296d9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 10/40] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From 7c0d111ce666f7f01042a33147a5b93427a1d291 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 11/40] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..917e16f2caf575 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ca8955da9efed556f9ea9a9178f6c94db78fee58 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 12/40] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 074001d0288098..20d5cb03ef9ebd 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 0dc709d85fb8ca3cade597b4706878104d97bbe2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 13/40] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..13adcec7be0c00 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From cc3380ae002b5dc9b228fe8785f5e35a4b3aa3c0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 14/40] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..d31ad31490d210 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 43cc9d9c44acc5b1e725869b75d28da7f9b19763 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 15/40] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 79801b4d7b0255..52772d1b48d342 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -25,7 +25,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 9839c380d56a2bb1369af14a5404e2eda1cf0fb0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 16/40] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index 87629a415a1352..12a98a66ff56ac 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -25,7 +25,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From c13da0a85a93c3b248d5b41bd2e273d4f262d8c6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 17/40] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..3c1a0dea67e400 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 8c7407ee555d4134dee67526d4d968b3eb1970b4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 18/40] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index b08278c7207386..833efee5bad842 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 9bd08b6eaa72e8bd91f751b61872130f15912942 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 19/40] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index d37bb61b0e5a08..300211f6c931d8 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -23,7 +23,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 2ad7819f3a524f50062fd75e520ef72efde9791e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 20/40] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..ce0ab0e1744887 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,7 +20,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 0787550c8f30d7ec2b1b5b4130c695b27129ef7c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 21/40] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index bfb9d16a1be021..9ebeb0e87ef1d8 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ea3d0e3574e51b14734f847d7ce6e5ad4a831dac Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 22/40] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 6ca7fc6274d4db..62535238b3bccc 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From b18f21c4352a7b159e921f1b2e8fd42a45030475 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 23/40] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 1ed2f94ad10d43..d72be3de81ad32 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ded1accfae0b7a9dac7a50c93f5d77b5ee18a566 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 24/40] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index fc8f1294f6a017..b32888584d2306 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 68af0ffa61f35bc7209571e3baee3a95649e38a1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 25/40] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..0b6209edb37c75 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From a38545e9dc9de3918210b0ae0323602d2b992562 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 26/40] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52844bf5512cca..0d114cc9993440 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From fee4ccc58f92540079c443d183e7a2c00e97e93c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 27/40] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..eda2f7ee9be0c1 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 390d0251d002e6f9350ca460d69fdefefb8b58b8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 28/40] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 02fe3f55f82c65..a6704808ed177b 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -26,7 +26,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 6b10b375408746f9ec89d4d893af12e0873c9ea5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 29/40] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..3a6c80b1bc1cd4 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 30a4758c0e6c339084dc1cb771303b0ddc592ef0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 30/40] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index 9cc49d05a23398..d0aadb435e0d18 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -26,7 +26,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From aef55179027e863b0f9964cfef95c51889727d09 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 31/40] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..0066d33e6ffd40 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ffa6bf98e7dac8b043bfdb7667d24f13c5b10d80 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 32/40] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index 15615e6d7f98d7..59bdf11c55729e 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 8f11eaa9cea684dc9920a9ec2867b2e3b4c2a00b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 33/40] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..40168cfe9d92f1 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From a5e37110c3b3f375eae7076e3e9f7a89c17f0327 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 34/40] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index c3ade518330dcb..e4e67b1c5b5136 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 317ea61637789077027e0e4494e9ae568bb0859e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 35/40] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..54b219feec1540 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,7 +20,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From c7dc11835498b7f01660ea588fe160784e29b6bf Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 36/40] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 0ba8decce2aeb1..5d8153ce22f980 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -23,7 +23,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From f4d72acea06de206dc288cfeecae8ec5ea1b9b44 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:56:36 -0800
Subject: [PATCH 37/40] ntp: fix build with gcc14
---
srcpkgs/ntp/patches/gcc14.patch | 612 ++++++++++++++++++++++++++++++++
srcpkgs/ntp/template | 6 +-
2 files changed, 617 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/ntp/patches/gcc14.patch
diff --git a/srcpkgs/ntp/patches/gcc14.patch b/srcpkgs/ntp/patches/gcc14.patch
new file mode 100644
index 00000000000000..925543ee1fe669
--- /dev/null
+++ b/srcpkgs/ntp/patches/gcc14.patch
@@ -0,0 +1,612 @@
+Source: https://gitweb.gentoo.org/repo/gentoo.git/plain/net-misc/ntp/files/ntp-4.2.8_p15-configure-clang16.patch?id=9cc28f1d1f1f13da5537fe125931bd4b1fef97cf
+
+Sync with OpenLDAP. Uses Arsen's patch from https://bugs.gentoo.org/871288.
+
+https://bugs.gentoo.org/871372
+--- a/sntp/m4/openldap-thread-check.m4
++++ b/sntp/m4/openldap-thread-check.m4
+@@ -262,10 +262,8 @@ pthread_rwlock_t rwlock;
+ dnl save the flags
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #include <pthread.h>
+-#ifndef NULL
+-#define NULL (void*)0
+-#endif
+-]], [[pthread_detach(NULL);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
++pthread_t thread;
++]], [[pthread_detach(thread);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
+ ])
+
+ if test $ol_cv_func_pthread_detach = no ; then
+--- a/sntp/m4/openldap.m4
++++ b/sntp/m4/openldap.m4
+@@ -1,16 +1,16 @@
+ dnl OpenLDAP Autoconf Macros
+-dnl $OpenLDAP: pkg/ldap/build/openldap.m4,v 1.157.2.10 2010/04/13 20:22:21 kurt Exp $
++dnl $OpenLDAP$
+ dnl This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ dnl
+-dnl Copyright 1998-2010 The OpenLDAP Foundation.
++dnl Copyright 1998-2022 The OpenLDAP Foundation.
+ dnl All rights reserved.
+ dnl
+ dnl Redistribution and use in source and binary forms, with or without
+ dnl modification, are permitted only as authorized by the OpenLDAP
+ dnl Public License.
+ dnl
+-dnl A copy of this license is available in the file LICENSE-OPENLDAP in
+-dnl this directory of the distribution or, alternatively, at
++dnl A copy of this license is available in the file LICENSE in the
++dnl top-level directory of the distribution or, alternatively, at
+ dnl <http://www.OpenLDAP.org/license.html>.
+ dnl
+ dnl --------------------------------------------------------------------
+@@ -154,6 +154,7 @@ fi
+ if test $ol_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <ctype.h>
++#include <stdlib.h>
+ #ifndef HAVE_EBCDIC
+ # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+ # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+@@ -170,7 +171,7 @@ exit (0); }
+ ]])],[],[ol_cv_header_stdc=no],[:])
+ fi])
+ if test $ol_cv_header_stdc = yes; then
+- AC_DEFINE([STDC_HEADERS], [1], [is standard C provided?])
++ AC_DEFINE(STDC_HEADERS)
+ fi
+ ac_cv_header_stdc=disable
+ ])
+@@ -242,313 +243,40 @@ AC_DEFUN([OL_RESOLVER_LINK],
+ OL_RESOLVER_TRY(ol_cv_resolver_none)
+ OL_RESOLVER_TRY(ol_cv_resolver_resolv,[-lresolv])
+ OL_RESOLVER_TRY(ol_cv_resolver_bind,[-lbind])
+-])
+-dnl
+-dnl ====================================================================
+-dnl International Components for Unicode (ICU)
+-AC_DEFUN([OL_ICU],
+-[ol_icu=no
+-AC_CHECK_HEADERS( unicode/utypes.h )
+-if test $ac_cv_header_unicode_utypes_h = yes ; then
+- dnl OL_ICULIBS="-licui18n -licuuc -licudata"
+- OL_ICULIBS="-licuuc -licudata"
+-
+- AC_CACHE_CHECK([for ICU libraries], [ol_cv_lib_icu], [
+- ol_LIBS="$LIBS"
+- LIBS="$OL_ICULIBS $LIBS"
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+-#include <unicode/utypes.h>
+-]], [[
+-(void) u_errorName(0);
+-]])],[ol_cv_lib_icu=yes],[ol_cv_lib_icu=no])
+- LIBS="$ol_LIBS"
+-])
+-
+- if test $ol_cv_lib_icu != no ; then
+- ol_icu="$OL_ICULIBS"
+- AC_DEFINE([HAVE_ICU], [1], [define if you actually have ICU])
+- fi
+-fi
+-])
+-dnl
+-dnl ====================================================================
+-dnl Berkeley DB macros
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Try to link
+-AC_DEFUN([OL_BERKELEY_DB_TRY],
+-[if test $ol_cv_lib_db = no ; then
+- AC_CACHE_CHECK([for Berkeley DB link (]ifelse($2,,default,$2)[)],[$1],
+-[
+- ol_DB_LIB=ifelse($2,,,$2)
+- ol_LIBS=$LIBS
+- LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
+-
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+-#ifdef HAVE_DB_185_H
+-# include <db_185.h>
+-#else
+-# include <db.h>
+-#endif
+-
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-
+-#ifndef NULL
+-#define NULL ((void*)0)
+-#endif
+-]], [[
+-#if DB_VERSION_MAJOR > 2
+- db_env_create( NULL, 0 );
+-#elif DB_VERSION_MAJOR > 1
+- db_appexit( NULL );
+-#else
+- (void) dbopen( NULL, 0, 0, 0, NULL);
+-#endif
+-]])],[$1=yes],[$1=no])
+-
+- LIBS="$ol_LIBS"
+-])
+-
+- if test $$1 = yes ; then
+- ol_cv_lib_db=ifelse($2,,yes,$2)
+- fi
+-fi
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Get major and minor version from <db.h>
+-AC_DEFUN([OL_BDB_HEADER_VERSION],
+-[AC_CACHE_CHECK([for Berkeley DB major version in db.h], [ol_cv_bdb_major],[
+- AC_LANG_CONFTEST([
+-#include <db.h>
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-__db_version DB_VERSION_MAJOR
+-])
+- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
+- ol_cv_bdb_major=${3}
+-])
+-case $ol_cv_bdb_major in [[1-9]]*) : ;; *)
+- AC_MSG_ERROR([Unknown Berkeley DB major version in db.h]) ;;
+-esac
+-
+-dnl Determine minor version
+-AC_CACHE_CHECK([for Berkeley DB minor version in db.h], [ol_cv_bdb_minor],[
+- AC_LANG_CONFTEST([
+-#include <db.h>
+-#ifndef DB_VERSION_MINOR
+-# define DB_VERSION_MINOR 0
+-#endif
+-__db_version DB_VERSION_MINOR
+-])
+- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
+- ol_cv_bdb_minor=${3}
+-])
+-case $ol_cv_bdb_minor in [[0-9]]*) : ;; *)
+- AC_MSG_ERROR([Unknown Berkeley DB minor version in db.h]) ;;
+-esac
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Try to locate appropriate library
+-AC_DEFUN([OL_BERKELEY_DB_LINK],
+-[ol_cv_lib_db=no
+-
+-if test $ol_cv_bdb_major = 4 ; then
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4_dot_m,[-ldb-4.$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db4m,[-ldb4$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4m,[-ldb-4$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4_m,[-ldb-4-$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4,[-ldb-4])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db4,[-ldb4])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db,[-ldb])
+-fi
+-OL_BERKELEY_DB_TRY(ol_cv_db_none)
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Check if Berkeley DB version
+-AC_DEFUN([OL_BERKELEY_DB_VERSION],
+-[AC_CACHE_CHECK([for Berkeley DB library and header version match], [ol_cv_berkeley_db_version], [
+- ol_LIBS="$LIBS"
+- LIBS="$LTHREAD_LIBS $LIBS"
+- if test $ol_cv_lib_db != yes ; then
+- LIBS="$ol_cv_lib_db $LIBS"
+- fi
+-
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-#ifdef HAVE_DB_185_H
+- choke me;
+-#else
+-#include <db.h>
+-#endif
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-#ifndef NULL
+-#define NULL ((void *)0)
+-#endif
+-main()
+-{
+-#if DB_VERSION_MAJOR > 1
+- char *version;
+- int major, minor, patch;
+-
+- version = db_version( &major, &minor, &patch );
+-
+- if( major != DB_VERSION_MAJOR ||
+- minor != DB_VERSION_MINOR ||
+- patch != DB_VERSION_PATCH )
+- {
+- printf("Berkeley DB version mismatch\n"
+- "\theader: %s\n\tlibrary: %s\n",
+- DB_VERSION_STRING, version);
+- return 1;
+- }
+-#endif
+-
+- return 0;
+-}]])],[ol_cv_berkeley_db_version=yes],[ol_cv_berkeley_db_version=no],[ol_cv_berkeley_db_version=cross])
+-
+- LIBS="$ol_LIBS"
+ ])
+
+- if test $ol_cv_berkeley_db_version = no ; then
+- AC_MSG_ERROR([Berkeley DB version mismatch])
+- fi
+-])dnl
+-dnl
+ dnl --------------------------------------------------------------------
+-dnl Check if Berkeley DB supports DB_THREAD
+-AC_DEFUN([OL_BERKELEY_DB_THREAD],
+-[AC_CACHE_CHECK([for Berkeley DB thread support], [ol_cv_berkeley_db_thread], [
+- ol_LIBS="$LIBS"
+- LIBS="$LTHREAD_LIBS $LIBS"
+- if test $ol_cv_lib_db != yes ; then
+- LIBS="$ol_cv_lib_db $LIBS"
+- fi
+-
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-#ifdef HAVE_DB_185_H
+- choke me;
+-#else
+-#include <db.h>
+-#endif
+-#ifndef NULL
+-#define NULL ((void *)0)
+-#endif
+-main()
+-{
+- int rc;
+- u_int32_t flags = DB_CREATE |
+-#ifdef DB_PRIVATE
+- DB_PRIVATE |
+-#endif
+- DB_THREAD;
+-
+-#if DB_VERSION_MAJOR > 2
+- DB_ENV *env = NULL;
+-
+- rc = db_env_create( &env, 0 );
++dnl Check for version compatility with back-mdb
++AC_DEFUN([OL_MDB_COMPAT],
++[AC_CACHE_CHECK([if LMDB version supported by MDB backends], [ol_cv_mdb_compat],[
++ AC_EGREP_CPP(__mdb_version_compat,[
++#include <lmdb.h>
+
+- flags |= DB_INIT_MPOOL;
+-#ifdef DB_MPOOL_PRIVATE
+- flags |= DB_MPOOL_PRIVATE;
++/* require 0.9.18 or later */
++#if MDB_VERSION_FULL >= 0x000000090012
++ __mdb_version_compat
+ #endif
+-
+- if( rc ) {
+- printf("BerkeleyDB: %s\n", db_strerror(rc) );
+- return rc;
+- }
+-
+-#if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
+- rc = (env->open)( env, NULL, flags, 0 );
+-#else
+- rc = (env->open)( env, NULL, NULL, flags, 0 );
+-#endif
+-
+- if ( rc == 0 ) {
+- rc = env->close( env, 0 );
+- }
+-
+- if( rc ) {
+- printf("BerkeleyDB: %s\n", db_strerror(rc) );
+- return rc;
+- }
+-
+-#else
+- DB_ENV env;
+- memset( &env, '\0', sizeof(env) );
+-
+- rc = db_appinit( NULL, NULL, &env, flags );
+-
+- if( rc == 0 ) {
+- db_appexit( &env );
+- }
+-
+- unlink("__db_mpool.share");
+- unlink("__db_lock.share");
+-#endif
+-
+- return rc;
+-}]])],[ol_cv_berkeley_db_thread=yes],[ol_cv_berkeley_db_thread=no],[ol_cv_berkeley_db_thread=cross])
+-
+- LIBS="$ol_LIBS"
++ ], [ol_cv_mdb_compat=yes], [ol_cv_mdb_compat=no])])
+ ])
+
+- if test $ol_cv_berkeley_db_thread != no ; then
+- AC_DEFINE([HAVE_BERKELEY_DB_THREAD], [1],
+- [define if Berkeley DB has DB_THREAD support])
+- fi
+-])dnl
+ dnl
+ dnl --------------------------------------------------------------------
+-dnl Find any DB
+-AC_DEFUN([OL_BERKELEY_DB],
+-[ol_cv_berkeley_db=no
+-AC_CHECK_HEADERS(db.h)
+-if test $ac_cv_header_db_h = yes; then
+- OL_BDB_HEADER_VERSION
+- OL_BDB_COMPAT
+-
+- if test $ol_cv_bdb_compat != yes ; then
+- AC_MSG_ERROR([BerkeleyDB version incompatible with BDB/HDB backends])
++dnl Find any MDB
++AC_DEFUN([OL_MDB],
++[ol_cv_mdb=no
++AC_CHECK_HEADERS(lmdb.h)
++if test $ac_cv_header_lmdb_h = yes; then
++ OL_MDB_COMPAT
++
++ if test $ol_cv_mdb_compat != yes ; then
++ AC_MSG_ERROR([LMDB version incompatible with MDB backends])
+ fi
+
+- OL_BERKELEY_DB_LINK
+- if test "$ol_cv_lib_db" != no ; then
+- ol_cv_berkeley_db=yes
+- OL_BERKELEY_DB_VERSION
+- OL_BERKELEY_DB_THREAD
+- fi
++ ol_cv_lib_mdb=-llmdb
++ ol_cv_mdb=yes
+ fi
+ ])
+-dnl --------------------------------------------------------------------
+-dnl Check for version compatility with back-bdb
+-AC_DEFUN([OL_BDB_COMPAT],
+-[AC_CACHE_CHECK([if Berkeley DB version supported by BDB/HDB backends], [ol_cv_bdb_compat],[
+- AC_EGREP_CPP(__db_version_compat,[
+-#include <db.h>
+-
+- /* this check could be improved */
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-#ifndef DB_VERSION_MINOR
+-# define DB_VERSION_MINOR 0
+-#endif
+-
+-#define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
+
+-/* require 4.4 or later */
+-#if DB_VERSION_MM >= 0x0404
+- __db_version_compat
+-#endif
+- ], [ol_cv_bdb_compat=yes], [ol_cv_bdb_compat=no])])
+-])
+
+ dnl
+ dnl ====================================================================
+@@ -664,12 +392,10 @@ AC_DEFUN([OL_PTHREAD_TEST_FUNCTION],[[
+ return 0;
+ ]])
+
+-AC_DEFUN([OL_PTHREAD_TEST_PROGRAM], [
+-AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
++AC_DEFUN([OL_PTHREAD_TEST_PROGRAM],
++[AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
+
+-int main(argc, argv)
+- int argc;
+- char **argv;
++int main(int argc, char **argv)
+ {
+ OL_PTHREAD_TEST_FUNCTION
+ }
+@@ -706,7 +432,7 @@ dnl Check GNU Pth pthread Header
+ dnl
+ dnl defines ol_cv_header linux_threads to 'yes' or 'no'
+ dnl 'no' implies pthreads.h is not LinuxThreads or pthreads.h
+-dnl doesn't exists. Existance of pthread.h should separately
++dnl doesn't exist. Existence of pthread.h should separately
+ dnl checked.
+ dnl
+ AC_DEFUN([OL_HEADER_GNU_PTH_PTHREAD_H], [
+@@ -728,7 +454,7 @@ AC_DEFUN([OL_NT_THREADS], [
+ AC_CHECK_FUNC(_beginthread)
+
+ if test $ac_cv_func__beginthread = yes ; then
+- AC_DEFINE([HAVE_NT_THREADS], [1], [if you have NT Threads])
++ AC_DEFINE(HAVE_NT_THREADS,1,[if you have NT Threads])
+ ol_cv_nt_threads=yes
+ fi
+ ])
+@@ -737,7 +463,7 @@ dnl Check LinuxThreads Header
+ dnl
+ dnl defines ol_cv_header linux_threads to 'yes' or 'no'
+ dnl 'no' implies pthreads.h is not LinuxThreads or pthreads.h
+-dnl doesn't exists. Existance of pthread.h should separately
++dnl doesn't exist. Existence of pthread.h should separately
+ dnl checked.
+ dnl
+ AC_DEFUN([OL_HEADER_LINUX_THREADS], [
+@@ -749,7 +475,7 @@ AC_DEFUN([OL_HEADER_LINUX_THREADS], [
+ [ol_cv_header_linux_threads=no])
+ ])
+ if test $ol_cv_header_linux_threads = yes; then
+- AC_DEFINE([HAVE_LINUX_THREADS], [1], [if you have LinuxThreads])
++ AC_DEFINE(HAVE_LINUX_THREADS,1,[if you have LinuxThreads])
+ fi
+ ])dnl
+ dnl --------------------------------------------------------------------
+@@ -791,7 +517,7 @@ AC_CACHE_CHECK([for compatible POSIX regex],ol_cv_c_posix_regex,[
+ #include <sys/types.h>
+ #include <regex.h>
+ static char *pattern, *string;
+-main()
++int main(void)
+ {
+ int rc;
+ regex_t re;
+@@ -818,7 +544,8 @@ AC_DEFUN([OL_C_UPPER_LOWER],
+ [AC_CACHE_CHECK([if toupper() requires islower()],ol_cv_c_upper_lower,[
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+ #include <ctype.h>
+-main()
++#include <stdlib.h>
++int main(void)
+ {
+ if ('C' == toupper('C'))
+ exit(0);
+@@ -826,7 +553,7 @@ main()
+ exit(1);
+ }]])],[ol_cv_c_upper_lower=no],[ol_cv_c_upper_lower=yes],[ol_cv_c_upper_lower=safe])])
+ if test $ol_cv_c_upper_lower != no ; then
+- AC_DEFINE([C_UPPER_LOWER], [1], [define if toupper() requires islower()])
++ AC_DEFINE(C_UPPER_LOWER,1, [define if toupper() requires islower()])
+ fi
+ ])
+ dnl
+@@ -837,29 +564,32 @@ dnl Check for declaration of sys_errlist in one of stdio.h and errno.h.
+ dnl Declaration of sys_errlist on BSD4.4 interferes with our declaration.
+ dnl Reported by Keith Bostic.
+ AC_DEFUN([OL_SYS_ERRLIST],
+-[AC_CACHE_CHECK([declaration of sys_errlist],ol_cv_dcl_sys_errlist,[
+- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
++[AC_CACHE_CHECK([existence of sys_errlist],ol_cv_have_sys_errlist,[
++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[char *c = (char *) *sys_errlist]])],[ol_cv_have_sys_errlist=yes],[ol_cv_have_sys_errlist=no])])
++if test $ol_cv_have_sys_errlist = yes ; then
++ AC_DEFINE(HAVE_SYS_ERRLIST,1,
++ [define if you actually have sys_errlist in your libs])
++ AC_CACHE_CHECK([declaration of sys_errlist],ol_cv_dcl_sys_errlist,[
++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <errno.h>
+ #ifdef _WIN32
+ #include <stdlib.h>
+-#endif ]], [[char *c = (char *) *sys_errlist]])],[ol_cv_dcl_sys_errlist=yes
+- ol_cv_have_sys_errlist=yes],[ol_cv_dcl_sys_errlist=no])])
++#endif ]], [[char *c = (char *) *sys_errlist]])],[ol_cv_dcl_sys_errlist=yes],
++ [ol_cv_dcl_sys_errlist=no])])
+ #
+-# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
+-if test $ol_cv_dcl_sys_errlist = no ; then
+- AC_DEFINE([DECL_SYS_ERRLIST], [1],
+- [define if sys_errlist is not declared in stdio.h or errno.h])
+-
+- AC_CACHE_CHECK([existence of sys_errlist],ol_cv_have_sys_errlist,[
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[char *c = (char *) *sys_errlist]])],[ol_cv_have_sys_errlist=yes],[ol_cv_have_sys_errlist=no])])
+-fi
+-if test $ol_cv_have_sys_errlist = yes ; then
+- AC_DEFINE([HAVE_SYS_ERRLIST], [1],
+- [define if you actually have sys_errlist in your libs])
++ # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
++ if test $ol_cv_dcl_sys_errlist = no ; then
++ AC_DEFINE(DECL_SYS_ERRLIST,1,
++ [define if sys_errlist is not declared in stdio.h or errno.h])
++ fi
+ fi
+ ])dnl
++dnl
++dnl ====================================================================
++dnl glibc supplies a non-standard strerror_r if _GNU_SOURCE is defined.
++dnl It's actually preferable to the POSIX version, if available.
+ AC_DEFUN([OL_NONPOSIX_STRERROR_R],
+ [AC_CACHE_CHECK([non-posix strerror_r],ol_cv_nonposix_strerror_r,[
+ AC_EGREP_CPP(strerror_r,[#include <string.h>],
+@@ -873,24 +603,23 @@ AC_DEFUN([OL_NONPOSIX_STRERROR_R],
+ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no])
+ else
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+- main() {
++ int main(void) {
+ char buf[100];
+ buf[0] = 0;
+ strerror_r( 1, buf, sizeof buf );
+ exit( buf[0] == 0 );
+ }
+- ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror=no],[ol_cv_nonposix_strerror=no])
++ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no],[ol_cv_nonposix_strerror_r=no])
+ fi
+ ])
+ if test $ol_cv_nonposix_strerror_r = yes ; then
+- AC_DEFINE([HAVE_NONPOSIX_STRERROR_R], [1],
++ AC_DEFINE(HAVE_NONPOSIX_STRERROR_R,1,
+ [define if strerror_r returns char* instead of int])
+ fi
+ ])dnl
+ dnl
+ AC_DEFUN([OL_STRERROR],
+-[OL_SYS_ERRLIST dnl TEMPORARY
+-AC_CHECK_FUNCS(strerror strerror_r)
++[AC_CHECK_FUNCS(strerror strerror_r)
+ ol_cv_func_strerror_r=no
+ if test "${ac_cv_func_strerror_r}" = yes ; then
+ OL_NONPOSIX_STRERROR_R
+@@ -910,7 +639,7 @@ AC_DEFUN([OL_C_VOLATILE],
+ if test $ol_cv_c_volatile = yes; then
+ :
+ else
+- AC_DEFINE([volatile], [], [define as empty if volatile is not supported])
++ AC_DEFINE(volatile,,[define as empty if volatile is not supported])
+ fi
+ ])dnl
+ dnl
+@@ -918,7 +647,7 @@ dnl ====================================================================
+ dnl Look for fetch(3)
+ AC_DEFUN([OL_LIB_FETCH],
+ [ol_LIBS=$LIBS
+-LIBS="-lfetch -lcom_err $LIBS"
++LIBS="-lfetch $LIBS"
+ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #ifdef HAVE_SYS_PARAM_H
+@@ -928,8 +657,8 @@ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
+ #include <fetch.h>]], [[struct url *u = fetchParseURL("file:///"); ]])],[ol_cv_lib_fetch=yes],[ol_cv_lib_fetch=no])])
+ LIBS=$ol_LIBS
+ if test $ol_cv_lib_fetch != no ; then
+- ol_link_fetch="-lfetch -lcom_err"
+- AC_DEFINE([HAVE_FETCH], [1],
++ ol_link_fetch="-lfetch"
++ AC_DEFINE(HAVE_FETCH,1,
+ [define if you actually have FreeBSD fetch(3)])
+ fi
+ ])dnl
+@@ -1094,7 +823,7 @@ AC_DEFUN([OL_FUNC_GETHOSTBYADDR_R_NARGS],
+ ])dnl
+ dnl
+ dnl --------------------------------------------------------------------
+-dnl Check for Cyrus SASL version compatility
++dnl Check for Cyrus SASL version compatibility
+ AC_DEFUN([OL_SASL_COMPAT],
+ [AC_CACHE_CHECK([Cyrus SASL library version], [ol_cv_sasl_compat],[
+ AC_EGREP_CPP(__sasl_compat,[
+@@ -1113,19 +842,3 @@ AC_DEFUN([OL_SASL_COMPAT],
+ #endif
+ ], [ol_cv_sasl_compat=yes], [ol_cv_sasl_compat=no])])
+ ])
+-dnl ====================================================================
+-dnl check for SSL compatibility
+-AC_DEFUN([OL_SSL_COMPAT],
+-[AC_CACHE_CHECK([OpenSSL library version (CRL checking capability)],
+- [ol_cv_ssl_crl_compat],[
+- AC_EGREP_CPP(__ssl_compat,[
+-#ifdef HAVE_OPENSSL_SSL_H
+-#include <openssl/ssl.h>
+-#endif
+-
+-/* Require 0.9.7d+ */
+-#if OPENSSL_VERSION_NUMBER >= 0x0090704fL
+- char *__ssl_compat = "0.9.7d";
+-#endif
+- ], [ol_cv_ssl_crl_compat=yes], [ol_cv_ssl_crl_compat=no])])
+-])
+--
+2.38.1
+
diff --git a/srcpkgs/ntp/template b/srcpkgs/ntp/template
index e190300a74a3a7..c7030f9b7f9d0d 100644
--- a/srcpkgs/ntp/template
+++ b/srcpkgs/ntp/template
@@ -5,7 +5,7 @@ revision=7
build_style=gnu-configure
configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --enable-ntp-signd
--enable-all-clocks ol_cv_pthread_select_yields=yes"
-hostmakedepends="pkg-config bison perl"
+hostmakedepends="pkg-config autoconf automake libtool bison perl"
makedepends="libedit-devel openssl-devel libcap-devel libevent-devel pps-tools-devel"
short_desc="Network Time Protocol daemon and utilities"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -28,6 +28,10 @@ post_extract() {
sed -i 's/linux/GLIBC/g' ntpd/ntpd.c
}
+pre_configure() {
+ autoreconf -fi
+}
+
post_install() {
# Rename files for alternatives.
vmkdir usr/share/man/man8
From 3681a7674fa104e5a3fbd8d243607b0e6472023e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:57:58 -0800
Subject: [PATCH 38/40] nvi: fix build with gcc14
---
srcpkgs/nvi/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/nvi/template b/srcpkgs/nvi/template
index 8a43e9f7a601b5..3923150ff5a1a6 100644
--- a/srcpkgs/nvi/template
+++ b/srcpkgs/nvi/template
@@ -22,6 +22,8 @@ alternatives="
vi:view.1:/usr/share/man/man1/nview.1
"
+CFLAGS="-fpermissive"
+
post_extract() {
chmod +w $wrksrc/common/options_def.h
}
From ae87b3cd28722d241182a24fc9d11d5c21d9141b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 21:19:48 -0800
Subject: [PATCH 39/40] libsasl: fix build for gcc14
---
srcpkgs/libsasl/patches/gcc14.patch | 70 +++++++++++++++++++++++++++++
1 file changed, 70 insertions(+)
create mode 100644 srcpkgs/libsasl/patches/gcc14.patch
diff --git a/srcpkgs/libsasl/patches/gcc14.patch b/srcpkgs/libsasl/patches/gcc14.patch
new file mode 100644
index 00000000000000..bdaade22f1c903
--- /dev/null
+++ b/srcpkgs/libsasl/patches/gcc14.patch
@@ -0,0 +1,70 @@
+diff -rup digestmd5.c.orig digestmd5.c
+--- a/plugins/digestmd5.c
++++ b/plugins/digestmd5.c
+@@ -86,6 +86,8 @@
+ # include <netinet/in.h>
+ #endif /* WIN32 */
+
++#include <time.h>
++
+ #include <sasl.h>
+ #include <saslplug.h>
+
+
+From 266f0acf7f5e029afbb3e263437039e50cd6c262 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Wed, 23 Feb 2022 00:45:15 +0000
+Subject: [PATCH] Fix <time.h> check
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+We're conditionally including based on HAVE_TIME_H in a bunch of places,
+but we're not actually checking for time.h, so that's never going to be defined.
+
+While at it, add in a missing include in the cram plugin.
+
+This fixes a bunch of implicit declaration warnings:
+```
+ * cyrus-sasl-2.1.28/lib/saslutil.c:280:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:364:41: warning: implicit declaration of function ‘clock’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/plugins/cram.c:132:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:280:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:364:41: warning: implicit declaration of function ‘clock’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/plugins/cram.c:132:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+```
+
+Signed-off-by: Sam James <sam@gentoo.org>
+---
+ configure.ac | 2 +-
+ plugins/cram.c | 4 ++++
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index e1bf53b6..ad781830 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1290,7 +1290,7 @@ AC_CHECK_HEADERS_ONCE([sys/time.h])
+
+ AC_HEADER_DIRENT
+ AC_HEADER_SYS_WAIT
+-AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
++AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h time.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
+
+ IPv6_CHECK_SS_FAMILY()
+ IPv6_CHECK_SA_LEN()
+diff --git a/plugins/cram.c b/plugins/cram.c
+index d02e9baa..695aaa91 100644
+--- a/plugins/cram.c
++++ b/plugins/cram.c
+@@ -53,6 +53,10 @@
+ #endif
+ #include <fcntl.h>
+
++#ifdef HAVE_TIME_H
++#include <time.h>
++#endif
++
+ #include <sasl.h>
+ #include <saslplug.h>
+ #include <saslutil.h>
From 4c8aece0e737004bd140165fa42d4cf19c43b804 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 21:37:47 -0800
Subject: [PATCH 40/40] xbps: fix build with gcc14
---
srcpkgs/xbps/patches/fix-transposed-calloc.patch | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 srcpkgs/xbps/patches/fix-transposed-calloc.patch
diff --git a/srcpkgs/xbps/patches/fix-transposed-calloc.patch b/srcpkgs/xbps/patches/fix-transposed-calloc.patch
new file mode 100644
index 00000000000000..67341372dab79a
--- /dev/null
+++ b/srcpkgs/xbps/patches/fix-transposed-calloc.patch
@@ -0,0 +1,13 @@
+diff --git a/bin/xbps-fbulk/main.c b/bin/xbps-fbulk/main.c
+index 6591bb61..4408bf20 100644
+--- a/bin/xbps-fbulk/main.c
++++ b/bin/xbps-fbulk/main.c
+@@ -397,7 +397,7 @@ runBuilds(const char *bpath)
+ static void
+ addDepn(struct item *item, struct item *xitem)
+ {
+- struct depn *depn = calloc(sizeof(*depn), 1);
++ struct depn *depn = calloc(1, sizeof(*depn));
+ char *logpath3;
+ FILE *fp;
+
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (16 preceding siblings ...)
2024-12-14 5:38 ` oreo639
@ 2024-12-14 5:40 ` oreo639
2025-01-31 4:38 ` Vinfall
` (45 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2024-12-14 5:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2911 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [ ] runit https://github.com/void-linux/void-packages/pull/52408
- [ ] ntp
- [ ] libsasl
- [ ] nvi
- [ ] xbps (-Werror=calloc-transposed-args)
- [x] db (done in this pr)
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration (good) instead of segfaulting later due to implicit pointer truncation.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, feel free to test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 165204 bytes --]
From 12f7e12e7ebfd30be4d3f60d4357eeef057ca008 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/40] binutils: update to 2.43.1.
---
srcpkgs/binutils/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..92142bb6788fda 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.43.1
+revision=1
bootstrap=yes
hostmakedepends="pkgconf"
makedepends="zlib-devel libzstd-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=13f74202a3c4c51118b797a39ea4200d3f6cfbe224da6d1d95bb938480132dfd
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From f17e4ce55f9f06ff1aea0f47f6d0364477db6d59 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/40] gcc: update to 14.2.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 6 +-
6 files changed, 6 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 5e8f45495580ef..f8ce7e9bc1f84c 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.38 perl-5.38.0_1
libgmp.so.10 gmp-5.0.1_1
@@ -864,8 +864,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 0792954c232887..940990a02b63dd 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=2
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
From c05f6ce0c075abc86a835a7df599ee077eefbb37 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 03/40] glibc: update to 2.40.
https://sourceware.org/pipermail/libc-alpha/2024-July/158467.html
---
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...a358428bcec2d203fa408b85f442c9a465ca.patch | 53 ++
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
...e2ba144a554809161d488f25e4bae07c9405.patch | 300 ++++++++++
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
...3d58ff12e27771d9c960a727d74992a3f2a3.patch | 27 +
srcpkgs/glibc/template | 6 +-
9 files changed, 383 insertions(+), 973 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
create mode 100644 srcpkgs/glibc/patches/3433a358428bcec2d203fa408b85f442c9a465ca.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
create mode 100644 srcpkgs/glibc/patches/6a97e2ba144a554809161d488f25e4bae07c9405.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
create mode 100644 srcpkgs/glibc/patches/aa533d58ff12e27771d9c960a727d74992a3f2a3.patch
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/3433a358428bcec2d203fa408b85f442c9a465ca.patch b/srcpkgs/glibc/patches/3433a358428bcec2d203fa408b85f442c9a465ca.patch
new file mode 100644
index 00000000000000..3a11cafcb4e839
--- /dev/null
+++ b/srcpkgs/glibc/patches/3433a358428bcec2d203fa408b85f442c9a465ca.patch
@@ -0,0 +1,53 @@
+From 3433a358428bcec2d203fa408b85f442c9a465ca Mon Sep 17 00:00:00 2001
+From: "H.J. Lu" <hjl.tools@gmail.com>
+Date: Wed, 24 Jul 2024 14:05:13 -0700
+Subject: [PATCH] linux: Update the mremap C implementation [BZ #31968]
+
+Update the mremap C implementation to support the optional argument for
+MREMAP_DONTUNMAP added in Linux 5.7 since it may not always be correct
+to implement a variadic function as a non-variadic function on all Linux
+targets. Return MAP_FAILED and set errno to EINVAL for unknown flag bits.
+This fixes BZ #31968.
+
+Note: A test must be added when a new flag bit is introduced.
+
+Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
+Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
+(cherry picked from commit 6c40cb0e9f893d49dc7caee580a055de53562206)
+---
+ NEWS | 1 +
+ sysdeps/unix/sysv/linux/mremap.c | 14 +++++++++++++-
+ 2 files changed, 14 insertions(+), 1 deletion(-)
+
+diff --git a/sysdeps/unix/sysv/linux/mremap.c b/sysdeps/unix/sysv/linux/mremap.c
+index 4f770799c4f..1ada5c1f40d 100644
+--- a/sysdeps/unix/sysv/linux/mremap.c
++++ b/sysdeps/unix/sysv/linux/mremap.c
+@@ -20,6 +20,12 @@
+ #include <sysdep.h>
+ #include <stdarg.h>
+ #include <stddef.h>
++#include <errno.h>
++
++#define MREMAP_KNOWN_BITS \
++ (MREMAP_MAYMOVE \
++ | MREMAP_FIXED \
++ | MREMAP_DONTUNMAP)
+
+ void *
+ __mremap (void *addr, size_t old_len, size_t new_len, int flags, ...)
+@@ -27,7 +33,13 @@ __mremap (void *addr, size_t old_len, size_t new_len, int flags, ...)
+ va_list va;
+ void *new_addr = NULL;
+
+- if (flags & MREMAP_FIXED)
++ if (flags & ~(MREMAP_KNOWN_BITS))
++ {
++ __set_errno (EINVAL);
++ return MAP_FAILED;
++ }
++
++ if (flags & (MREMAP_FIXED | MREMAP_DONTUNMAP))
+ {
+ va_start (va, flags);
+ new_addr = va_arg (va, void *);
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/6a97e2ba144a554809161d488f25e4bae07c9405.patch b/srcpkgs/glibc/patches/6a97e2ba144a554809161d488f25e4bae07c9405.patch
new file mode 100644
index 00000000000000..e26d797a75c23e
--- /dev/null
+++ b/srcpkgs/glibc/patches/6a97e2ba144a554809161d488f25e4bae07c9405.patch
@@ -0,0 +1,300 @@
+From 6a97e2ba144a554809161d488f25e4bae07c9405 Mon Sep 17 00:00:00 2001
+From: Andreas Schwab <schwab@suse.de>
+Date: Mon, 5 Aug 2024 10:55:51 +0200
+Subject: [PATCH] Fix name space violation in fortify wrappers (bug 32052)
+
+Rename the identifier sz to __sz everywhere.
+
+Fixes: a643f60c53 ("Make sure that the fortified function conditionals are constant")
+(cherry picked from commit 39ca997ab378990d5ac1aadbaa52aaf1db6d526f)
+---
+ NEWS | 1 +
+ libio/bits/stdio2.h | 40 +++++++++++++++----------------
+ socket/bits/socket2.h | 20 ++++++++--------
+ stdlib/bits/stdlib.h | 10 ++++----
+ wcsmbs/bits/wchar2.h | 56 +++++++++++++++++++++----------------------
+ 5 files changed, 64 insertions(+), 63 deletions(-)
+
+diff --git a/libio/bits/stdio2.h b/libio/bits/stdio2.h
+index 91a80dd7c63..4b8bc35bdf3 100644
+--- a/libio/bits/stdio2.h
++++ b/libio/bits/stdio2.h
+@@ -308,14 +308,14 @@ fgets (__fortify_clang_overload_arg (char *, __restrict, __s), int __n,
+ "fgets called with bigger size than length of "
+ "destination buffer")
+ {
+- size_t sz = __glibc_objsize (__s);
+- if (__glibc_safe_or_unknown_len (__n, sizeof (char), sz))
++ size_t __sz = __glibc_objsize (__s);
++ if (__glibc_safe_or_unknown_len (__n, sizeof (char), __sz))
+ return __fgets_alias (__s, __n, __stream);
+ #if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, sizeof (char), sz))
+- return __fgets_chk_warn (__s, sz, __n, __stream);
++ if (__glibc_unsafe_len (__n, sizeof (char), __sz))
++ return __fgets_chk_warn (__s, __sz, __n, __stream);
+ #endif
+- return __fgets_chk (__s, sz, __n, __stream);
++ return __fgets_chk (__s, __sz, __n, __stream);
+ }
+
+ __fortify_function __wur __nonnull ((4)) __attribute_overloadable__ size_t
+@@ -326,14 +326,14 @@ fread (__fortify_clang_overload_arg (void *, __restrict, __ptr),
+ "fread called with bigger size * n than length "
+ "of destination buffer")
+ {
+- size_t sz = __glibc_objsize0 (__ptr);
+- if (__glibc_safe_or_unknown_len (__n, __size, sz))
++ size_t __sz = __glibc_objsize0 (__ptr);
++ if (__glibc_safe_or_unknown_len (__n, __size, __sz))
+ return __fread_alias (__ptr, __size, __n, __stream);
+ #if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, __size, sz))
+- return __fread_chk_warn (__ptr, sz, __size, __n, __stream);
++ if (__glibc_unsafe_len (__n, __size, __sz))
++ return __fread_chk_warn (__ptr, __sz, __size, __n, __stream);
+ #endif
+- return __fread_chk (__ptr, sz, __size, __n, __stream);
++ return __fread_chk (__ptr, __sz, __size, __n, __stream);
+ }
+
+ #ifdef __USE_GNU
+@@ -345,14 +345,14 @@ fgets_unlocked (__fortify_clang_overload_arg (char *, __restrict, __s),
+ "fgets called with bigger size than length of "
+ "destination buffer")
+ {
+- size_t sz = __glibc_objsize (__s);
+- if (__glibc_safe_or_unknown_len (__n, sizeof (char), sz))
++ size_t __sz = __glibc_objsize (__s);
++ if (__glibc_safe_or_unknown_len (__n, sizeof (char), __sz))
+ return __fgets_unlocked_alias (__s, __n, __stream);
+ #if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, sizeof (char), sz))
+- return __fgets_unlocked_chk_warn (__s, sz, __n, __stream);
++ if (__glibc_unsafe_len (__n, sizeof (char), __sz))
++ return __fgets_unlocked_chk_warn (__s, __sz, __n, __stream);
+ #endif
+- return __fgets_unlocked_chk (__s, sz, __n, __stream);
++ return __fgets_unlocked_chk (__s, __sz, __n, __stream);
+ }
+ #endif
+
+@@ -366,8 +366,8 @@ fread_unlocked (__fortify_clang_overload_arg0 (void *, __restrict, __ptr),
+ "fread_unlocked called with bigger size * n than "
+ "length of destination buffer")
+ {
+- size_t sz = __glibc_objsize0 (__ptr);
+- if (__glibc_safe_or_unknown_len (__n, __size, sz))
++ size_t __sz = __glibc_objsize0 (__ptr);
++ if (__glibc_safe_or_unknown_len (__n, __size, __sz))
+ {
+ # ifdef __USE_EXTERN_INLINES
+ if (__builtin_constant_p (__size)
+@@ -393,10 +393,10 @@ fread_unlocked (__fortify_clang_overload_arg0 (void *, __restrict, __ptr),
+ return __fread_unlocked_alias (__ptr, __size, __n, __stream);
+ }
+ # if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, __size, sz))
+- return __fread_unlocked_chk_warn (__ptr, sz, __size, __n, __stream);
++ if (__glibc_unsafe_len (__n, __size, __sz))
++ return __fread_unlocked_chk_warn (__ptr, __sz, __size, __n, __stream);
+ # endif
+- return __fread_unlocked_chk (__ptr, sz, __size, __n, __stream);
++ return __fread_unlocked_chk (__ptr, __sz, __size, __n, __stream);
+
+ }
+ #endif
+diff --git a/socket/bits/socket2.h b/socket/bits/socket2.h
+index 04780f320e9..bd91647f37c 100644
+--- a/socket/bits/socket2.h
++++ b/socket/bits/socket2.h
+@@ -37,14 +37,14 @@ recv (int __fd, __fortify_clang_overload_arg0 (void *, ,__buf), size_t __n,
+ "recv called with bigger length than "
+ "size of destination buffer")
+ {
+- size_t sz = __glibc_objsize0 (__buf);
+- if (__glibc_safe_or_unknown_len (__n, sizeof (char), sz))
++ size_t __sz = __glibc_objsize0 (__buf);
++ if (__glibc_safe_or_unknown_len (__n, sizeof (char), __sz))
+ return __recv_alias (__fd, __buf, __n, __flags);
+ #if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, sizeof (char), sz))
+- return __recv_chk_warn (__fd, __buf, __n, sz, __flags);
++ if (__glibc_unsafe_len (__n, sizeof (char), __sz))
++ return __recv_chk_warn (__fd, __buf, __n, __sz, __flags);
+ #endif
+- return __recv_chk (__fd, __buf, __n, sz, __flags);
++ return __recv_chk (__fd, __buf, __n, __sz, __flags);
+ }
+
+ extern ssize_t __recvfrom_chk (int __fd, void *__restrict __buf, size_t __n,
+@@ -71,13 +71,13 @@ recvfrom (int __fd, __fortify_clang_overload_arg0 (void *, __restrict, __buf),
+ "recvfrom called with bigger length "
+ "than size of destination buffer")
+ {
+- size_t sz = __glibc_objsize0 (__buf);
+- if (__glibc_safe_or_unknown_len (__n, sizeof (char), sz))
++ size_t __sz = __glibc_objsize0 (__buf);
++ if (__glibc_safe_or_unknown_len (__n, sizeof (char), __sz))
+ return __recvfrom_alias (__fd, __buf, __n, __flags, __addr, __addr_len);
+ #if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, sizeof (char), sz))
+- return __recvfrom_chk_warn (__fd, __buf, __n, sz, __flags, __addr,
++ if (__glibc_unsafe_len (__n, sizeof (char), __sz))
++ return __recvfrom_chk_warn (__fd, __buf, __n, __sz, __flags, __addr,
+ __addr_len);
+ #endif
+- return __recvfrom_chk (__fd, __buf, __n, sz, __flags, __addr, __addr_len);
++ return __recvfrom_chk (__fd, __buf, __n, __sz, __flags, __addr, __addr_len);
+ }
+diff --git a/stdlib/bits/stdlib.h b/stdlib/bits/stdlib.h
+index 1557b862b17..9c78ecf458b 100644
+--- a/stdlib/bits/stdlib.h
++++ b/stdlib/bits/stdlib.h
+@@ -43,16 +43,16 @@ __NTH (realpath (const char *__restrict __name,
+ "bytes long buffer")
+ #endif
+ {
+- size_t sz = __glibc_objsize (__resolved);
++ size_t __sz = __glibc_objsize (__resolved);
+
+- if (sz == (size_t) -1)
++ if (__sz == (size_t) -1)
+ return __realpath_alias (__name, __resolved);
+
+ #if !__fortify_use_clang && defined _LIBC_LIMITS_H_ && defined PATH_MAX
+- if (__glibc_unsafe_len (PATH_MAX, sizeof (char), sz))
+- return __realpath_chk_warn (__name, __resolved, sz);
++ if (__glibc_unsafe_len (PATH_MAX, sizeof (char), __sz))
++ return __realpath_chk_warn (__name, __resolved, __sz);
+ #endif
+- return __realpath_chk (__name, __resolved, sz);
++ return __realpath_chk (__name, __resolved, __sz);
+ }
+
+
+diff --git a/wcsmbs/bits/wchar2.h b/wcsmbs/bits/wchar2.h
+index 9fdff47ee29..43c6b63027b 100644
+--- a/wcsmbs/bits/wchar2.h
++++ b/wcsmbs/bits/wchar2.h
+@@ -74,9 +74,9 @@ __fortify_function __attribute_overloadable__ wchar_t *
+ __NTH (wcscpy (__fortify_clang_overload_arg (wchar_t *, __restrict, __dest),
+ const wchar_t *__restrict __src))
+ {
+- size_t sz = __glibc_objsize (__dest);
+- if (sz != (size_t) -1)
+- return __wcscpy_chk (__dest, __src, sz / sizeof (wchar_t));
++ size_t __sz = __glibc_objsize (__dest);
++ if (__sz != (size_t) -1)
++ return __wcscpy_chk (__dest, __src, __sz / sizeof (wchar_t));
+ return __wcscpy_alias (__dest, __src);
+ }
+
+@@ -84,9 +84,9 @@ __fortify_function __attribute_overloadable__ wchar_t *
+ __NTH (wcpcpy (__fortify_clang_overload_arg (wchar_t *, __restrict, __dest),
+ const wchar_t *__restrict __src))
+ {
+- size_t sz = __glibc_objsize (__dest);
+- if (sz != (size_t) -1)
+- return __wcpcpy_chk (__dest, __src, sz / sizeof (wchar_t));
++ size_t __sz = __glibc_objsize (__dest);
++ if (__sz != (size_t) -1)
++ return __wcpcpy_chk (__dest, __src, __sz / sizeof (wchar_t));
+ return __wcpcpy_alias (__dest, __src);
+ }
+
+@@ -118,9 +118,9 @@ __fortify_function __attribute_overloadable__ wchar_t *
+ __NTH (wcscat (__fortify_clang_overload_arg (wchar_t *, __restrict, __dest),
+ const wchar_t *__restrict __src))
+ {
+- size_t sz = __glibc_objsize (__dest);
+- if (sz != (size_t) -1)
+- return __wcscat_chk (__dest, __src, sz / sizeof (wchar_t));
++ size_t __sz = __glibc_objsize (__dest);
++ if (__sz != (size_t) -1)
++ return __wcscat_chk (__dest, __src, __sz / sizeof (wchar_t));
+ return __wcscat_alias (__dest, __src);
+ }
+
+@@ -128,9 +128,9 @@ __fortify_function __attribute_overloadable__ wchar_t *
+ __NTH (wcsncat (__fortify_clang_overload_arg (wchar_t *, __restrict, __dest),
+ const wchar_t *__restrict __src, size_t __n))
+ {
+- size_t sz = __glibc_objsize (__dest);
+- if (sz != (size_t) -1)
+- return __wcsncat_chk (__dest, __src, __n, sz / sizeof (wchar_t));
++ size_t __sz = __glibc_objsize (__dest);
++ if (__sz != (size_t) -1)
++ return __wcsncat_chk (__dest, __src, __n, __sz / sizeof (wchar_t));
+ return __wcsncat_alias (__dest, __src, __n);
+ }
+
+@@ -170,10 +170,10 @@ __fortify_function int
+ __NTH (swprintf (wchar_t *__restrict __s, size_t __n,
+ const wchar_t *__restrict __fmt, ...))
+ {
+- size_t sz = __glibc_objsize (__s);
+- if (sz != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
++ size_t __sz = __glibc_objsize (__s);
++ if (__sz != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
+ return __swprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
+- sz / sizeof (wchar_t), __fmt, __va_arg_pack ());
++ __sz / sizeof (wchar_t), __fmt, __va_arg_pack ());
+ return __swprintf_alias (__s, __n, __fmt, __va_arg_pack ());
+ }
+ #elif __fortify_use_clang
+@@ -206,10 +206,10 @@ __fortify_function int
+ __NTH (vswprintf (wchar_t *__restrict __s, size_t __n,
+ const wchar_t *__restrict __fmt, __gnuc_va_list __ap))
+ {
+- size_t sz = __glibc_objsize (__s);
+- if (sz != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
++ size_t __sz = __glibc_objsize (__s);
++ if (__sz != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
+ return __vswprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
+- sz / sizeof (wchar_t), __fmt, __ap);
++ __sz / sizeof (wchar_t), __fmt, __ap);
+ return __vswprintf_alias (__s, __n, __fmt, __ap);
+ }
+
+@@ -257,14 +257,14 @@ fgetws (__fortify_clang_overload_arg (wchar_t *, __restrict, __s), int __n,
+ "fgetws called with length bigger "
+ "than size of destination buffer")
+ {
+- size_t sz = __glibc_objsize (__s);
+- if (__glibc_safe_or_unknown_len (__n, sizeof (wchar_t), sz))
++ size_t __sz = __glibc_objsize (__s);
++ if (__glibc_safe_or_unknown_len (__n, sizeof (wchar_t), __sz))
+ return __fgetws_alias (__s, __n, __stream);
+ #if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, sizeof (wchar_t), sz))
+- return __fgetws_chk_warn (__s, sz / sizeof (wchar_t), __n, __stream);
++ if (__glibc_unsafe_len (__n, sizeof (wchar_t), __sz))
++ return __fgetws_chk_warn (__s, __sz / sizeof (wchar_t), __n, __stream);
+ #endif
+- return __fgetws_chk (__s, sz / sizeof (wchar_t), __n, __stream);
++ return __fgetws_chk (__s, __sz / sizeof (wchar_t), __n, __stream);
+ }
+
+ #ifdef __USE_GNU
+@@ -275,15 +275,15 @@ fgetws_unlocked (__fortify_clang_overload_arg (wchar_t *, __restrict, __s),
+ "fgetws_unlocked called with length bigger "
+ "than size of destination buffer")
+ {
+- size_t sz = __glibc_objsize (__s);
+- if (__glibc_safe_or_unknown_len (__n, sizeof (wchar_t), sz))
++ size_t __sz = __glibc_objsize (__s);
++ if (__glibc_safe_or_unknown_len (__n, sizeof (wchar_t), __sz))
+ return __fgetws_unlocked_alias (__s, __n, __stream);
+ # if !__fortify_use_clang
+- if (__glibc_unsafe_len (__n, sizeof (wchar_t), sz))
+- return __fgetws_unlocked_chk_warn (__s, sz / sizeof (wchar_t), __n,
++ if (__glibc_unsafe_len (__n, sizeof (wchar_t), __sz))
++ return __fgetws_unlocked_chk_warn (__s, __sz / sizeof (wchar_t), __n,
+ __stream);
+ # endif
+- return __fgetws_unlocked_chk (__s, sz / sizeof (wchar_t), __n, __stream);
++ return __fgetws_unlocked_chk (__s, __sz / sizeof (wchar_t), __n, __stream);
+ }
+ #endif
+
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/patches/aa533d58ff12e27771d9c960a727d74992a3f2a3.patch b/srcpkgs/glibc/patches/aa533d58ff12e27771d9c960a727d74992a3f2a3.patch
new file mode 100644
index 00000000000000..68ef9a8009696a
--- /dev/null
+++ b/srcpkgs/glibc/patches/aa533d58ff12e27771d9c960a727d74992a3f2a3.patch
@@ -0,0 +1,27 @@
+From aa533d58ff12e27771d9c960a727d74992a3f2a3 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Fri, 2 Aug 2024 15:22:14 +0200
+Subject: [PATCH] x86: Tunables may incorrectly set Prefer_PMINUB_for_stringop
+ (bug 32047)
+
+Fixes commit 5bcf6265f215326d14dfacdce8532792c2c7f8f8 ("x86:
+Disable non-temporal memset on Skylake Server").
+
+Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
+(cherry picked from commit 7a630f7d3392ca391a399486ce2846f9e4b4ee63)
+---
+ sysdeps/x86/cpu-tunables.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/sysdeps/x86/cpu-tunables.c b/sysdeps/x86/cpu-tunables.c
+index ae9dcd6180c..ccc6b64dc20 100644
+--- a/sysdeps/x86/cpu-tunables.c
++++ b/sysdeps/x86/cpu-tunables.c
+@@ -248,6 +248,7 @@ TUNABLE_CALLBACK (set_hwcaps) (tunable_val_t *valp)
+ CHECK_GLIBC_IFUNC_PREFERRED_BOTH (n, cpu_features,
+ Avoid_Non_Temporal_Memset, 25);
+ }
++ break;
+ case 26:
+ {
+ CHECK_GLIBC_IFUNC_PREFERRED_NEED_BOTH
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..7a8623c869dcf1 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.40
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=19a890175e9263d748f627993de6f4b1af9cd21e03f080e4bfb3a1fac10205a2
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From 48f5e276cf98adcb4c4f0771f4def3b29c6b5e2f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 04/40] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 66e5cf056e9624..04e22c4fb01166 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=22
+revision=23
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From 0e69db1a3bd390386907fd703b73d971769c1fd9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 05/40] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 5a3048b3e79b33e289bda82d8edb3215c1c23d51 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 06/40] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 0073f632c3795083585a3d0bc4beca3a3896e6c9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 07/40] gcc-multilib: update to 14.2.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From 02400bdad347f6d17b24063f4ad09609c7fef960 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 08/40] libgccjit: update to 14.2.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From c644b9eed4b200e5b7270010f2855af078acd42b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 09/40] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From 8b5d38767cc17261e62d840ea1ed8b537e8fc4bf Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:56:36 -0800
Subject: [PATCH 10/40] ntp: fix build with gcc14
---
srcpkgs/ntp/patches/gcc14.patch | 612 ++++++++++++++++++++++++++++++++
srcpkgs/ntp/template | 6 +-
2 files changed, 617 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/ntp/patches/gcc14.patch
diff --git a/srcpkgs/ntp/patches/gcc14.patch b/srcpkgs/ntp/patches/gcc14.patch
new file mode 100644
index 00000000000000..925543ee1fe669
--- /dev/null
+++ b/srcpkgs/ntp/patches/gcc14.patch
@@ -0,0 +1,612 @@
+Source: https://gitweb.gentoo.org/repo/gentoo.git/plain/net-misc/ntp/files/ntp-4.2.8_p15-configure-clang16.patch?id=9cc28f1d1f1f13da5537fe125931bd4b1fef97cf
+
+Sync with OpenLDAP. Uses Arsen's patch from https://bugs.gentoo.org/871288.
+
+https://bugs.gentoo.org/871372
+--- a/sntp/m4/openldap-thread-check.m4
++++ b/sntp/m4/openldap-thread-check.m4
+@@ -262,10 +262,8 @@ pthread_rwlock_t rwlock;
+ dnl save the flags
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #include <pthread.h>
+-#ifndef NULL
+-#define NULL (void*)0
+-#endif
+-]], [[pthread_detach(NULL);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
++pthread_t thread;
++]], [[pthread_detach(thread);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
+ ])
+
+ if test $ol_cv_func_pthread_detach = no ; then
+--- a/sntp/m4/openldap.m4
++++ b/sntp/m4/openldap.m4
+@@ -1,16 +1,16 @@
+ dnl OpenLDAP Autoconf Macros
+-dnl $OpenLDAP: pkg/ldap/build/openldap.m4,v 1.157.2.10 2010/04/13 20:22:21 kurt Exp $
++dnl $OpenLDAP$
+ dnl This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ dnl
+-dnl Copyright 1998-2010 The OpenLDAP Foundation.
++dnl Copyright 1998-2022 The OpenLDAP Foundation.
+ dnl All rights reserved.
+ dnl
+ dnl Redistribution and use in source and binary forms, with or without
+ dnl modification, are permitted only as authorized by the OpenLDAP
+ dnl Public License.
+ dnl
+-dnl A copy of this license is available in the file LICENSE-OPENLDAP in
+-dnl this directory of the distribution or, alternatively, at
++dnl A copy of this license is available in the file LICENSE in the
++dnl top-level directory of the distribution or, alternatively, at
+ dnl <http://www.OpenLDAP.org/license.html>.
+ dnl
+ dnl --------------------------------------------------------------------
+@@ -154,6 +154,7 @@ fi
+ if test $ol_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <ctype.h>
++#include <stdlib.h>
+ #ifndef HAVE_EBCDIC
+ # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+ # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+@@ -170,7 +171,7 @@ exit (0); }
+ ]])],[],[ol_cv_header_stdc=no],[:])
+ fi])
+ if test $ol_cv_header_stdc = yes; then
+- AC_DEFINE([STDC_HEADERS], [1], [is standard C provided?])
++ AC_DEFINE(STDC_HEADERS)
+ fi
+ ac_cv_header_stdc=disable
+ ])
+@@ -242,313 +243,40 @@ AC_DEFUN([OL_RESOLVER_LINK],
+ OL_RESOLVER_TRY(ol_cv_resolver_none)
+ OL_RESOLVER_TRY(ol_cv_resolver_resolv,[-lresolv])
+ OL_RESOLVER_TRY(ol_cv_resolver_bind,[-lbind])
+-])
+-dnl
+-dnl ====================================================================
+-dnl International Components for Unicode (ICU)
+-AC_DEFUN([OL_ICU],
+-[ol_icu=no
+-AC_CHECK_HEADERS( unicode/utypes.h )
+-if test $ac_cv_header_unicode_utypes_h = yes ; then
+- dnl OL_ICULIBS="-licui18n -licuuc -licudata"
+- OL_ICULIBS="-licuuc -licudata"
+-
+- AC_CACHE_CHECK([for ICU libraries], [ol_cv_lib_icu], [
+- ol_LIBS="$LIBS"
+- LIBS="$OL_ICULIBS $LIBS"
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+-#include <unicode/utypes.h>
+-]], [[
+-(void) u_errorName(0);
+-]])],[ol_cv_lib_icu=yes],[ol_cv_lib_icu=no])
+- LIBS="$ol_LIBS"
+-])
+-
+- if test $ol_cv_lib_icu != no ; then
+- ol_icu="$OL_ICULIBS"
+- AC_DEFINE([HAVE_ICU], [1], [define if you actually have ICU])
+- fi
+-fi
+-])
+-dnl
+-dnl ====================================================================
+-dnl Berkeley DB macros
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Try to link
+-AC_DEFUN([OL_BERKELEY_DB_TRY],
+-[if test $ol_cv_lib_db = no ; then
+- AC_CACHE_CHECK([for Berkeley DB link (]ifelse($2,,default,$2)[)],[$1],
+-[
+- ol_DB_LIB=ifelse($2,,,$2)
+- ol_LIBS=$LIBS
+- LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
+-
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+-#ifdef HAVE_DB_185_H
+-# include <db_185.h>
+-#else
+-# include <db.h>
+-#endif
+-
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-
+-#ifndef NULL
+-#define NULL ((void*)0)
+-#endif
+-]], [[
+-#if DB_VERSION_MAJOR > 2
+- db_env_create( NULL, 0 );
+-#elif DB_VERSION_MAJOR > 1
+- db_appexit( NULL );
+-#else
+- (void) dbopen( NULL, 0, 0, 0, NULL);
+-#endif
+-]])],[$1=yes],[$1=no])
+-
+- LIBS="$ol_LIBS"
+-])
+-
+- if test $$1 = yes ; then
+- ol_cv_lib_db=ifelse($2,,yes,$2)
+- fi
+-fi
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Get major and minor version from <db.h>
+-AC_DEFUN([OL_BDB_HEADER_VERSION],
+-[AC_CACHE_CHECK([for Berkeley DB major version in db.h], [ol_cv_bdb_major],[
+- AC_LANG_CONFTEST([
+-#include <db.h>
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-__db_version DB_VERSION_MAJOR
+-])
+- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
+- ol_cv_bdb_major=${3}
+-])
+-case $ol_cv_bdb_major in [[1-9]]*) : ;; *)
+- AC_MSG_ERROR([Unknown Berkeley DB major version in db.h]) ;;
+-esac
+-
+-dnl Determine minor version
+-AC_CACHE_CHECK([for Berkeley DB minor version in db.h], [ol_cv_bdb_minor],[
+- AC_LANG_CONFTEST([
+-#include <db.h>
+-#ifndef DB_VERSION_MINOR
+-# define DB_VERSION_MINOR 0
+-#endif
+-__db_version DB_VERSION_MINOR
+-])
+- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
+- ol_cv_bdb_minor=${3}
+-])
+-case $ol_cv_bdb_minor in [[0-9]]*) : ;; *)
+- AC_MSG_ERROR([Unknown Berkeley DB minor version in db.h]) ;;
+-esac
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Try to locate appropriate library
+-AC_DEFUN([OL_BERKELEY_DB_LINK],
+-[ol_cv_lib_db=no
+-
+-if test $ol_cv_bdb_major = 4 ; then
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4_dot_m,[-ldb-4.$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db4m,[-ldb4$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4m,[-ldb-4$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4_m,[-ldb-4-$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4,[-ldb-4])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db4,[-ldb4])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db,[-ldb])
+-fi
+-OL_BERKELEY_DB_TRY(ol_cv_db_none)
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Check if Berkeley DB version
+-AC_DEFUN([OL_BERKELEY_DB_VERSION],
+-[AC_CACHE_CHECK([for Berkeley DB library and header version match], [ol_cv_berkeley_db_version], [
+- ol_LIBS="$LIBS"
+- LIBS="$LTHREAD_LIBS $LIBS"
+- if test $ol_cv_lib_db != yes ; then
+- LIBS="$ol_cv_lib_db $LIBS"
+- fi
+-
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-#ifdef HAVE_DB_185_H
+- choke me;
+-#else
+-#include <db.h>
+-#endif
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-#ifndef NULL
+-#define NULL ((void *)0)
+-#endif
+-main()
+-{
+-#if DB_VERSION_MAJOR > 1
+- char *version;
+- int major, minor, patch;
+-
+- version = db_version( &major, &minor, &patch );
+-
+- if( major != DB_VERSION_MAJOR ||
+- minor != DB_VERSION_MINOR ||
+- patch != DB_VERSION_PATCH )
+- {
+- printf("Berkeley DB version mismatch\n"
+- "\theader: %s\n\tlibrary: %s\n",
+- DB_VERSION_STRING, version);
+- return 1;
+- }
+-#endif
+-
+- return 0;
+-}]])],[ol_cv_berkeley_db_version=yes],[ol_cv_berkeley_db_version=no],[ol_cv_berkeley_db_version=cross])
+-
+- LIBS="$ol_LIBS"
+ ])
+
+- if test $ol_cv_berkeley_db_version = no ; then
+- AC_MSG_ERROR([Berkeley DB version mismatch])
+- fi
+-])dnl
+-dnl
+ dnl --------------------------------------------------------------------
+-dnl Check if Berkeley DB supports DB_THREAD
+-AC_DEFUN([OL_BERKELEY_DB_THREAD],
+-[AC_CACHE_CHECK([for Berkeley DB thread support], [ol_cv_berkeley_db_thread], [
+- ol_LIBS="$LIBS"
+- LIBS="$LTHREAD_LIBS $LIBS"
+- if test $ol_cv_lib_db != yes ; then
+- LIBS="$ol_cv_lib_db $LIBS"
+- fi
+-
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-#ifdef HAVE_DB_185_H
+- choke me;
+-#else
+-#include <db.h>
+-#endif
+-#ifndef NULL
+-#define NULL ((void *)0)
+-#endif
+-main()
+-{
+- int rc;
+- u_int32_t flags = DB_CREATE |
+-#ifdef DB_PRIVATE
+- DB_PRIVATE |
+-#endif
+- DB_THREAD;
+-
+-#if DB_VERSION_MAJOR > 2
+- DB_ENV *env = NULL;
+-
+- rc = db_env_create( &env, 0 );
++dnl Check for version compatility with back-mdb
++AC_DEFUN([OL_MDB_COMPAT],
++[AC_CACHE_CHECK([if LMDB version supported by MDB backends], [ol_cv_mdb_compat],[
++ AC_EGREP_CPP(__mdb_version_compat,[
++#include <lmdb.h>
+
+- flags |= DB_INIT_MPOOL;
+-#ifdef DB_MPOOL_PRIVATE
+- flags |= DB_MPOOL_PRIVATE;
++/* require 0.9.18 or later */
++#if MDB_VERSION_FULL >= 0x000000090012
++ __mdb_version_compat
+ #endif
+-
+- if( rc ) {
+- printf("BerkeleyDB: %s\n", db_strerror(rc) );
+- return rc;
+- }
+-
+-#if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
+- rc = (env->open)( env, NULL, flags, 0 );
+-#else
+- rc = (env->open)( env, NULL, NULL, flags, 0 );
+-#endif
+-
+- if ( rc == 0 ) {
+- rc = env->close( env, 0 );
+- }
+-
+- if( rc ) {
+- printf("BerkeleyDB: %s\n", db_strerror(rc) );
+- return rc;
+- }
+-
+-#else
+- DB_ENV env;
+- memset( &env, '\0', sizeof(env) );
+-
+- rc = db_appinit( NULL, NULL, &env, flags );
+-
+- if( rc == 0 ) {
+- db_appexit( &env );
+- }
+-
+- unlink("__db_mpool.share");
+- unlink("__db_lock.share");
+-#endif
+-
+- return rc;
+-}]])],[ol_cv_berkeley_db_thread=yes],[ol_cv_berkeley_db_thread=no],[ol_cv_berkeley_db_thread=cross])
+-
+- LIBS="$ol_LIBS"
++ ], [ol_cv_mdb_compat=yes], [ol_cv_mdb_compat=no])])
+ ])
+
+- if test $ol_cv_berkeley_db_thread != no ; then
+- AC_DEFINE([HAVE_BERKELEY_DB_THREAD], [1],
+- [define if Berkeley DB has DB_THREAD support])
+- fi
+-])dnl
+ dnl
+ dnl --------------------------------------------------------------------
+-dnl Find any DB
+-AC_DEFUN([OL_BERKELEY_DB],
+-[ol_cv_berkeley_db=no
+-AC_CHECK_HEADERS(db.h)
+-if test $ac_cv_header_db_h = yes; then
+- OL_BDB_HEADER_VERSION
+- OL_BDB_COMPAT
+-
+- if test $ol_cv_bdb_compat != yes ; then
+- AC_MSG_ERROR([BerkeleyDB version incompatible with BDB/HDB backends])
++dnl Find any MDB
++AC_DEFUN([OL_MDB],
++[ol_cv_mdb=no
++AC_CHECK_HEADERS(lmdb.h)
++if test $ac_cv_header_lmdb_h = yes; then
++ OL_MDB_COMPAT
++
++ if test $ol_cv_mdb_compat != yes ; then
++ AC_MSG_ERROR([LMDB version incompatible with MDB backends])
+ fi
+
+- OL_BERKELEY_DB_LINK
+- if test "$ol_cv_lib_db" != no ; then
+- ol_cv_berkeley_db=yes
+- OL_BERKELEY_DB_VERSION
+- OL_BERKELEY_DB_THREAD
+- fi
++ ol_cv_lib_mdb=-llmdb
++ ol_cv_mdb=yes
+ fi
+ ])
+-dnl --------------------------------------------------------------------
+-dnl Check for version compatility with back-bdb
+-AC_DEFUN([OL_BDB_COMPAT],
+-[AC_CACHE_CHECK([if Berkeley DB version supported by BDB/HDB backends], [ol_cv_bdb_compat],[
+- AC_EGREP_CPP(__db_version_compat,[
+-#include <db.h>
+-
+- /* this check could be improved */
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-#ifndef DB_VERSION_MINOR
+-# define DB_VERSION_MINOR 0
+-#endif
+-
+-#define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
+
+-/* require 4.4 or later */
+-#if DB_VERSION_MM >= 0x0404
+- __db_version_compat
+-#endif
+- ], [ol_cv_bdb_compat=yes], [ol_cv_bdb_compat=no])])
+-])
+
+ dnl
+ dnl ====================================================================
+@@ -664,12 +392,10 @@ AC_DEFUN([OL_PTHREAD_TEST_FUNCTION],[[
+ return 0;
+ ]])
+
+-AC_DEFUN([OL_PTHREAD_TEST_PROGRAM], [
+-AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
++AC_DEFUN([OL_PTHREAD_TEST_PROGRAM],
++[AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
+
+-int main(argc, argv)
+- int argc;
+- char **argv;
++int main(int argc, char **argv)
+ {
+ OL_PTHREAD_TEST_FUNCTION
+ }
+@@ -706,7 +432,7 @@ dnl Check GNU Pth pthread Header
+ dnl
+ dnl defines ol_cv_header linux_threads to 'yes' or 'no'
+ dnl 'no' implies pthreads.h is not LinuxThreads or pthreads.h
+-dnl doesn't exists. Existance of pthread.h should separately
++dnl doesn't exist. Existence of pthread.h should separately
+ dnl checked.
+ dnl
+ AC_DEFUN([OL_HEADER_GNU_PTH_PTHREAD_H], [
+@@ -728,7 +454,7 @@ AC_DEFUN([OL_NT_THREADS], [
+ AC_CHECK_FUNC(_beginthread)
+
+ if test $ac_cv_func__beginthread = yes ; then
+- AC_DEFINE([HAVE_NT_THREADS], [1], [if you have NT Threads])
++ AC_DEFINE(HAVE_NT_THREADS,1,[if you have NT Threads])
+ ol_cv_nt_threads=yes
+ fi
+ ])
+@@ -737,7 +463,7 @@ dnl Check LinuxThreads Header
+ dnl
+ dnl defines ol_cv_header linux_threads to 'yes' or 'no'
+ dnl 'no' implies pthreads.h is not LinuxThreads or pthreads.h
+-dnl doesn't exists. Existance of pthread.h should separately
++dnl doesn't exist. Existence of pthread.h should separately
+ dnl checked.
+ dnl
+ AC_DEFUN([OL_HEADER_LINUX_THREADS], [
+@@ -749,7 +475,7 @@ AC_DEFUN([OL_HEADER_LINUX_THREADS], [
+ [ol_cv_header_linux_threads=no])
+ ])
+ if test $ol_cv_header_linux_threads = yes; then
+- AC_DEFINE([HAVE_LINUX_THREADS], [1], [if you have LinuxThreads])
++ AC_DEFINE(HAVE_LINUX_THREADS,1,[if you have LinuxThreads])
+ fi
+ ])dnl
+ dnl --------------------------------------------------------------------
+@@ -791,7 +517,7 @@ AC_CACHE_CHECK([for compatible POSIX regex],ol_cv_c_posix_regex,[
+ #include <sys/types.h>
+ #include <regex.h>
+ static char *pattern, *string;
+-main()
++int main(void)
+ {
+ int rc;
+ regex_t re;
+@@ -818,7 +544,8 @@ AC_DEFUN([OL_C_UPPER_LOWER],
+ [AC_CACHE_CHECK([if toupper() requires islower()],ol_cv_c_upper_lower,[
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+ #include <ctype.h>
+-main()
++#include <stdlib.h>
++int main(void)
+ {
+ if ('C' == toupper('C'))
+ exit(0);
+@@ -826,7 +553,7 @@ main()
+ exit(1);
+ }]])],[ol_cv_c_upper_lower=no],[ol_cv_c_upper_lower=yes],[ol_cv_c_upper_lower=safe])])
+ if test $ol_cv_c_upper_lower != no ; then
+- AC_DEFINE([C_UPPER_LOWER], [1], [define if toupper() requires islower()])
++ AC_DEFINE(C_UPPER_LOWER,1, [define if toupper() requires islower()])
+ fi
+ ])
+ dnl
+@@ -837,29 +564,32 @@ dnl Check for declaration of sys_errlist in one of stdio.h and errno.h.
+ dnl Declaration of sys_errlist on BSD4.4 interferes with our declaration.
+ dnl Reported by Keith Bostic.
+ AC_DEFUN([OL_SYS_ERRLIST],
+-[AC_CACHE_CHECK([declaration of sys_errlist],ol_cv_dcl_sys_errlist,[
+- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
++[AC_CACHE_CHECK([existence of sys_errlist],ol_cv_have_sys_errlist,[
++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[char *c = (char *) *sys_errlist]])],[ol_cv_have_sys_errlist=yes],[ol_cv_have_sys_errlist=no])])
++if test $ol_cv_have_sys_errlist = yes ; then
++ AC_DEFINE(HAVE_SYS_ERRLIST,1,
++ [define if you actually have sys_errlist in your libs])
++ AC_CACHE_CHECK([declaration of sys_errlist],ol_cv_dcl_sys_errlist,[
++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <errno.h>
+ #ifdef _WIN32
+ #include <stdlib.h>
+-#endif ]], [[char *c = (char *) *sys_errlist]])],[ol_cv_dcl_sys_errlist=yes
+- ol_cv_have_sys_errlist=yes],[ol_cv_dcl_sys_errlist=no])])
++#endif ]], [[char *c = (char *) *sys_errlist]])],[ol_cv_dcl_sys_errlist=yes],
++ [ol_cv_dcl_sys_errlist=no])])
+ #
+-# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
+-if test $ol_cv_dcl_sys_errlist = no ; then
+- AC_DEFINE([DECL_SYS_ERRLIST], [1],
+- [define if sys_errlist is not declared in stdio.h or errno.h])
+-
+- AC_CACHE_CHECK([existence of sys_errlist],ol_cv_have_sys_errlist,[
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[char *c = (char *) *sys_errlist]])],[ol_cv_have_sys_errlist=yes],[ol_cv_have_sys_errlist=no])])
+-fi
+-if test $ol_cv_have_sys_errlist = yes ; then
+- AC_DEFINE([HAVE_SYS_ERRLIST], [1],
+- [define if you actually have sys_errlist in your libs])
++ # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
++ if test $ol_cv_dcl_sys_errlist = no ; then
++ AC_DEFINE(DECL_SYS_ERRLIST,1,
++ [define if sys_errlist is not declared in stdio.h or errno.h])
++ fi
+ fi
+ ])dnl
++dnl
++dnl ====================================================================
++dnl glibc supplies a non-standard strerror_r if _GNU_SOURCE is defined.
++dnl It's actually preferable to the POSIX version, if available.
+ AC_DEFUN([OL_NONPOSIX_STRERROR_R],
+ [AC_CACHE_CHECK([non-posix strerror_r],ol_cv_nonposix_strerror_r,[
+ AC_EGREP_CPP(strerror_r,[#include <string.h>],
+@@ -873,24 +603,23 @@ AC_DEFUN([OL_NONPOSIX_STRERROR_R],
+ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no])
+ else
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+- main() {
++ int main(void) {
+ char buf[100];
+ buf[0] = 0;
+ strerror_r( 1, buf, sizeof buf );
+ exit( buf[0] == 0 );
+ }
+- ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror=no],[ol_cv_nonposix_strerror=no])
++ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no],[ol_cv_nonposix_strerror_r=no])
+ fi
+ ])
+ if test $ol_cv_nonposix_strerror_r = yes ; then
+- AC_DEFINE([HAVE_NONPOSIX_STRERROR_R], [1],
++ AC_DEFINE(HAVE_NONPOSIX_STRERROR_R,1,
+ [define if strerror_r returns char* instead of int])
+ fi
+ ])dnl
+ dnl
+ AC_DEFUN([OL_STRERROR],
+-[OL_SYS_ERRLIST dnl TEMPORARY
+-AC_CHECK_FUNCS(strerror strerror_r)
++[AC_CHECK_FUNCS(strerror strerror_r)
+ ol_cv_func_strerror_r=no
+ if test "${ac_cv_func_strerror_r}" = yes ; then
+ OL_NONPOSIX_STRERROR_R
+@@ -910,7 +639,7 @@ AC_DEFUN([OL_C_VOLATILE],
+ if test $ol_cv_c_volatile = yes; then
+ :
+ else
+- AC_DEFINE([volatile], [], [define as empty if volatile is not supported])
++ AC_DEFINE(volatile,,[define as empty if volatile is not supported])
+ fi
+ ])dnl
+ dnl
+@@ -918,7 +647,7 @@ dnl ====================================================================
+ dnl Look for fetch(3)
+ AC_DEFUN([OL_LIB_FETCH],
+ [ol_LIBS=$LIBS
+-LIBS="-lfetch -lcom_err $LIBS"
++LIBS="-lfetch $LIBS"
+ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #ifdef HAVE_SYS_PARAM_H
+@@ -928,8 +657,8 @@ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
+ #include <fetch.h>]], [[struct url *u = fetchParseURL("file:///"); ]])],[ol_cv_lib_fetch=yes],[ol_cv_lib_fetch=no])])
+ LIBS=$ol_LIBS
+ if test $ol_cv_lib_fetch != no ; then
+- ol_link_fetch="-lfetch -lcom_err"
+- AC_DEFINE([HAVE_FETCH], [1],
++ ol_link_fetch="-lfetch"
++ AC_DEFINE(HAVE_FETCH,1,
+ [define if you actually have FreeBSD fetch(3)])
+ fi
+ ])dnl
+@@ -1094,7 +823,7 @@ AC_DEFUN([OL_FUNC_GETHOSTBYADDR_R_NARGS],
+ ])dnl
+ dnl
+ dnl --------------------------------------------------------------------
+-dnl Check for Cyrus SASL version compatility
++dnl Check for Cyrus SASL version compatibility
+ AC_DEFUN([OL_SASL_COMPAT],
+ [AC_CACHE_CHECK([Cyrus SASL library version], [ol_cv_sasl_compat],[
+ AC_EGREP_CPP(__sasl_compat,[
+@@ -1113,19 +842,3 @@ AC_DEFUN([OL_SASL_COMPAT],
+ #endif
+ ], [ol_cv_sasl_compat=yes], [ol_cv_sasl_compat=no])])
+ ])
+-dnl ====================================================================
+-dnl check for SSL compatibility
+-AC_DEFUN([OL_SSL_COMPAT],
+-[AC_CACHE_CHECK([OpenSSL library version (CRL checking capability)],
+- [ol_cv_ssl_crl_compat],[
+- AC_EGREP_CPP(__ssl_compat,[
+-#ifdef HAVE_OPENSSL_SSL_H
+-#include <openssl/ssl.h>
+-#endif
+-
+-/* Require 0.9.7d+ */
+-#if OPENSSL_VERSION_NUMBER >= 0x0090704fL
+- char *__ssl_compat = "0.9.7d";
+-#endif
+- ], [ol_cv_ssl_crl_compat=yes], [ol_cv_ssl_crl_compat=no])])
+-])
+--
+2.38.1
+
diff --git a/srcpkgs/ntp/template b/srcpkgs/ntp/template
index e190300a74a3a7..c7030f9b7f9d0d 100644
--- a/srcpkgs/ntp/template
+++ b/srcpkgs/ntp/template
@@ -5,7 +5,7 @@ revision=7
build_style=gnu-configure
configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --enable-ntp-signd
--enable-all-clocks ol_cv_pthread_select_yields=yes"
-hostmakedepends="pkg-config bison perl"
+hostmakedepends="pkg-config autoconf automake libtool bison perl"
makedepends="libedit-devel openssl-devel libcap-devel libevent-devel pps-tools-devel"
short_desc="Network Time Protocol daemon and utilities"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -28,6 +28,10 @@ post_extract() {
sed -i 's/linux/GLIBC/g' ntpd/ntpd.c
}
+pre_configure() {
+ autoreconf -fi
+}
+
post_install() {
# Rename files for alternatives.
vmkdir usr/share/man/man8
From b9905d2e428e7384a390b01a739dfd92f49b6edc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:57:58 -0800
Subject: [PATCH 11/40] nvi: fix build with gcc14
---
srcpkgs/nvi/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/nvi/template b/srcpkgs/nvi/template
index 8a43e9f7a601b5..3923150ff5a1a6 100644
--- a/srcpkgs/nvi/template
+++ b/srcpkgs/nvi/template
@@ -22,6 +22,8 @@ alternatives="
vi:view.1:/usr/share/man/man1/nview.1
"
+CFLAGS="-fpermissive"
+
post_extract() {
chmod +w $wrksrc/common/options_def.h
}
From f7b851b445e028bab3a0d5266a1de87e4bb8391c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 21:19:48 -0800
Subject: [PATCH 12/40] libsasl: fix build for gcc14
---
srcpkgs/libsasl/patches/gcc14.patch | 70 +++++++++++++++++++++++++++++
1 file changed, 70 insertions(+)
create mode 100644 srcpkgs/libsasl/patches/gcc14.patch
diff --git a/srcpkgs/libsasl/patches/gcc14.patch b/srcpkgs/libsasl/patches/gcc14.patch
new file mode 100644
index 00000000000000..bdaade22f1c903
--- /dev/null
+++ b/srcpkgs/libsasl/patches/gcc14.patch
@@ -0,0 +1,70 @@
+diff -rup digestmd5.c.orig digestmd5.c
+--- a/plugins/digestmd5.c
++++ b/plugins/digestmd5.c
+@@ -86,6 +86,8 @@
+ # include <netinet/in.h>
+ #endif /* WIN32 */
+
++#include <time.h>
++
+ #include <sasl.h>
+ #include <saslplug.h>
+
+
+From 266f0acf7f5e029afbb3e263437039e50cd6c262 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Wed, 23 Feb 2022 00:45:15 +0000
+Subject: [PATCH] Fix <time.h> check
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+We're conditionally including based on HAVE_TIME_H in a bunch of places,
+but we're not actually checking for time.h, so that's never going to be defined.
+
+While at it, add in a missing include in the cram plugin.
+
+This fixes a bunch of implicit declaration warnings:
+```
+ * cyrus-sasl-2.1.28/lib/saslutil.c:280:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:364:41: warning: implicit declaration of function ‘clock’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/plugins/cram.c:132:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:280:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:364:41: warning: implicit declaration of function ‘clock’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/plugins/cram.c:132:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+```
+
+Signed-off-by: Sam James <sam@gentoo.org>
+---
+ configure.ac | 2 +-
+ plugins/cram.c | 4 ++++
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index e1bf53b6..ad781830 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1290,7 +1290,7 @@ AC_CHECK_HEADERS_ONCE([sys/time.h])
+
+ AC_HEADER_DIRENT
+ AC_HEADER_SYS_WAIT
+-AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
++AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h time.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
+
+ IPv6_CHECK_SS_FAMILY()
+ IPv6_CHECK_SA_LEN()
+diff --git a/plugins/cram.c b/plugins/cram.c
+index d02e9baa..695aaa91 100644
+--- a/plugins/cram.c
++++ b/plugins/cram.c
+@@ -53,6 +53,10 @@
+ #endif
+ #include <fcntl.h>
+
++#ifdef HAVE_TIME_H
++#include <time.h>
++#endif
++
+ #include <sasl.h>
+ #include <saslplug.h>
+ #include <saslutil.h>
From cf615cadf474379aaed9a1006cd2fa611c3c343a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 21:37:47 -0800
Subject: [PATCH 13/40] xbps: fix build with gcc14
---
srcpkgs/xbps/patches/fix-transposed-calloc.patch | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 srcpkgs/xbps/patches/fix-transposed-calloc.patch
diff --git a/srcpkgs/xbps/patches/fix-transposed-calloc.patch b/srcpkgs/xbps/patches/fix-transposed-calloc.patch
new file mode 100644
index 00000000000000..67341372dab79a
--- /dev/null
+++ b/srcpkgs/xbps/patches/fix-transposed-calloc.patch
@@ -0,0 +1,13 @@
+diff --git a/bin/xbps-fbulk/main.c b/bin/xbps-fbulk/main.c
+index 6591bb61..4408bf20 100644
+--- a/bin/xbps-fbulk/main.c
++++ b/bin/xbps-fbulk/main.c
+@@ -397,7 +397,7 @@ runBuilds(const char *bpath)
+ static void
+ addDepn(struct item *item, struct item *xitem)
+ {
+- struct depn *depn = calloc(sizeof(*depn), 1);
++ struct depn *depn = calloc(1, sizeof(*depn));
+ char *logpath3;
+ FILE *fp;
+
From 730a64ec7ac2d0f77fefe268a8011112ec0f19d5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 14/40] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From 736a38bbc6a5d93af0373af054e98cb86d6b3584 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 15/40] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..917e16f2caf575 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 08bb965ef08205c472335e9d4b044641403b3a18 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 16/40] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 074001d0288098..20d5cb03ef9ebd 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From ccab3f7eda99f46afc6334c7896861ce7b1578d6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 17/40] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..13adcec7be0c00 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From da24a1d4ab7409bd2038b04434dd913b5e06bf8d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 18/40] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..d31ad31490d210 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From b68e1fa2876f492d8aba04c09208fc30d8d16621 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 19/40] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 79801b4d7b0255..52772d1b48d342 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -25,7 +25,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 7cfb3ab60de920ea9ed7cdeb75c23c3a317f17a9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:21 -0700
Subject: [PATCH 20/40] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index 87629a415a1352..12a98a66ff56ac 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -25,7 +25,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 8e9bbe166c61eeef2a81c004449d192420766911 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 21/40] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..3c1a0dea67e400 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 45166f9e51e3c8f8b2b2f025d4bad0e5ecbbfa28 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 22/40] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index b08278c7207386..833efee5bad842 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 44d8040a1d7008f6b988d6ccb2c8ee97aba8021e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 23/40] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index d37bb61b0e5a08..300211f6c931d8 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -23,7 +23,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From bad1d01c6c5598f0b874659cb1e82564cd8ee552 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 24/40] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..ce0ab0e1744887 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,7 +20,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f85a34928ed92ba02e66285dc2a810ca844526ed Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 25/40] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index bfb9d16a1be021..9ebeb0e87ef1d8 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From e8dece204f7a604d6dd1dbfd859b0826306f7968 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 26/40] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 6ca7fc6274d4db..62535238b3bccc 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 89a3b26777c998966ff5f1a147a1d4fbd6e2d8d1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 27/40] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 1ed2f94ad10d43..d72be3de81ad32 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From c78f838882ceaabdd882b6220558dacd057ecbed Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 28/40] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index fc8f1294f6a017..b32888584d2306 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 76e7475298dbe807d4d6ccf540873ac1cf98ddb0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 29/40] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..0b6209edb37c75 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From c69d2fafa270e9a005f654ed52182fbcb9a84b40 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 30/40] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52844bf5512cca..0d114cc9993440 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 2f9d9e8b434cda1aa003c0496056322f45c6164a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 31/40] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..eda2f7ee9be0c1 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 5f22535dec2b3cb0f2555a9287714f384dc572ac Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 32/40] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 02fe3f55f82c65..a6704808ed177b 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -26,7 +26,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 81d324c25f39f6407b329cd4016b1ff42bf54dfa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:22 -0700
Subject: [PATCH 33/40] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..3a6c80b1bc1cd4 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -22,7 +22,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From c660295925aab86eec425020e857b93c9fefd107 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 34/40] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index 9cc49d05a23398..d0aadb435e0d18 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -26,7 +26,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 3045bc67ba4a90030e1e1324b7b0cc5246d6a09f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 35/40] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..0066d33e6ffd40 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 03a8ef07eeee6c51b584f22fe43a530961277334 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 36/40] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index 15615e6d7f98d7..59bdf11c55729e 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -23,7 +23,7 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From a32e906610b8567a94d3f587c04b28f3636588d2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 37/40] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..40168cfe9d92f1 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,7 +21,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 9ee514bc73bc734f07d8b823cbba0847f2c174db Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 38/40] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index c3ade518330dcb..e4e67b1c5b5136 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -24,7 +24,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 90de3f829665520bc7dfc1972ef0197f3247dfb6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 39/40] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..54b219feec1540 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_glibc_version=2.39
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,7 +20,7 @@ distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From d9f9a37acddd7f0e773052308a115a432204e129 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:07:23 -0700
Subject: [PATCH 40/40] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 0ba8decce2aeb1..5d8153ce22f980 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
_binutils_version=2.41
-_gcc_version=13.2.0
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -23,7 +23,7 @@ distfiles="
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (17 preceding siblings ...)
2024-12-14 5:40 ` oreo639
@ 2025-01-31 4:38 ` Vinfall
2025-02-12 17:18 ` leahneukirchen
` (44 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: Vinfall @ 2025-01-31 4:38 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 209 bytes --]
New comment by Vinfall on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2626282092
Comment:
Off-topic: quite surprising that Void still does not have gcc-14 :(
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (18 preceding siblings ...)
2025-01-31 4:38 ` Vinfall
@ 2025-02-12 17:18 ` leahneukirchen
2025-02-17 23:08 ` MouadCharradi
` (43 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: leahneukirchen @ 2025-02-12 17:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 194 bytes --]
New comment by leahneukirchen on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2654373754
Comment:
Should we go for glibc 2.41 at the same time?
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (19 preceding siblings ...)
2025-02-12 17:18 ` leahneukirchen
@ 2025-02-17 23:08 ` MouadCharradi
2025-02-17 23:08 ` MouadCharradi
` (42 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: MouadCharradi @ 2025-02-17 23:08 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 244 bytes --]
New comment by MouadCharradi on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2664206249
Comment:
With `runit-2.2.0` update has been merged.
When do you think it's a good time to merge this PR?
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (20 preceding siblings ...)
2025-02-17 23:08 ` MouadCharradi
@ 2025-02-17 23:08 ` MouadCharradi
2025-02-18 2:30 ` oreo639
` (41 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: MouadCharradi @ 2025-02-17 23:08 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 241 bytes --]
New comment by MouadCharradi on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2664206249
Comment:
With `runit-2.2.0` update being merged.
When do you think it's a good time to merge this PR?
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (21 preceding siblings ...)
2025-02-17 23:08 ` MouadCharradi
@ 2025-02-18 2:30 ` oreo639
2025-02-18 2:30 ` oreo639
` (40 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-02-18 2:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 330 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2664467706
Comment:
I got busy and never completed testing everything I wanted (just base-system on x86_64-glibc). I will start testing again after I finish the GNOME 47 stuff and update the list accordingly.
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (22 preceding siblings ...)
2025-02-18 2:30 ` oreo639
@ 2025-02-18 2:30 ` oreo639
2025-02-25 7:39 ` [PR PATCH] [Updated] " oreo639
` (39 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-02-18 2:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 344 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2664467706
Comment:
I got busy and never completed testing everything (just the base-system packages with `-N` on x86_64-glibc). I will start testing again after I finish the GNOME 47 stuff and update the list accordingly.
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (23 preceding siblings ...)
2025-02-18 2:30 ` oreo639
@ 2025-02-25 7:39 ` oreo639
2025-03-03 20:23 ` oreo639
` (38 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-02-25 7:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2896 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp
- [x] libsasl
- [x] nvi (done in this pr)
- [x] xbps
- [x] db (done in this pr)
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration (good) instead of segfaulting later due to implicit pointer truncation.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, feel free to test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 153167 bytes --]
From e803f5ec1e5e19f198760a3600ea4cb37ebcbd96 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/40] binutils: update to 2.44.
---
srcpkgs/binutils/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..e10403f1ed7ae7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From 2d225f87e0e7b401142f955db5d34e8143df25d1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/40] gcc: update to 14.2.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 6 +-
6 files changed, 6 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 659e4a45db77a8..83c8ce28812671 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.38 perl-5.38.0_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..940990a02b63dd 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
From c6528d17c683cdd95f21dbe04877c4521184c54c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 03/40] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
6 files changed, 3 insertions(+), 973 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From bfb74c1c033e5a6226ff84e76e5048ecbd07296f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 04/40] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
1 file changed, 55 insertions(+)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
From c1b8bb83f85f74b8271d342eb8806ef90c038b34 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 05/40] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From ae2eafdd17414a6aa6a0f34a09169c9108daa9b7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 06/40] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From ccc38524329df3e1a4a70f40ff892d9770522c96 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 07/40] gcc-multilib: update to 14.2.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From 52663ade00174bb41b671fa1e7901085a8c01439 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 08/40] libgccjit: update to 14.2.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From 5b2d0ea9cac9391363413e1c0adf75222e9b650a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 09/40] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From 4252ba168403d19aab79716fff91059a3cf9d786 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:56:36 -0800
Subject: [PATCH 10/40] ntp: fix build with gcc14
---
srcpkgs/ntp/patches/gcc14.patch | 612 ++++++++++++++++++++++++++++++++
srcpkgs/ntp/template | 6 +-
2 files changed, 617 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/ntp/patches/gcc14.patch
diff --git a/srcpkgs/ntp/patches/gcc14.patch b/srcpkgs/ntp/patches/gcc14.patch
new file mode 100644
index 00000000000000..925543ee1fe669
--- /dev/null
+++ b/srcpkgs/ntp/patches/gcc14.patch
@@ -0,0 +1,612 @@
+Source: https://gitweb.gentoo.org/repo/gentoo.git/plain/net-misc/ntp/files/ntp-4.2.8_p15-configure-clang16.patch?id=9cc28f1d1f1f13da5537fe125931bd4b1fef97cf
+
+Sync with OpenLDAP. Uses Arsen's patch from https://bugs.gentoo.org/871288.
+
+https://bugs.gentoo.org/871372
+--- a/sntp/m4/openldap-thread-check.m4
++++ b/sntp/m4/openldap-thread-check.m4
+@@ -262,10 +262,8 @@ pthread_rwlock_t rwlock;
+ dnl save the flags
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #include <pthread.h>
+-#ifndef NULL
+-#define NULL (void*)0
+-#endif
+-]], [[pthread_detach(NULL);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
++pthread_t thread;
++]], [[pthread_detach(thread);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
+ ])
+
+ if test $ol_cv_func_pthread_detach = no ; then
+--- a/sntp/m4/openldap.m4
++++ b/sntp/m4/openldap.m4
+@@ -1,16 +1,16 @@
+ dnl OpenLDAP Autoconf Macros
+-dnl $OpenLDAP: pkg/ldap/build/openldap.m4,v 1.157.2.10 2010/04/13 20:22:21 kurt Exp $
++dnl $OpenLDAP$
+ dnl This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ dnl
+-dnl Copyright 1998-2010 The OpenLDAP Foundation.
++dnl Copyright 1998-2022 The OpenLDAP Foundation.
+ dnl All rights reserved.
+ dnl
+ dnl Redistribution and use in source and binary forms, with or without
+ dnl modification, are permitted only as authorized by the OpenLDAP
+ dnl Public License.
+ dnl
+-dnl A copy of this license is available in the file LICENSE-OPENLDAP in
+-dnl this directory of the distribution or, alternatively, at
++dnl A copy of this license is available in the file LICENSE in the
++dnl top-level directory of the distribution or, alternatively, at
+ dnl <http://www.OpenLDAP.org/license.html>.
+ dnl
+ dnl --------------------------------------------------------------------
+@@ -154,6 +154,7 @@ fi
+ if test $ol_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <ctype.h>
++#include <stdlib.h>
+ #ifndef HAVE_EBCDIC
+ # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+ # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+@@ -170,7 +171,7 @@ exit (0); }
+ ]])],[],[ol_cv_header_stdc=no],[:])
+ fi])
+ if test $ol_cv_header_stdc = yes; then
+- AC_DEFINE([STDC_HEADERS], [1], [is standard C provided?])
++ AC_DEFINE(STDC_HEADERS)
+ fi
+ ac_cv_header_stdc=disable
+ ])
+@@ -242,313 +243,40 @@ AC_DEFUN([OL_RESOLVER_LINK],
+ OL_RESOLVER_TRY(ol_cv_resolver_none)
+ OL_RESOLVER_TRY(ol_cv_resolver_resolv,[-lresolv])
+ OL_RESOLVER_TRY(ol_cv_resolver_bind,[-lbind])
+-])
+-dnl
+-dnl ====================================================================
+-dnl International Components for Unicode (ICU)
+-AC_DEFUN([OL_ICU],
+-[ol_icu=no
+-AC_CHECK_HEADERS( unicode/utypes.h )
+-if test $ac_cv_header_unicode_utypes_h = yes ; then
+- dnl OL_ICULIBS="-licui18n -licuuc -licudata"
+- OL_ICULIBS="-licuuc -licudata"
+-
+- AC_CACHE_CHECK([for ICU libraries], [ol_cv_lib_icu], [
+- ol_LIBS="$LIBS"
+- LIBS="$OL_ICULIBS $LIBS"
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+-#include <unicode/utypes.h>
+-]], [[
+-(void) u_errorName(0);
+-]])],[ol_cv_lib_icu=yes],[ol_cv_lib_icu=no])
+- LIBS="$ol_LIBS"
+-])
+-
+- if test $ol_cv_lib_icu != no ; then
+- ol_icu="$OL_ICULIBS"
+- AC_DEFINE([HAVE_ICU], [1], [define if you actually have ICU])
+- fi
+-fi
+-])
+-dnl
+-dnl ====================================================================
+-dnl Berkeley DB macros
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Try to link
+-AC_DEFUN([OL_BERKELEY_DB_TRY],
+-[if test $ol_cv_lib_db = no ; then
+- AC_CACHE_CHECK([for Berkeley DB link (]ifelse($2,,default,$2)[)],[$1],
+-[
+- ol_DB_LIB=ifelse($2,,,$2)
+- ol_LIBS=$LIBS
+- LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
+-
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+-#ifdef HAVE_DB_185_H
+-# include <db_185.h>
+-#else
+-# include <db.h>
+-#endif
+-
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-
+-#ifndef NULL
+-#define NULL ((void*)0)
+-#endif
+-]], [[
+-#if DB_VERSION_MAJOR > 2
+- db_env_create( NULL, 0 );
+-#elif DB_VERSION_MAJOR > 1
+- db_appexit( NULL );
+-#else
+- (void) dbopen( NULL, 0, 0, 0, NULL);
+-#endif
+-]])],[$1=yes],[$1=no])
+-
+- LIBS="$ol_LIBS"
+-])
+-
+- if test $$1 = yes ; then
+- ol_cv_lib_db=ifelse($2,,yes,$2)
+- fi
+-fi
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Get major and minor version from <db.h>
+-AC_DEFUN([OL_BDB_HEADER_VERSION],
+-[AC_CACHE_CHECK([for Berkeley DB major version in db.h], [ol_cv_bdb_major],[
+- AC_LANG_CONFTEST([
+-#include <db.h>
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-__db_version DB_VERSION_MAJOR
+-])
+- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
+- ol_cv_bdb_major=${3}
+-])
+-case $ol_cv_bdb_major in [[1-9]]*) : ;; *)
+- AC_MSG_ERROR([Unknown Berkeley DB major version in db.h]) ;;
+-esac
+-
+-dnl Determine minor version
+-AC_CACHE_CHECK([for Berkeley DB minor version in db.h], [ol_cv_bdb_minor],[
+- AC_LANG_CONFTEST([
+-#include <db.h>
+-#ifndef DB_VERSION_MINOR
+-# define DB_VERSION_MINOR 0
+-#endif
+-__db_version DB_VERSION_MINOR
+-])
+- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
+- ol_cv_bdb_minor=${3}
+-])
+-case $ol_cv_bdb_minor in [[0-9]]*) : ;; *)
+- AC_MSG_ERROR([Unknown Berkeley DB minor version in db.h]) ;;
+-esac
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Try to locate appropriate library
+-AC_DEFUN([OL_BERKELEY_DB_LINK],
+-[ol_cv_lib_db=no
+-
+-if test $ol_cv_bdb_major = 4 ; then
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4_dot_m,[-ldb-4.$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db4m,[-ldb4$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4m,[-ldb-4$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4_m,[-ldb-4-$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4,[-ldb-4])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db4,[-ldb4])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db,[-ldb])
+-fi
+-OL_BERKELEY_DB_TRY(ol_cv_db_none)
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Check if Berkeley DB version
+-AC_DEFUN([OL_BERKELEY_DB_VERSION],
+-[AC_CACHE_CHECK([for Berkeley DB library and header version match], [ol_cv_berkeley_db_version], [
+- ol_LIBS="$LIBS"
+- LIBS="$LTHREAD_LIBS $LIBS"
+- if test $ol_cv_lib_db != yes ; then
+- LIBS="$ol_cv_lib_db $LIBS"
+- fi
+-
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-#ifdef HAVE_DB_185_H
+- choke me;
+-#else
+-#include <db.h>
+-#endif
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-#ifndef NULL
+-#define NULL ((void *)0)
+-#endif
+-main()
+-{
+-#if DB_VERSION_MAJOR > 1
+- char *version;
+- int major, minor, patch;
+-
+- version = db_version( &major, &minor, &patch );
+-
+- if( major != DB_VERSION_MAJOR ||
+- minor != DB_VERSION_MINOR ||
+- patch != DB_VERSION_PATCH )
+- {
+- printf("Berkeley DB version mismatch\n"
+- "\theader: %s\n\tlibrary: %s\n",
+- DB_VERSION_STRING, version);
+- return 1;
+- }
+-#endif
+-
+- return 0;
+-}]])],[ol_cv_berkeley_db_version=yes],[ol_cv_berkeley_db_version=no],[ol_cv_berkeley_db_version=cross])
+-
+- LIBS="$ol_LIBS"
+ ])
+
+- if test $ol_cv_berkeley_db_version = no ; then
+- AC_MSG_ERROR([Berkeley DB version mismatch])
+- fi
+-])dnl
+-dnl
+ dnl --------------------------------------------------------------------
+-dnl Check if Berkeley DB supports DB_THREAD
+-AC_DEFUN([OL_BERKELEY_DB_THREAD],
+-[AC_CACHE_CHECK([for Berkeley DB thread support], [ol_cv_berkeley_db_thread], [
+- ol_LIBS="$LIBS"
+- LIBS="$LTHREAD_LIBS $LIBS"
+- if test $ol_cv_lib_db != yes ; then
+- LIBS="$ol_cv_lib_db $LIBS"
+- fi
+-
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-#ifdef HAVE_DB_185_H
+- choke me;
+-#else
+-#include <db.h>
+-#endif
+-#ifndef NULL
+-#define NULL ((void *)0)
+-#endif
+-main()
+-{
+- int rc;
+- u_int32_t flags = DB_CREATE |
+-#ifdef DB_PRIVATE
+- DB_PRIVATE |
+-#endif
+- DB_THREAD;
+-
+-#if DB_VERSION_MAJOR > 2
+- DB_ENV *env = NULL;
+-
+- rc = db_env_create( &env, 0 );
++dnl Check for version compatility with back-mdb
++AC_DEFUN([OL_MDB_COMPAT],
++[AC_CACHE_CHECK([if LMDB version supported by MDB backends], [ol_cv_mdb_compat],[
++ AC_EGREP_CPP(__mdb_version_compat,[
++#include <lmdb.h>
+
+- flags |= DB_INIT_MPOOL;
+-#ifdef DB_MPOOL_PRIVATE
+- flags |= DB_MPOOL_PRIVATE;
++/* require 0.9.18 or later */
++#if MDB_VERSION_FULL >= 0x000000090012
++ __mdb_version_compat
+ #endif
+-
+- if( rc ) {
+- printf("BerkeleyDB: %s\n", db_strerror(rc) );
+- return rc;
+- }
+-
+-#if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
+- rc = (env->open)( env, NULL, flags, 0 );
+-#else
+- rc = (env->open)( env, NULL, NULL, flags, 0 );
+-#endif
+-
+- if ( rc == 0 ) {
+- rc = env->close( env, 0 );
+- }
+-
+- if( rc ) {
+- printf("BerkeleyDB: %s\n", db_strerror(rc) );
+- return rc;
+- }
+-
+-#else
+- DB_ENV env;
+- memset( &env, '\0', sizeof(env) );
+-
+- rc = db_appinit( NULL, NULL, &env, flags );
+-
+- if( rc == 0 ) {
+- db_appexit( &env );
+- }
+-
+- unlink("__db_mpool.share");
+- unlink("__db_lock.share");
+-#endif
+-
+- return rc;
+-}]])],[ol_cv_berkeley_db_thread=yes],[ol_cv_berkeley_db_thread=no],[ol_cv_berkeley_db_thread=cross])
+-
+- LIBS="$ol_LIBS"
++ ], [ol_cv_mdb_compat=yes], [ol_cv_mdb_compat=no])])
+ ])
+
+- if test $ol_cv_berkeley_db_thread != no ; then
+- AC_DEFINE([HAVE_BERKELEY_DB_THREAD], [1],
+- [define if Berkeley DB has DB_THREAD support])
+- fi
+-])dnl
+ dnl
+ dnl --------------------------------------------------------------------
+-dnl Find any DB
+-AC_DEFUN([OL_BERKELEY_DB],
+-[ol_cv_berkeley_db=no
+-AC_CHECK_HEADERS(db.h)
+-if test $ac_cv_header_db_h = yes; then
+- OL_BDB_HEADER_VERSION
+- OL_BDB_COMPAT
+-
+- if test $ol_cv_bdb_compat != yes ; then
+- AC_MSG_ERROR([BerkeleyDB version incompatible with BDB/HDB backends])
++dnl Find any MDB
++AC_DEFUN([OL_MDB],
++[ol_cv_mdb=no
++AC_CHECK_HEADERS(lmdb.h)
++if test $ac_cv_header_lmdb_h = yes; then
++ OL_MDB_COMPAT
++
++ if test $ol_cv_mdb_compat != yes ; then
++ AC_MSG_ERROR([LMDB version incompatible with MDB backends])
+ fi
+
+- OL_BERKELEY_DB_LINK
+- if test "$ol_cv_lib_db" != no ; then
+- ol_cv_berkeley_db=yes
+- OL_BERKELEY_DB_VERSION
+- OL_BERKELEY_DB_THREAD
+- fi
++ ol_cv_lib_mdb=-llmdb
++ ol_cv_mdb=yes
+ fi
+ ])
+-dnl --------------------------------------------------------------------
+-dnl Check for version compatility with back-bdb
+-AC_DEFUN([OL_BDB_COMPAT],
+-[AC_CACHE_CHECK([if Berkeley DB version supported by BDB/HDB backends], [ol_cv_bdb_compat],[
+- AC_EGREP_CPP(__db_version_compat,[
+-#include <db.h>
+-
+- /* this check could be improved */
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-#ifndef DB_VERSION_MINOR
+-# define DB_VERSION_MINOR 0
+-#endif
+-
+-#define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
+
+-/* require 4.4 or later */
+-#if DB_VERSION_MM >= 0x0404
+- __db_version_compat
+-#endif
+- ], [ol_cv_bdb_compat=yes], [ol_cv_bdb_compat=no])])
+-])
+
+ dnl
+ dnl ====================================================================
+@@ -664,12 +392,10 @@ AC_DEFUN([OL_PTHREAD_TEST_FUNCTION],[[
+ return 0;
+ ]])
+
+-AC_DEFUN([OL_PTHREAD_TEST_PROGRAM], [
+-AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
++AC_DEFUN([OL_PTHREAD_TEST_PROGRAM],
++[AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
+
+-int main(argc, argv)
+- int argc;
+- char **argv;
++int main(int argc, char **argv)
+ {
+ OL_PTHREAD_TEST_FUNCTION
+ }
+@@ -706,7 +432,7 @@ dnl Check GNU Pth pthread Header
+ dnl
+ dnl defines ol_cv_header linux_threads to 'yes' or 'no'
+ dnl 'no' implies pthreads.h is not LinuxThreads or pthreads.h
+-dnl doesn't exists. Existance of pthread.h should separately
++dnl doesn't exist. Existence of pthread.h should separately
+ dnl checked.
+ dnl
+ AC_DEFUN([OL_HEADER_GNU_PTH_PTHREAD_H], [
+@@ -728,7 +454,7 @@ AC_DEFUN([OL_NT_THREADS], [
+ AC_CHECK_FUNC(_beginthread)
+
+ if test $ac_cv_func__beginthread = yes ; then
+- AC_DEFINE([HAVE_NT_THREADS], [1], [if you have NT Threads])
++ AC_DEFINE(HAVE_NT_THREADS,1,[if you have NT Threads])
+ ol_cv_nt_threads=yes
+ fi
+ ])
+@@ -737,7 +463,7 @@ dnl Check LinuxThreads Header
+ dnl
+ dnl defines ol_cv_header linux_threads to 'yes' or 'no'
+ dnl 'no' implies pthreads.h is not LinuxThreads or pthreads.h
+-dnl doesn't exists. Existance of pthread.h should separately
++dnl doesn't exist. Existence of pthread.h should separately
+ dnl checked.
+ dnl
+ AC_DEFUN([OL_HEADER_LINUX_THREADS], [
+@@ -749,7 +475,7 @@ AC_DEFUN([OL_HEADER_LINUX_THREADS], [
+ [ol_cv_header_linux_threads=no])
+ ])
+ if test $ol_cv_header_linux_threads = yes; then
+- AC_DEFINE([HAVE_LINUX_THREADS], [1], [if you have LinuxThreads])
++ AC_DEFINE(HAVE_LINUX_THREADS,1,[if you have LinuxThreads])
+ fi
+ ])dnl
+ dnl --------------------------------------------------------------------
+@@ -791,7 +517,7 @@ AC_CACHE_CHECK([for compatible POSIX regex],ol_cv_c_posix_regex,[
+ #include <sys/types.h>
+ #include <regex.h>
+ static char *pattern, *string;
+-main()
++int main(void)
+ {
+ int rc;
+ regex_t re;
+@@ -818,7 +544,8 @@ AC_DEFUN([OL_C_UPPER_LOWER],
+ [AC_CACHE_CHECK([if toupper() requires islower()],ol_cv_c_upper_lower,[
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+ #include <ctype.h>
+-main()
++#include <stdlib.h>
++int main(void)
+ {
+ if ('C' == toupper('C'))
+ exit(0);
+@@ -826,7 +553,7 @@ main()
+ exit(1);
+ }]])],[ol_cv_c_upper_lower=no],[ol_cv_c_upper_lower=yes],[ol_cv_c_upper_lower=safe])])
+ if test $ol_cv_c_upper_lower != no ; then
+- AC_DEFINE([C_UPPER_LOWER], [1], [define if toupper() requires islower()])
++ AC_DEFINE(C_UPPER_LOWER,1, [define if toupper() requires islower()])
+ fi
+ ])
+ dnl
+@@ -837,29 +564,32 @@ dnl Check for declaration of sys_errlist in one of stdio.h and errno.h.
+ dnl Declaration of sys_errlist on BSD4.4 interferes with our declaration.
+ dnl Reported by Keith Bostic.
+ AC_DEFUN([OL_SYS_ERRLIST],
+-[AC_CACHE_CHECK([declaration of sys_errlist],ol_cv_dcl_sys_errlist,[
+- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
++[AC_CACHE_CHECK([existence of sys_errlist],ol_cv_have_sys_errlist,[
++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[char *c = (char *) *sys_errlist]])],[ol_cv_have_sys_errlist=yes],[ol_cv_have_sys_errlist=no])])
++if test $ol_cv_have_sys_errlist = yes ; then
++ AC_DEFINE(HAVE_SYS_ERRLIST,1,
++ [define if you actually have sys_errlist in your libs])
++ AC_CACHE_CHECK([declaration of sys_errlist],ol_cv_dcl_sys_errlist,[
++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <errno.h>
+ #ifdef _WIN32
+ #include <stdlib.h>
+-#endif ]], [[char *c = (char *) *sys_errlist]])],[ol_cv_dcl_sys_errlist=yes
+- ol_cv_have_sys_errlist=yes],[ol_cv_dcl_sys_errlist=no])])
++#endif ]], [[char *c = (char *) *sys_errlist]])],[ol_cv_dcl_sys_errlist=yes],
++ [ol_cv_dcl_sys_errlist=no])])
+ #
+-# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
+-if test $ol_cv_dcl_sys_errlist = no ; then
+- AC_DEFINE([DECL_SYS_ERRLIST], [1],
+- [define if sys_errlist is not declared in stdio.h or errno.h])
+-
+- AC_CACHE_CHECK([existence of sys_errlist],ol_cv_have_sys_errlist,[
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[char *c = (char *) *sys_errlist]])],[ol_cv_have_sys_errlist=yes],[ol_cv_have_sys_errlist=no])])
+-fi
+-if test $ol_cv_have_sys_errlist = yes ; then
+- AC_DEFINE([HAVE_SYS_ERRLIST], [1],
+- [define if you actually have sys_errlist in your libs])
++ # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
++ if test $ol_cv_dcl_sys_errlist = no ; then
++ AC_DEFINE(DECL_SYS_ERRLIST,1,
++ [define if sys_errlist is not declared in stdio.h or errno.h])
++ fi
+ fi
+ ])dnl
++dnl
++dnl ====================================================================
++dnl glibc supplies a non-standard strerror_r if _GNU_SOURCE is defined.
++dnl It's actually preferable to the POSIX version, if available.
+ AC_DEFUN([OL_NONPOSIX_STRERROR_R],
+ [AC_CACHE_CHECK([non-posix strerror_r],ol_cv_nonposix_strerror_r,[
+ AC_EGREP_CPP(strerror_r,[#include <string.h>],
+@@ -873,24 +603,23 @@ AC_DEFUN([OL_NONPOSIX_STRERROR_R],
+ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no])
+ else
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+- main() {
++ int main(void) {
+ char buf[100];
+ buf[0] = 0;
+ strerror_r( 1, buf, sizeof buf );
+ exit( buf[0] == 0 );
+ }
+- ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror=no],[ol_cv_nonposix_strerror=no])
++ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no],[ol_cv_nonposix_strerror_r=no])
+ fi
+ ])
+ if test $ol_cv_nonposix_strerror_r = yes ; then
+- AC_DEFINE([HAVE_NONPOSIX_STRERROR_R], [1],
++ AC_DEFINE(HAVE_NONPOSIX_STRERROR_R,1,
+ [define if strerror_r returns char* instead of int])
+ fi
+ ])dnl
+ dnl
+ AC_DEFUN([OL_STRERROR],
+-[OL_SYS_ERRLIST dnl TEMPORARY
+-AC_CHECK_FUNCS(strerror strerror_r)
++[AC_CHECK_FUNCS(strerror strerror_r)
+ ol_cv_func_strerror_r=no
+ if test "${ac_cv_func_strerror_r}" = yes ; then
+ OL_NONPOSIX_STRERROR_R
+@@ -910,7 +639,7 @@ AC_DEFUN([OL_C_VOLATILE],
+ if test $ol_cv_c_volatile = yes; then
+ :
+ else
+- AC_DEFINE([volatile], [], [define as empty if volatile is not supported])
++ AC_DEFINE(volatile,,[define as empty if volatile is not supported])
+ fi
+ ])dnl
+ dnl
+@@ -918,7 +647,7 @@ dnl ====================================================================
+ dnl Look for fetch(3)
+ AC_DEFUN([OL_LIB_FETCH],
+ [ol_LIBS=$LIBS
+-LIBS="-lfetch -lcom_err $LIBS"
++LIBS="-lfetch $LIBS"
+ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #ifdef HAVE_SYS_PARAM_H
+@@ -928,8 +657,8 @@ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
+ #include <fetch.h>]], [[struct url *u = fetchParseURL("file:///"); ]])],[ol_cv_lib_fetch=yes],[ol_cv_lib_fetch=no])])
+ LIBS=$ol_LIBS
+ if test $ol_cv_lib_fetch != no ; then
+- ol_link_fetch="-lfetch -lcom_err"
+- AC_DEFINE([HAVE_FETCH], [1],
++ ol_link_fetch="-lfetch"
++ AC_DEFINE(HAVE_FETCH,1,
+ [define if you actually have FreeBSD fetch(3)])
+ fi
+ ])dnl
+@@ -1094,7 +823,7 @@ AC_DEFUN([OL_FUNC_GETHOSTBYADDR_R_NARGS],
+ ])dnl
+ dnl
+ dnl --------------------------------------------------------------------
+-dnl Check for Cyrus SASL version compatility
++dnl Check for Cyrus SASL version compatibility
+ AC_DEFUN([OL_SASL_COMPAT],
+ [AC_CACHE_CHECK([Cyrus SASL library version], [ol_cv_sasl_compat],[
+ AC_EGREP_CPP(__sasl_compat,[
+@@ -1113,19 +842,3 @@ AC_DEFUN([OL_SASL_COMPAT],
+ #endif
+ ], [ol_cv_sasl_compat=yes], [ol_cv_sasl_compat=no])])
+ ])
+-dnl ====================================================================
+-dnl check for SSL compatibility
+-AC_DEFUN([OL_SSL_COMPAT],
+-[AC_CACHE_CHECK([OpenSSL library version (CRL checking capability)],
+- [ol_cv_ssl_crl_compat],[
+- AC_EGREP_CPP(__ssl_compat,[
+-#ifdef HAVE_OPENSSL_SSL_H
+-#include <openssl/ssl.h>
+-#endif
+-
+-/* Require 0.9.7d+ */
+-#if OPENSSL_VERSION_NUMBER >= 0x0090704fL
+- char *__ssl_compat = "0.9.7d";
+-#endif
+- ], [ol_cv_ssl_crl_compat=yes], [ol_cv_ssl_crl_compat=no])])
+-])
+--
+2.38.1
+
diff --git a/srcpkgs/ntp/template b/srcpkgs/ntp/template
index e190300a74a3a7..c7030f9b7f9d0d 100644
--- a/srcpkgs/ntp/template
+++ b/srcpkgs/ntp/template
@@ -5,7 +5,7 @@ revision=7
build_style=gnu-configure
configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --enable-ntp-signd
--enable-all-clocks ol_cv_pthread_select_yields=yes"
-hostmakedepends="pkg-config bison perl"
+hostmakedepends="pkg-config autoconf automake libtool bison perl"
makedepends="libedit-devel openssl-devel libcap-devel libevent-devel pps-tools-devel"
short_desc="Network Time Protocol daemon and utilities"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -28,6 +28,10 @@ post_extract() {
sed -i 's/linux/GLIBC/g' ntpd/ntpd.c
}
+pre_configure() {
+ autoreconf -fi
+}
+
post_install() {
# Rename files for alternatives.
vmkdir usr/share/man/man8
From e34f07206a9e5c6a452100d1fbd67738b9dd2c75 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:57:58 -0800
Subject: [PATCH 11/40] nvi: fix build with gcc14
---
srcpkgs/nvi/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/nvi/template b/srcpkgs/nvi/template
index 8a43e9f7a601b5..3923150ff5a1a6 100644
--- a/srcpkgs/nvi/template
+++ b/srcpkgs/nvi/template
@@ -22,6 +22,8 @@ alternatives="
vi:view.1:/usr/share/man/man1/nview.1
"
+CFLAGS="-fpermissive"
+
post_extract() {
chmod +w $wrksrc/common/options_def.h
}
From 3cfb7ca65c04574654b43ff1bce441e41c511aed Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 21:19:48 -0800
Subject: [PATCH 12/40] libsasl: fix build for gcc14
---
srcpkgs/libsasl/patches/gcc14.patch | 70 +++++++++++++++++++++++++++++
1 file changed, 70 insertions(+)
create mode 100644 srcpkgs/libsasl/patches/gcc14.patch
diff --git a/srcpkgs/libsasl/patches/gcc14.patch b/srcpkgs/libsasl/patches/gcc14.patch
new file mode 100644
index 00000000000000..bdaade22f1c903
--- /dev/null
+++ b/srcpkgs/libsasl/patches/gcc14.patch
@@ -0,0 +1,70 @@
+diff -rup digestmd5.c.orig digestmd5.c
+--- a/plugins/digestmd5.c
++++ b/plugins/digestmd5.c
+@@ -86,6 +86,8 @@
+ # include <netinet/in.h>
+ #endif /* WIN32 */
+
++#include <time.h>
++
+ #include <sasl.h>
+ #include <saslplug.h>
+
+
+From 266f0acf7f5e029afbb3e263437039e50cd6c262 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Wed, 23 Feb 2022 00:45:15 +0000
+Subject: [PATCH] Fix <time.h> check
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+We're conditionally including based on HAVE_TIME_H in a bunch of places,
+but we're not actually checking for time.h, so that's never going to be defined.
+
+While at it, add in a missing include in the cram plugin.
+
+This fixes a bunch of implicit declaration warnings:
+```
+ * cyrus-sasl-2.1.28/lib/saslutil.c:280:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:364:41: warning: implicit declaration of function ‘clock’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/plugins/cram.c:132:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:280:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:364:41: warning: implicit declaration of function ‘clock’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/plugins/cram.c:132:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+```
+
+Signed-off-by: Sam James <sam@gentoo.org>
+---
+ configure.ac | 2 +-
+ plugins/cram.c | 4 ++++
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index e1bf53b6..ad781830 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1290,7 +1290,7 @@ AC_CHECK_HEADERS_ONCE([sys/time.h])
+
+ AC_HEADER_DIRENT
+ AC_HEADER_SYS_WAIT
+-AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
++AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h time.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
+
+ IPv6_CHECK_SS_FAMILY()
+ IPv6_CHECK_SA_LEN()
+diff --git a/plugins/cram.c b/plugins/cram.c
+index d02e9baa..695aaa91 100644
+--- a/plugins/cram.c
++++ b/plugins/cram.c
+@@ -53,6 +53,10 @@
+ #endif
+ #include <fcntl.h>
+
++#ifdef HAVE_TIME_H
++#include <time.h>
++#endif
++
+ #include <sasl.h>
+ #include <saslplug.h>
+ #include <saslutil.h>
From 765c0e4b5ab54f76fea97dcda3f4242ad50a8e36 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 21:37:47 -0800
Subject: [PATCH 13/40] xbps: fix build with gcc14
---
srcpkgs/xbps/patches/fix-transposed-calloc.patch | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 srcpkgs/xbps/patches/fix-transposed-calloc.patch
diff --git a/srcpkgs/xbps/patches/fix-transposed-calloc.patch b/srcpkgs/xbps/patches/fix-transposed-calloc.patch
new file mode 100644
index 00000000000000..67341372dab79a
--- /dev/null
+++ b/srcpkgs/xbps/patches/fix-transposed-calloc.patch
@@ -0,0 +1,13 @@
+diff --git a/bin/xbps-fbulk/main.c b/bin/xbps-fbulk/main.c
+index 6591bb61..4408bf20 100644
+--- a/bin/xbps-fbulk/main.c
++++ b/bin/xbps-fbulk/main.c
+@@ -397,7 +397,7 @@ runBuilds(const char *bpath)
+ static void
+ addDepn(struct item *item, struct item *xitem)
+ {
+- struct depn *depn = calloc(sizeof(*depn), 1);
++ struct depn *depn = calloc(1, sizeof(*depn));
+ char *logpath3;
+ FILE *fp;
+
From 70ae2bf2c33ae547a16601ff9cba82bb9de7b256 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 14/40] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From cabe6108af878f33fc20d5b2fcb81f8099318faa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 15/40] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..92c2d178e7d647 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From a0d5976c3d4c266573e669ee424852011a010817 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 16/40] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..85db97e4a226fc 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 3f6fa45da43157182e627eb6e6488010364a3b21 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 17/40] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..8a728f493edeb6 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7e9fccf014c5990572ff2eb3920c114dc1dbb390 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 18/40] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..977a854aa73247 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From d10a03d8d15cc1cd17a5d8ae69c1e778acc75d03 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 19/40] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..5e1a0ca354c14c 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From c9dcb65fb72e5a8003fdcb975581898f217345a6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 20/40] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..a322434f077d3d 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From d836ff8638ebba0e35f91a3fb5b2a978fcc0b9f1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 21/40] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..c89746608c8b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 5bb63766b7106f567109730321be8320e1402c37 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 22/40] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..0be817c88f2d09 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 17f76363c6942cf29793b8c2a3aa95452d03edcc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 23/40] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..b0066e4bd92d4c 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 9c2a7476c429f596aaae5a4f8220d409b9d81c31 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 24/40] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..99dfdd11548326 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 81fb89da668249e05f62400eac1a4e87b3b49ab8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 25/40] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..51c9c48320aac6 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f8358839c157530a6f1dc17f60f542be5ddc0d3a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 26/40] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..bf210fc49481ef 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 238c1fbdc8664403895e2c03271143fb3a0d7701 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 27/40] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..66ca7dd8207192 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From de35f93dd1e51a3c5c51d9970c4c88465dc60881 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 28/40] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..1695336c06c58c 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7bce4b6b9c76b86d9baea392968706a40590c531 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 29/40] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..bf6c7ebc23c050 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 163ff27d588f8c670298d32ec07c2e8a28526c22 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 30/40] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..f83a8acb09878c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 103b8a2cf3ec6d9c87f2eda0c8203ee645c70d5f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 31/40] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..9ea4921f0c0888 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 74e3a610bbc6a9a3de7076f9ad4776f6be2e772d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 32/40] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..855f38e88b7c12 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From e63da6f400c8e0b012d2b0b3e4cddb582bce8bf0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 33/40] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..8dd06a1dc65f68 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 1294b6634a94931b1fb4c973d796facff6fdbe84 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 34/40] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..d70d94cf225088 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 70b706b2ec956138f348ebc440a71ec221a32c1b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 35/40] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..1fa175ec63d2d7 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,9 +22,9 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 17930f5aad0a4b303a7f18f7bf543f11642d605a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 36/40] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..5887a1dbafead4 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From a443aca752c30c0cb66a46e35d3c5283c7ba7ada Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 37/40] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..b15ecaca36cc48 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 9d38765581ffe85e6be47f3653bf3737b0ef6517 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 38/40] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..31483e4837a283 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 71f01251fc19462a86eaa677942e97110304845e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 39/40] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..95beba72b8b622 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 75e171f4f424dd2eb71fc30b8959c56dda8ddda9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:47 -0800
Subject: [PATCH 40/40] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..316b1d3896233d 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (24 preceding siblings ...)
2025-02-25 7:39 ` [PR PATCH] [Updated] " oreo639
@ 2025-03-03 20:23 ` oreo639
2025-03-03 20:27 ` oreo639
` (37 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-03-03 20:23 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 3431 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp
- [x] libsasl
- [x] nvi (done in this pr)
- [x] xbps
- [x] db (done in this pr)
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [ ] elfutils https://github.com/void-linux/void-packages/pull/54566
- [ ] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration (good) instead of segfaulting later due to implicit pointer truncation.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, feel free to test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 154024 bytes --]
From 9c1a82a6fc0bb3efe1ec23656c576154234eb4ec Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/40] binutils: update to 2.44.
---
srcpkgs/binutils/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..e10403f1ed7ae7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From 55d09448e224609090ffa440c89cf40ad0900f90 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/40] gcc: update to 14.2.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 20 +-
6 files changed, 20 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index eab9adbbf5df7f..02beac61f242a2 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.38 perl-5.38.0_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..a8aceb6283d8a8 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
@@ -202,6 +202,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -325,6 +326,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+
+ # Disable explicit -fno-PIE, gcc will figure this out itself.
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +352,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +361,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
From 8fa5a8a44fa844416136e37dd6ac96cae2fe73fe Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 03/40] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
6 files changed, 3 insertions(+), 973 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From 62035a39c04327ff7ec126ea97ba9e2c946b74be Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 04/40] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
1 file changed, 55 insertions(+)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
From 2bb108a4eff9705a08b7de3cbcb225c4e85c82c9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 05/40] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 8d22da0b50e2c241be3a289d2725a3b88a23e2b0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 06/40] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From d2f0fb9a3c3c0fe9a47183f55f18054a8a7652d1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 07/40] gcc-multilib: update to 14.2.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From 43d736f61f820c1ef78832bfc2882c07b613d590 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 08/40] libgccjit: update to 14.2.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From af1b416e1f67e928a065c04c3bbeda1f4d18d5d7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 09/40] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From a8486500b925aa93ae44e8af778e8ba2e250355f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:56:36 -0800
Subject: [PATCH 10/40] ntp: fix build with gcc14
---
srcpkgs/ntp/patches/gcc14.patch | 612 ++++++++++++++++++++++++++++++++
srcpkgs/ntp/template | 6 +-
2 files changed, 617 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/ntp/patches/gcc14.patch
diff --git a/srcpkgs/ntp/patches/gcc14.patch b/srcpkgs/ntp/patches/gcc14.patch
new file mode 100644
index 00000000000000..925543ee1fe669
--- /dev/null
+++ b/srcpkgs/ntp/patches/gcc14.patch
@@ -0,0 +1,612 @@
+Source: https://gitweb.gentoo.org/repo/gentoo.git/plain/net-misc/ntp/files/ntp-4.2.8_p15-configure-clang16.patch?id=9cc28f1d1f1f13da5537fe125931bd4b1fef97cf
+
+Sync with OpenLDAP. Uses Arsen's patch from https://bugs.gentoo.org/871288.
+
+https://bugs.gentoo.org/871372
+--- a/sntp/m4/openldap-thread-check.m4
++++ b/sntp/m4/openldap-thread-check.m4
+@@ -262,10 +262,8 @@ pthread_rwlock_t rwlock;
+ dnl save the flags
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #include <pthread.h>
+-#ifndef NULL
+-#define NULL (void*)0
+-#endif
+-]], [[pthread_detach(NULL);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
++pthread_t thread;
++]], [[pthread_detach(thread);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
+ ])
+
+ if test $ol_cv_func_pthread_detach = no ; then
+--- a/sntp/m4/openldap.m4
++++ b/sntp/m4/openldap.m4
+@@ -1,16 +1,16 @@
+ dnl OpenLDAP Autoconf Macros
+-dnl $OpenLDAP: pkg/ldap/build/openldap.m4,v 1.157.2.10 2010/04/13 20:22:21 kurt Exp $
++dnl $OpenLDAP$
+ dnl This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ dnl
+-dnl Copyright 1998-2010 The OpenLDAP Foundation.
++dnl Copyright 1998-2022 The OpenLDAP Foundation.
+ dnl All rights reserved.
+ dnl
+ dnl Redistribution and use in source and binary forms, with or without
+ dnl modification, are permitted only as authorized by the OpenLDAP
+ dnl Public License.
+ dnl
+-dnl A copy of this license is available in the file LICENSE-OPENLDAP in
+-dnl this directory of the distribution or, alternatively, at
++dnl A copy of this license is available in the file LICENSE in the
++dnl top-level directory of the distribution or, alternatively, at
+ dnl <http://www.OpenLDAP.org/license.html>.
+ dnl
+ dnl --------------------------------------------------------------------
+@@ -154,6 +154,7 @@ fi
+ if test $ol_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <ctype.h>
++#include <stdlib.h>
+ #ifndef HAVE_EBCDIC
+ # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+ # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+@@ -170,7 +171,7 @@ exit (0); }
+ ]])],[],[ol_cv_header_stdc=no],[:])
+ fi])
+ if test $ol_cv_header_stdc = yes; then
+- AC_DEFINE([STDC_HEADERS], [1], [is standard C provided?])
++ AC_DEFINE(STDC_HEADERS)
+ fi
+ ac_cv_header_stdc=disable
+ ])
+@@ -242,313 +243,40 @@ AC_DEFUN([OL_RESOLVER_LINK],
+ OL_RESOLVER_TRY(ol_cv_resolver_none)
+ OL_RESOLVER_TRY(ol_cv_resolver_resolv,[-lresolv])
+ OL_RESOLVER_TRY(ol_cv_resolver_bind,[-lbind])
+-])
+-dnl
+-dnl ====================================================================
+-dnl International Components for Unicode (ICU)
+-AC_DEFUN([OL_ICU],
+-[ol_icu=no
+-AC_CHECK_HEADERS( unicode/utypes.h )
+-if test $ac_cv_header_unicode_utypes_h = yes ; then
+- dnl OL_ICULIBS="-licui18n -licuuc -licudata"
+- OL_ICULIBS="-licuuc -licudata"
+-
+- AC_CACHE_CHECK([for ICU libraries], [ol_cv_lib_icu], [
+- ol_LIBS="$LIBS"
+- LIBS="$OL_ICULIBS $LIBS"
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+-#include <unicode/utypes.h>
+-]], [[
+-(void) u_errorName(0);
+-]])],[ol_cv_lib_icu=yes],[ol_cv_lib_icu=no])
+- LIBS="$ol_LIBS"
+-])
+-
+- if test $ol_cv_lib_icu != no ; then
+- ol_icu="$OL_ICULIBS"
+- AC_DEFINE([HAVE_ICU], [1], [define if you actually have ICU])
+- fi
+-fi
+-])
+-dnl
+-dnl ====================================================================
+-dnl Berkeley DB macros
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Try to link
+-AC_DEFUN([OL_BERKELEY_DB_TRY],
+-[if test $ol_cv_lib_db = no ; then
+- AC_CACHE_CHECK([for Berkeley DB link (]ifelse($2,,default,$2)[)],[$1],
+-[
+- ol_DB_LIB=ifelse($2,,,$2)
+- ol_LIBS=$LIBS
+- LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
+-
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+-#ifdef HAVE_DB_185_H
+-# include <db_185.h>
+-#else
+-# include <db.h>
+-#endif
+-
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-
+-#ifndef NULL
+-#define NULL ((void*)0)
+-#endif
+-]], [[
+-#if DB_VERSION_MAJOR > 2
+- db_env_create( NULL, 0 );
+-#elif DB_VERSION_MAJOR > 1
+- db_appexit( NULL );
+-#else
+- (void) dbopen( NULL, 0, 0, 0, NULL);
+-#endif
+-]])],[$1=yes],[$1=no])
+-
+- LIBS="$ol_LIBS"
+-])
+-
+- if test $$1 = yes ; then
+- ol_cv_lib_db=ifelse($2,,yes,$2)
+- fi
+-fi
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Get major and minor version from <db.h>
+-AC_DEFUN([OL_BDB_HEADER_VERSION],
+-[AC_CACHE_CHECK([for Berkeley DB major version in db.h], [ol_cv_bdb_major],[
+- AC_LANG_CONFTEST([
+-#include <db.h>
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-__db_version DB_VERSION_MAJOR
+-])
+- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
+- ol_cv_bdb_major=${3}
+-])
+-case $ol_cv_bdb_major in [[1-9]]*) : ;; *)
+- AC_MSG_ERROR([Unknown Berkeley DB major version in db.h]) ;;
+-esac
+-
+-dnl Determine minor version
+-AC_CACHE_CHECK([for Berkeley DB minor version in db.h], [ol_cv_bdb_minor],[
+- AC_LANG_CONFTEST([
+-#include <db.h>
+-#ifndef DB_VERSION_MINOR
+-# define DB_VERSION_MINOR 0
+-#endif
+-__db_version DB_VERSION_MINOR
+-])
+- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
+- ol_cv_bdb_minor=${3}
+-])
+-case $ol_cv_bdb_minor in [[0-9]]*) : ;; *)
+- AC_MSG_ERROR([Unknown Berkeley DB minor version in db.h]) ;;
+-esac
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Try to locate appropriate library
+-AC_DEFUN([OL_BERKELEY_DB_LINK],
+-[ol_cv_lib_db=no
+-
+-if test $ol_cv_bdb_major = 4 ; then
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4_dot_m,[-ldb-4.$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db4m,[-ldb4$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4m,[-ldb-4$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4_m,[-ldb-4-$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4,[-ldb-4])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db4,[-ldb4])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db,[-ldb])
+-fi
+-OL_BERKELEY_DB_TRY(ol_cv_db_none)
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Check if Berkeley DB version
+-AC_DEFUN([OL_BERKELEY_DB_VERSION],
+-[AC_CACHE_CHECK([for Berkeley DB library and header version match], [ol_cv_berkeley_db_version], [
+- ol_LIBS="$LIBS"
+- LIBS="$LTHREAD_LIBS $LIBS"
+- if test $ol_cv_lib_db != yes ; then
+- LIBS="$ol_cv_lib_db $LIBS"
+- fi
+-
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-#ifdef HAVE_DB_185_H
+- choke me;
+-#else
+-#include <db.h>
+-#endif
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-#ifndef NULL
+-#define NULL ((void *)0)
+-#endif
+-main()
+-{
+-#if DB_VERSION_MAJOR > 1
+- char *version;
+- int major, minor, patch;
+-
+- version = db_version( &major, &minor, &patch );
+-
+- if( major != DB_VERSION_MAJOR ||
+- minor != DB_VERSION_MINOR ||
+- patch != DB_VERSION_PATCH )
+- {
+- printf("Berkeley DB version mismatch\n"
+- "\theader: %s\n\tlibrary: %s\n",
+- DB_VERSION_STRING, version);
+- return 1;
+- }
+-#endif
+-
+- return 0;
+-}]])],[ol_cv_berkeley_db_version=yes],[ol_cv_berkeley_db_version=no],[ol_cv_berkeley_db_version=cross])
+-
+- LIBS="$ol_LIBS"
+ ])
+
+- if test $ol_cv_berkeley_db_version = no ; then
+- AC_MSG_ERROR([Berkeley DB version mismatch])
+- fi
+-])dnl
+-dnl
+ dnl --------------------------------------------------------------------
+-dnl Check if Berkeley DB supports DB_THREAD
+-AC_DEFUN([OL_BERKELEY_DB_THREAD],
+-[AC_CACHE_CHECK([for Berkeley DB thread support], [ol_cv_berkeley_db_thread], [
+- ol_LIBS="$LIBS"
+- LIBS="$LTHREAD_LIBS $LIBS"
+- if test $ol_cv_lib_db != yes ; then
+- LIBS="$ol_cv_lib_db $LIBS"
+- fi
+-
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-#ifdef HAVE_DB_185_H
+- choke me;
+-#else
+-#include <db.h>
+-#endif
+-#ifndef NULL
+-#define NULL ((void *)0)
+-#endif
+-main()
+-{
+- int rc;
+- u_int32_t flags = DB_CREATE |
+-#ifdef DB_PRIVATE
+- DB_PRIVATE |
+-#endif
+- DB_THREAD;
+-
+-#if DB_VERSION_MAJOR > 2
+- DB_ENV *env = NULL;
+-
+- rc = db_env_create( &env, 0 );
++dnl Check for version compatility with back-mdb
++AC_DEFUN([OL_MDB_COMPAT],
++[AC_CACHE_CHECK([if LMDB version supported by MDB backends], [ol_cv_mdb_compat],[
++ AC_EGREP_CPP(__mdb_version_compat,[
++#include <lmdb.h>
+
+- flags |= DB_INIT_MPOOL;
+-#ifdef DB_MPOOL_PRIVATE
+- flags |= DB_MPOOL_PRIVATE;
++/* require 0.9.18 or later */
++#if MDB_VERSION_FULL >= 0x000000090012
++ __mdb_version_compat
+ #endif
+-
+- if( rc ) {
+- printf("BerkeleyDB: %s\n", db_strerror(rc) );
+- return rc;
+- }
+-
+-#if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
+- rc = (env->open)( env, NULL, flags, 0 );
+-#else
+- rc = (env->open)( env, NULL, NULL, flags, 0 );
+-#endif
+-
+- if ( rc == 0 ) {
+- rc = env->close( env, 0 );
+- }
+-
+- if( rc ) {
+- printf("BerkeleyDB: %s\n", db_strerror(rc) );
+- return rc;
+- }
+-
+-#else
+- DB_ENV env;
+- memset( &env, '\0', sizeof(env) );
+-
+- rc = db_appinit( NULL, NULL, &env, flags );
+-
+- if( rc == 0 ) {
+- db_appexit( &env );
+- }
+-
+- unlink("__db_mpool.share");
+- unlink("__db_lock.share");
+-#endif
+-
+- return rc;
+-}]])],[ol_cv_berkeley_db_thread=yes],[ol_cv_berkeley_db_thread=no],[ol_cv_berkeley_db_thread=cross])
+-
+- LIBS="$ol_LIBS"
++ ], [ol_cv_mdb_compat=yes], [ol_cv_mdb_compat=no])])
+ ])
+
+- if test $ol_cv_berkeley_db_thread != no ; then
+- AC_DEFINE([HAVE_BERKELEY_DB_THREAD], [1],
+- [define if Berkeley DB has DB_THREAD support])
+- fi
+-])dnl
+ dnl
+ dnl --------------------------------------------------------------------
+-dnl Find any DB
+-AC_DEFUN([OL_BERKELEY_DB],
+-[ol_cv_berkeley_db=no
+-AC_CHECK_HEADERS(db.h)
+-if test $ac_cv_header_db_h = yes; then
+- OL_BDB_HEADER_VERSION
+- OL_BDB_COMPAT
+-
+- if test $ol_cv_bdb_compat != yes ; then
+- AC_MSG_ERROR([BerkeleyDB version incompatible with BDB/HDB backends])
++dnl Find any MDB
++AC_DEFUN([OL_MDB],
++[ol_cv_mdb=no
++AC_CHECK_HEADERS(lmdb.h)
++if test $ac_cv_header_lmdb_h = yes; then
++ OL_MDB_COMPAT
++
++ if test $ol_cv_mdb_compat != yes ; then
++ AC_MSG_ERROR([LMDB version incompatible with MDB backends])
+ fi
+
+- OL_BERKELEY_DB_LINK
+- if test "$ol_cv_lib_db" != no ; then
+- ol_cv_berkeley_db=yes
+- OL_BERKELEY_DB_VERSION
+- OL_BERKELEY_DB_THREAD
+- fi
++ ol_cv_lib_mdb=-llmdb
++ ol_cv_mdb=yes
+ fi
+ ])
+-dnl --------------------------------------------------------------------
+-dnl Check for version compatility with back-bdb
+-AC_DEFUN([OL_BDB_COMPAT],
+-[AC_CACHE_CHECK([if Berkeley DB version supported by BDB/HDB backends], [ol_cv_bdb_compat],[
+- AC_EGREP_CPP(__db_version_compat,[
+-#include <db.h>
+-
+- /* this check could be improved */
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-#ifndef DB_VERSION_MINOR
+-# define DB_VERSION_MINOR 0
+-#endif
+-
+-#define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
+
+-/* require 4.4 or later */
+-#if DB_VERSION_MM >= 0x0404
+- __db_version_compat
+-#endif
+- ], [ol_cv_bdb_compat=yes], [ol_cv_bdb_compat=no])])
+-])
+
+ dnl
+ dnl ====================================================================
+@@ -664,12 +392,10 @@ AC_DEFUN([OL_PTHREAD_TEST_FUNCTION],[[
+ return 0;
+ ]])
+
+-AC_DEFUN([OL_PTHREAD_TEST_PROGRAM], [
+-AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
++AC_DEFUN([OL_PTHREAD_TEST_PROGRAM],
++[AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
+
+-int main(argc, argv)
+- int argc;
+- char **argv;
++int main(int argc, char **argv)
+ {
+ OL_PTHREAD_TEST_FUNCTION
+ }
+@@ -706,7 +432,7 @@ dnl Check GNU Pth pthread Header
+ dnl
+ dnl defines ol_cv_header linux_threads to 'yes' or 'no'
+ dnl 'no' implies pthreads.h is not LinuxThreads or pthreads.h
+-dnl doesn't exists. Existance of pthread.h should separately
++dnl doesn't exist. Existence of pthread.h should separately
+ dnl checked.
+ dnl
+ AC_DEFUN([OL_HEADER_GNU_PTH_PTHREAD_H], [
+@@ -728,7 +454,7 @@ AC_DEFUN([OL_NT_THREADS], [
+ AC_CHECK_FUNC(_beginthread)
+
+ if test $ac_cv_func__beginthread = yes ; then
+- AC_DEFINE([HAVE_NT_THREADS], [1], [if you have NT Threads])
++ AC_DEFINE(HAVE_NT_THREADS,1,[if you have NT Threads])
+ ol_cv_nt_threads=yes
+ fi
+ ])
+@@ -737,7 +463,7 @@ dnl Check LinuxThreads Header
+ dnl
+ dnl defines ol_cv_header linux_threads to 'yes' or 'no'
+ dnl 'no' implies pthreads.h is not LinuxThreads or pthreads.h
+-dnl doesn't exists. Existance of pthread.h should separately
++dnl doesn't exist. Existence of pthread.h should separately
+ dnl checked.
+ dnl
+ AC_DEFUN([OL_HEADER_LINUX_THREADS], [
+@@ -749,7 +475,7 @@ AC_DEFUN([OL_HEADER_LINUX_THREADS], [
+ [ol_cv_header_linux_threads=no])
+ ])
+ if test $ol_cv_header_linux_threads = yes; then
+- AC_DEFINE([HAVE_LINUX_THREADS], [1], [if you have LinuxThreads])
++ AC_DEFINE(HAVE_LINUX_THREADS,1,[if you have LinuxThreads])
+ fi
+ ])dnl
+ dnl --------------------------------------------------------------------
+@@ -791,7 +517,7 @@ AC_CACHE_CHECK([for compatible POSIX regex],ol_cv_c_posix_regex,[
+ #include <sys/types.h>
+ #include <regex.h>
+ static char *pattern, *string;
+-main()
++int main(void)
+ {
+ int rc;
+ regex_t re;
+@@ -818,7 +544,8 @@ AC_DEFUN([OL_C_UPPER_LOWER],
+ [AC_CACHE_CHECK([if toupper() requires islower()],ol_cv_c_upper_lower,[
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+ #include <ctype.h>
+-main()
++#include <stdlib.h>
++int main(void)
+ {
+ if ('C' == toupper('C'))
+ exit(0);
+@@ -826,7 +553,7 @@ main()
+ exit(1);
+ }]])],[ol_cv_c_upper_lower=no],[ol_cv_c_upper_lower=yes],[ol_cv_c_upper_lower=safe])])
+ if test $ol_cv_c_upper_lower != no ; then
+- AC_DEFINE([C_UPPER_LOWER], [1], [define if toupper() requires islower()])
++ AC_DEFINE(C_UPPER_LOWER,1, [define if toupper() requires islower()])
+ fi
+ ])
+ dnl
+@@ -837,29 +564,32 @@ dnl Check for declaration of sys_errlist in one of stdio.h and errno.h.
+ dnl Declaration of sys_errlist on BSD4.4 interferes with our declaration.
+ dnl Reported by Keith Bostic.
+ AC_DEFUN([OL_SYS_ERRLIST],
+-[AC_CACHE_CHECK([declaration of sys_errlist],ol_cv_dcl_sys_errlist,[
+- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
++[AC_CACHE_CHECK([existence of sys_errlist],ol_cv_have_sys_errlist,[
++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[char *c = (char *) *sys_errlist]])],[ol_cv_have_sys_errlist=yes],[ol_cv_have_sys_errlist=no])])
++if test $ol_cv_have_sys_errlist = yes ; then
++ AC_DEFINE(HAVE_SYS_ERRLIST,1,
++ [define if you actually have sys_errlist in your libs])
++ AC_CACHE_CHECK([declaration of sys_errlist],ol_cv_dcl_sys_errlist,[
++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <errno.h>
+ #ifdef _WIN32
+ #include <stdlib.h>
+-#endif ]], [[char *c = (char *) *sys_errlist]])],[ol_cv_dcl_sys_errlist=yes
+- ol_cv_have_sys_errlist=yes],[ol_cv_dcl_sys_errlist=no])])
++#endif ]], [[char *c = (char *) *sys_errlist]])],[ol_cv_dcl_sys_errlist=yes],
++ [ol_cv_dcl_sys_errlist=no])])
+ #
+-# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
+-if test $ol_cv_dcl_sys_errlist = no ; then
+- AC_DEFINE([DECL_SYS_ERRLIST], [1],
+- [define if sys_errlist is not declared in stdio.h or errno.h])
+-
+- AC_CACHE_CHECK([existence of sys_errlist],ol_cv_have_sys_errlist,[
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[char *c = (char *) *sys_errlist]])],[ol_cv_have_sys_errlist=yes],[ol_cv_have_sys_errlist=no])])
+-fi
+-if test $ol_cv_have_sys_errlist = yes ; then
+- AC_DEFINE([HAVE_SYS_ERRLIST], [1],
+- [define if you actually have sys_errlist in your libs])
++ # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
++ if test $ol_cv_dcl_sys_errlist = no ; then
++ AC_DEFINE(DECL_SYS_ERRLIST,1,
++ [define if sys_errlist is not declared in stdio.h or errno.h])
++ fi
+ fi
+ ])dnl
++dnl
++dnl ====================================================================
++dnl glibc supplies a non-standard strerror_r if _GNU_SOURCE is defined.
++dnl It's actually preferable to the POSIX version, if available.
+ AC_DEFUN([OL_NONPOSIX_STRERROR_R],
+ [AC_CACHE_CHECK([non-posix strerror_r],ol_cv_nonposix_strerror_r,[
+ AC_EGREP_CPP(strerror_r,[#include <string.h>],
+@@ -873,24 +603,23 @@ AC_DEFUN([OL_NONPOSIX_STRERROR_R],
+ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no])
+ else
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+- main() {
++ int main(void) {
+ char buf[100];
+ buf[0] = 0;
+ strerror_r( 1, buf, sizeof buf );
+ exit( buf[0] == 0 );
+ }
+- ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror=no],[ol_cv_nonposix_strerror=no])
++ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no],[ol_cv_nonposix_strerror_r=no])
+ fi
+ ])
+ if test $ol_cv_nonposix_strerror_r = yes ; then
+- AC_DEFINE([HAVE_NONPOSIX_STRERROR_R], [1],
++ AC_DEFINE(HAVE_NONPOSIX_STRERROR_R,1,
+ [define if strerror_r returns char* instead of int])
+ fi
+ ])dnl
+ dnl
+ AC_DEFUN([OL_STRERROR],
+-[OL_SYS_ERRLIST dnl TEMPORARY
+-AC_CHECK_FUNCS(strerror strerror_r)
++[AC_CHECK_FUNCS(strerror strerror_r)
+ ol_cv_func_strerror_r=no
+ if test "${ac_cv_func_strerror_r}" = yes ; then
+ OL_NONPOSIX_STRERROR_R
+@@ -910,7 +639,7 @@ AC_DEFUN([OL_C_VOLATILE],
+ if test $ol_cv_c_volatile = yes; then
+ :
+ else
+- AC_DEFINE([volatile], [], [define as empty if volatile is not supported])
++ AC_DEFINE(volatile,,[define as empty if volatile is not supported])
+ fi
+ ])dnl
+ dnl
+@@ -918,7 +647,7 @@ dnl ====================================================================
+ dnl Look for fetch(3)
+ AC_DEFUN([OL_LIB_FETCH],
+ [ol_LIBS=$LIBS
+-LIBS="-lfetch -lcom_err $LIBS"
++LIBS="-lfetch $LIBS"
+ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #ifdef HAVE_SYS_PARAM_H
+@@ -928,8 +657,8 @@ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
+ #include <fetch.h>]], [[struct url *u = fetchParseURL("file:///"); ]])],[ol_cv_lib_fetch=yes],[ol_cv_lib_fetch=no])])
+ LIBS=$ol_LIBS
+ if test $ol_cv_lib_fetch != no ; then
+- ol_link_fetch="-lfetch -lcom_err"
+- AC_DEFINE([HAVE_FETCH], [1],
++ ol_link_fetch="-lfetch"
++ AC_DEFINE(HAVE_FETCH,1,
+ [define if you actually have FreeBSD fetch(3)])
+ fi
+ ])dnl
+@@ -1094,7 +823,7 @@ AC_DEFUN([OL_FUNC_GETHOSTBYADDR_R_NARGS],
+ ])dnl
+ dnl
+ dnl --------------------------------------------------------------------
+-dnl Check for Cyrus SASL version compatility
++dnl Check for Cyrus SASL version compatibility
+ AC_DEFUN([OL_SASL_COMPAT],
+ [AC_CACHE_CHECK([Cyrus SASL library version], [ol_cv_sasl_compat],[
+ AC_EGREP_CPP(__sasl_compat,[
+@@ -1113,19 +842,3 @@ AC_DEFUN([OL_SASL_COMPAT],
+ #endif
+ ], [ol_cv_sasl_compat=yes], [ol_cv_sasl_compat=no])])
+ ])
+-dnl ====================================================================
+-dnl check for SSL compatibility
+-AC_DEFUN([OL_SSL_COMPAT],
+-[AC_CACHE_CHECK([OpenSSL library version (CRL checking capability)],
+- [ol_cv_ssl_crl_compat],[
+- AC_EGREP_CPP(__ssl_compat,[
+-#ifdef HAVE_OPENSSL_SSL_H
+-#include <openssl/ssl.h>
+-#endif
+-
+-/* Require 0.9.7d+ */
+-#if OPENSSL_VERSION_NUMBER >= 0x0090704fL
+- char *__ssl_compat = "0.9.7d";
+-#endif
+- ], [ol_cv_ssl_crl_compat=yes], [ol_cv_ssl_crl_compat=no])])
+-])
+--
+2.38.1
+
diff --git a/srcpkgs/ntp/template b/srcpkgs/ntp/template
index e190300a74a3a7..c7030f9b7f9d0d 100644
--- a/srcpkgs/ntp/template
+++ b/srcpkgs/ntp/template
@@ -5,7 +5,7 @@ revision=7
build_style=gnu-configure
configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --enable-ntp-signd
--enable-all-clocks ol_cv_pthread_select_yields=yes"
-hostmakedepends="pkg-config bison perl"
+hostmakedepends="pkg-config autoconf automake libtool bison perl"
makedepends="libedit-devel openssl-devel libcap-devel libevent-devel pps-tools-devel"
short_desc="Network Time Protocol daemon and utilities"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -28,6 +28,10 @@ post_extract() {
sed -i 's/linux/GLIBC/g' ntpd/ntpd.c
}
+pre_configure() {
+ autoreconf -fi
+}
+
post_install() {
# Rename files for alternatives.
vmkdir usr/share/man/man8
From 8896aab7ab180fa0e246b2b1e1a8f450ae8ec388 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:57:58 -0800
Subject: [PATCH 11/40] nvi: fix build with gcc14
---
srcpkgs/nvi/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/nvi/template b/srcpkgs/nvi/template
index 8a43e9f7a601b5..3923150ff5a1a6 100644
--- a/srcpkgs/nvi/template
+++ b/srcpkgs/nvi/template
@@ -22,6 +22,8 @@ alternatives="
vi:view.1:/usr/share/man/man1/nview.1
"
+CFLAGS="-fpermissive"
+
post_extract() {
chmod +w $wrksrc/common/options_def.h
}
From 6fee62aad7cfb1918c1ee21cec47997545af7006 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 21:19:48 -0800
Subject: [PATCH 12/40] libsasl: fix build for gcc14
---
srcpkgs/libsasl/patches/gcc14.patch | 70 +++++++++++++++++++++++++++++
1 file changed, 70 insertions(+)
create mode 100644 srcpkgs/libsasl/patches/gcc14.patch
diff --git a/srcpkgs/libsasl/patches/gcc14.patch b/srcpkgs/libsasl/patches/gcc14.patch
new file mode 100644
index 00000000000000..bdaade22f1c903
--- /dev/null
+++ b/srcpkgs/libsasl/patches/gcc14.patch
@@ -0,0 +1,70 @@
+diff -rup digestmd5.c.orig digestmd5.c
+--- a/plugins/digestmd5.c
++++ b/plugins/digestmd5.c
+@@ -86,6 +86,8 @@
+ # include <netinet/in.h>
+ #endif /* WIN32 */
+
++#include <time.h>
++
+ #include <sasl.h>
+ #include <saslplug.h>
+
+
+From 266f0acf7f5e029afbb3e263437039e50cd6c262 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Wed, 23 Feb 2022 00:45:15 +0000
+Subject: [PATCH] Fix <time.h> check
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+We're conditionally including based on HAVE_TIME_H in a bunch of places,
+but we're not actually checking for time.h, so that's never going to be defined.
+
+While at it, add in a missing include in the cram plugin.
+
+This fixes a bunch of implicit declaration warnings:
+```
+ * cyrus-sasl-2.1.28/lib/saslutil.c:280:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:364:41: warning: implicit declaration of function ‘clock’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/plugins/cram.c:132:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:280:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:364:41: warning: implicit declaration of function ‘clock’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/plugins/cram.c:132:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+```
+
+Signed-off-by: Sam James <sam@gentoo.org>
+---
+ configure.ac | 2 +-
+ plugins/cram.c | 4 ++++
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index e1bf53b6..ad781830 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1290,7 +1290,7 @@ AC_CHECK_HEADERS_ONCE([sys/time.h])
+
+ AC_HEADER_DIRENT
+ AC_HEADER_SYS_WAIT
+-AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
++AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h time.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
+
+ IPv6_CHECK_SS_FAMILY()
+ IPv6_CHECK_SA_LEN()
+diff --git a/plugins/cram.c b/plugins/cram.c
+index d02e9baa..695aaa91 100644
+--- a/plugins/cram.c
++++ b/plugins/cram.c
+@@ -53,6 +53,10 @@
+ #endif
+ #include <fcntl.h>
+
++#ifdef HAVE_TIME_H
++#include <time.h>
++#endif
++
+ #include <sasl.h>
+ #include <saslplug.h>
+ #include <saslutil.h>
From 39f3965158004b1df6e7b819552d0aaab25b28ac Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 21:37:47 -0800
Subject: [PATCH 13/40] xbps: fix build with gcc14
---
srcpkgs/xbps/patches/fix-transposed-calloc.patch | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 srcpkgs/xbps/patches/fix-transposed-calloc.patch
diff --git a/srcpkgs/xbps/patches/fix-transposed-calloc.patch b/srcpkgs/xbps/patches/fix-transposed-calloc.patch
new file mode 100644
index 00000000000000..67341372dab79a
--- /dev/null
+++ b/srcpkgs/xbps/patches/fix-transposed-calloc.patch
@@ -0,0 +1,13 @@
+diff --git a/bin/xbps-fbulk/main.c b/bin/xbps-fbulk/main.c
+index 6591bb61..4408bf20 100644
+--- a/bin/xbps-fbulk/main.c
++++ b/bin/xbps-fbulk/main.c
+@@ -397,7 +397,7 @@ runBuilds(const char *bpath)
+ static void
+ addDepn(struct item *item, struct item *xitem)
+ {
+- struct depn *depn = calloc(sizeof(*depn), 1);
++ struct depn *depn = calloc(1, sizeof(*depn));
+ char *logpath3;
+ FILE *fp;
+
From abbfc7d139241430835cf0514cd1ab84bfb1b9a4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 14/40] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From 51230afc56074bd621c9e937facc2df092ffb96d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 15/40] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..92c2d178e7d647 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 57f5d550b6e7df316bfb37a8592806107bd71721 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 16/40] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..85db97e4a226fc 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 1bd32250e1b143fe9940cb3237d8e4b8783448e3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 17/40] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..8a728f493edeb6 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 988328a236af3d3fbc706183439ede30ab2b904f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 18/40] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..977a854aa73247 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 894149bb5bb242e2d5ef07ce62a25195d4803f52 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 19/40] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..5e1a0ca354c14c 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 4c6edd73bde4141780d82bf1351d421382e39118 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 20/40] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..a322434f077d3d 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From d2f765d689ad38641cfbf61fc6de02cdf4b32829 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 21/40] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..c89746608c8b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 5d8ea2d288744b3bc37941c82da9571bb5ccdcf6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 22/40] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..0be817c88f2d09 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 55acd033e251f870149c6760f4e838c1fecde823 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 23/40] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..b0066e4bd92d4c 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From a5b1cfaee10221130333e463c283ba15ad68f1c6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 24/40] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..99dfdd11548326 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 0db0ce9b17b6f9c7597bb580748dfcbe6a7f7905 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 25/40] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..51c9c48320aac6 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 31ebbbd73a97319fb9ad5bf82f270485ed4bc55b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 26/40] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..bf210fc49481ef 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f17e231ee1c0d4226d94f71a614d0fcb46ffd9d7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 27/40] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..66ca7dd8207192 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 107f40d7a64262a3d26dc669d74ee6b73dd5c1d6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 28/40] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..1695336c06c58c 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 0ed7fbe72aedda4fdf6050d4189dfaeee2092373 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 29/40] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..bf6c7ebc23c050 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From db3c73bf7d47a17acdb5e5ce1c2c532bcda7b063 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 30/40] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..f83a8acb09878c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 68e54091b71684648ffa71968f2d8371ba4dd827 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 31/40] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..9ea4921f0c0888 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From bdf9876dea100243900d182b05e08237a31393e2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 32/40] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..855f38e88b7c12 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 43cdd01580dc73a6b24cb2d65e7675ba773eaaf2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 33/40] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..8dd06a1dc65f68 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7a214c8557bb0bf276ddc3db1f12e2f906faeada Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 34/40] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..d70d94cf225088 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 7752457a199d6b702aa822ac1ed2dd9652de21c3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 35/40] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..1fa175ec63d2d7 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,9 +22,9 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 6052a458657bd3e79e86a0f43958115a0295db6c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 36/40] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..5887a1dbafead4 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 6d97c5b168d6ee515e4fd52a5539d6ebddc31d5d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 37/40] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..b15ecaca36cc48 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 9f3cace8597cdfa64364982747d0849a15d43cca Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 38/40] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..31483e4837a283 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From b28c39306278bbed6f977449ec11abcfa90655dd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 39/40] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..95beba72b8b622 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 9384f50fd9886aeaebd2b405d968d52dc2b5297a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:47 -0800
Subject: [PATCH 40/40] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..316b1d3896233d 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (25 preceding siblings ...)
2025-03-03 20:23 ` oreo639
@ 2025-03-03 20:27 ` oreo639
2025-03-04 23:20 ` oreo639
` (36 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-03-03 20:27 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 3431 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp
- [x] libsasl
- [x] nvi (done in this pr)
- [x] xbps
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [ ] elfutils https://github.com/void-linux/void-packages/pull/54566
- [ ] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration (good) instead of segfaulting later due to implicit pointer truncation.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, feel free to test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 156873 bytes --]
From 9c1a82a6fc0bb3efe1ec23656c576154234eb4ec Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/42] binutils: update to 2.44.
---
srcpkgs/binutils/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..e10403f1ed7ae7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From 55d09448e224609090ffa440c89cf40ad0900f90 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/42] gcc: update to 14.2.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 20 +-
6 files changed, 20 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index eab9adbbf5df7f..02beac61f242a2 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.38 perl-5.38.0_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..a8aceb6283d8a8 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
@@ -202,6 +202,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -325,6 +326,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+
+ # Disable explicit -fno-PIE, gcc will figure this out itself.
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +352,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +361,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
From 8fa5a8a44fa844416136e37dd6ac96cae2fe73fe Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 03/42] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
6 files changed, 3 insertions(+), 973 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From 62035a39c04327ff7ec126ea97ba9e2c946b74be Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 04/42] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
1 file changed, 55 insertions(+)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
From 2bb108a4eff9705a08b7de3cbcb225c4e85c82c9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 05/42] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 8d22da0b50e2c241be3a289d2725a3b88a23e2b0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 06/42] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From d2f0fb9a3c3c0fe9a47183f55f18054a8a7652d1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 07/42] gcc-multilib: update to 14.2.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From 43d736f61f820c1ef78832bfc2882c07b613d590 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 08/42] libgccjit: update to 14.2.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From af1b416e1f67e928a065c04c3bbeda1f4d18d5d7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 09/42] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From a8486500b925aa93ae44e8af778e8ba2e250355f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:56:36 -0800
Subject: [PATCH 10/42] ntp: fix build with gcc14
---
srcpkgs/ntp/patches/gcc14.patch | 612 ++++++++++++++++++++++++++++++++
srcpkgs/ntp/template | 6 +-
2 files changed, 617 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/ntp/patches/gcc14.patch
diff --git a/srcpkgs/ntp/patches/gcc14.patch b/srcpkgs/ntp/patches/gcc14.patch
new file mode 100644
index 00000000000000..925543ee1fe669
--- /dev/null
+++ b/srcpkgs/ntp/patches/gcc14.patch
@@ -0,0 +1,612 @@
+Source: https://gitweb.gentoo.org/repo/gentoo.git/plain/net-misc/ntp/files/ntp-4.2.8_p15-configure-clang16.patch?id=9cc28f1d1f1f13da5537fe125931bd4b1fef97cf
+
+Sync with OpenLDAP. Uses Arsen's patch from https://bugs.gentoo.org/871288.
+
+https://bugs.gentoo.org/871372
+--- a/sntp/m4/openldap-thread-check.m4
++++ b/sntp/m4/openldap-thread-check.m4
+@@ -262,10 +262,8 @@ pthread_rwlock_t rwlock;
+ dnl save the flags
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #include <pthread.h>
+-#ifndef NULL
+-#define NULL (void*)0
+-#endif
+-]], [[pthread_detach(NULL);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
++pthread_t thread;
++]], [[pthread_detach(thread);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
+ ])
+
+ if test $ol_cv_func_pthread_detach = no ; then
+--- a/sntp/m4/openldap.m4
++++ b/sntp/m4/openldap.m4
+@@ -1,16 +1,16 @@
+ dnl OpenLDAP Autoconf Macros
+-dnl $OpenLDAP: pkg/ldap/build/openldap.m4,v 1.157.2.10 2010/04/13 20:22:21 kurt Exp $
++dnl $OpenLDAP$
+ dnl This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ dnl
+-dnl Copyright 1998-2010 The OpenLDAP Foundation.
++dnl Copyright 1998-2022 The OpenLDAP Foundation.
+ dnl All rights reserved.
+ dnl
+ dnl Redistribution and use in source and binary forms, with or without
+ dnl modification, are permitted only as authorized by the OpenLDAP
+ dnl Public License.
+ dnl
+-dnl A copy of this license is available in the file LICENSE-OPENLDAP in
+-dnl this directory of the distribution or, alternatively, at
++dnl A copy of this license is available in the file LICENSE in the
++dnl top-level directory of the distribution or, alternatively, at
+ dnl <http://www.OpenLDAP.org/license.html>.
+ dnl
+ dnl --------------------------------------------------------------------
+@@ -154,6 +154,7 @@ fi
+ if test $ol_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <ctype.h>
++#include <stdlib.h>
+ #ifndef HAVE_EBCDIC
+ # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+ # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+@@ -170,7 +171,7 @@ exit (0); }
+ ]])],[],[ol_cv_header_stdc=no],[:])
+ fi])
+ if test $ol_cv_header_stdc = yes; then
+- AC_DEFINE([STDC_HEADERS], [1], [is standard C provided?])
++ AC_DEFINE(STDC_HEADERS)
+ fi
+ ac_cv_header_stdc=disable
+ ])
+@@ -242,313 +243,40 @@ AC_DEFUN([OL_RESOLVER_LINK],
+ OL_RESOLVER_TRY(ol_cv_resolver_none)
+ OL_RESOLVER_TRY(ol_cv_resolver_resolv,[-lresolv])
+ OL_RESOLVER_TRY(ol_cv_resolver_bind,[-lbind])
+-])
+-dnl
+-dnl ====================================================================
+-dnl International Components for Unicode (ICU)
+-AC_DEFUN([OL_ICU],
+-[ol_icu=no
+-AC_CHECK_HEADERS( unicode/utypes.h )
+-if test $ac_cv_header_unicode_utypes_h = yes ; then
+- dnl OL_ICULIBS="-licui18n -licuuc -licudata"
+- OL_ICULIBS="-licuuc -licudata"
+-
+- AC_CACHE_CHECK([for ICU libraries], [ol_cv_lib_icu], [
+- ol_LIBS="$LIBS"
+- LIBS="$OL_ICULIBS $LIBS"
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+-#include <unicode/utypes.h>
+-]], [[
+-(void) u_errorName(0);
+-]])],[ol_cv_lib_icu=yes],[ol_cv_lib_icu=no])
+- LIBS="$ol_LIBS"
+-])
+-
+- if test $ol_cv_lib_icu != no ; then
+- ol_icu="$OL_ICULIBS"
+- AC_DEFINE([HAVE_ICU], [1], [define if you actually have ICU])
+- fi
+-fi
+-])
+-dnl
+-dnl ====================================================================
+-dnl Berkeley DB macros
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Try to link
+-AC_DEFUN([OL_BERKELEY_DB_TRY],
+-[if test $ol_cv_lib_db = no ; then
+- AC_CACHE_CHECK([for Berkeley DB link (]ifelse($2,,default,$2)[)],[$1],
+-[
+- ol_DB_LIB=ifelse($2,,,$2)
+- ol_LIBS=$LIBS
+- LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
+-
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+-#ifdef HAVE_DB_185_H
+-# include <db_185.h>
+-#else
+-# include <db.h>
+-#endif
+-
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-
+-#ifndef NULL
+-#define NULL ((void*)0)
+-#endif
+-]], [[
+-#if DB_VERSION_MAJOR > 2
+- db_env_create( NULL, 0 );
+-#elif DB_VERSION_MAJOR > 1
+- db_appexit( NULL );
+-#else
+- (void) dbopen( NULL, 0, 0, 0, NULL);
+-#endif
+-]])],[$1=yes],[$1=no])
+-
+- LIBS="$ol_LIBS"
+-])
+-
+- if test $$1 = yes ; then
+- ol_cv_lib_db=ifelse($2,,yes,$2)
+- fi
+-fi
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Get major and minor version from <db.h>
+-AC_DEFUN([OL_BDB_HEADER_VERSION],
+-[AC_CACHE_CHECK([for Berkeley DB major version in db.h], [ol_cv_bdb_major],[
+- AC_LANG_CONFTEST([
+-#include <db.h>
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-__db_version DB_VERSION_MAJOR
+-])
+- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
+- ol_cv_bdb_major=${3}
+-])
+-case $ol_cv_bdb_major in [[1-9]]*) : ;; *)
+- AC_MSG_ERROR([Unknown Berkeley DB major version in db.h]) ;;
+-esac
+-
+-dnl Determine minor version
+-AC_CACHE_CHECK([for Berkeley DB minor version in db.h], [ol_cv_bdb_minor],[
+- AC_LANG_CONFTEST([
+-#include <db.h>
+-#ifndef DB_VERSION_MINOR
+-# define DB_VERSION_MINOR 0
+-#endif
+-__db_version DB_VERSION_MINOR
+-])
+- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
+- ol_cv_bdb_minor=${3}
+-])
+-case $ol_cv_bdb_minor in [[0-9]]*) : ;; *)
+- AC_MSG_ERROR([Unknown Berkeley DB minor version in db.h]) ;;
+-esac
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Try to locate appropriate library
+-AC_DEFUN([OL_BERKELEY_DB_LINK],
+-[ol_cv_lib_db=no
+-
+-if test $ol_cv_bdb_major = 4 ; then
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4_dot_m,[-ldb-4.$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db4m,[-ldb4$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4m,[-ldb-4$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4_m,[-ldb-4-$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4,[-ldb-4])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db4,[-ldb4])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db,[-ldb])
+-fi
+-OL_BERKELEY_DB_TRY(ol_cv_db_none)
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Check if Berkeley DB version
+-AC_DEFUN([OL_BERKELEY_DB_VERSION],
+-[AC_CACHE_CHECK([for Berkeley DB library and header version match], [ol_cv_berkeley_db_version], [
+- ol_LIBS="$LIBS"
+- LIBS="$LTHREAD_LIBS $LIBS"
+- if test $ol_cv_lib_db != yes ; then
+- LIBS="$ol_cv_lib_db $LIBS"
+- fi
+-
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-#ifdef HAVE_DB_185_H
+- choke me;
+-#else
+-#include <db.h>
+-#endif
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-#ifndef NULL
+-#define NULL ((void *)0)
+-#endif
+-main()
+-{
+-#if DB_VERSION_MAJOR > 1
+- char *version;
+- int major, minor, patch;
+-
+- version = db_version( &major, &minor, &patch );
+-
+- if( major != DB_VERSION_MAJOR ||
+- minor != DB_VERSION_MINOR ||
+- patch != DB_VERSION_PATCH )
+- {
+- printf("Berkeley DB version mismatch\n"
+- "\theader: %s\n\tlibrary: %s\n",
+- DB_VERSION_STRING, version);
+- return 1;
+- }
+-#endif
+-
+- return 0;
+-}]])],[ol_cv_berkeley_db_version=yes],[ol_cv_berkeley_db_version=no],[ol_cv_berkeley_db_version=cross])
+-
+- LIBS="$ol_LIBS"
+ ])
+
+- if test $ol_cv_berkeley_db_version = no ; then
+- AC_MSG_ERROR([Berkeley DB version mismatch])
+- fi
+-])dnl
+-dnl
+ dnl --------------------------------------------------------------------
+-dnl Check if Berkeley DB supports DB_THREAD
+-AC_DEFUN([OL_BERKELEY_DB_THREAD],
+-[AC_CACHE_CHECK([for Berkeley DB thread support], [ol_cv_berkeley_db_thread], [
+- ol_LIBS="$LIBS"
+- LIBS="$LTHREAD_LIBS $LIBS"
+- if test $ol_cv_lib_db != yes ; then
+- LIBS="$ol_cv_lib_db $LIBS"
+- fi
+-
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-#ifdef HAVE_DB_185_H
+- choke me;
+-#else
+-#include <db.h>
+-#endif
+-#ifndef NULL
+-#define NULL ((void *)0)
+-#endif
+-main()
+-{
+- int rc;
+- u_int32_t flags = DB_CREATE |
+-#ifdef DB_PRIVATE
+- DB_PRIVATE |
+-#endif
+- DB_THREAD;
+-
+-#if DB_VERSION_MAJOR > 2
+- DB_ENV *env = NULL;
+-
+- rc = db_env_create( &env, 0 );
++dnl Check for version compatility with back-mdb
++AC_DEFUN([OL_MDB_COMPAT],
++[AC_CACHE_CHECK([if LMDB version supported by MDB backends], [ol_cv_mdb_compat],[
++ AC_EGREP_CPP(__mdb_version_compat,[
++#include <lmdb.h>
+
+- flags |= DB_INIT_MPOOL;
+-#ifdef DB_MPOOL_PRIVATE
+- flags |= DB_MPOOL_PRIVATE;
++/* require 0.9.18 or later */
++#if MDB_VERSION_FULL >= 0x000000090012
++ __mdb_version_compat
+ #endif
+-
+- if( rc ) {
+- printf("BerkeleyDB: %s\n", db_strerror(rc) );
+- return rc;
+- }
+-
+-#if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
+- rc = (env->open)( env, NULL, flags, 0 );
+-#else
+- rc = (env->open)( env, NULL, NULL, flags, 0 );
+-#endif
+-
+- if ( rc == 0 ) {
+- rc = env->close( env, 0 );
+- }
+-
+- if( rc ) {
+- printf("BerkeleyDB: %s\n", db_strerror(rc) );
+- return rc;
+- }
+-
+-#else
+- DB_ENV env;
+- memset( &env, '\0', sizeof(env) );
+-
+- rc = db_appinit( NULL, NULL, &env, flags );
+-
+- if( rc == 0 ) {
+- db_appexit( &env );
+- }
+-
+- unlink("__db_mpool.share");
+- unlink("__db_lock.share");
+-#endif
+-
+- return rc;
+-}]])],[ol_cv_berkeley_db_thread=yes],[ol_cv_berkeley_db_thread=no],[ol_cv_berkeley_db_thread=cross])
+-
+- LIBS="$ol_LIBS"
++ ], [ol_cv_mdb_compat=yes], [ol_cv_mdb_compat=no])])
+ ])
+
+- if test $ol_cv_berkeley_db_thread != no ; then
+- AC_DEFINE([HAVE_BERKELEY_DB_THREAD], [1],
+- [define if Berkeley DB has DB_THREAD support])
+- fi
+-])dnl
+ dnl
+ dnl --------------------------------------------------------------------
+-dnl Find any DB
+-AC_DEFUN([OL_BERKELEY_DB],
+-[ol_cv_berkeley_db=no
+-AC_CHECK_HEADERS(db.h)
+-if test $ac_cv_header_db_h = yes; then
+- OL_BDB_HEADER_VERSION
+- OL_BDB_COMPAT
+-
+- if test $ol_cv_bdb_compat != yes ; then
+- AC_MSG_ERROR([BerkeleyDB version incompatible with BDB/HDB backends])
++dnl Find any MDB
++AC_DEFUN([OL_MDB],
++[ol_cv_mdb=no
++AC_CHECK_HEADERS(lmdb.h)
++if test $ac_cv_header_lmdb_h = yes; then
++ OL_MDB_COMPAT
++
++ if test $ol_cv_mdb_compat != yes ; then
++ AC_MSG_ERROR([LMDB version incompatible with MDB backends])
+ fi
+
+- OL_BERKELEY_DB_LINK
+- if test "$ol_cv_lib_db" != no ; then
+- ol_cv_berkeley_db=yes
+- OL_BERKELEY_DB_VERSION
+- OL_BERKELEY_DB_THREAD
+- fi
++ ol_cv_lib_mdb=-llmdb
++ ol_cv_mdb=yes
+ fi
+ ])
+-dnl --------------------------------------------------------------------
+-dnl Check for version compatility with back-bdb
+-AC_DEFUN([OL_BDB_COMPAT],
+-[AC_CACHE_CHECK([if Berkeley DB version supported by BDB/HDB backends], [ol_cv_bdb_compat],[
+- AC_EGREP_CPP(__db_version_compat,[
+-#include <db.h>
+-
+- /* this check could be improved */
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-#ifndef DB_VERSION_MINOR
+-# define DB_VERSION_MINOR 0
+-#endif
+-
+-#define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
+
+-/* require 4.4 or later */
+-#if DB_VERSION_MM >= 0x0404
+- __db_version_compat
+-#endif
+- ], [ol_cv_bdb_compat=yes], [ol_cv_bdb_compat=no])])
+-])
+
+ dnl
+ dnl ====================================================================
+@@ -664,12 +392,10 @@ AC_DEFUN([OL_PTHREAD_TEST_FUNCTION],[[
+ return 0;
+ ]])
+
+-AC_DEFUN([OL_PTHREAD_TEST_PROGRAM], [
+-AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
++AC_DEFUN([OL_PTHREAD_TEST_PROGRAM],
++[AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
+
+-int main(argc, argv)
+- int argc;
+- char **argv;
++int main(int argc, char **argv)
+ {
+ OL_PTHREAD_TEST_FUNCTION
+ }
+@@ -706,7 +432,7 @@ dnl Check GNU Pth pthread Header
+ dnl
+ dnl defines ol_cv_header linux_threads to 'yes' or 'no'
+ dnl 'no' implies pthreads.h is not LinuxThreads or pthreads.h
+-dnl doesn't exists. Existance of pthread.h should separately
++dnl doesn't exist. Existence of pthread.h should separately
+ dnl checked.
+ dnl
+ AC_DEFUN([OL_HEADER_GNU_PTH_PTHREAD_H], [
+@@ -728,7 +454,7 @@ AC_DEFUN([OL_NT_THREADS], [
+ AC_CHECK_FUNC(_beginthread)
+
+ if test $ac_cv_func__beginthread = yes ; then
+- AC_DEFINE([HAVE_NT_THREADS], [1], [if you have NT Threads])
++ AC_DEFINE(HAVE_NT_THREADS,1,[if you have NT Threads])
+ ol_cv_nt_threads=yes
+ fi
+ ])
+@@ -737,7 +463,7 @@ dnl Check LinuxThreads Header
+ dnl
+ dnl defines ol_cv_header linux_threads to 'yes' or 'no'
+ dnl 'no' implies pthreads.h is not LinuxThreads or pthreads.h
+-dnl doesn't exists. Existance of pthread.h should separately
++dnl doesn't exist. Existence of pthread.h should separately
+ dnl checked.
+ dnl
+ AC_DEFUN([OL_HEADER_LINUX_THREADS], [
+@@ -749,7 +475,7 @@ AC_DEFUN([OL_HEADER_LINUX_THREADS], [
+ [ol_cv_header_linux_threads=no])
+ ])
+ if test $ol_cv_header_linux_threads = yes; then
+- AC_DEFINE([HAVE_LINUX_THREADS], [1], [if you have LinuxThreads])
++ AC_DEFINE(HAVE_LINUX_THREADS,1,[if you have LinuxThreads])
+ fi
+ ])dnl
+ dnl --------------------------------------------------------------------
+@@ -791,7 +517,7 @@ AC_CACHE_CHECK([for compatible POSIX regex],ol_cv_c_posix_regex,[
+ #include <sys/types.h>
+ #include <regex.h>
+ static char *pattern, *string;
+-main()
++int main(void)
+ {
+ int rc;
+ regex_t re;
+@@ -818,7 +544,8 @@ AC_DEFUN([OL_C_UPPER_LOWER],
+ [AC_CACHE_CHECK([if toupper() requires islower()],ol_cv_c_upper_lower,[
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+ #include <ctype.h>
+-main()
++#include <stdlib.h>
++int main(void)
+ {
+ if ('C' == toupper('C'))
+ exit(0);
+@@ -826,7 +553,7 @@ main()
+ exit(1);
+ }]])],[ol_cv_c_upper_lower=no],[ol_cv_c_upper_lower=yes],[ol_cv_c_upper_lower=safe])])
+ if test $ol_cv_c_upper_lower != no ; then
+- AC_DEFINE([C_UPPER_LOWER], [1], [define if toupper() requires islower()])
++ AC_DEFINE(C_UPPER_LOWER,1, [define if toupper() requires islower()])
+ fi
+ ])
+ dnl
+@@ -837,29 +564,32 @@ dnl Check for declaration of sys_errlist in one of stdio.h and errno.h.
+ dnl Declaration of sys_errlist on BSD4.4 interferes with our declaration.
+ dnl Reported by Keith Bostic.
+ AC_DEFUN([OL_SYS_ERRLIST],
+-[AC_CACHE_CHECK([declaration of sys_errlist],ol_cv_dcl_sys_errlist,[
+- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
++[AC_CACHE_CHECK([existence of sys_errlist],ol_cv_have_sys_errlist,[
++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[char *c = (char *) *sys_errlist]])],[ol_cv_have_sys_errlist=yes],[ol_cv_have_sys_errlist=no])])
++if test $ol_cv_have_sys_errlist = yes ; then
++ AC_DEFINE(HAVE_SYS_ERRLIST,1,
++ [define if you actually have sys_errlist in your libs])
++ AC_CACHE_CHECK([declaration of sys_errlist],ol_cv_dcl_sys_errlist,[
++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <errno.h>
+ #ifdef _WIN32
+ #include <stdlib.h>
+-#endif ]], [[char *c = (char *) *sys_errlist]])],[ol_cv_dcl_sys_errlist=yes
+- ol_cv_have_sys_errlist=yes],[ol_cv_dcl_sys_errlist=no])])
++#endif ]], [[char *c = (char *) *sys_errlist]])],[ol_cv_dcl_sys_errlist=yes],
++ [ol_cv_dcl_sys_errlist=no])])
+ #
+-# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
+-if test $ol_cv_dcl_sys_errlist = no ; then
+- AC_DEFINE([DECL_SYS_ERRLIST], [1],
+- [define if sys_errlist is not declared in stdio.h or errno.h])
+-
+- AC_CACHE_CHECK([existence of sys_errlist],ol_cv_have_sys_errlist,[
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[char *c = (char *) *sys_errlist]])],[ol_cv_have_sys_errlist=yes],[ol_cv_have_sys_errlist=no])])
+-fi
+-if test $ol_cv_have_sys_errlist = yes ; then
+- AC_DEFINE([HAVE_SYS_ERRLIST], [1],
+- [define if you actually have sys_errlist in your libs])
++ # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
++ if test $ol_cv_dcl_sys_errlist = no ; then
++ AC_DEFINE(DECL_SYS_ERRLIST,1,
++ [define if sys_errlist is not declared in stdio.h or errno.h])
++ fi
+ fi
+ ])dnl
++dnl
++dnl ====================================================================
++dnl glibc supplies a non-standard strerror_r if _GNU_SOURCE is defined.
++dnl It's actually preferable to the POSIX version, if available.
+ AC_DEFUN([OL_NONPOSIX_STRERROR_R],
+ [AC_CACHE_CHECK([non-posix strerror_r],ol_cv_nonposix_strerror_r,[
+ AC_EGREP_CPP(strerror_r,[#include <string.h>],
+@@ -873,24 +603,23 @@ AC_DEFUN([OL_NONPOSIX_STRERROR_R],
+ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no])
+ else
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+- main() {
++ int main(void) {
+ char buf[100];
+ buf[0] = 0;
+ strerror_r( 1, buf, sizeof buf );
+ exit( buf[0] == 0 );
+ }
+- ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror=no],[ol_cv_nonposix_strerror=no])
++ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no],[ol_cv_nonposix_strerror_r=no])
+ fi
+ ])
+ if test $ol_cv_nonposix_strerror_r = yes ; then
+- AC_DEFINE([HAVE_NONPOSIX_STRERROR_R], [1],
++ AC_DEFINE(HAVE_NONPOSIX_STRERROR_R,1,
+ [define if strerror_r returns char* instead of int])
+ fi
+ ])dnl
+ dnl
+ AC_DEFUN([OL_STRERROR],
+-[OL_SYS_ERRLIST dnl TEMPORARY
+-AC_CHECK_FUNCS(strerror strerror_r)
++[AC_CHECK_FUNCS(strerror strerror_r)
+ ol_cv_func_strerror_r=no
+ if test "${ac_cv_func_strerror_r}" = yes ; then
+ OL_NONPOSIX_STRERROR_R
+@@ -910,7 +639,7 @@ AC_DEFUN([OL_C_VOLATILE],
+ if test $ol_cv_c_volatile = yes; then
+ :
+ else
+- AC_DEFINE([volatile], [], [define as empty if volatile is not supported])
++ AC_DEFINE(volatile,,[define as empty if volatile is not supported])
+ fi
+ ])dnl
+ dnl
+@@ -918,7 +647,7 @@ dnl ====================================================================
+ dnl Look for fetch(3)
+ AC_DEFUN([OL_LIB_FETCH],
+ [ol_LIBS=$LIBS
+-LIBS="-lfetch -lcom_err $LIBS"
++LIBS="-lfetch $LIBS"
+ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #ifdef HAVE_SYS_PARAM_H
+@@ -928,8 +657,8 @@ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
+ #include <fetch.h>]], [[struct url *u = fetchParseURL("file:///"); ]])],[ol_cv_lib_fetch=yes],[ol_cv_lib_fetch=no])])
+ LIBS=$ol_LIBS
+ if test $ol_cv_lib_fetch != no ; then
+- ol_link_fetch="-lfetch -lcom_err"
+- AC_DEFINE([HAVE_FETCH], [1],
++ ol_link_fetch="-lfetch"
++ AC_DEFINE(HAVE_FETCH,1,
+ [define if you actually have FreeBSD fetch(3)])
+ fi
+ ])dnl
+@@ -1094,7 +823,7 @@ AC_DEFUN([OL_FUNC_GETHOSTBYADDR_R_NARGS],
+ ])dnl
+ dnl
+ dnl --------------------------------------------------------------------
+-dnl Check for Cyrus SASL version compatility
++dnl Check for Cyrus SASL version compatibility
+ AC_DEFUN([OL_SASL_COMPAT],
+ [AC_CACHE_CHECK([Cyrus SASL library version], [ol_cv_sasl_compat],[
+ AC_EGREP_CPP(__sasl_compat,[
+@@ -1113,19 +842,3 @@ AC_DEFUN([OL_SASL_COMPAT],
+ #endif
+ ], [ol_cv_sasl_compat=yes], [ol_cv_sasl_compat=no])])
+ ])
+-dnl ====================================================================
+-dnl check for SSL compatibility
+-AC_DEFUN([OL_SSL_COMPAT],
+-[AC_CACHE_CHECK([OpenSSL library version (CRL checking capability)],
+- [ol_cv_ssl_crl_compat],[
+- AC_EGREP_CPP(__ssl_compat,[
+-#ifdef HAVE_OPENSSL_SSL_H
+-#include <openssl/ssl.h>
+-#endif
+-
+-/* Require 0.9.7d+ */
+-#if OPENSSL_VERSION_NUMBER >= 0x0090704fL
+- char *__ssl_compat = "0.9.7d";
+-#endif
+- ], [ol_cv_ssl_crl_compat=yes], [ol_cv_ssl_crl_compat=no])])
+-])
+--
+2.38.1
+
diff --git a/srcpkgs/ntp/template b/srcpkgs/ntp/template
index e190300a74a3a7..c7030f9b7f9d0d 100644
--- a/srcpkgs/ntp/template
+++ b/srcpkgs/ntp/template
@@ -5,7 +5,7 @@ revision=7
build_style=gnu-configure
configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --enable-ntp-signd
--enable-all-clocks ol_cv_pthread_select_yields=yes"
-hostmakedepends="pkg-config bison perl"
+hostmakedepends="pkg-config autoconf automake libtool bison perl"
makedepends="libedit-devel openssl-devel libcap-devel libevent-devel pps-tools-devel"
short_desc="Network Time Protocol daemon and utilities"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -28,6 +28,10 @@ post_extract() {
sed -i 's/linux/GLIBC/g' ntpd/ntpd.c
}
+pre_configure() {
+ autoreconf -fi
+}
+
post_install() {
# Rename files for alternatives.
vmkdir usr/share/man/man8
From 8896aab7ab180fa0e246b2b1e1a8f450ae8ec388 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:57:58 -0800
Subject: [PATCH 11/42] nvi: fix build with gcc14
---
srcpkgs/nvi/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/nvi/template b/srcpkgs/nvi/template
index 8a43e9f7a601b5..3923150ff5a1a6 100644
--- a/srcpkgs/nvi/template
+++ b/srcpkgs/nvi/template
@@ -22,6 +22,8 @@ alternatives="
vi:view.1:/usr/share/man/man1/nview.1
"
+CFLAGS="-fpermissive"
+
post_extract() {
chmod +w $wrksrc/common/options_def.h
}
From 6fee62aad7cfb1918c1ee21cec47997545af7006 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 21:19:48 -0800
Subject: [PATCH 12/42] libsasl: fix build for gcc14
---
srcpkgs/libsasl/patches/gcc14.patch | 70 +++++++++++++++++++++++++++++
1 file changed, 70 insertions(+)
create mode 100644 srcpkgs/libsasl/patches/gcc14.patch
diff --git a/srcpkgs/libsasl/patches/gcc14.patch b/srcpkgs/libsasl/patches/gcc14.patch
new file mode 100644
index 00000000000000..bdaade22f1c903
--- /dev/null
+++ b/srcpkgs/libsasl/patches/gcc14.patch
@@ -0,0 +1,70 @@
+diff -rup digestmd5.c.orig digestmd5.c
+--- a/plugins/digestmd5.c
++++ b/plugins/digestmd5.c
+@@ -86,6 +86,8 @@
+ # include <netinet/in.h>
+ #endif /* WIN32 */
+
++#include <time.h>
++
+ #include <sasl.h>
+ #include <saslplug.h>
+
+
+From 266f0acf7f5e029afbb3e263437039e50cd6c262 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Wed, 23 Feb 2022 00:45:15 +0000
+Subject: [PATCH] Fix <time.h> check
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+We're conditionally including based on HAVE_TIME_H in a bunch of places,
+but we're not actually checking for time.h, so that's never going to be defined.
+
+While at it, add in a missing include in the cram plugin.
+
+This fixes a bunch of implicit declaration warnings:
+```
+ * cyrus-sasl-2.1.28/lib/saslutil.c:280:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:364:41: warning: implicit declaration of function ‘clock’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/plugins/cram.c:132:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:280:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:364:41: warning: implicit declaration of function ‘clock’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/plugins/cram.c:132:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+```
+
+Signed-off-by: Sam James <sam@gentoo.org>
+---
+ configure.ac | 2 +-
+ plugins/cram.c | 4 ++++
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index e1bf53b6..ad781830 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1290,7 +1290,7 @@ AC_CHECK_HEADERS_ONCE([sys/time.h])
+
+ AC_HEADER_DIRENT
+ AC_HEADER_SYS_WAIT
+-AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
++AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h time.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
+
+ IPv6_CHECK_SS_FAMILY()
+ IPv6_CHECK_SA_LEN()
+diff --git a/plugins/cram.c b/plugins/cram.c
+index d02e9baa..695aaa91 100644
+--- a/plugins/cram.c
++++ b/plugins/cram.c
+@@ -53,6 +53,10 @@
+ #endif
+ #include <fcntl.h>
+
++#ifdef HAVE_TIME_H
++#include <time.h>
++#endif
++
+ #include <sasl.h>
+ #include <saslplug.h>
+ #include <saslutil.h>
From 39f3965158004b1df6e7b819552d0aaab25b28ac Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 21:37:47 -0800
Subject: [PATCH 13/42] xbps: fix build with gcc14
---
srcpkgs/xbps/patches/fix-transposed-calloc.patch | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 srcpkgs/xbps/patches/fix-transposed-calloc.patch
diff --git a/srcpkgs/xbps/patches/fix-transposed-calloc.patch b/srcpkgs/xbps/patches/fix-transposed-calloc.patch
new file mode 100644
index 00000000000000..67341372dab79a
--- /dev/null
+++ b/srcpkgs/xbps/patches/fix-transposed-calloc.patch
@@ -0,0 +1,13 @@
+diff --git a/bin/xbps-fbulk/main.c b/bin/xbps-fbulk/main.c
+index 6591bb61..4408bf20 100644
+--- a/bin/xbps-fbulk/main.c
++++ b/bin/xbps-fbulk/main.c
+@@ -397,7 +397,7 @@ runBuilds(const char *bpath)
+ static void
+ addDepn(struct item *item, struct item *xitem)
+ {
+- struct depn *depn = calloc(sizeof(*depn), 1);
++ struct depn *depn = calloc(1, sizeof(*depn));
+ char *logpath3;
+ FILE *fp;
+
From 89099b5bc3842c099a4b40772a4749b76e7b1e97 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 3 Mar 2025 11:53:54 -0800
Subject: [PATCH 14/42] elfutils: update to 0.192.
Fix bulid with gcc14 and musl
---
srcpkgs/elfutils/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/elfutils/template b/srcpkgs/elfutils/template
index fd7a84d5a36c79..7e824c626eb3e3 100644
--- a/srcpkgs/elfutils/template
+++ b/srcpkgs/elfutils/template
@@ -1,13 +1,13 @@
# Template file for 'elfutils'
pkgname=elfutils
-version=0.190
+version=0.192
revision=1
build_style=gnu-configure
-configure_args="--program-prefix=eu-"
+configure_args="--program-prefix=eu- --enable-debuginfod --enable-libdebuginfod"
hostmakedepends="pkg-config m4"
_devel_depends="bzip2-devel liblzma-devel zlib-devel libzstd-devel"
makedepends="${_devel_depends} libcurl-devel libarchive-devel sqlite-devel
- libmicrohttpd-devel"
+ libmicrohttpd-devel json-c-devel"
checkdepends="zstd bzip2 curl rpm cpio iproute2 procps-ng"
short_desc="Utilities to handle ELF object files"
maintainer="Érico Nogueira <ericonr@disroot.org>"
@@ -15,7 +15,7 @@ license="GPL-3.0-or-later"
homepage="https://sourceware.org/elfutils/"
changelog="https://sourceware.org/git/?p=elfutils.git;a=blob_plain;f=NEWS;hb=HEAD"
distfiles="https://sourceware.org/pub/elfutils/${version}/elfutils-${version}.tar.bz2"
-checksum=8e00a3a9b5f04bc1dc273ae86281d2d26ed412020b391ffcc23198f10231d692
+checksum=616099beae24aba11f9b63d86ca6cc8d566d968b802391334c91df54eab416b4
# subpackages require explicit ordering
subpackages="debuginfod libdebuginfod libelf elfutils-devel"
CFLAGS="-Wno-error=deprecated-declarations" # curl 7.55+
From 80c7b1773913095883e7f16ec5a271ae072cd476 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 3 Mar 2025 11:54:42 -0800
Subject: [PATCH 15/42] iproute2: update to 6.13.0.
Fix build with gcc14 and musl.
---
srcpkgs/iproute2/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/iproute2/template b/srcpkgs/iproute2/template
index 44829a4e0d9010..bbab6772e8656d 100644
--- a/srcpkgs/iproute2/template
+++ b/srcpkgs/iproute2/template
@@ -1,6 +1,6 @@
# Template file for 'iproute2'
pkgname=iproute2
-version=6.10.0
+version=6.13.0
revision=1
build_style=configure
make_install_args="SBINDIR=/usr/bin"
@@ -12,7 +12,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://wiki.linuxfoundation.org/networking/iproute2"
distfiles="${KERNEL_SITE}/utils/net/iproute2/iproute2-${version}.tar.xz"
-checksum=91a62f82737b44905a00fa803369c447d549e914e9a2a4018fdd75b1d54e8dce
+checksum=a43aa43338d882b44d01e549f3f105a92ae9feea32a82fae45a88e7a49302819
# Requires unshare, which is not provided by chroot-util-linux.
make_check=no
From f63a1e1cfafcc79eb8a711a43756a70f21633345 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 16/42] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From 1f386e761c0c73f259c950d696288ea836524563 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 17/42] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..92c2d178e7d647 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 8c3d01eef49e012a23da41054a7daf2a15b843f4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 18/42] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..85db97e4a226fc 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From e69103f1cdddc19b27dffcf01ce37884a41b943b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 19/42] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..8a728f493edeb6 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 64a19b56639168c3e836246badcd4c824d6f6f0d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 20/42] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..977a854aa73247 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ed423347b4780f154b6828de40a998d4680bf7bf Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 21/42] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..5e1a0ca354c14c 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 39a971a61fcd9ab4f1def8138a40925ec94d676c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 22/42] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..a322434f077d3d 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 7da44292d4dcf168cd2dc6880482ad0579b67db2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 23/42] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..c89746608c8b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From c5a2c9bc90bef4eb9b388cd78b1bc4189a7be9a6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 24/42] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..0be817c88f2d09 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 24caa2940f86a315a313f6735ad3f688acd764ea Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 25/42] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..b0066e4bd92d4c 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 73920ae1132ae50dfdc49530ba533e1296cd34ac Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 26/42] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..99dfdd11548326 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 2f1626f0f46a3fedb05052a09d37c00761c3f3f0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 27/42] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..51c9c48320aac6 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 5cc25dffa25aa4d84d908f4c8f76ff6414b36999 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 28/42] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..bf210fc49481ef 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 44861b04d572fc91db75b1dcf5bbd3246866c7d0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 29/42] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..66ca7dd8207192 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 76e0b2225f06dba580fad692f5f9113ec8103f50 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 30/42] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..1695336c06c58c 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 239c48e21f5be2dcffd777fe4f13228308f9cac7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 31/42] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..bf6c7ebc23c050 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 68cb8e63a57f9fc2cf0f4de6668ce05425963ca9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 32/42] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..f83a8acb09878c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From aaad40e3d81015e0ca661cc7d1a68c6b81de30ef Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 33/42] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..9ea4921f0c0888 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 9ce0f38a934829faabbb8e4de645c6653c1f03f3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 34/42] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..855f38e88b7c12 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From a8d5c4d653d29e4f9d0a3f89ea4485e2478f802b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 35/42] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..8dd06a1dc65f68 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 62cd04f9bcfbaf832ea26c04a1b3cb463321b539 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 36/42] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..d70d94cf225088 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 01acad5d123d0772fbd1d330d561f506c433101a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 37/42] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..1fa175ec63d2d7 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,9 +22,9 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 22e065d2537ee6a60b9ca88126b4824a725ac0ff Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 38/42] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..5887a1dbafead4 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 4fe7221d6bf2b80898029d4f7cf18a7f26ccf97d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 39/42] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..b15ecaca36cc48 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 9162bb177f492be3f25c1889239c20a5737acc41 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 40/42] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..31483e4837a283 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 1c56375a1ae944d5ed5074b2868a95fe58d2dc44 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 41/42] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..95beba72b8b622 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 802bdf54b380cccb40c2952a9c571e0952dcfc95 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:47 -0800
Subject: [PATCH 42/42] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..316b1d3896233d 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (26 preceding siblings ...)
2025-03-03 20:27 ` oreo639
@ 2025-03-04 23:20 ` oreo639
2025-03-07 13:55 ` [PR PATCH] [Updated] " oreo639
` (35 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-03-04 23:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2216705467
Comment:
> i've added `--enable-host-pie`, and `--enable-host-bind-now` to my build, and removed `nopie`. maybe void should consider adding those configure args too.
Thanks for pointing those out.
Keep in mind those flags only apply to the host executables (e.g. `/usr/bin/gcc`, `cc1`, `cc1plus`, etc. as opposed to the libraries or the default flags when compiling).
Those flags are relatively new, and looking upstream there is a patch for a runtime issue caused by `--enable-host-pie` on PPC https://github.com/gcc-mirror/gcc/commit/4cf2de9b5268224816a3d53fdd2c3d799ebfd9c8 so it might make sense to give more time for those regressions to get found and ironed out before enabling.
The only distro that enables them by default atm, afaict, is RHEL (whereas it is disabled when building gcc for Fedora).
Feel free to let me know if I am missing something.
Edit: At least in Fedora's case, they are disabled for performance reasons, although I'm not sure how big the difference is.
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (27 preceding siblings ...)
2025-03-04 23:20 ` oreo639
@ 2025-03-07 13:55 ` oreo639
2025-03-17 6:00 ` oreo639
` (34 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-03-07 13:55 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 4037 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp
- [x] libsasl
- [x] nvi (done in this pr)
- [x] xbps
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
- [x] gtk+
- [ ] gtk+3 https://github.com/void-linux/void-packages/pull/54187
- [x] libaom
- [x] perl-Tk
- [ ] gnu-efi-libs https://github.com/void-linux/void-packages/pull/54615
- [x] syslinux
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [ ] elfutils https://github.com/void-linux/void-packages/pull/54566
- [ ] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [ ] sane https://github.com/void-linux/void-packages/pull/54614
- [x] mdadm
- [x] pulseaudio (broken due to configure checks detecting presence of open64, this is fixed in musl 1.2.x https://github.com/bminor/musl/commit/246f1c811448f37a44b41cd8df8d0ef9736d95f4 https://github.com/bminor/musl/commit/50ab830633134dac99011219f0210ee2759ffbde)
- [x] gpm
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration instead of segfaulting later due to implicit pointer truncation. This is good, but ofc, packages need to be checked for this.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, please test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 159138 bytes --]
From 4fa5b5fc5a7c03a59d7604db05c5548729fed30e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/42] binutils: update to 2.44.
---
srcpkgs/binutils/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..e10403f1ed7ae7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From 5421546c2621480966cc85c77ddd850fb5470681 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/42] gcc: update to 14.2.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 20 +-
6 files changed, 20 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index eab9adbbf5df7f..02beac61f242a2 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.38 perl-5.38.0_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..a8aceb6283d8a8 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
@@ -202,6 +202,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -325,6 +326,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+
+ # Disable explicit -fno-PIE, gcc will figure this out itself.
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +352,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +361,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
From 54dc2e36c9e826723b298de6d4cf65b9860ef759 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 03/42] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
common/shlibs | 60 +-
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
7 files changed, 33 insertions(+), 1003 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/common/shlibs b/common/shlibs
index 02beac61f242a2..d2284b75063b04 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -17,36 +17,36 @@
# one (order top->bottom) is preferred over the next ones.
#
libc.so musl-1.1.24_7
-libc.so.6 glibc-2.39_1
-libm.so.6 glibc-2.39_1
-libpthread.so.0 glibc-2.39_1
-librt.so.1 glibc-2.39_1
-libdl.so.2 glibc-2.39_1
-ld-linux-x86-64.so.2 glibc-2.39_1 x86_64
-ld-linux.so.2 glibc-2.39_1 i686
-ld-linux.so.3 glibc-2.39_1 armv5tel
-ld-linux-aarch64.so.1 glibc-2.39_1 aarch64
-ld-linux-riscv64-lp64d.so.1 glibc-2.39_1 riscv64
-ld64.so.2 glibc-2.39_1 ppc64
-ld.so.1 glibc-2.39_1 mips
-ld.so.1 glibc-2.39_1 ppc
-ld-linux-armhf.so.3 glibc-2.39_1
-libresolv.so.2 glibc-2.39_1
-libanl.so.1 glibc-2.39_1
-libthread_db.so.1 glibc-2.39_1
-libutil.so.1 glibc-2.39_1
-libnsl.so.1 glibc-2.39_1
-libnss_db.so.2 glibc-2.39_1
-libnss_files.so.2 glibc-2.39_1
-libnss_compat.so.2 glibc-2.39_1
-libnss_dns.so.2 glibc-2.39_1
-libnss_hesiod.so.2 glibc-2.39_1
-libBrokenLocale.so.1 glibc-2.39_1
-libmemusage.so glibc-2.39_1
-libSegFault.so glibc-2.39_1
-libpcprofile.so glibc-2.39_1
-libcidn.so.1 glibc-2.39_1
-libmvec.so.1 glibc-2.39_1
+libc.so.6 glibc-2.41_1
+libm.so.6 glibc-2.41_1
+libpthread.so.0 glibc-2.41_1
+librt.so.1 glibc-2.41_1
+libdl.so.2 glibc-2.41_1
+ld-linux-x86-64.so.2 glibc-2.41_1 x86_64
+ld-linux.so.2 glibc-2.41_1 i686
+ld-linux.so.3 glibc-2.41_1 armv5tel
+ld-linux-aarch64.so.1 glibc-2.41_1 aarch64
+ld-linux-riscv64-lp64d.so.1 glibc-2.41_1 riscv64
+ld64.so.2 glibc-2.41_1 ppc64
+ld.so.1 glibc-2.41_1 mips
+ld.so.1 glibc-2.41_1 ppc
+ld-linux-armhf.so.3 glibc-2.41_1
+libresolv.so.2 glibc-2.41_1
+libanl.so.1 glibc-2.41_1
+libthread_db.so.1 glibc-2.41_1
+libutil.so.1 glibc-2.41_1
+libnsl.so.1 glibc-2.41_1
+libnss_db.so.2 glibc-2.41_1
+libnss_files.so.2 glibc-2.41_1
+libnss_compat.so.2 glibc-2.41_1
+libnss_dns.so.2 glibc-2.41_1
+libnss_hesiod.so.2 glibc-2.41_1
+libBrokenLocale.so.1 glibc-2.41_1
+libmemusage.so glibc-2.41_1
+libSegFault.so glibc-2.41_1
+libpcprofile.so glibc-2.41_1
+libcidn.so.1 glibc-2.41_1
+libmvec.so.1 glibc-2.41_1
libcrypt.so.2 libxcrypt-4.4.36_1
libcrypt.so.1 libxcrypt-compat-4.4.36_1
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From c3ed44ede6fbe7a3bf48552643c8913208deb135 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 04/42] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
1 file changed, 55 insertions(+)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
From eef5482879914f837b49d7510d3c9bd03ff98f2c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 05/42] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 6a05a314f04e10deb9b7d5e77bb6ba61996161a4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 06/42] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 05453f3c0d0e5577456a2ba1bff8f6d07b34cca0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 07/42] gcc-multilib: update to 14.2.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From 4ad3f3b9e45844e1a285b6ff8ed886a5003d72e3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 08/42] libgccjit: update to 14.2.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From 8a8c053159139667e0801bebf85748a09fc54769 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 09/42] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From 8beb13a254b1af68b27d499d512503fb4df88079 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:56:36 -0800
Subject: [PATCH 10/42] ntp: fix build with gcc14
---
srcpkgs/ntp/patches/gcc14.patch | 612 ++++++++++++++++++++++++++++++++
srcpkgs/ntp/template | 6 +-
2 files changed, 617 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/ntp/patches/gcc14.patch
diff --git a/srcpkgs/ntp/patches/gcc14.patch b/srcpkgs/ntp/patches/gcc14.patch
new file mode 100644
index 00000000000000..925543ee1fe669
--- /dev/null
+++ b/srcpkgs/ntp/patches/gcc14.patch
@@ -0,0 +1,612 @@
+Source: https://gitweb.gentoo.org/repo/gentoo.git/plain/net-misc/ntp/files/ntp-4.2.8_p15-configure-clang16.patch?id=9cc28f1d1f1f13da5537fe125931bd4b1fef97cf
+
+Sync with OpenLDAP. Uses Arsen's patch from https://bugs.gentoo.org/871288.
+
+https://bugs.gentoo.org/871372
+--- a/sntp/m4/openldap-thread-check.m4
++++ b/sntp/m4/openldap-thread-check.m4
+@@ -262,10 +262,8 @@ pthread_rwlock_t rwlock;
+ dnl save the flags
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #include <pthread.h>
+-#ifndef NULL
+-#define NULL (void*)0
+-#endif
+-]], [[pthread_detach(NULL);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
++pthread_t thread;
++]], [[pthread_detach(thread);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
+ ])
+
+ if test $ol_cv_func_pthread_detach = no ; then
+--- a/sntp/m4/openldap.m4
++++ b/sntp/m4/openldap.m4
+@@ -1,16 +1,16 @@
+ dnl OpenLDAP Autoconf Macros
+-dnl $OpenLDAP: pkg/ldap/build/openldap.m4,v 1.157.2.10 2010/04/13 20:22:21 kurt Exp $
++dnl $OpenLDAP$
+ dnl This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ dnl
+-dnl Copyright 1998-2010 The OpenLDAP Foundation.
++dnl Copyright 1998-2022 The OpenLDAP Foundation.
+ dnl All rights reserved.
+ dnl
+ dnl Redistribution and use in source and binary forms, with or without
+ dnl modification, are permitted only as authorized by the OpenLDAP
+ dnl Public License.
+ dnl
+-dnl A copy of this license is available in the file LICENSE-OPENLDAP in
+-dnl this directory of the distribution or, alternatively, at
++dnl A copy of this license is available in the file LICENSE in the
++dnl top-level directory of the distribution or, alternatively, at
+ dnl <http://www.OpenLDAP.org/license.html>.
+ dnl
+ dnl --------------------------------------------------------------------
+@@ -154,6 +154,7 @@ fi
+ if test $ol_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <ctype.h>
++#include <stdlib.h>
+ #ifndef HAVE_EBCDIC
+ # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+ # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+@@ -170,7 +171,7 @@ exit (0); }
+ ]])],[],[ol_cv_header_stdc=no],[:])
+ fi])
+ if test $ol_cv_header_stdc = yes; then
+- AC_DEFINE([STDC_HEADERS], [1], [is standard C provided?])
++ AC_DEFINE(STDC_HEADERS)
+ fi
+ ac_cv_header_stdc=disable
+ ])
+@@ -242,313 +243,40 @@ AC_DEFUN([OL_RESOLVER_LINK],
+ OL_RESOLVER_TRY(ol_cv_resolver_none)
+ OL_RESOLVER_TRY(ol_cv_resolver_resolv,[-lresolv])
+ OL_RESOLVER_TRY(ol_cv_resolver_bind,[-lbind])
+-])
+-dnl
+-dnl ====================================================================
+-dnl International Components for Unicode (ICU)
+-AC_DEFUN([OL_ICU],
+-[ol_icu=no
+-AC_CHECK_HEADERS( unicode/utypes.h )
+-if test $ac_cv_header_unicode_utypes_h = yes ; then
+- dnl OL_ICULIBS="-licui18n -licuuc -licudata"
+- OL_ICULIBS="-licuuc -licudata"
+-
+- AC_CACHE_CHECK([for ICU libraries], [ol_cv_lib_icu], [
+- ol_LIBS="$LIBS"
+- LIBS="$OL_ICULIBS $LIBS"
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+-#include <unicode/utypes.h>
+-]], [[
+-(void) u_errorName(0);
+-]])],[ol_cv_lib_icu=yes],[ol_cv_lib_icu=no])
+- LIBS="$ol_LIBS"
+-])
+-
+- if test $ol_cv_lib_icu != no ; then
+- ol_icu="$OL_ICULIBS"
+- AC_DEFINE([HAVE_ICU], [1], [define if you actually have ICU])
+- fi
+-fi
+-])
+-dnl
+-dnl ====================================================================
+-dnl Berkeley DB macros
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Try to link
+-AC_DEFUN([OL_BERKELEY_DB_TRY],
+-[if test $ol_cv_lib_db = no ; then
+- AC_CACHE_CHECK([for Berkeley DB link (]ifelse($2,,default,$2)[)],[$1],
+-[
+- ol_DB_LIB=ifelse($2,,,$2)
+- ol_LIBS=$LIBS
+- LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
+-
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+-#ifdef HAVE_DB_185_H
+-# include <db_185.h>
+-#else
+-# include <db.h>
+-#endif
+-
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-
+-#ifndef NULL
+-#define NULL ((void*)0)
+-#endif
+-]], [[
+-#if DB_VERSION_MAJOR > 2
+- db_env_create( NULL, 0 );
+-#elif DB_VERSION_MAJOR > 1
+- db_appexit( NULL );
+-#else
+- (void) dbopen( NULL, 0, 0, 0, NULL);
+-#endif
+-]])],[$1=yes],[$1=no])
+-
+- LIBS="$ol_LIBS"
+-])
+-
+- if test $$1 = yes ; then
+- ol_cv_lib_db=ifelse($2,,yes,$2)
+- fi
+-fi
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Get major and minor version from <db.h>
+-AC_DEFUN([OL_BDB_HEADER_VERSION],
+-[AC_CACHE_CHECK([for Berkeley DB major version in db.h], [ol_cv_bdb_major],[
+- AC_LANG_CONFTEST([
+-#include <db.h>
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-__db_version DB_VERSION_MAJOR
+-])
+- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
+- ol_cv_bdb_major=${3}
+-])
+-case $ol_cv_bdb_major in [[1-9]]*) : ;; *)
+- AC_MSG_ERROR([Unknown Berkeley DB major version in db.h]) ;;
+-esac
+-
+-dnl Determine minor version
+-AC_CACHE_CHECK([for Berkeley DB minor version in db.h], [ol_cv_bdb_minor],[
+- AC_LANG_CONFTEST([
+-#include <db.h>
+-#ifndef DB_VERSION_MINOR
+-# define DB_VERSION_MINOR 0
+-#endif
+-__db_version DB_VERSION_MINOR
+-])
+- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
+- ol_cv_bdb_minor=${3}
+-])
+-case $ol_cv_bdb_minor in [[0-9]]*) : ;; *)
+- AC_MSG_ERROR([Unknown Berkeley DB minor version in db.h]) ;;
+-esac
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Try to locate appropriate library
+-AC_DEFUN([OL_BERKELEY_DB_LINK],
+-[ol_cv_lib_db=no
+-
+-if test $ol_cv_bdb_major = 4 ; then
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4_dot_m,[-ldb-4.$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db4m,[-ldb4$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4m,[-ldb-4$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4_m,[-ldb-4-$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4,[-ldb-4])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db4,[-ldb4])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db,[-ldb])
+-fi
+-OL_BERKELEY_DB_TRY(ol_cv_db_none)
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Check if Berkeley DB version
+-AC_DEFUN([OL_BERKELEY_DB_VERSION],
+-[AC_CACHE_CHECK([for Berkeley DB library and header version match], [ol_cv_berkeley_db_version], [
+- ol_LIBS="$LIBS"
+- LIBS="$LTHREAD_LIBS $LIBS"
+- if test $ol_cv_lib_db != yes ; then
+- LIBS="$ol_cv_lib_db $LIBS"
+- fi
+-
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-#ifdef HAVE_DB_185_H
+- choke me;
+-#else
+-#include <db.h>
+-#endif
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-#ifndef NULL
+-#define NULL ((void *)0)
+-#endif
+-main()
+-{
+-#if DB_VERSION_MAJOR > 1
+- char *version;
+- int major, minor, patch;
+-
+- version = db_version( &major, &minor, &patch );
+-
+- if( major != DB_VERSION_MAJOR ||
+- minor != DB_VERSION_MINOR ||
+- patch != DB_VERSION_PATCH )
+- {
+- printf("Berkeley DB version mismatch\n"
+- "\theader: %s\n\tlibrary: %s\n",
+- DB_VERSION_STRING, version);
+- return 1;
+- }
+-#endif
+-
+- return 0;
+-}]])],[ol_cv_berkeley_db_version=yes],[ol_cv_berkeley_db_version=no],[ol_cv_berkeley_db_version=cross])
+-
+- LIBS="$ol_LIBS"
+ ])
+
+- if test $ol_cv_berkeley_db_version = no ; then
+- AC_MSG_ERROR([Berkeley DB version mismatch])
+- fi
+-])dnl
+-dnl
+ dnl --------------------------------------------------------------------
+-dnl Check if Berkeley DB supports DB_THREAD
+-AC_DEFUN([OL_BERKELEY_DB_THREAD],
+-[AC_CACHE_CHECK([for Berkeley DB thread support], [ol_cv_berkeley_db_thread], [
+- ol_LIBS="$LIBS"
+- LIBS="$LTHREAD_LIBS $LIBS"
+- if test $ol_cv_lib_db != yes ; then
+- LIBS="$ol_cv_lib_db $LIBS"
+- fi
+-
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-#ifdef HAVE_DB_185_H
+- choke me;
+-#else
+-#include <db.h>
+-#endif
+-#ifndef NULL
+-#define NULL ((void *)0)
+-#endif
+-main()
+-{
+- int rc;
+- u_int32_t flags = DB_CREATE |
+-#ifdef DB_PRIVATE
+- DB_PRIVATE |
+-#endif
+- DB_THREAD;
+-
+-#if DB_VERSION_MAJOR > 2
+- DB_ENV *env = NULL;
+-
+- rc = db_env_create( &env, 0 );
++dnl Check for version compatility with back-mdb
++AC_DEFUN([OL_MDB_COMPAT],
++[AC_CACHE_CHECK([if LMDB version supported by MDB backends], [ol_cv_mdb_compat],[
++ AC_EGREP_CPP(__mdb_version_compat,[
++#include <lmdb.h>
+
+- flags |= DB_INIT_MPOOL;
+-#ifdef DB_MPOOL_PRIVATE
+- flags |= DB_MPOOL_PRIVATE;
++/* require 0.9.18 or later */
++#if MDB_VERSION_FULL >= 0x000000090012
++ __mdb_version_compat
+ #endif
+-
+- if( rc ) {
+- printf("BerkeleyDB: %s\n", db_strerror(rc) );
+- return rc;
+- }
+-
+-#if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
+- rc = (env->open)( env, NULL, flags, 0 );
+-#else
+- rc = (env->open)( env, NULL, NULL, flags, 0 );
+-#endif
+-
+- if ( rc == 0 ) {
+- rc = env->close( env, 0 );
+- }
+-
+- if( rc ) {
+- printf("BerkeleyDB: %s\n", db_strerror(rc) );
+- return rc;
+- }
+-
+-#else
+- DB_ENV env;
+- memset( &env, '\0', sizeof(env) );
+-
+- rc = db_appinit( NULL, NULL, &env, flags );
+-
+- if( rc == 0 ) {
+- db_appexit( &env );
+- }
+-
+- unlink("__db_mpool.share");
+- unlink("__db_lock.share");
+-#endif
+-
+- return rc;
+-}]])],[ol_cv_berkeley_db_thread=yes],[ol_cv_berkeley_db_thread=no],[ol_cv_berkeley_db_thread=cross])
+-
+- LIBS="$ol_LIBS"
++ ], [ol_cv_mdb_compat=yes], [ol_cv_mdb_compat=no])])
+ ])
+
+- if test $ol_cv_berkeley_db_thread != no ; then
+- AC_DEFINE([HAVE_BERKELEY_DB_THREAD], [1],
+- [define if Berkeley DB has DB_THREAD support])
+- fi
+-])dnl
+ dnl
+ dnl --------------------------------------------------------------------
+-dnl Find any DB
+-AC_DEFUN([OL_BERKELEY_DB],
+-[ol_cv_berkeley_db=no
+-AC_CHECK_HEADERS(db.h)
+-if test $ac_cv_header_db_h = yes; then
+- OL_BDB_HEADER_VERSION
+- OL_BDB_COMPAT
+-
+- if test $ol_cv_bdb_compat != yes ; then
+- AC_MSG_ERROR([BerkeleyDB version incompatible with BDB/HDB backends])
++dnl Find any MDB
++AC_DEFUN([OL_MDB],
++[ol_cv_mdb=no
++AC_CHECK_HEADERS(lmdb.h)
++if test $ac_cv_header_lmdb_h = yes; then
++ OL_MDB_COMPAT
++
++ if test $ol_cv_mdb_compat != yes ; then
++ AC_MSG_ERROR([LMDB version incompatible with MDB backends])
+ fi
+
+- OL_BERKELEY_DB_LINK
+- if test "$ol_cv_lib_db" != no ; then
+- ol_cv_berkeley_db=yes
+- OL_BERKELEY_DB_VERSION
+- OL_BERKELEY_DB_THREAD
+- fi
++ ol_cv_lib_mdb=-llmdb
++ ol_cv_mdb=yes
+ fi
+ ])
+-dnl --------------------------------------------------------------------
+-dnl Check for version compatility with back-bdb
+-AC_DEFUN([OL_BDB_COMPAT],
+-[AC_CACHE_CHECK([if Berkeley DB version supported by BDB/HDB backends], [ol_cv_bdb_compat],[
+- AC_EGREP_CPP(__db_version_compat,[
+-#include <db.h>
+-
+- /* this check could be improved */
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-#ifndef DB_VERSION_MINOR
+-# define DB_VERSION_MINOR 0
+-#endif
+-
+-#define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
+
+-/* require 4.4 or later */
+-#if DB_VERSION_MM >= 0x0404
+- __db_version_compat
+-#endif
+- ], [ol_cv_bdb_compat=yes], [ol_cv_bdb_compat=no])])
+-])
+
+ dnl
+ dnl ====================================================================
+@@ -664,12 +392,10 @@ AC_DEFUN([OL_PTHREAD_TEST_FUNCTION],[[
+ return 0;
+ ]])
+
+-AC_DEFUN([OL_PTHREAD_TEST_PROGRAM], [
+-AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
++AC_DEFUN([OL_PTHREAD_TEST_PROGRAM],
++[AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
+
+-int main(argc, argv)
+- int argc;
+- char **argv;
++int main(int argc, char **argv)
+ {
+ OL_PTHREAD_TEST_FUNCTION
+ }
+@@ -706,7 +432,7 @@ dnl Check GNU Pth pthread Header
+ dnl
+ dnl defines ol_cv_header linux_threads to 'yes' or 'no'
+ dnl 'no' implies pthreads.h is not LinuxThreads or pthreads.h
+-dnl doesn't exists. Existance of pthread.h should separately
++dnl doesn't exist. Existence of pthread.h should separately
+ dnl checked.
+ dnl
+ AC_DEFUN([OL_HEADER_GNU_PTH_PTHREAD_H], [
+@@ -728,7 +454,7 @@ AC_DEFUN([OL_NT_THREADS], [
+ AC_CHECK_FUNC(_beginthread)
+
+ if test $ac_cv_func__beginthread = yes ; then
+- AC_DEFINE([HAVE_NT_THREADS], [1], [if you have NT Threads])
++ AC_DEFINE(HAVE_NT_THREADS,1,[if you have NT Threads])
+ ol_cv_nt_threads=yes
+ fi
+ ])
+@@ -737,7 +463,7 @@ dnl Check LinuxThreads Header
+ dnl
+ dnl defines ol_cv_header linux_threads to 'yes' or 'no'
+ dnl 'no' implies pthreads.h is not LinuxThreads or pthreads.h
+-dnl doesn't exists. Existance of pthread.h should separately
++dnl doesn't exist. Existence of pthread.h should separately
+ dnl checked.
+ dnl
+ AC_DEFUN([OL_HEADER_LINUX_THREADS], [
+@@ -749,7 +475,7 @@ AC_DEFUN([OL_HEADER_LINUX_THREADS], [
+ [ol_cv_header_linux_threads=no])
+ ])
+ if test $ol_cv_header_linux_threads = yes; then
+- AC_DEFINE([HAVE_LINUX_THREADS], [1], [if you have LinuxThreads])
++ AC_DEFINE(HAVE_LINUX_THREADS,1,[if you have LinuxThreads])
+ fi
+ ])dnl
+ dnl --------------------------------------------------------------------
+@@ -791,7 +517,7 @@ AC_CACHE_CHECK([for compatible POSIX regex],ol_cv_c_posix_regex,[
+ #include <sys/types.h>
+ #include <regex.h>
+ static char *pattern, *string;
+-main()
++int main(void)
+ {
+ int rc;
+ regex_t re;
+@@ -818,7 +544,8 @@ AC_DEFUN([OL_C_UPPER_LOWER],
+ [AC_CACHE_CHECK([if toupper() requires islower()],ol_cv_c_upper_lower,[
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+ #include <ctype.h>
+-main()
++#include <stdlib.h>
++int main(void)
+ {
+ if ('C' == toupper('C'))
+ exit(0);
+@@ -826,7 +553,7 @@ main()
+ exit(1);
+ }]])],[ol_cv_c_upper_lower=no],[ol_cv_c_upper_lower=yes],[ol_cv_c_upper_lower=safe])])
+ if test $ol_cv_c_upper_lower != no ; then
+- AC_DEFINE([C_UPPER_LOWER], [1], [define if toupper() requires islower()])
++ AC_DEFINE(C_UPPER_LOWER,1, [define if toupper() requires islower()])
+ fi
+ ])
+ dnl
+@@ -837,29 +564,32 @@ dnl Check for declaration of sys_errlist in one of stdio.h and errno.h.
+ dnl Declaration of sys_errlist on BSD4.4 interferes with our declaration.
+ dnl Reported by Keith Bostic.
+ AC_DEFUN([OL_SYS_ERRLIST],
+-[AC_CACHE_CHECK([declaration of sys_errlist],ol_cv_dcl_sys_errlist,[
+- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
++[AC_CACHE_CHECK([existence of sys_errlist],ol_cv_have_sys_errlist,[
++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[char *c = (char *) *sys_errlist]])],[ol_cv_have_sys_errlist=yes],[ol_cv_have_sys_errlist=no])])
++if test $ol_cv_have_sys_errlist = yes ; then
++ AC_DEFINE(HAVE_SYS_ERRLIST,1,
++ [define if you actually have sys_errlist in your libs])
++ AC_CACHE_CHECK([declaration of sys_errlist],ol_cv_dcl_sys_errlist,[
++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <errno.h>
+ #ifdef _WIN32
+ #include <stdlib.h>
+-#endif ]], [[char *c = (char *) *sys_errlist]])],[ol_cv_dcl_sys_errlist=yes
+- ol_cv_have_sys_errlist=yes],[ol_cv_dcl_sys_errlist=no])])
++#endif ]], [[char *c = (char *) *sys_errlist]])],[ol_cv_dcl_sys_errlist=yes],
++ [ol_cv_dcl_sys_errlist=no])])
+ #
+-# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
+-if test $ol_cv_dcl_sys_errlist = no ; then
+- AC_DEFINE([DECL_SYS_ERRLIST], [1],
+- [define if sys_errlist is not declared in stdio.h or errno.h])
+-
+- AC_CACHE_CHECK([existence of sys_errlist],ol_cv_have_sys_errlist,[
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[char *c = (char *) *sys_errlist]])],[ol_cv_have_sys_errlist=yes],[ol_cv_have_sys_errlist=no])])
+-fi
+-if test $ol_cv_have_sys_errlist = yes ; then
+- AC_DEFINE([HAVE_SYS_ERRLIST], [1],
+- [define if you actually have sys_errlist in your libs])
++ # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
++ if test $ol_cv_dcl_sys_errlist = no ; then
++ AC_DEFINE(DECL_SYS_ERRLIST,1,
++ [define if sys_errlist is not declared in stdio.h or errno.h])
++ fi
+ fi
+ ])dnl
++dnl
++dnl ====================================================================
++dnl glibc supplies a non-standard strerror_r if _GNU_SOURCE is defined.
++dnl It's actually preferable to the POSIX version, if available.
+ AC_DEFUN([OL_NONPOSIX_STRERROR_R],
+ [AC_CACHE_CHECK([non-posix strerror_r],ol_cv_nonposix_strerror_r,[
+ AC_EGREP_CPP(strerror_r,[#include <string.h>],
+@@ -873,24 +603,23 @@ AC_DEFUN([OL_NONPOSIX_STRERROR_R],
+ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no])
+ else
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+- main() {
++ int main(void) {
+ char buf[100];
+ buf[0] = 0;
+ strerror_r( 1, buf, sizeof buf );
+ exit( buf[0] == 0 );
+ }
+- ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror=no],[ol_cv_nonposix_strerror=no])
++ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no],[ol_cv_nonposix_strerror_r=no])
+ fi
+ ])
+ if test $ol_cv_nonposix_strerror_r = yes ; then
+- AC_DEFINE([HAVE_NONPOSIX_STRERROR_R], [1],
++ AC_DEFINE(HAVE_NONPOSIX_STRERROR_R,1,
+ [define if strerror_r returns char* instead of int])
+ fi
+ ])dnl
+ dnl
+ AC_DEFUN([OL_STRERROR],
+-[OL_SYS_ERRLIST dnl TEMPORARY
+-AC_CHECK_FUNCS(strerror strerror_r)
++[AC_CHECK_FUNCS(strerror strerror_r)
+ ol_cv_func_strerror_r=no
+ if test "${ac_cv_func_strerror_r}" = yes ; then
+ OL_NONPOSIX_STRERROR_R
+@@ -910,7 +639,7 @@ AC_DEFUN([OL_C_VOLATILE],
+ if test $ol_cv_c_volatile = yes; then
+ :
+ else
+- AC_DEFINE([volatile], [], [define as empty if volatile is not supported])
++ AC_DEFINE(volatile,,[define as empty if volatile is not supported])
+ fi
+ ])dnl
+ dnl
+@@ -918,7 +647,7 @@ dnl ====================================================================
+ dnl Look for fetch(3)
+ AC_DEFUN([OL_LIB_FETCH],
+ [ol_LIBS=$LIBS
+-LIBS="-lfetch -lcom_err $LIBS"
++LIBS="-lfetch $LIBS"
+ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #ifdef HAVE_SYS_PARAM_H
+@@ -928,8 +657,8 @@ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
+ #include <fetch.h>]], [[struct url *u = fetchParseURL("file:///"); ]])],[ol_cv_lib_fetch=yes],[ol_cv_lib_fetch=no])])
+ LIBS=$ol_LIBS
+ if test $ol_cv_lib_fetch != no ; then
+- ol_link_fetch="-lfetch -lcom_err"
+- AC_DEFINE([HAVE_FETCH], [1],
++ ol_link_fetch="-lfetch"
++ AC_DEFINE(HAVE_FETCH,1,
+ [define if you actually have FreeBSD fetch(3)])
+ fi
+ ])dnl
+@@ -1094,7 +823,7 @@ AC_DEFUN([OL_FUNC_GETHOSTBYADDR_R_NARGS],
+ ])dnl
+ dnl
+ dnl --------------------------------------------------------------------
+-dnl Check for Cyrus SASL version compatility
++dnl Check for Cyrus SASL version compatibility
+ AC_DEFUN([OL_SASL_COMPAT],
+ [AC_CACHE_CHECK([Cyrus SASL library version], [ol_cv_sasl_compat],[
+ AC_EGREP_CPP(__sasl_compat,[
+@@ -1113,19 +842,3 @@ AC_DEFUN([OL_SASL_COMPAT],
+ #endif
+ ], [ol_cv_sasl_compat=yes], [ol_cv_sasl_compat=no])])
+ ])
+-dnl ====================================================================
+-dnl check for SSL compatibility
+-AC_DEFUN([OL_SSL_COMPAT],
+-[AC_CACHE_CHECK([OpenSSL library version (CRL checking capability)],
+- [ol_cv_ssl_crl_compat],[
+- AC_EGREP_CPP(__ssl_compat,[
+-#ifdef HAVE_OPENSSL_SSL_H
+-#include <openssl/ssl.h>
+-#endif
+-
+-/* Require 0.9.7d+ */
+-#if OPENSSL_VERSION_NUMBER >= 0x0090704fL
+- char *__ssl_compat = "0.9.7d";
+-#endif
+- ], [ol_cv_ssl_crl_compat=yes], [ol_cv_ssl_crl_compat=no])])
+-])
+--
+2.38.1
+
diff --git a/srcpkgs/ntp/template b/srcpkgs/ntp/template
index e190300a74a3a7..c7030f9b7f9d0d 100644
--- a/srcpkgs/ntp/template
+++ b/srcpkgs/ntp/template
@@ -5,7 +5,7 @@ revision=7
build_style=gnu-configure
configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --enable-ntp-signd
--enable-all-clocks ol_cv_pthread_select_yields=yes"
-hostmakedepends="pkg-config bison perl"
+hostmakedepends="pkg-config autoconf automake libtool bison perl"
makedepends="libedit-devel openssl-devel libcap-devel libevent-devel pps-tools-devel"
short_desc="Network Time Protocol daemon and utilities"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -28,6 +28,10 @@ post_extract() {
sed -i 's/linux/GLIBC/g' ntpd/ntpd.c
}
+pre_configure() {
+ autoreconf -fi
+}
+
post_install() {
# Rename files for alternatives.
vmkdir usr/share/man/man8
From f8ee9ebfe3fa1483c00b404eba4ef78c9ca7e8aa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:57:58 -0800
Subject: [PATCH 11/42] nvi: fix build with gcc14
---
srcpkgs/nvi/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/nvi/template b/srcpkgs/nvi/template
index 8a43e9f7a601b5..3923150ff5a1a6 100644
--- a/srcpkgs/nvi/template
+++ b/srcpkgs/nvi/template
@@ -22,6 +22,8 @@ alternatives="
vi:view.1:/usr/share/man/man1/nview.1
"
+CFLAGS="-fpermissive"
+
post_extract() {
chmod +w $wrksrc/common/options_def.h
}
From 22605ad6d818d8992523bbc5ab636a952fadb472 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 21:19:48 -0800
Subject: [PATCH 12/42] libsasl: fix build for gcc14
---
srcpkgs/libsasl/patches/gcc14.patch | 70 +++++++++++++++++++++++++++++
1 file changed, 70 insertions(+)
create mode 100644 srcpkgs/libsasl/patches/gcc14.patch
diff --git a/srcpkgs/libsasl/patches/gcc14.patch b/srcpkgs/libsasl/patches/gcc14.patch
new file mode 100644
index 00000000000000..bdaade22f1c903
--- /dev/null
+++ b/srcpkgs/libsasl/patches/gcc14.patch
@@ -0,0 +1,70 @@
+diff -rup digestmd5.c.orig digestmd5.c
+--- a/plugins/digestmd5.c
++++ b/plugins/digestmd5.c
+@@ -86,6 +86,8 @@
+ # include <netinet/in.h>
+ #endif /* WIN32 */
+
++#include <time.h>
++
+ #include <sasl.h>
+ #include <saslplug.h>
+
+
+From 266f0acf7f5e029afbb3e263437039e50cd6c262 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Wed, 23 Feb 2022 00:45:15 +0000
+Subject: [PATCH] Fix <time.h> check
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+We're conditionally including based on HAVE_TIME_H in a bunch of places,
+but we're not actually checking for time.h, so that's never going to be defined.
+
+While at it, add in a missing include in the cram plugin.
+
+This fixes a bunch of implicit declaration warnings:
+```
+ * cyrus-sasl-2.1.28/lib/saslutil.c:280:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:364:41: warning: implicit declaration of function ‘clock’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/plugins/cram.c:132:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:280:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:364:41: warning: implicit declaration of function ‘clock’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/plugins/cram.c:132:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+```
+
+Signed-off-by: Sam James <sam@gentoo.org>
+---
+ configure.ac | 2 +-
+ plugins/cram.c | 4 ++++
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index e1bf53b6..ad781830 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1290,7 +1290,7 @@ AC_CHECK_HEADERS_ONCE([sys/time.h])
+
+ AC_HEADER_DIRENT
+ AC_HEADER_SYS_WAIT
+-AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
++AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h time.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
+
+ IPv6_CHECK_SS_FAMILY()
+ IPv6_CHECK_SA_LEN()
+diff --git a/plugins/cram.c b/plugins/cram.c
+index d02e9baa..695aaa91 100644
+--- a/plugins/cram.c
++++ b/plugins/cram.c
+@@ -53,6 +53,10 @@
+ #endif
+ #include <fcntl.h>
+
++#ifdef HAVE_TIME_H
++#include <time.h>
++#endif
++
+ #include <sasl.h>
+ #include <saslplug.h>
+ #include <saslutil.h>
From d34953737918faaa08b7a5741b38b565f9b389b5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 21:37:47 -0800
Subject: [PATCH 13/42] xbps: fix build with gcc14
---
srcpkgs/xbps/patches/fix-transposed-calloc.patch | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 srcpkgs/xbps/patches/fix-transposed-calloc.patch
diff --git a/srcpkgs/xbps/patches/fix-transposed-calloc.patch b/srcpkgs/xbps/patches/fix-transposed-calloc.patch
new file mode 100644
index 00000000000000..67341372dab79a
--- /dev/null
+++ b/srcpkgs/xbps/patches/fix-transposed-calloc.patch
@@ -0,0 +1,13 @@
+diff --git a/bin/xbps-fbulk/main.c b/bin/xbps-fbulk/main.c
+index 6591bb61..4408bf20 100644
+--- a/bin/xbps-fbulk/main.c
++++ b/bin/xbps-fbulk/main.c
+@@ -397,7 +397,7 @@ runBuilds(const char *bpath)
+ static void
+ addDepn(struct item *item, struct item *xitem)
+ {
+- struct depn *depn = calloc(sizeof(*depn), 1);
++ struct depn *depn = calloc(1, sizeof(*depn));
+ char *logpath3;
+ FILE *fp;
+
From bf00fe3c4021ac6a791e4914810f6db50c5b73e0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 3 Mar 2025 11:53:54 -0800
Subject: [PATCH 14/42] elfutils: update to 0.192.
Fix bulid with gcc14 and musl
---
srcpkgs/elfutils/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/elfutils/template b/srcpkgs/elfutils/template
index fd7a84d5a36c79..7e824c626eb3e3 100644
--- a/srcpkgs/elfutils/template
+++ b/srcpkgs/elfutils/template
@@ -1,13 +1,13 @@
# Template file for 'elfutils'
pkgname=elfutils
-version=0.190
+version=0.192
revision=1
build_style=gnu-configure
-configure_args="--program-prefix=eu-"
+configure_args="--program-prefix=eu- --enable-debuginfod --enable-libdebuginfod"
hostmakedepends="pkg-config m4"
_devel_depends="bzip2-devel liblzma-devel zlib-devel libzstd-devel"
makedepends="${_devel_depends} libcurl-devel libarchive-devel sqlite-devel
- libmicrohttpd-devel"
+ libmicrohttpd-devel json-c-devel"
checkdepends="zstd bzip2 curl rpm cpio iproute2 procps-ng"
short_desc="Utilities to handle ELF object files"
maintainer="Érico Nogueira <ericonr@disroot.org>"
@@ -15,7 +15,7 @@ license="GPL-3.0-or-later"
homepage="https://sourceware.org/elfutils/"
changelog="https://sourceware.org/git/?p=elfutils.git;a=blob_plain;f=NEWS;hb=HEAD"
distfiles="https://sourceware.org/pub/elfutils/${version}/elfutils-${version}.tar.bz2"
-checksum=8e00a3a9b5f04bc1dc273ae86281d2d26ed412020b391ffcc23198f10231d692
+checksum=616099beae24aba11f9b63d86ca6cc8d566d968b802391334c91df54eab416b4
# subpackages require explicit ordering
subpackages="debuginfod libdebuginfod libelf elfutils-devel"
CFLAGS="-Wno-error=deprecated-declarations" # curl 7.55+
From d1d48015b55ced4e58f247ce5700ffb61c504279 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 3 Mar 2025 11:54:42 -0800
Subject: [PATCH 15/42] iproute2: update to 6.13.0.
Fix build with gcc14 and musl.
---
srcpkgs/iproute2/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/iproute2/template b/srcpkgs/iproute2/template
index 44829a4e0d9010..bbab6772e8656d 100644
--- a/srcpkgs/iproute2/template
+++ b/srcpkgs/iproute2/template
@@ -1,6 +1,6 @@
# Template file for 'iproute2'
pkgname=iproute2
-version=6.10.0
+version=6.13.0
revision=1
build_style=configure
make_install_args="SBINDIR=/usr/bin"
@@ -12,7 +12,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://wiki.linuxfoundation.org/networking/iproute2"
distfiles="${KERNEL_SITE}/utils/net/iproute2/iproute2-${version}.tar.xz"
-checksum=91a62f82737b44905a00fa803369c447d549e914e9a2a4018fdd75b1d54e8dce
+checksum=a43aa43338d882b44d01e549f3f105a92ae9feea32a82fae45a88e7a49302819
# Requires unshare, which is not provided by chroot-util-linux.
make_check=no
From 716ecaedc5228608a13ecc8461692c67344b3258 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 16/42] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From aa96ebbeb0ebbe67ac983146f541876fab6dcbbf Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 17/42] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..92c2d178e7d647 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 363c29247d6021a6566d5c575da2d03adab966c8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 18/42] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..85db97e4a226fc 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 04f20560bd86cc608042fece1f02c713a31be1d4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 19/42] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..8a728f493edeb6 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 29c2c62777b30a29fc414b1c26647b92bf957a53 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 20/42] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..977a854aa73247 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 0d108df5e8b9011f6572a4c3ada096e4e90eb849 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 21/42] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..5e1a0ca354c14c 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 81d4505c1d9b1daf024e2e467a8becdfb70ca361 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 22/42] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..a322434f077d3d 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 3ac4c841d849bfdb4cc0ed62a6c51b5abc2ca13f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 23/42] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..c89746608c8b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 2e04bab331d052e0bb9b3245cd7108d316e26612 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 24/42] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..0be817c88f2d09 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 0891169a47ead548bfec13e431d8c3ea27738a55 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 25/42] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..b0066e4bd92d4c 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 008ee4fe4a7acd1d8679823ebb92eecd156d1930 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 26/42] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..99dfdd11548326 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From c7d959dee5e93b272c8c7d71766eaf5c6322cd79 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 27/42] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..51c9c48320aac6 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 6050a8295c0abbe96749b1832582a16a2e2a4947 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 28/42] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..bf210fc49481ef 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 8e82a4988dc669fcb4ce82789bf4456728864e5e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 29/42] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..66ca7dd8207192 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 3d48eb88ece7f18b044e2ce6a2c48e6c36c2ced0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 30/42] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..1695336c06c58c 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 35b8e3a119df9838eaccfe6102213f6475c4722f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 31/42] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..bf6c7ebc23c050 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ab14489822e14ed0b44b857d78b0c3e9d6044409 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 32/42] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..f83a8acb09878c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 4d2787f7b1186b7fbe5752fd267e901c2d0e210f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 33/42] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..9ea4921f0c0888 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From fae1ae6ab44d7afcb87ecd800ee27baaf08731f5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 34/42] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..855f38e88b7c12 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 964837759edc8220e9e78bff5aeffbd4476a771f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 35/42] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..8dd06a1dc65f68 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 939db142fc714a939cc100bec1bad291465857dc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 36/42] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..d70d94cf225088 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From e88f820a8fed5ee4afc55182c1193a7b89e57529 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 37/42] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..1fa175ec63d2d7 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,9 +22,9 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From aa727bf633fd7b247ceea0ca797b87f9a068846a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 38/42] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..5887a1dbafead4 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From a8a8833ea5cda440f7d9377550d00b0808795d18 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 39/42] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..b15ecaca36cc48 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From d928a2d4dce4d8bf0bed5dbd3294a963a99e68de Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 40/42] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..31483e4837a283 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 7b83bf70bdfda4909eff52d0d74b442d49e00d3b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 41/42] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..95beba72b8b622 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From cd8fec55f74a4d8bd51fafd39c178d8d9afc0ab5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:47 -0800
Subject: [PATCH 42/42] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..316b1d3896233d 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (28 preceding siblings ...)
2025-03-07 13:55 ` [PR PATCH] [Updated] " oreo639
@ 2025-03-17 6:00 ` oreo639
2025-03-17 23:35 ` oreo639
` (33 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-03-17 6:00 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 6880 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
You can test the ISOs here: https://devspace.voidlinux.org/oreo639/live/gcc14/
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp
- [x] libsasl
- [x] nvi (done in this pr)
- [x] xbps
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
- [x] gtk+ https://github.com/void-linux/void-packages/commit/ac57a55a5fda78618aec2ec7bb3c27404834ed04
- [x] gtk+3 https://github.com/void-linux/void-packages/pull/54187
- [x] libaom https://github.com/void-linux/void-packages/commit/fcbb94217389f64fea4c536959983814ebaadae4
- [x] perl-Tk https://github.com/void-linux/void-packages/commit/67aeb9d9b2b077d9b7f25902bbf079c1569a2633
- [ ] gnu-efi-libs https://github.com/void-linux/void-packages/pull/54615
- [x] syslinux https://github.com/void-linux/void-packages/commit/49af74a1dfb32ba1de556f4491b3870179c80872
- [ ] recode https://github.com/void-linux/void-packages/pull/54707
- [x] libcddb https://github.com/void-linux/void-packages/commit/eeae3026d1356e1ac5d0547e19e2742a335ae9ca
- [ ] vim https://github.com/void-linux/void-packages/pull/54706
- [ ] vmaf https://github.com/void-linux/void-packages/pull/54721
- [x] aalib https://github.com/void-linux/void-packages/commit/d7769fe6d757a62fbfc0998d5cbde5dec8a7db11
- [x] cppdap (outdated vendored gtest, patch merged upstream) https://github.com/void-linux/void-packages/commit/a2c9d8ac073e9f40d6b7b1bb3df108c0d46481bb
- [x] snappy (outdated vendored gtest, upstream rejected patch stating that downstreams running their tests is not supported and that downstreams should either ship their own tests/patches or just disable them) https://github.com/void-linux/void-packages/commit/4e73161431672d245a8d558f269a74f1ab363cc8
- [ ] openjdk7-bootstrap
- [ ] openjdk8
- [x] gimp https://github.com/void-linux/void-packages/commit/d173951120b07bc57171f6962c92c0877becd0d8
- [ ] xf86-video-nouveau https://github.com/void-linux/void-packages/pull/54720
- [x] libao https://github.com/void-linux/void-packages/commit/b9c6b010a201211c0ffba8a821f0021b9bdaf376
- [x] accountsservice https://github.com/void-linux/void-packages/commit/a1ca8cef0b2e98ba22c4d632685f85c5d0cde4c1
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [ ] elfutils https://github.com/void-linux/void-packages/pull/54566
- [ ] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [ ] sane https://github.com/void-linux/void-packages/pull/54614
- [x] mdadm https://github.com/void-linux/void-packages/commit/10694f08c471b2701b3c275540b0c665f67c8b9b
- [x] pulseaudio (broken due to configure checks detecting presence of open64, this is fixed in musl 1.2.x https://github.com/bminor/musl/commit/246f1c811448f37a44b41cd8df8d0ef9736d95f4 https://github.com/bminor/musl/commit/50ab830633134dac99011219f0210ee2759ffbde)
- [x] gpm
- [ ] audit https://github.com/void-linux/void-packages/pull/54722
- [x] linux-tools https://github.com/void-linux/void-packages/commit/8c670d7a13a3d6783e23624bda033ef898cafd72
- [ ] v4l-utils (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [ ] ffmpeg6 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [ ] ffmpeg (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [ ] gst-plugins-good1 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [ ] libcdio (fseek64, also broken on i686-glibc) https://github.com/void-linux/void-packages/pull/54724
- [x] gcr (getpass) https://github.com/void-linux/void-packages/commit/a40788b2db81ceba7e4a9f75e1c120efd7577600
- [x] libndp https://github.com/void-linux/void-packages/commit/580546374e10b6847a66bfb4d9f27579d5112902
- [x] samba https://github.com/void-linux/void-packages/commit/0900507d38bfc7963d7b6c1a7b04341ae987f2d2
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration instead of segfaulting later due to implicit pointer truncation. This is good, but ofc, packages need to be checked for this.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, please test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 162998 bytes --]
From 8c643fcc75339de4c8c2b220784e605e0b5d2c23 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/44] binutils: update to 2.44.
---
srcpkgs/binutils/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..e10403f1ed7ae7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From 5d924251c08c385f39f0008360b3f37e1cabc09b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/44] gcc: update to 14.2.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 20 +-
6 files changed, 20 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 640e3b2b665f51..cf0f55ea884d5b 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.40 perl-5.40.1_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..a8aceb6283d8a8 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
@@ -202,6 +202,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -325,6 +326,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+
+ # Disable explicit -fno-PIE, gcc will figure this out itself.
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +352,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +361,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
From a1d342f285d088e97221a6c6e17952ee64994197 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 03/44] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
common/shlibs | 60 +-
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
7 files changed, 33 insertions(+), 1003 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/common/shlibs b/common/shlibs
index cf0f55ea884d5b..6e1941fe99780a 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -17,36 +17,36 @@
# one (order top->bottom) is preferred over the next ones.
#
libc.so musl-1.1.24_7
-libc.so.6 glibc-2.39_1
-libm.so.6 glibc-2.39_1
-libpthread.so.0 glibc-2.39_1
-librt.so.1 glibc-2.39_1
-libdl.so.2 glibc-2.39_1
-ld-linux-x86-64.so.2 glibc-2.39_1 x86_64
-ld-linux.so.2 glibc-2.39_1 i686
-ld-linux.so.3 glibc-2.39_1 armv5tel
-ld-linux-aarch64.so.1 glibc-2.39_1 aarch64
-ld-linux-riscv64-lp64d.so.1 glibc-2.39_1 riscv64
-ld64.so.2 glibc-2.39_1 ppc64
-ld.so.1 glibc-2.39_1 mips
-ld.so.1 glibc-2.39_1 ppc
-ld-linux-armhf.so.3 glibc-2.39_1
-libresolv.so.2 glibc-2.39_1
-libanl.so.1 glibc-2.39_1
-libthread_db.so.1 glibc-2.39_1
-libutil.so.1 glibc-2.39_1
-libnsl.so.1 glibc-2.39_1
-libnss_db.so.2 glibc-2.39_1
-libnss_files.so.2 glibc-2.39_1
-libnss_compat.so.2 glibc-2.39_1
-libnss_dns.so.2 glibc-2.39_1
-libnss_hesiod.so.2 glibc-2.39_1
-libBrokenLocale.so.1 glibc-2.39_1
-libmemusage.so glibc-2.39_1
-libSegFault.so glibc-2.39_1
-libpcprofile.so glibc-2.39_1
-libcidn.so.1 glibc-2.39_1
-libmvec.so.1 glibc-2.39_1
+libc.so.6 glibc-2.41_1
+libm.so.6 glibc-2.41_1
+libpthread.so.0 glibc-2.41_1
+librt.so.1 glibc-2.41_1
+libdl.so.2 glibc-2.41_1
+ld-linux-x86-64.so.2 glibc-2.41_1 x86_64
+ld-linux.so.2 glibc-2.41_1 i686
+ld-linux.so.3 glibc-2.41_1 armv5tel
+ld-linux-aarch64.so.1 glibc-2.41_1 aarch64
+ld-linux-riscv64-lp64d.so.1 glibc-2.41_1 riscv64
+ld64.so.2 glibc-2.41_1 ppc64
+ld.so.1 glibc-2.41_1 mips
+ld.so.1 glibc-2.41_1 ppc
+ld-linux-armhf.so.3 glibc-2.41_1
+libresolv.so.2 glibc-2.41_1
+libanl.so.1 glibc-2.41_1
+libthread_db.so.1 glibc-2.41_1
+libutil.so.1 glibc-2.41_1
+libnsl.so.1 glibc-2.41_1
+libnss_db.so.2 glibc-2.41_1
+libnss_files.so.2 glibc-2.41_1
+libnss_compat.so.2 glibc-2.41_1
+libnss_dns.so.2 glibc-2.41_1
+libnss_hesiod.so.2 glibc-2.41_1
+libBrokenLocale.so.1 glibc-2.41_1
+libmemusage.so glibc-2.41_1
+libSegFault.so glibc-2.41_1
+libpcprofile.so glibc-2.41_1
+libcidn.so.1 glibc-2.41_1
+libmvec.so.1 glibc-2.41_1
libcrypt.so.2 libxcrypt-4.4.36_1
libcrypt.so.1 libxcrypt-compat-4.4.36_1
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From cd2f4fb7744a689065f049dc1adc6092b391a70d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 04/44] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 04e22c4fb01166..922d009ad8c36e 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=23
+revision=24
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From 8c233acd82493638fb642a6a4f4fc71d791f1205 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 05/44] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 907e3c41850c83221276440ff6efdadc93e59c3a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 06/44] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From ca1a46dd2e6e3baa5e587d5376f996af413f4ef2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 07/44] gcc-multilib: update to 14.2.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From d3f072f52ab39f6ee7d32c2d0b886ebd799e75aa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 08/44] libgccjit: update to 14.2.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From 8be16a39687e349b2c87c7533a20b6d17ab5c51e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 09/44] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From 24f0c2817dfa4bfce616bc0485a1e201e8b5cebb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:56:36 -0800
Subject: [PATCH 10/44] ntp: fix build with gcc14
---
srcpkgs/ntp/patches/gcc14.patch | 612 ++++++++++++++++++++++++++++++++
srcpkgs/ntp/template | 6 +-
2 files changed, 617 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/ntp/patches/gcc14.patch
diff --git a/srcpkgs/ntp/patches/gcc14.patch b/srcpkgs/ntp/patches/gcc14.patch
new file mode 100644
index 00000000000000..925543ee1fe669
--- /dev/null
+++ b/srcpkgs/ntp/patches/gcc14.patch
@@ -0,0 +1,612 @@
+Source: https://gitweb.gentoo.org/repo/gentoo.git/plain/net-misc/ntp/files/ntp-4.2.8_p15-configure-clang16.patch?id=9cc28f1d1f1f13da5537fe125931bd4b1fef97cf
+
+Sync with OpenLDAP. Uses Arsen's patch from https://bugs.gentoo.org/871288.
+
+https://bugs.gentoo.org/871372
+--- a/sntp/m4/openldap-thread-check.m4
++++ b/sntp/m4/openldap-thread-check.m4
+@@ -262,10 +262,8 @@ pthread_rwlock_t rwlock;
+ dnl save the flags
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #include <pthread.h>
+-#ifndef NULL
+-#define NULL (void*)0
+-#endif
+-]], [[pthread_detach(NULL);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
++pthread_t thread;
++]], [[pthread_detach(thread);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
+ ])
+
+ if test $ol_cv_func_pthread_detach = no ; then
+--- a/sntp/m4/openldap.m4
++++ b/sntp/m4/openldap.m4
+@@ -1,16 +1,16 @@
+ dnl OpenLDAP Autoconf Macros
+-dnl $OpenLDAP: pkg/ldap/build/openldap.m4,v 1.157.2.10 2010/04/13 20:22:21 kurt Exp $
++dnl $OpenLDAP$
+ dnl This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ dnl
+-dnl Copyright 1998-2010 The OpenLDAP Foundation.
++dnl Copyright 1998-2022 The OpenLDAP Foundation.
+ dnl All rights reserved.
+ dnl
+ dnl Redistribution and use in source and binary forms, with or without
+ dnl modification, are permitted only as authorized by the OpenLDAP
+ dnl Public License.
+ dnl
+-dnl A copy of this license is available in the file LICENSE-OPENLDAP in
+-dnl this directory of the distribution or, alternatively, at
++dnl A copy of this license is available in the file LICENSE in the
++dnl top-level directory of the distribution or, alternatively, at
+ dnl <http://www.OpenLDAP.org/license.html>.
+ dnl
+ dnl --------------------------------------------------------------------
+@@ -154,6 +154,7 @@ fi
+ if test $ol_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <ctype.h>
++#include <stdlib.h>
+ #ifndef HAVE_EBCDIC
+ # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+ # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+@@ -170,7 +171,7 @@ exit (0); }
+ ]])],[],[ol_cv_header_stdc=no],[:])
+ fi])
+ if test $ol_cv_header_stdc = yes; then
+- AC_DEFINE([STDC_HEADERS], [1], [is standard C provided?])
++ AC_DEFINE(STDC_HEADERS)
+ fi
+ ac_cv_header_stdc=disable
+ ])
+@@ -242,313 +243,40 @@ AC_DEFUN([OL_RESOLVER_LINK],
+ OL_RESOLVER_TRY(ol_cv_resolver_none)
+ OL_RESOLVER_TRY(ol_cv_resolver_resolv,[-lresolv])
+ OL_RESOLVER_TRY(ol_cv_resolver_bind,[-lbind])
+-])
+-dnl
+-dnl ====================================================================
+-dnl International Components for Unicode (ICU)
+-AC_DEFUN([OL_ICU],
+-[ol_icu=no
+-AC_CHECK_HEADERS( unicode/utypes.h )
+-if test $ac_cv_header_unicode_utypes_h = yes ; then
+- dnl OL_ICULIBS="-licui18n -licuuc -licudata"
+- OL_ICULIBS="-licuuc -licudata"
+-
+- AC_CACHE_CHECK([for ICU libraries], [ol_cv_lib_icu], [
+- ol_LIBS="$LIBS"
+- LIBS="$OL_ICULIBS $LIBS"
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+-#include <unicode/utypes.h>
+-]], [[
+-(void) u_errorName(0);
+-]])],[ol_cv_lib_icu=yes],[ol_cv_lib_icu=no])
+- LIBS="$ol_LIBS"
+-])
+-
+- if test $ol_cv_lib_icu != no ; then
+- ol_icu="$OL_ICULIBS"
+- AC_DEFINE([HAVE_ICU], [1], [define if you actually have ICU])
+- fi
+-fi
+-])
+-dnl
+-dnl ====================================================================
+-dnl Berkeley DB macros
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Try to link
+-AC_DEFUN([OL_BERKELEY_DB_TRY],
+-[if test $ol_cv_lib_db = no ; then
+- AC_CACHE_CHECK([for Berkeley DB link (]ifelse($2,,default,$2)[)],[$1],
+-[
+- ol_DB_LIB=ifelse($2,,,$2)
+- ol_LIBS=$LIBS
+- LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
+-
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+-#ifdef HAVE_DB_185_H
+-# include <db_185.h>
+-#else
+-# include <db.h>
+-#endif
+-
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-
+-#ifndef NULL
+-#define NULL ((void*)0)
+-#endif
+-]], [[
+-#if DB_VERSION_MAJOR > 2
+- db_env_create( NULL, 0 );
+-#elif DB_VERSION_MAJOR > 1
+- db_appexit( NULL );
+-#else
+- (void) dbopen( NULL, 0, 0, 0, NULL);
+-#endif
+-]])],[$1=yes],[$1=no])
+-
+- LIBS="$ol_LIBS"
+-])
+-
+- if test $$1 = yes ; then
+- ol_cv_lib_db=ifelse($2,,yes,$2)
+- fi
+-fi
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Get major and minor version from <db.h>
+-AC_DEFUN([OL_BDB_HEADER_VERSION],
+-[AC_CACHE_CHECK([for Berkeley DB major version in db.h], [ol_cv_bdb_major],[
+- AC_LANG_CONFTEST([
+-#include <db.h>
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-__db_version DB_VERSION_MAJOR
+-])
+- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
+- ol_cv_bdb_major=${3}
+-])
+-case $ol_cv_bdb_major in [[1-9]]*) : ;; *)
+- AC_MSG_ERROR([Unknown Berkeley DB major version in db.h]) ;;
+-esac
+-
+-dnl Determine minor version
+-AC_CACHE_CHECK([for Berkeley DB minor version in db.h], [ol_cv_bdb_minor],[
+- AC_LANG_CONFTEST([
+-#include <db.h>
+-#ifndef DB_VERSION_MINOR
+-# define DB_VERSION_MINOR 0
+-#endif
+-__db_version DB_VERSION_MINOR
+-])
+- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
+- ol_cv_bdb_minor=${3}
+-])
+-case $ol_cv_bdb_minor in [[0-9]]*) : ;; *)
+- AC_MSG_ERROR([Unknown Berkeley DB minor version in db.h]) ;;
+-esac
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Try to locate appropriate library
+-AC_DEFUN([OL_BERKELEY_DB_LINK],
+-[ol_cv_lib_db=no
+-
+-if test $ol_cv_bdb_major = 4 ; then
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4_dot_m,[-ldb-4.$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db4m,[-ldb4$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4m,[-ldb-4$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4_m,[-ldb-4-$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4,[-ldb-4])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db4,[-ldb4])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db,[-ldb])
+-fi
+-OL_BERKELEY_DB_TRY(ol_cv_db_none)
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Check if Berkeley DB version
+-AC_DEFUN([OL_BERKELEY_DB_VERSION],
+-[AC_CACHE_CHECK([for Berkeley DB library and header version match], [ol_cv_berkeley_db_version], [
+- ol_LIBS="$LIBS"
+- LIBS="$LTHREAD_LIBS $LIBS"
+- if test $ol_cv_lib_db != yes ; then
+- LIBS="$ol_cv_lib_db $LIBS"
+- fi
+-
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-#ifdef HAVE_DB_185_H
+- choke me;
+-#else
+-#include <db.h>
+-#endif
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-#ifndef NULL
+-#define NULL ((void *)0)
+-#endif
+-main()
+-{
+-#if DB_VERSION_MAJOR > 1
+- char *version;
+- int major, minor, patch;
+-
+- version = db_version( &major, &minor, &patch );
+-
+- if( major != DB_VERSION_MAJOR ||
+- minor != DB_VERSION_MINOR ||
+- patch != DB_VERSION_PATCH )
+- {
+- printf("Berkeley DB version mismatch\n"
+- "\theader: %s\n\tlibrary: %s\n",
+- DB_VERSION_STRING, version);
+- return 1;
+- }
+-#endif
+-
+- return 0;
+-}]])],[ol_cv_berkeley_db_version=yes],[ol_cv_berkeley_db_version=no],[ol_cv_berkeley_db_version=cross])
+-
+- LIBS="$ol_LIBS"
+ ])
+
+- if test $ol_cv_berkeley_db_version = no ; then
+- AC_MSG_ERROR([Berkeley DB version mismatch])
+- fi
+-])dnl
+-dnl
+ dnl --------------------------------------------------------------------
+-dnl Check if Berkeley DB supports DB_THREAD
+-AC_DEFUN([OL_BERKELEY_DB_THREAD],
+-[AC_CACHE_CHECK([for Berkeley DB thread support], [ol_cv_berkeley_db_thread], [
+- ol_LIBS="$LIBS"
+- LIBS="$LTHREAD_LIBS $LIBS"
+- if test $ol_cv_lib_db != yes ; then
+- LIBS="$ol_cv_lib_db $LIBS"
+- fi
+-
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-#ifdef HAVE_DB_185_H
+- choke me;
+-#else
+-#include <db.h>
+-#endif
+-#ifndef NULL
+-#define NULL ((void *)0)
+-#endif
+-main()
+-{
+- int rc;
+- u_int32_t flags = DB_CREATE |
+-#ifdef DB_PRIVATE
+- DB_PRIVATE |
+-#endif
+- DB_THREAD;
+-
+-#if DB_VERSION_MAJOR > 2
+- DB_ENV *env = NULL;
+-
+- rc = db_env_create( &env, 0 );
++dnl Check for version compatility with back-mdb
++AC_DEFUN([OL_MDB_COMPAT],
++[AC_CACHE_CHECK([if LMDB version supported by MDB backends], [ol_cv_mdb_compat],[
++ AC_EGREP_CPP(__mdb_version_compat,[
++#include <lmdb.h>
+
+- flags |= DB_INIT_MPOOL;
+-#ifdef DB_MPOOL_PRIVATE
+- flags |= DB_MPOOL_PRIVATE;
++/* require 0.9.18 or later */
++#if MDB_VERSION_FULL >= 0x000000090012
++ __mdb_version_compat
+ #endif
+-
+- if( rc ) {
+- printf("BerkeleyDB: %s\n", db_strerror(rc) );
+- return rc;
+- }
+-
+-#if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
+- rc = (env->open)( env, NULL, flags, 0 );
+-#else
+- rc = (env->open)( env, NULL, NULL, flags, 0 );
+-#endif
+-
+- if ( rc == 0 ) {
+- rc = env->close( env, 0 );
+- }
+-
+- if( rc ) {
+- printf("BerkeleyDB: %s\n", db_strerror(rc) );
+- return rc;
+- }
+-
+-#else
+- DB_ENV env;
+- memset( &env, '\0', sizeof(env) );
+-
+- rc = db_appinit( NULL, NULL, &env, flags );
+-
+- if( rc == 0 ) {
+- db_appexit( &env );
+- }
+-
+- unlink("__db_mpool.share");
+- unlink("__db_lock.share");
+-#endif
+-
+- return rc;
+-}]])],[ol_cv_berkeley_db_thread=yes],[ol_cv_berkeley_db_thread=no],[ol_cv_berkeley_db_thread=cross])
+-
+- LIBS="$ol_LIBS"
++ ], [ol_cv_mdb_compat=yes], [ol_cv_mdb_compat=no])])
+ ])
+
+- if test $ol_cv_berkeley_db_thread != no ; then
+- AC_DEFINE([HAVE_BERKELEY_DB_THREAD], [1],
+- [define if Berkeley DB has DB_THREAD support])
+- fi
+-])dnl
+ dnl
+ dnl --------------------------------------------------------------------
+-dnl Find any DB
+-AC_DEFUN([OL_BERKELEY_DB],
+-[ol_cv_berkeley_db=no
+-AC_CHECK_HEADERS(db.h)
+-if test $ac_cv_header_db_h = yes; then
+- OL_BDB_HEADER_VERSION
+- OL_BDB_COMPAT
+-
+- if test $ol_cv_bdb_compat != yes ; then
+- AC_MSG_ERROR([BerkeleyDB version incompatible with BDB/HDB backends])
++dnl Find any MDB
++AC_DEFUN([OL_MDB],
++[ol_cv_mdb=no
++AC_CHECK_HEADERS(lmdb.h)
++if test $ac_cv_header_lmdb_h = yes; then
++ OL_MDB_COMPAT
++
++ if test $ol_cv_mdb_compat != yes ; then
++ AC_MSG_ERROR([LMDB version incompatible with MDB backends])
+ fi
+
+- OL_BERKELEY_DB_LINK
+- if test "$ol_cv_lib_db" != no ; then
+- ol_cv_berkeley_db=yes
+- OL_BERKELEY_DB_VERSION
+- OL_BERKELEY_DB_THREAD
+- fi
++ ol_cv_lib_mdb=-llmdb
++ ol_cv_mdb=yes
+ fi
+ ])
+-dnl --------------------------------------------------------------------
+-dnl Check for version compatility with back-bdb
+-AC_DEFUN([OL_BDB_COMPAT],
+-[AC_CACHE_CHECK([if Berkeley DB version supported by BDB/HDB backends], [ol_cv_bdb_compat],[
+- AC_EGREP_CPP(__db_version_compat,[
+-#include <db.h>
+-
+- /* this check could be improved */
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-#ifndef DB_VERSION_MINOR
+-# define DB_VERSION_MINOR 0
+-#endif
+-
+-#define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
+
+-/* require 4.4 or later */
+-#if DB_VERSION_MM >= 0x0404
+- __db_version_compat
+-#endif
+- ], [ol_cv_bdb_compat=yes], [ol_cv_bdb_compat=no])])
+-])
+
+ dnl
+ dnl ====================================================================
+@@ -664,12 +392,10 @@ AC_DEFUN([OL_PTHREAD_TEST_FUNCTION],[[
+ return 0;
+ ]])
+
+-AC_DEFUN([OL_PTHREAD_TEST_PROGRAM], [
+-AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
++AC_DEFUN([OL_PTHREAD_TEST_PROGRAM],
++[AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
+
+-int main(argc, argv)
+- int argc;
+- char **argv;
++int main(int argc, char **argv)
+ {
+ OL_PTHREAD_TEST_FUNCTION
+ }
+@@ -706,7 +432,7 @@ dnl Check GNU Pth pthread Header
+ dnl
+ dnl defines ol_cv_header linux_threads to 'yes' or 'no'
+ dnl 'no' implies pthreads.h is not LinuxThreads or pthreads.h
+-dnl doesn't exists. Existance of pthread.h should separately
++dnl doesn't exist. Existence of pthread.h should separately
+ dnl checked.
+ dnl
+ AC_DEFUN([OL_HEADER_GNU_PTH_PTHREAD_H], [
+@@ -728,7 +454,7 @@ AC_DEFUN([OL_NT_THREADS], [
+ AC_CHECK_FUNC(_beginthread)
+
+ if test $ac_cv_func__beginthread = yes ; then
+- AC_DEFINE([HAVE_NT_THREADS], [1], [if you have NT Threads])
++ AC_DEFINE(HAVE_NT_THREADS,1,[if you have NT Threads])
+ ol_cv_nt_threads=yes
+ fi
+ ])
+@@ -737,7 +463,7 @@ dnl Check LinuxThreads Header
+ dnl
+ dnl defines ol_cv_header linux_threads to 'yes' or 'no'
+ dnl 'no' implies pthreads.h is not LinuxThreads or pthreads.h
+-dnl doesn't exists. Existance of pthread.h should separately
++dnl doesn't exist. Existence of pthread.h should separately
+ dnl checked.
+ dnl
+ AC_DEFUN([OL_HEADER_LINUX_THREADS], [
+@@ -749,7 +475,7 @@ AC_DEFUN([OL_HEADER_LINUX_THREADS], [
+ [ol_cv_header_linux_threads=no])
+ ])
+ if test $ol_cv_header_linux_threads = yes; then
+- AC_DEFINE([HAVE_LINUX_THREADS], [1], [if you have LinuxThreads])
++ AC_DEFINE(HAVE_LINUX_THREADS,1,[if you have LinuxThreads])
+ fi
+ ])dnl
+ dnl --------------------------------------------------------------------
+@@ -791,7 +517,7 @@ AC_CACHE_CHECK([for compatible POSIX regex],ol_cv_c_posix_regex,[
+ #include <sys/types.h>
+ #include <regex.h>
+ static char *pattern, *string;
+-main()
++int main(void)
+ {
+ int rc;
+ regex_t re;
+@@ -818,7 +544,8 @@ AC_DEFUN([OL_C_UPPER_LOWER],
+ [AC_CACHE_CHECK([if toupper() requires islower()],ol_cv_c_upper_lower,[
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+ #include <ctype.h>
+-main()
++#include <stdlib.h>
++int main(void)
+ {
+ if ('C' == toupper('C'))
+ exit(0);
+@@ -826,7 +553,7 @@ main()
+ exit(1);
+ }]])],[ol_cv_c_upper_lower=no],[ol_cv_c_upper_lower=yes],[ol_cv_c_upper_lower=safe])])
+ if test $ol_cv_c_upper_lower != no ; then
+- AC_DEFINE([C_UPPER_LOWER], [1], [define if toupper() requires islower()])
++ AC_DEFINE(C_UPPER_LOWER,1, [define if toupper() requires islower()])
+ fi
+ ])
+ dnl
+@@ -837,29 +564,32 @@ dnl Check for declaration of sys_errlist in one of stdio.h and errno.h.
+ dnl Declaration of sys_errlist on BSD4.4 interferes with our declaration.
+ dnl Reported by Keith Bostic.
+ AC_DEFUN([OL_SYS_ERRLIST],
+-[AC_CACHE_CHECK([declaration of sys_errlist],ol_cv_dcl_sys_errlist,[
+- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
++[AC_CACHE_CHECK([existence of sys_errlist],ol_cv_have_sys_errlist,[
++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[char *c = (char *) *sys_errlist]])],[ol_cv_have_sys_errlist=yes],[ol_cv_have_sys_errlist=no])])
++if test $ol_cv_have_sys_errlist = yes ; then
++ AC_DEFINE(HAVE_SYS_ERRLIST,1,
++ [define if you actually have sys_errlist in your libs])
++ AC_CACHE_CHECK([declaration of sys_errlist],ol_cv_dcl_sys_errlist,[
++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <errno.h>
+ #ifdef _WIN32
+ #include <stdlib.h>
+-#endif ]], [[char *c = (char *) *sys_errlist]])],[ol_cv_dcl_sys_errlist=yes
+- ol_cv_have_sys_errlist=yes],[ol_cv_dcl_sys_errlist=no])])
++#endif ]], [[char *c = (char *) *sys_errlist]])],[ol_cv_dcl_sys_errlist=yes],
++ [ol_cv_dcl_sys_errlist=no])])
+ #
+-# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
+-if test $ol_cv_dcl_sys_errlist = no ; then
+- AC_DEFINE([DECL_SYS_ERRLIST], [1],
+- [define if sys_errlist is not declared in stdio.h or errno.h])
+-
+- AC_CACHE_CHECK([existence of sys_errlist],ol_cv_have_sys_errlist,[
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[char *c = (char *) *sys_errlist]])],[ol_cv_have_sys_errlist=yes],[ol_cv_have_sys_errlist=no])])
+-fi
+-if test $ol_cv_have_sys_errlist = yes ; then
+- AC_DEFINE([HAVE_SYS_ERRLIST], [1],
+- [define if you actually have sys_errlist in your libs])
++ # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
++ if test $ol_cv_dcl_sys_errlist = no ; then
++ AC_DEFINE(DECL_SYS_ERRLIST,1,
++ [define if sys_errlist is not declared in stdio.h or errno.h])
++ fi
+ fi
+ ])dnl
++dnl
++dnl ====================================================================
++dnl glibc supplies a non-standard strerror_r if _GNU_SOURCE is defined.
++dnl It's actually preferable to the POSIX version, if available.
+ AC_DEFUN([OL_NONPOSIX_STRERROR_R],
+ [AC_CACHE_CHECK([non-posix strerror_r],ol_cv_nonposix_strerror_r,[
+ AC_EGREP_CPP(strerror_r,[#include <string.h>],
+@@ -873,24 +603,23 @@ AC_DEFUN([OL_NONPOSIX_STRERROR_R],
+ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no])
+ else
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+- main() {
++ int main(void) {
+ char buf[100];
+ buf[0] = 0;
+ strerror_r( 1, buf, sizeof buf );
+ exit( buf[0] == 0 );
+ }
+- ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror=no],[ol_cv_nonposix_strerror=no])
++ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no],[ol_cv_nonposix_strerror_r=no])
+ fi
+ ])
+ if test $ol_cv_nonposix_strerror_r = yes ; then
+- AC_DEFINE([HAVE_NONPOSIX_STRERROR_R], [1],
++ AC_DEFINE(HAVE_NONPOSIX_STRERROR_R,1,
+ [define if strerror_r returns char* instead of int])
+ fi
+ ])dnl
+ dnl
+ AC_DEFUN([OL_STRERROR],
+-[OL_SYS_ERRLIST dnl TEMPORARY
+-AC_CHECK_FUNCS(strerror strerror_r)
++[AC_CHECK_FUNCS(strerror strerror_r)
+ ol_cv_func_strerror_r=no
+ if test "${ac_cv_func_strerror_r}" = yes ; then
+ OL_NONPOSIX_STRERROR_R
+@@ -910,7 +639,7 @@ AC_DEFUN([OL_C_VOLATILE],
+ if test $ol_cv_c_volatile = yes; then
+ :
+ else
+- AC_DEFINE([volatile], [], [define as empty if volatile is not supported])
++ AC_DEFINE(volatile,,[define as empty if volatile is not supported])
+ fi
+ ])dnl
+ dnl
+@@ -918,7 +647,7 @@ dnl ====================================================================
+ dnl Look for fetch(3)
+ AC_DEFUN([OL_LIB_FETCH],
+ [ol_LIBS=$LIBS
+-LIBS="-lfetch -lcom_err $LIBS"
++LIBS="-lfetch $LIBS"
+ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #ifdef HAVE_SYS_PARAM_H
+@@ -928,8 +657,8 @@ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
+ #include <fetch.h>]], [[struct url *u = fetchParseURL("file:///"); ]])],[ol_cv_lib_fetch=yes],[ol_cv_lib_fetch=no])])
+ LIBS=$ol_LIBS
+ if test $ol_cv_lib_fetch != no ; then
+- ol_link_fetch="-lfetch -lcom_err"
+- AC_DEFINE([HAVE_FETCH], [1],
++ ol_link_fetch="-lfetch"
++ AC_DEFINE(HAVE_FETCH,1,
+ [define if you actually have FreeBSD fetch(3)])
+ fi
+ ])dnl
+@@ -1094,7 +823,7 @@ AC_DEFUN([OL_FUNC_GETHOSTBYADDR_R_NARGS],
+ ])dnl
+ dnl
+ dnl --------------------------------------------------------------------
+-dnl Check for Cyrus SASL version compatility
++dnl Check for Cyrus SASL version compatibility
+ AC_DEFUN([OL_SASL_COMPAT],
+ [AC_CACHE_CHECK([Cyrus SASL library version], [ol_cv_sasl_compat],[
+ AC_EGREP_CPP(__sasl_compat,[
+@@ -1113,19 +842,3 @@ AC_DEFUN([OL_SASL_COMPAT],
+ #endif
+ ], [ol_cv_sasl_compat=yes], [ol_cv_sasl_compat=no])])
+ ])
+-dnl ====================================================================
+-dnl check for SSL compatibility
+-AC_DEFUN([OL_SSL_COMPAT],
+-[AC_CACHE_CHECK([OpenSSL library version (CRL checking capability)],
+- [ol_cv_ssl_crl_compat],[
+- AC_EGREP_CPP(__ssl_compat,[
+-#ifdef HAVE_OPENSSL_SSL_H
+-#include <openssl/ssl.h>
+-#endif
+-
+-/* Require 0.9.7d+ */
+-#if OPENSSL_VERSION_NUMBER >= 0x0090704fL
+- char *__ssl_compat = "0.9.7d";
+-#endif
+- ], [ol_cv_ssl_crl_compat=yes], [ol_cv_ssl_crl_compat=no])])
+-])
+--
+2.38.1
+
diff --git a/srcpkgs/ntp/template b/srcpkgs/ntp/template
index e190300a74a3a7..c7030f9b7f9d0d 100644
--- a/srcpkgs/ntp/template
+++ b/srcpkgs/ntp/template
@@ -5,7 +5,7 @@ revision=7
build_style=gnu-configure
configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --enable-ntp-signd
--enable-all-clocks ol_cv_pthread_select_yields=yes"
-hostmakedepends="pkg-config bison perl"
+hostmakedepends="pkg-config autoconf automake libtool bison perl"
makedepends="libedit-devel openssl-devel libcap-devel libevent-devel pps-tools-devel"
short_desc="Network Time Protocol daemon and utilities"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -28,6 +28,10 @@ post_extract() {
sed -i 's/linux/GLIBC/g' ntpd/ntpd.c
}
+pre_configure() {
+ autoreconf -fi
+}
+
post_install() {
# Rename files for alternatives.
vmkdir usr/share/man/man8
From 3faf52e621fe3c7ab26dbf41adf014f13810554a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:57:58 -0800
Subject: [PATCH 11/44] nvi: fix build with gcc14
---
srcpkgs/nvi/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/nvi/template b/srcpkgs/nvi/template
index 8a43e9f7a601b5..3923150ff5a1a6 100644
--- a/srcpkgs/nvi/template
+++ b/srcpkgs/nvi/template
@@ -22,6 +22,8 @@ alternatives="
vi:view.1:/usr/share/man/man1/nview.1
"
+CFLAGS="-fpermissive"
+
post_extract() {
chmod +w $wrksrc/common/options_def.h
}
From 293a120075919092fea4cdb0f657dab1d13c9843 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 21:19:48 -0800
Subject: [PATCH 12/44] libsasl: fix build for gcc14
---
srcpkgs/libsasl/patches/gcc14.patch | 70 +++++++++++++++++++++++++++++
1 file changed, 70 insertions(+)
create mode 100644 srcpkgs/libsasl/patches/gcc14.patch
diff --git a/srcpkgs/libsasl/patches/gcc14.patch b/srcpkgs/libsasl/patches/gcc14.patch
new file mode 100644
index 00000000000000..bdaade22f1c903
--- /dev/null
+++ b/srcpkgs/libsasl/patches/gcc14.patch
@@ -0,0 +1,70 @@
+diff -rup digestmd5.c.orig digestmd5.c
+--- a/plugins/digestmd5.c
++++ b/plugins/digestmd5.c
+@@ -86,6 +86,8 @@
+ # include <netinet/in.h>
+ #endif /* WIN32 */
+
++#include <time.h>
++
+ #include <sasl.h>
+ #include <saslplug.h>
+
+
+From 266f0acf7f5e029afbb3e263437039e50cd6c262 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Wed, 23 Feb 2022 00:45:15 +0000
+Subject: [PATCH] Fix <time.h> check
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+We're conditionally including based on HAVE_TIME_H in a bunch of places,
+but we're not actually checking for time.h, so that's never going to be defined.
+
+While at it, add in a missing include in the cram plugin.
+
+This fixes a bunch of implicit declaration warnings:
+```
+ * cyrus-sasl-2.1.28/lib/saslutil.c:280:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:364:41: warning: implicit declaration of function ‘clock’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/plugins/cram.c:132:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:280:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:364:41: warning: implicit declaration of function ‘clock’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/plugins/cram.c:132:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+```
+
+Signed-off-by: Sam James <sam@gentoo.org>
+---
+ configure.ac | 2 +-
+ plugins/cram.c | 4 ++++
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index e1bf53b6..ad781830 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1290,7 +1290,7 @@ AC_CHECK_HEADERS_ONCE([sys/time.h])
+
+ AC_HEADER_DIRENT
+ AC_HEADER_SYS_WAIT
+-AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
++AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h time.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
+
+ IPv6_CHECK_SS_FAMILY()
+ IPv6_CHECK_SA_LEN()
+diff --git a/plugins/cram.c b/plugins/cram.c
+index d02e9baa..695aaa91 100644
+--- a/plugins/cram.c
++++ b/plugins/cram.c
+@@ -53,6 +53,10 @@
+ #endif
+ #include <fcntl.h>
+
++#ifdef HAVE_TIME_H
++#include <time.h>
++#endif
++
+ #include <sasl.h>
+ #include <saslplug.h>
+ #include <saslutil.h>
From 1ec387e4b6dcb57fe1c8c958d1d061a1bd680594 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 21:37:47 -0800
Subject: [PATCH 13/44] xbps: fix build with gcc14
---
srcpkgs/xbps/patches/fix-transposed-calloc.patch | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 srcpkgs/xbps/patches/fix-transposed-calloc.patch
diff --git a/srcpkgs/xbps/patches/fix-transposed-calloc.patch b/srcpkgs/xbps/patches/fix-transposed-calloc.patch
new file mode 100644
index 00000000000000..67341372dab79a
--- /dev/null
+++ b/srcpkgs/xbps/patches/fix-transposed-calloc.patch
@@ -0,0 +1,13 @@
+diff --git a/bin/xbps-fbulk/main.c b/bin/xbps-fbulk/main.c
+index 6591bb61..4408bf20 100644
+--- a/bin/xbps-fbulk/main.c
++++ b/bin/xbps-fbulk/main.c
+@@ -397,7 +397,7 @@ runBuilds(const char *bpath)
+ static void
+ addDepn(struct item *item, struct item *xitem)
+ {
+- struct depn *depn = calloc(sizeof(*depn), 1);
++ struct depn *depn = calloc(1, sizeof(*depn));
+ char *logpath3;
+ FILE *fp;
+
From d6e7e51e623569371d779ffd08138112923d9843 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 3 Mar 2025 11:53:54 -0800
Subject: [PATCH 14/44] elfutils: update to 0.192.
Fix bulid with gcc14 and musl
---
srcpkgs/elfutils/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/elfutils/template b/srcpkgs/elfutils/template
index fd7a84d5a36c79..7e824c626eb3e3 100644
--- a/srcpkgs/elfutils/template
+++ b/srcpkgs/elfutils/template
@@ -1,13 +1,13 @@
# Template file for 'elfutils'
pkgname=elfutils
-version=0.190
+version=0.192
revision=1
build_style=gnu-configure
-configure_args="--program-prefix=eu-"
+configure_args="--program-prefix=eu- --enable-debuginfod --enable-libdebuginfod"
hostmakedepends="pkg-config m4"
_devel_depends="bzip2-devel liblzma-devel zlib-devel libzstd-devel"
makedepends="${_devel_depends} libcurl-devel libarchive-devel sqlite-devel
- libmicrohttpd-devel"
+ libmicrohttpd-devel json-c-devel"
checkdepends="zstd bzip2 curl rpm cpio iproute2 procps-ng"
short_desc="Utilities to handle ELF object files"
maintainer="Érico Nogueira <ericonr@disroot.org>"
@@ -15,7 +15,7 @@ license="GPL-3.0-or-later"
homepage="https://sourceware.org/elfutils/"
changelog="https://sourceware.org/git/?p=elfutils.git;a=blob_plain;f=NEWS;hb=HEAD"
distfiles="https://sourceware.org/pub/elfutils/${version}/elfutils-${version}.tar.bz2"
-checksum=8e00a3a9b5f04bc1dc273ae86281d2d26ed412020b391ffcc23198f10231d692
+checksum=616099beae24aba11f9b63d86ca6cc8d566d968b802391334c91df54eab416b4
# subpackages require explicit ordering
subpackages="debuginfod libdebuginfod libelf elfutils-devel"
CFLAGS="-Wno-error=deprecated-declarations" # curl 7.55+
From 1870387e5c2bc379528647b00f9835bfe97ff776 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 3 Mar 2025 11:54:42 -0800
Subject: [PATCH 15/44] iproute2: update to 6.13.0.
Fix build with gcc14 and musl.
---
srcpkgs/iproute2/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/iproute2/template b/srcpkgs/iproute2/template
index 44829a4e0d9010..bbab6772e8656d 100644
--- a/srcpkgs/iproute2/template
+++ b/srcpkgs/iproute2/template
@@ -1,6 +1,6 @@
# Template file for 'iproute2'
pkgname=iproute2
-version=6.10.0
+version=6.13.0
revision=1
build_style=configure
make_install_args="SBINDIR=/usr/bin"
@@ -12,7 +12,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://wiki.linuxfoundation.org/networking/iproute2"
distfiles="${KERNEL_SITE}/utils/net/iproute2/iproute2-${version}.tar.xz"
-checksum=91a62f82737b44905a00fa803369c447d549e914e9a2a4018fdd75b1d54e8dce
+checksum=a43aa43338d882b44d01e549f3f105a92ae9feea32a82fae45a88e7a49302819
# Requires unshare, which is not provided by chroot-util-linux.
make_check=no
From e95fe4b04d4397513b2aa59c9b90c0d2bccc61c4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 22:59:26 -0700
Subject: [PATCH 16/44] openjdk7-bootstrap: fix build with gcc14
---
srcpkgs/openjdk7-bootstrap/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index 03d91bebf4934a..a4e4ff46091b65 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -86,7 +86,7 @@ skip_extraction="
shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
nocross=yes
-CFLAGS="-fcommon"
+CFLAGS="-fcommon -fpermissive"
post_extract() {
mv icedtea-*/* .
From 996b6becc6dfe925c6ceaa209c5a14ba347f8ec0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 23:00:00 -0700
Subject: [PATCH 17/44] openjdk8: fix build with gcc14
---
.../patches/105_implicit_declaration.patch | 25 +++++++++++++++++++
.../openjdk8/patches/106_int_conversion.patch | 16 ++++++++++++
srcpkgs/openjdk8/template | 2 ++
3 files changed, 43 insertions(+)
create mode 100644 srcpkgs/openjdk8/patches/105_implicit_declaration.patch
create mode 100644 srcpkgs/openjdk8/patches/106_int_conversion.patch
diff --git a/srcpkgs/openjdk8/patches/105_implicit_declaration.patch b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
new file mode 100644
index 00000000000000..7a04c21ec910c3
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
@@ -0,0 +1,25 @@
+The isnanf BSD extension was deprecated with the
+introduction of isnan in c99 and isn't implemented in musl.
+Use the isnan function instead.
+
+--- a/jdk/src/solaris/native/common/jdk_util_md.h
++++ b/jdk/src/solaris/native/common/jdk_util_md.h
+@@ -37,7 +37,7 @@
+ #define ISNAND(d) isnan(d)
+ #elif defined(__linux__) || defined(_ALLBSD_SOURCE)
+ #include <math.h>
+-#define ISNANF(f) isnanf(f)
++#define ISNANF(f) isnan(f)
+ #define ISNAND(d) isnan(d)
+ #elif defined(_AIX)
+ #include <math.h>
+--- a/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
++++ b/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
+@@ -29,6 +29,7 @@
+ #include "jlong.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <dlfcn.h>
+ #include <errno.h>
diff --git a/srcpkgs/openjdk8/patches/106_int_conversion.patch b/srcpkgs/openjdk8/patches/106_int_conversion.patch
new file mode 100644
index 00000000000000..2c57cb01353072
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/106_int_conversion.patch
@@ -0,0 +1,16 @@
+--- a/jdk/src/share/bin/splashscreen_stubs.c
++++ b/jdk/src/share/bin/splashscreen_stubs.c
+@@ -61,11 +61,11 @@
+ #define INVOKEV(name) _INVOKE(name, ,;)
+
+ int DoSplashLoadMemory(void* pdata, int size) {
+- INVOKE(SplashLoadMemory, NULL)(pdata, size);
++ INVOKE(SplashLoadMemory, 0)(pdata, size);
+ }
+
+ int DoSplashLoadFile(const char* filename) {
+- INVOKE(SplashLoadFile, NULL)(filename);
++ INVOKE(SplashLoadFile, 0)(filename);
+ }
+
+ void DoSplashInit(void) {
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 3f01bd949417d9..045f78ad363dab 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -78,6 +78,8 @@ fi
# enabling ccache segfaults gcc
export CCACHE_DISABLE=1
+CFLAGS="-Wno-incompatible-pointer-types"
+
post_extract() {
chmod +x configure
}
From 6f8b19b8926963eca7a658680925fad6d1860e5b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 18/44] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From 168e736a5457198b456ba10f314180a67766addf Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 19/44] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..92c2d178e7d647 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From a3fde7ac16291e6fcb1ec0ad12c34395d86ac3e2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 20/44] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..85db97e4a226fc 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From bb818939b9e6fc2eb81c877f1656251c3111b327 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 21/44] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..8a728f493edeb6 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 3fa1e35e623fdab18c8ac226cfbb4f0f4440817f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 22/44] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..977a854aa73247 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 09398425e71a0258f87569b4242990a86c64bf4c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 23/44] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..5e1a0ca354c14c 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 5135dc19abe1b15d53179f7cbb5d427b2b43949d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 24/44] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..a322434f077d3d 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 544de0fb25059e6bb65d672d9180f96a584b153e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 25/44] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..c89746608c8b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 122c2c96d5124f8e95b90846b012203b0fabee60 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 26/44] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..0be817c88f2d09 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 679da6eda95ac536f915d50804aa0a1e7ea0444b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 27/44] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..b0066e4bd92d4c 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From d699582eda539094173a2afa5085f3b70527a6aa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 28/44] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..99dfdd11548326 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 00d59484cd42de13a397e3e8c511c84cf577d1ea Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 29/44] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..51c9c48320aac6 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From b11b2d262a7bf9f556a6375536abaa4c76ef8701 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 30/44] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..bf210fc49481ef 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 87b029798f6bd88881c1de8bedd0731f0ea6abe9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 31/44] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..66ca7dd8207192 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 02e2851e6c6d2d8f198b2803cdca3a769852d80a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 32/44] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..1695336c06c58c 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 0625dd32315d6283f328728a6b511e6a02653614 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 33/44] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..bf6c7ebc23c050 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From a4f9098e194de502544f115424c44bc8a0dfbab2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 34/44] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..f83a8acb09878c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From e3a529c344e3097a1c3df4f36c0c6b183f4ce736 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 35/44] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..9ea4921f0c0888 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 8acb0c50aef5c85b8dbf61a446a74eed34630a0f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 36/44] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..855f38e88b7c12 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 1ffe7ea493a757b9b43dbf183ed83d6314c7ed8a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 37/44] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..8dd06a1dc65f68 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From fd318df0f015a7b0f50afd2c4d930cc0e0d0c9a2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 38/44] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..d70d94cf225088 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From f9c049bfb3f9f1bb77db54b7adb1229263190fc8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 39/44] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..1fa175ec63d2d7 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,9 +22,9 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 3b767230c338e62c7d78e6e261c450720526a406 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 40/44] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..5887a1dbafead4 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From e080728b6b11ad1b4f47c385a43816f99816323e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 41/44] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..b15ecaca36cc48 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 96512bb50713d32fc0cbc6cd3b6204bbc7bd2a55 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 42/44] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..31483e4837a283 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 9dd88604834c00a93ec659fceb610c851e5156ab Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 43/44] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..95beba72b8b622 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From fd501a79abebef2764d62959388288de4073e1d2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:47 -0800
Subject: [PATCH 44/44] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..316b1d3896233d 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (29 preceding siblings ...)
2025-03-17 6:00 ` oreo639
@ 2025-03-17 23:35 ` oreo639
2025-03-18 2:52 ` oreo639
` (32 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-03-17 23:35 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 7009 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
You can test the ISOs here: https://devspace.voidlinux.org/oreo639/live/gcc14/
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp
- [x] libsasl
- [x] nvi (done in this pr)
- [x] xbps
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
- [x] gtk+ https://github.com/void-linux/void-packages/commit/ac57a55a5fda78618aec2ec7bb3c27404834ed04
- [x] gtk+3 https://github.com/void-linux/void-packages/pull/54187
- [x] libaom https://github.com/void-linux/void-packages/commit/fcbb94217389f64fea4c536959983814ebaadae4
- [x] perl-Tk https://github.com/void-linux/void-packages/commit/67aeb9d9b2b077d9b7f25902bbf079c1569a2633
- [x] gnu-efi-libs https://github.com/void-linux/void-packages/commit/92b2642bc8d1871605f824064863149985419010
- [x] syslinux https://github.com/void-linux/void-packages/commit/49af74a1dfb32ba1de556f4491b3870179c80872
- [ ] recode https://github.com/void-linux/void-packages/pull/54707
- [x] libcddb https://github.com/void-linux/void-packages/commit/eeae3026d1356e1ac5d0547e19e2742a335ae9ca
- [x] vim https://github.com/void-linux/void-packages/pull/54706
- [ ] vmaf https://github.com/void-linux/void-packages/pull/54721
- [ ] audit https://github.com/void-linux/void-packages/pull/54722
- [x] aalib https://github.com/void-linux/void-packages/commit/d7769fe6d757a62fbfc0998d5cbde5dec8a7db11
- [x] cppdap (outdated vendored gtest, patch merged upstream) https://github.com/void-linux/void-packages/commit/a2c9d8ac073e9f40d6b7b1bb3df108c0d46481bb
- [x] snappy (outdated vendored gtest, upstream rejected patch stating that downstreams running their tests is not supported and that downstreams should either ship their own tests/patches or just disable them) https://github.com/void-linux/void-packages/commit/4e73161431672d245a8d558f269a74f1ab363cc8
- [x] openjdk7-bootstrap
- [x] openjdk8
- [x] gimp https://github.com/void-linux/void-packages/commit/d173951120b07bc57171f6962c92c0877becd0d8
- [x] xf86-video-nouveau https://github.com/void-linux/void-packages/pull/54720
- [x] libao https://github.com/void-linux/void-packages/commit/b9c6b010a201211c0ffba8a821f0021b9bdaf376
- [x] accountsservice https://github.com/void-linux/void-packages/commit/a1ca8cef0b2e98ba22c4d632685f85c5d0cde4c1
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [x] elfutils https://github.com/void-linux/void-packages/pull/54566
- [x] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [x] sane https://github.com/void-linux/void-packages/pull/54614
- [x] mdadm https://github.com/void-linux/void-packages/commit/10694f08c471b2701b3c275540b0c665f67c8b9b
- [x] pulseaudio (broken due to configure checks detecting presence of open64, this is fixed in musl 1.2.x https://github.com/bminor/musl/commit/246f1c811448f37a44b41cd8df8d0ef9736d95f4 https://github.com/bminor/musl/commit/50ab830633134dac99011219f0210ee2759ffbde) https://github.com/void-linux/void-packages/commit/b87ec8f3ca216b6d9cfb4836f236fca13f45c2ab
- [x] gpm
- [x] linux-tools https://github.com/void-linux/void-packages/commit/8c670d7a13a3d6783e23624bda033ef898cafd72
- [ ] v4l-utils (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [ ] ffmpeg6 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [ ] ffmpeg (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [ ] gst-plugins-good1 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [ ] libcdio (fseek64, also broken on i686-glibc) https://github.com/void-linux/void-packages/pull/54724
- [x] gcr (getpass) https://github.com/void-linux/void-packages/commit/a40788b2db81ceba7e4a9f75e1c120efd7577600
- [x] libndp https://github.com/void-linux/void-packages/commit/580546374e10b6847a66bfb4d9f27579d5112902
- [x] samba https://github.com/void-linux/void-packages/commit/0900507d38bfc7963d7b6c1a7b04341ae987f2d2
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration instead of segfaulting later due to implicit pointer truncation. This is good, but ofc, packages need to be checked for this.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, please test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 160149 bytes --]
From 80abc1d59eb43124bbd65d5a44afc5199cf1b2a3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/42] binutils: update to 2.44.
---
srcpkgs/binutils/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..e10403f1ed7ae7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From dec3fa9d5aeba4004fb7f682bf3dfa75420c5fcd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/42] gcc: update to 14.2.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 20 +-
6 files changed, 20 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 640e3b2b665f51..cf0f55ea884d5b 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.40 perl-5.40.1_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..a8aceb6283d8a8 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
@@ -202,6 +202,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -325,6 +326,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+
+ # Disable explicit -fno-PIE, gcc will figure this out itself.
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +352,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +361,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
From bbbfd43bb82cc08bbd12ec173e658f7e825df30c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 03/42] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
common/shlibs | 60 +-
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
7 files changed, 33 insertions(+), 1003 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/common/shlibs b/common/shlibs
index cf0f55ea884d5b..6e1941fe99780a 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -17,36 +17,36 @@
# one (order top->bottom) is preferred over the next ones.
#
libc.so musl-1.1.24_7
-libc.so.6 glibc-2.39_1
-libm.so.6 glibc-2.39_1
-libpthread.so.0 glibc-2.39_1
-librt.so.1 glibc-2.39_1
-libdl.so.2 glibc-2.39_1
-ld-linux-x86-64.so.2 glibc-2.39_1 x86_64
-ld-linux.so.2 glibc-2.39_1 i686
-ld-linux.so.3 glibc-2.39_1 armv5tel
-ld-linux-aarch64.so.1 glibc-2.39_1 aarch64
-ld-linux-riscv64-lp64d.so.1 glibc-2.39_1 riscv64
-ld64.so.2 glibc-2.39_1 ppc64
-ld.so.1 glibc-2.39_1 mips
-ld.so.1 glibc-2.39_1 ppc
-ld-linux-armhf.so.3 glibc-2.39_1
-libresolv.so.2 glibc-2.39_1
-libanl.so.1 glibc-2.39_1
-libthread_db.so.1 glibc-2.39_1
-libutil.so.1 glibc-2.39_1
-libnsl.so.1 glibc-2.39_1
-libnss_db.so.2 glibc-2.39_1
-libnss_files.so.2 glibc-2.39_1
-libnss_compat.so.2 glibc-2.39_1
-libnss_dns.so.2 glibc-2.39_1
-libnss_hesiod.so.2 glibc-2.39_1
-libBrokenLocale.so.1 glibc-2.39_1
-libmemusage.so glibc-2.39_1
-libSegFault.so glibc-2.39_1
-libpcprofile.so glibc-2.39_1
-libcidn.so.1 glibc-2.39_1
-libmvec.so.1 glibc-2.39_1
+libc.so.6 glibc-2.41_1
+libm.so.6 glibc-2.41_1
+libpthread.so.0 glibc-2.41_1
+librt.so.1 glibc-2.41_1
+libdl.so.2 glibc-2.41_1
+ld-linux-x86-64.so.2 glibc-2.41_1 x86_64
+ld-linux.so.2 glibc-2.41_1 i686
+ld-linux.so.3 glibc-2.41_1 armv5tel
+ld-linux-aarch64.so.1 glibc-2.41_1 aarch64
+ld-linux-riscv64-lp64d.so.1 glibc-2.41_1 riscv64
+ld64.so.2 glibc-2.41_1 ppc64
+ld.so.1 glibc-2.41_1 mips
+ld.so.1 glibc-2.41_1 ppc
+ld-linux-armhf.so.3 glibc-2.41_1
+libresolv.so.2 glibc-2.41_1
+libanl.so.1 glibc-2.41_1
+libthread_db.so.1 glibc-2.41_1
+libutil.so.1 glibc-2.41_1
+libnsl.so.1 glibc-2.41_1
+libnss_db.so.2 glibc-2.41_1
+libnss_files.so.2 glibc-2.41_1
+libnss_compat.so.2 glibc-2.41_1
+libnss_dns.so.2 glibc-2.41_1
+libnss_hesiod.so.2 glibc-2.41_1
+libBrokenLocale.so.1 glibc-2.41_1
+libmemusage.so glibc-2.41_1
+libSegFault.so glibc-2.41_1
+libpcprofile.so glibc-2.41_1
+libcidn.so.1 glibc-2.41_1
+libmvec.so.1 glibc-2.41_1
libcrypt.so.2 libxcrypt-4.4.36_1
libcrypt.so.1 libxcrypt-compat-4.4.36_1
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From 357a7b6ba4d3a53919f0d4ee0a4ace9eb62ee1de Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 04/42] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 04e22c4fb01166..922d009ad8c36e 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=23
+revision=24
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From 6f45e75e88e565d4f3d97f9e8180aa2b8baba3e9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 05/42] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 9cd4bfaedaf8392aa1154df31dd453e550093eb2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 06/42] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 0228d7cc782df303d369305acf2188e2205f5814 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 07/42] gcc-multilib: update to 14.2.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From 5646a3bac4133fda7bdacb7ab8d1a31070ce8930 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 08/42] libgccjit: update to 14.2.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From 1bd18f2690fa12deae6d0ba3123390cdb0aac8d2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 09/42] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From 2347d1247399b61879edd38925df973621034a7b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:56:36 -0800
Subject: [PATCH 10/42] ntp: fix build with gcc14
---
srcpkgs/ntp/patches/gcc14.patch | 612 ++++++++++++++++++++++++++++++++
srcpkgs/ntp/template | 6 +-
2 files changed, 617 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/ntp/patches/gcc14.patch
diff --git a/srcpkgs/ntp/patches/gcc14.patch b/srcpkgs/ntp/patches/gcc14.patch
new file mode 100644
index 00000000000000..925543ee1fe669
--- /dev/null
+++ b/srcpkgs/ntp/patches/gcc14.patch
@@ -0,0 +1,612 @@
+Source: https://gitweb.gentoo.org/repo/gentoo.git/plain/net-misc/ntp/files/ntp-4.2.8_p15-configure-clang16.patch?id=9cc28f1d1f1f13da5537fe125931bd4b1fef97cf
+
+Sync with OpenLDAP. Uses Arsen's patch from https://bugs.gentoo.org/871288.
+
+https://bugs.gentoo.org/871372
+--- a/sntp/m4/openldap-thread-check.m4
++++ b/sntp/m4/openldap-thread-check.m4
+@@ -262,10 +262,8 @@ pthread_rwlock_t rwlock;
+ dnl save the flags
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #include <pthread.h>
+-#ifndef NULL
+-#define NULL (void*)0
+-#endif
+-]], [[pthread_detach(NULL);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
++pthread_t thread;
++]], [[pthread_detach(thread);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
+ ])
+
+ if test $ol_cv_func_pthread_detach = no ; then
+--- a/sntp/m4/openldap.m4
++++ b/sntp/m4/openldap.m4
+@@ -1,16 +1,16 @@
+ dnl OpenLDAP Autoconf Macros
+-dnl $OpenLDAP: pkg/ldap/build/openldap.m4,v 1.157.2.10 2010/04/13 20:22:21 kurt Exp $
++dnl $OpenLDAP$
+ dnl This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ dnl
+-dnl Copyright 1998-2010 The OpenLDAP Foundation.
++dnl Copyright 1998-2022 The OpenLDAP Foundation.
+ dnl All rights reserved.
+ dnl
+ dnl Redistribution and use in source and binary forms, with or without
+ dnl modification, are permitted only as authorized by the OpenLDAP
+ dnl Public License.
+ dnl
+-dnl A copy of this license is available in the file LICENSE-OPENLDAP in
+-dnl this directory of the distribution or, alternatively, at
++dnl A copy of this license is available in the file LICENSE in the
++dnl top-level directory of the distribution or, alternatively, at
+ dnl <http://www.OpenLDAP.org/license.html>.
+ dnl
+ dnl --------------------------------------------------------------------
+@@ -154,6 +154,7 @@ fi
+ if test $ol_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <ctype.h>
++#include <stdlib.h>
+ #ifndef HAVE_EBCDIC
+ # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+ # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+@@ -170,7 +171,7 @@ exit (0); }
+ ]])],[],[ol_cv_header_stdc=no],[:])
+ fi])
+ if test $ol_cv_header_stdc = yes; then
+- AC_DEFINE([STDC_HEADERS], [1], [is standard C provided?])
++ AC_DEFINE(STDC_HEADERS)
+ fi
+ ac_cv_header_stdc=disable
+ ])
+@@ -242,313 +243,40 @@ AC_DEFUN([OL_RESOLVER_LINK],
+ OL_RESOLVER_TRY(ol_cv_resolver_none)
+ OL_RESOLVER_TRY(ol_cv_resolver_resolv,[-lresolv])
+ OL_RESOLVER_TRY(ol_cv_resolver_bind,[-lbind])
+-])
+-dnl
+-dnl ====================================================================
+-dnl International Components for Unicode (ICU)
+-AC_DEFUN([OL_ICU],
+-[ol_icu=no
+-AC_CHECK_HEADERS( unicode/utypes.h )
+-if test $ac_cv_header_unicode_utypes_h = yes ; then
+- dnl OL_ICULIBS="-licui18n -licuuc -licudata"
+- OL_ICULIBS="-licuuc -licudata"
+-
+- AC_CACHE_CHECK([for ICU libraries], [ol_cv_lib_icu], [
+- ol_LIBS="$LIBS"
+- LIBS="$OL_ICULIBS $LIBS"
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+-#include <unicode/utypes.h>
+-]], [[
+-(void) u_errorName(0);
+-]])],[ol_cv_lib_icu=yes],[ol_cv_lib_icu=no])
+- LIBS="$ol_LIBS"
+-])
+-
+- if test $ol_cv_lib_icu != no ; then
+- ol_icu="$OL_ICULIBS"
+- AC_DEFINE([HAVE_ICU], [1], [define if you actually have ICU])
+- fi
+-fi
+-])
+-dnl
+-dnl ====================================================================
+-dnl Berkeley DB macros
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Try to link
+-AC_DEFUN([OL_BERKELEY_DB_TRY],
+-[if test $ol_cv_lib_db = no ; then
+- AC_CACHE_CHECK([for Berkeley DB link (]ifelse($2,,default,$2)[)],[$1],
+-[
+- ol_DB_LIB=ifelse($2,,,$2)
+- ol_LIBS=$LIBS
+- LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
+-
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+-#ifdef HAVE_DB_185_H
+-# include <db_185.h>
+-#else
+-# include <db.h>
+-#endif
+-
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-
+-#ifndef NULL
+-#define NULL ((void*)0)
+-#endif
+-]], [[
+-#if DB_VERSION_MAJOR > 2
+- db_env_create( NULL, 0 );
+-#elif DB_VERSION_MAJOR > 1
+- db_appexit( NULL );
+-#else
+- (void) dbopen( NULL, 0, 0, 0, NULL);
+-#endif
+-]])],[$1=yes],[$1=no])
+-
+- LIBS="$ol_LIBS"
+-])
+-
+- if test $$1 = yes ; then
+- ol_cv_lib_db=ifelse($2,,yes,$2)
+- fi
+-fi
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Get major and minor version from <db.h>
+-AC_DEFUN([OL_BDB_HEADER_VERSION],
+-[AC_CACHE_CHECK([for Berkeley DB major version in db.h], [ol_cv_bdb_major],[
+- AC_LANG_CONFTEST([
+-#include <db.h>
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-__db_version DB_VERSION_MAJOR
+-])
+- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
+- ol_cv_bdb_major=${3}
+-])
+-case $ol_cv_bdb_major in [[1-9]]*) : ;; *)
+- AC_MSG_ERROR([Unknown Berkeley DB major version in db.h]) ;;
+-esac
+-
+-dnl Determine minor version
+-AC_CACHE_CHECK([for Berkeley DB minor version in db.h], [ol_cv_bdb_minor],[
+- AC_LANG_CONFTEST([
+-#include <db.h>
+-#ifndef DB_VERSION_MINOR
+-# define DB_VERSION_MINOR 0
+-#endif
+-__db_version DB_VERSION_MINOR
+-])
+- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
+- ol_cv_bdb_minor=${3}
+-])
+-case $ol_cv_bdb_minor in [[0-9]]*) : ;; *)
+- AC_MSG_ERROR([Unknown Berkeley DB minor version in db.h]) ;;
+-esac
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Try to locate appropriate library
+-AC_DEFUN([OL_BERKELEY_DB_LINK],
+-[ol_cv_lib_db=no
+-
+-if test $ol_cv_bdb_major = 4 ; then
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4_dot_m,[-ldb-4.$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db4m,[-ldb4$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4m,[-ldb-4$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4_m,[-ldb-4-$ol_cv_bdb_minor])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db_4,[-ldb-4])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db4,[-ldb4])
+- OL_BERKELEY_DB_TRY(ol_cv_db_db,[-ldb])
+-fi
+-OL_BERKELEY_DB_TRY(ol_cv_db_none)
+-])
+-dnl
+-dnl --------------------------------------------------------------------
+-dnl Check if Berkeley DB version
+-AC_DEFUN([OL_BERKELEY_DB_VERSION],
+-[AC_CACHE_CHECK([for Berkeley DB library and header version match], [ol_cv_berkeley_db_version], [
+- ol_LIBS="$LIBS"
+- LIBS="$LTHREAD_LIBS $LIBS"
+- if test $ol_cv_lib_db != yes ; then
+- LIBS="$ol_cv_lib_db $LIBS"
+- fi
+-
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-#ifdef HAVE_DB_185_H
+- choke me;
+-#else
+-#include <db.h>
+-#endif
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-#ifndef NULL
+-#define NULL ((void *)0)
+-#endif
+-main()
+-{
+-#if DB_VERSION_MAJOR > 1
+- char *version;
+- int major, minor, patch;
+-
+- version = db_version( &major, &minor, &patch );
+-
+- if( major != DB_VERSION_MAJOR ||
+- minor != DB_VERSION_MINOR ||
+- patch != DB_VERSION_PATCH )
+- {
+- printf("Berkeley DB version mismatch\n"
+- "\theader: %s\n\tlibrary: %s\n",
+- DB_VERSION_STRING, version);
+- return 1;
+- }
+-#endif
+-
+- return 0;
+-}]])],[ol_cv_berkeley_db_version=yes],[ol_cv_berkeley_db_version=no],[ol_cv_berkeley_db_version=cross])
+-
+- LIBS="$ol_LIBS"
+ ])
+
+- if test $ol_cv_berkeley_db_version = no ; then
+- AC_MSG_ERROR([Berkeley DB version mismatch])
+- fi
+-])dnl
+-dnl
+ dnl --------------------------------------------------------------------
+-dnl Check if Berkeley DB supports DB_THREAD
+-AC_DEFUN([OL_BERKELEY_DB_THREAD],
+-[AC_CACHE_CHECK([for Berkeley DB thread support], [ol_cv_berkeley_db_thread], [
+- ol_LIBS="$LIBS"
+- LIBS="$LTHREAD_LIBS $LIBS"
+- if test $ol_cv_lib_db != yes ; then
+- LIBS="$ol_cv_lib_db $LIBS"
+- fi
+-
+- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+-#ifdef HAVE_DB_185_H
+- choke me;
+-#else
+-#include <db.h>
+-#endif
+-#ifndef NULL
+-#define NULL ((void *)0)
+-#endif
+-main()
+-{
+- int rc;
+- u_int32_t flags = DB_CREATE |
+-#ifdef DB_PRIVATE
+- DB_PRIVATE |
+-#endif
+- DB_THREAD;
+-
+-#if DB_VERSION_MAJOR > 2
+- DB_ENV *env = NULL;
+-
+- rc = db_env_create( &env, 0 );
++dnl Check for version compatility with back-mdb
++AC_DEFUN([OL_MDB_COMPAT],
++[AC_CACHE_CHECK([if LMDB version supported by MDB backends], [ol_cv_mdb_compat],[
++ AC_EGREP_CPP(__mdb_version_compat,[
++#include <lmdb.h>
+
+- flags |= DB_INIT_MPOOL;
+-#ifdef DB_MPOOL_PRIVATE
+- flags |= DB_MPOOL_PRIVATE;
++/* require 0.9.18 or later */
++#if MDB_VERSION_FULL >= 0x000000090012
++ __mdb_version_compat
+ #endif
+-
+- if( rc ) {
+- printf("BerkeleyDB: %s\n", db_strerror(rc) );
+- return rc;
+- }
+-
+-#if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
+- rc = (env->open)( env, NULL, flags, 0 );
+-#else
+- rc = (env->open)( env, NULL, NULL, flags, 0 );
+-#endif
+-
+- if ( rc == 0 ) {
+- rc = env->close( env, 0 );
+- }
+-
+- if( rc ) {
+- printf("BerkeleyDB: %s\n", db_strerror(rc) );
+- return rc;
+- }
+-
+-#else
+- DB_ENV env;
+- memset( &env, '\0', sizeof(env) );
+-
+- rc = db_appinit( NULL, NULL, &env, flags );
+-
+- if( rc == 0 ) {
+- db_appexit( &env );
+- }
+-
+- unlink("__db_mpool.share");
+- unlink("__db_lock.share");
+-#endif
+-
+- return rc;
+-}]])],[ol_cv_berkeley_db_thread=yes],[ol_cv_berkeley_db_thread=no],[ol_cv_berkeley_db_thread=cross])
+-
+- LIBS="$ol_LIBS"
++ ], [ol_cv_mdb_compat=yes], [ol_cv_mdb_compat=no])])
+ ])
+
+- if test $ol_cv_berkeley_db_thread != no ; then
+- AC_DEFINE([HAVE_BERKELEY_DB_THREAD], [1],
+- [define if Berkeley DB has DB_THREAD support])
+- fi
+-])dnl
+ dnl
+ dnl --------------------------------------------------------------------
+-dnl Find any DB
+-AC_DEFUN([OL_BERKELEY_DB],
+-[ol_cv_berkeley_db=no
+-AC_CHECK_HEADERS(db.h)
+-if test $ac_cv_header_db_h = yes; then
+- OL_BDB_HEADER_VERSION
+- OL_BDB_COMPAT
+-
+- if test $ol_cv_bdb_compat != yes ; then
+- AC_MSG_ERROR([BerkeleyDB version incompatible with BDB/HDB backends])
++dnl Find any MDB
++AC_DEFUN([OL_MDB],
++[ol_cv_mdb=no
++AC_CHECK_HEADERS(lmdb.h)
++if test $ac_cv_header_lmdb_h = yes; then
++ OL_MDB_COMPAT
++
++ if test $ol_cv_mdb_compat != yes ; then
++ AC_MSG_ERROR([LMDB version incompatible with MDB backends])
+ fi
+
+- OL_BERKELEY_DB_LINK
+- if test "$ol_cv_lib_db" != no ; then
+- ol_cv_berkeley_db=yes
+- OL_BERKELEY_DB_VERSION
+- OL_BERKELEY_DB_THREAD
+- fi
++ ol_cv_lib_mdb=-llmdb
++ ol_cv_mdb=yes
+ fi
+ ])
+-dnl --------------------------------------------------------------------
+-dnl Check for version compatility with back-bdb
+-AC_DEFUN([OL_BDB_COMPAT],
+-[AC_CACHE_CHECK([if Berkeley DB version supported by BDB/HDB backends], [ol_cv_bdb_compat],[
+- AC_EGREP_CPP(__db_version_compat,[
+-#include <db.h>
+-
+- /* this check could be improved */
+-#ifndef DB_VERSION_MAJOR
+-# define DB_VERSION_MAJOR 1
+-#endif
+-#ifndef DB_VERSION_MINOR
+-# define DB_VERSION_MINOR 0
+-#endif
+-
+-#define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
+
+-/* require 4.4 or later */
+-#if DB_VERSION_MM >= 0x0404
+- __db_version_compat
+-#endif
+- ], [ol_cv_bdb_compat=yes], [ol_cv_bdb_compat=no])])
+-])
+
+ dnl
+ dnl ====================================================================
+@@ -664,12 +392,10 @@ AC_DEFUN([OL_PTHREAD_TEST_FUNCTION],[[
+ return 0;
+ ]])
+
+-AC_DEFUN([OL_PTHREAD_TEST_PROGRAM], [
+-AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
++AC_DEFUN([OL_PTHREAD_TEST_PROGRAM],
++[AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
+
+-int main(argc, argv)
+- int argc;
+- char **argv;
++int main(int argc, char **argv)
+ {
+ OL_PTHREAD_TEST_FUNCTION
+ }
+@@ -706,7 +432,7 @@ dnl Check GNU Pth pthread Header
+ dnl
+ dnl defines ol_cv_header linux_threads to 'yes' or 'no'
+ dnl 'no' implies pthreads.h is not LinuxThreads or pthreads.h
+-dnl doesn't exists. Existance of pthread.h should separately
++dnl doesn't exist. Existence of pthread.h should separately
+ dnl checked.
+ dnl
+ AC_DEFUN([OL_HEADER_GNU_PTH_PTHREAD_H], [
+@@ -728,7 +454,7 @@ AC_DEFUN([OL_NT_THREADS], [
+ AC_CHECK_FUNC(_beginthread)
+
+ if test $ac_cv_func__beginthread = yes ; then
+- AC_DEFINE([HAVE_NT_THREADS], [1], [if you have NT Threads])
++ AC_DEFINE(HAVE_NT_THREADS,1,[if you have NT Threads])
+ ol_cv_nt_threads=yes
+ fi
+ ])
+@@ -737,7 +463,7 @@ dnl Check LinuxThreads Header
+ dnl
+ dnl defines ol_cv_header linux_threads to 'yes' or 'no'
+ dnl 'no' implies pthreads.h is not LinuxThreads or pthreads.h
+-dnl doesn't exists. Existance of pthread.h should separately
++dnl doesn't exist. Existence of pthread.h should separately
+ dnl checked.
+ dnl
+ AC_DEFUN([OL_HEADER_LINUX_THREADS], [
+@@ -749,7 +475,7 @@ AC_DEFUN([OL_HEADER_LINUX_THREADS], [
+ [ol_cv_header_linux_threads=no])
+ ])
+ if test $ol_cv_header_linux_threads = yes; then
+- AC_DEFINE([HAVE_LINUX_THREADS], [1], [if you have LinuxThreads])
++ AC_DEFINE(HAVE_LINUX_THREADS,1,[if you have LinuxThreads])
+ fi
+ ])dnl
+ dnl --------------------------------------------------------------------
+@@ -791,7 +517,7 @@ AC_CACHE_CHECK([for compatible POSIX regex],ol_cv_c_posix_regex,[
+ #include <sys/types.h>
+ #include <regex.h>
+ static char *pattern, *string;
+-main()
++int main(void)
+ {
+ int rc;
+ regex_t re;
+@@ -818,7 +544,8 @@ AC_DEFUN([OL_C_UPPER_LOWER],
+ [AC_CACHE_CHECK([if toupper() requires islower()],ol_cv_c_upper_lower,[
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+ #include <ctype.h>
+-main()
++#include <stdlib.h>
++int main(void)
+ {
+ if ('C' == toupper('C'))
+ exit(0);
+@@ -826,7 +553,7 @@ main()
+ exit(1);
+ }]])],[ol_cv_c_upper_lower=no],[ol_cv_c_upper_lower=yes],[ol_cv_c_upper_lower=safe])])
+ if test $ol_cv_c_upper_lower != no ; then
+- AC_DEFINE([C_UPPER_LOWER], [1], [define if toupper() requires islower()])
++ AC_DEFINE(C_UPPER_LOWER,1, [define if toupper() requires islower()])
+ fi
+ ])
+ dnl
+@@ -837,29 +564,32 @@ dnl Check for declaration of sys_errlist in one of stdio.h and errno.h.
+ dnl Declaration of sys_errlist on BSD4.4 interferes with our declaration.
+ dnl Reported by Keith Bostic.
+ AC_DEFUN([OL_SYS_ERRLIST],
+-[AC_CACHE_CHECK([declaration of sys_errlist],ol_cv_dcl_sys_errlist,[
+- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
++[AC_CACHE_CHECK([existence of sys_errlist],ol_cv_have_sys_errlist,[
++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[char *c = (char *) *sys_errlist]])],[ol_cv_have_sys_errlist=yes],[ol_cv_have_sys_errlist=no])])
++if test $ol_cv_have_sys_errlist = yes ; then
++ AC_DEFINE(HAVE_SYS_ERRLIST,1,
++ [define if you actually have sys_errlist in your libs])
++ AC_CACHE_CHECK([declaration of sys_errlist],ol_cv_dcl_sys_errlist,[
++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <errno.h>
+ #ifdef _WIN32
+ #include <stdlib.h>
+-#endif ]], [[char *c = (char *) *sys_errlist]])],[ol_cv_dcl_sys_errlist=yes
+- ol_cv_have_sys_errlist=yes],[ol_cv_dcl_sys_errlist=no])])
++#endif ]], [[char *c = (char *) *sys_errlist]])],[ol_cv_dcl_sys_errlist=yes],
++ [ol_cv_dcl_sys_errlist=no])])
+ #
+-# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
+-if test $ol_cv_dcl_sys_errlist = no ; then
+- AC_DEFINE([DECL_SYS_ERRLIST], [1],
+- [define if sys_errlist is not declared in stdio.h or errno.h])
+-
+- AC_CACHE_CHECK([existence of sys_errlist],ol_cv_have_sys_errlist,[
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <errno.h>]], [[char *c = (char *) *sys_errlist]])],[ol_cv_have_sys_errlist=yes],[ol_cv_have_sys_errlist=no])])
+-fi
+-if test $ol_cv_have_sys_errlist = yes ; then
+- AC_DEFINE([HAVE_SYS_ERRLIST], [1],
+- [define if you actually have sys_errlist in your libs])
++ # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
++ if test $ol_cv_dcl_sys_errlist = no ; then
++ AC_DEFINE(DECL_SYS_ERRLIST,1,
++ [define if sys_errlist is not declared in stdio.h or errno.h])
++ fi
+ fi
+ ])dnl
++dnl
++dnl ====================================================================
++dnl glibc supplies a non-standard strerror_r if _GNU_SOURCE is defined.
++dnl It's actually preferable to the POSIX version, if available.
+ AC_DEFUN([OL_NONPOSIX_STRERROR_R],
+ [AC_CACHE_CHECK([non-posix strerror_r],ol_cv_nonposix_strerror_r,[
+ AC_EGREP_CPP(strerror_r,[#include <string.h>],
+@@ -873,24 +603,23 @@ AC_DEFUN([OL_NONPOSIX_STRERROR_R],
+ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no])
+ else
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+- main() {
++ int main(void) {
+ char buf[100];
+ buf[0] = 0;
+ strerror_r( 1, buf, sizeof buf );
+ exit( buf[0] == 0 );
+ }
+- ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror=no],[ol_cv_nonposix_strerror=no])
++ ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no],[ol_cv_nonposix_strerror_r=no])
+ fi
+ ])
+ if test $ol_cv_nonposix_strerror_r = yes ; then
+- AC_DEFINE([HAVE_NONPOSIX_STRERROR_R], [1],
++ AC_DEFINE(HAVE_NONPOSIX_STRERROR_R,1,
+ [define if strerror_r returns char* instead of int])
+ fi
+ ])dnl
+ dnl
+ AC_DEFUN([OL_STRERROR],
+-[OL_SYS_ERRLIST dnl TEMPORARY
+-AC_CHECK_FUNCS(strerror strerror_r)
++[AC_CHECK_FUNCS(strerror strerror_r)
+ ol_cv_func_strerror_r=no
+ if test "${ac_cv_func_strerror_r}" = yes ; then
+ OL_NONPOSIX_STRERROR_R
+@@ -910,7 +639,7 @@ AC_DEFUN([OL_C_VOLATILE],
+ if test $ol_cv_c_volatile = yes; then
+ :
+ else
+- AC_DEFINE([volatile], [], [define as empty if volatile is not supported])
++ AC_DEFINE(volatile,,[define as empty if volatile is not supported])
+ fi
+ ])dnl
+ dnl
+@@ -918,7 +647,7 @@ dnl ====================================================================
+ dnl Look for fetch(3)
+ AC_DEFUN([OL_LIB_FETCH],
+ [ol_LIBS=$LIBS
+-LIBS="-lfetch -lcom_err $LIBS"
++LIBS="-lfetch $LIBS"
+ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+ #ifdef HAVE_SYS_PARAM_H
+@@ -928,8 +657,8 @@ AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
+ #include <fetch.h>]], [[struct url *u = fetchParseURL("file:///"); ]])],[ol_cv_lib_fetch=yes],[ol_cv_lib_fetch=no])])
+ LIBS=$ol_LIBS
+ if test $ol_cv_lib_fetch != no ; then
+- ol_link_fetch="-lfetch -lcom_err"
+- AC_DEFINE([HAVE_FETCH], [1],
++ ol_link_fetch="-lfetch"
++ AC_DEFINE(HAVE_FETCH,1,
+ [define if you actually have FreeBSD fetch(3)])
+ fi
+ ])dnl
+@@ -1094,7 +823,7 @@ AC_DEFUN([OL_FUNC_GETHOSTBYADDR_R_NARGS],
+ ])dnl
+ dnl
+ dnl --------------------------------------------------------------------
+-dnl Check for Cyrus SASL version compatility
++dnl Check for Cyrus SASL version compatibility
+ AC_DEFUN([OL_SASL_COMPAT],
+ [AC_CACHE_CHECK([Cyrus SASL library version], [ol_cv_sasl_compat],[
+ AC_EGREP_CPP(__sasl_compat,[
+@@ -1113,19 +842,3 @@ AC_DEFUN([OL_SASL_COMPAT],
+ #endif
+ ], [ol_cv_sasl_compat=yes], [ol_cv_sasl_compat=no])])
+ ])
+-dnl ====================================================================
+-dnl check for SSL compatibility
+-AC_DEFUN([OL_SSL_COMPAT],
+-[AC_CACHE_CHECK([OpenSSL library version (CRL checking capability)],
+- [ol_cv_ssl_crl_compat],[
+- AC_EGREP_CPP(__ssl_compat,[
+-#ifdef HAVE_OPENSSL_SSL_H
+-#include <openssl/ssl.h>
+-#endif
+-
+-/* Require 0.9.7d+ */
+-#if OPENSSL_VERSION_NUMBER >= 0x0090704fL
+- char *__ssl_compat = "0.9.7d";
+-#endif
+- ], [ol_cv_ssl_crl_compat=yes], [ol_cv_ssl_crl_compat=no])])
+-])
+--
+2.38.1
+
diff --git a/srcpkgs/ntp/template b/srcpkgs/ntp/template
index e190300a74a3a7..c7030f9b7f9d0d 100644
--- a/srcpkgs/ntp/template
+++ b/srcpkgs/ntp/template
@@ -5,7 +5,7 @@ revision=7
build_style=gnu-configure
configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --enable-ntp-signd
--enable-all-clocks ol_cv_pthread_select_yields=yes"
-hostmakedepends="pkg-config bison perl"
+hostmakedepends="pkg-config autoconf automake libtool bison perl"
makedepends="libedit-devel openssl-devel libcap-devel libevent-devel pps-tools-devel"
short_desc="Network Time Protocol daemon and utilities"
maintainer="Orphaned <orphan@voidlinux.org>"
@@ -28,6 +28,10 @@ post_extract() {
sed -i 's/linux/GLIBC/g' ntpd/ntpd.c
}
+pre_configure() {
+ autoreconf -fi
+}
+
post_install() {
# Rename files for alternatives.
vmkdir usr/share/man/man8
From 688d3ed04f4990786dcde6c56358a84e4c686735 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:57:58 -0800
Subject: [PATCH 11/42] nvi: fix build with gcc14
---
srcpkgs/nvi/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/nvi/template b/srcpkgs/nvi/template
index 8a43e9f7a601b5..3923150ff5a1a6 100644
--- a/srcpkgs/nvi/template
+++ b/srcpkgs/nvi/template
@@ -22,6 +22,8 @@ alternatives="
vi:view.1:/usr/share/man/man1/nview.1
"
+CFLAGS="-fpermissive"
+
post_extract() {
chmod +w $wrksrc/common/options_def.h
}
From d3fddf7924662901287ff5a32c34ea1e82bfa8fa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 21:19:48 -0800
Subject: [PATCH 12/42] libsasl: fix build for gcc14
---
srcpkgs/libsasl/patches/gcc14.patch | 70 +++++++++++++++++++++++++++++
1 file changed, 70 insertions(+)
create mode 100644 srcpkgs/libsasl/patches/gcc14.patch
diff --git a/srcpkgs/libsasl/patches/gcc14.patch b/srcpkgs/libsasl/patches/gcc14.patch
new file mode 100644
index 00000000000000..bdaade22f1c903
--- /dev/null
+++ b/srcpkgs/libsasl/patches/gcc14.patch
@@ -0,0 +1,70 @@
+diff -rup digestmd5.c.orig digestmd5.c
+--- a/plugins/digestmd5.c
++++ b/plugins/digestmd5.c
+@@ -86,6 +86,8 @@
+ # include <netinet/in.h>
+ #endif /* WIN32 */
+
++#include <time.h>
++
+ #include <sasl.h>
+ #include <saslplug.h>
+
+
+From 266f0acf7f5e029afbb3e263437039e50cd6c262 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Wed, 23 Feb 2022 00:45:15 +0000
+Subject: [PATCH] Fix <time.h> check
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+We're conditionally including based on HAVE_TIME_H in a bunch of places,
+but we're not actually checking for time.h, so that's never going to be defined.
+
+While at it, add in a missing include in the cram plugin.
+
+This fixes a bunch of implicit declaration warnings:
+```
+ * cyrus-sasl-2.1.28/lib/saslutil.c:280:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:364:41: warning: implicit declaration of function ‘clock’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/plugins/cram.c:132:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:280:3: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/lib/saslutil.c:364:41: warning: implicit declaration of function ‘clock’ [-Wimplicit-function-declaration]
+ * cyrus-sasl-2.1.28/plugins/cram.c:132:7: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
+```
+
+Signed-off-by: Sam James <sam@gentoo.org>
+---
+ configure.ac | 2 +-
+ plugins/cram.c | 4 ++++
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index e1bf53b6..ad781830 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1290,7 +1290,7 @@ AC_CHECK_HEADERS_ONCE([sys/time.h])
+
+ AC_HEADER_DIRENT
+ AC_HEADER_SYS_WAIT
+-AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
++AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h time.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
+
+ IPv6_CHECK_SS_FAMILY()
+ IPv6_CHECK_SA_LEN()
+diff --git a/plugins/cram.c b/plugins/cram.c
+index d02e9baa..695aaa91 100644
+--- a/plugins/cram.c
++++ b/plugins/cram.c
+@@ -53,6 +53,10 @@
+ #endif
+ #include <fcntl.h>
+
++#ifdef HAVE_TIME_H
++#include <time.h>
++#endif
++
+ #include <sasl.h>
+ #include <saslplug.h>
+ #include <saslutil.h>
From 46905f34853c1f9964a8d37f86a159e9c0c69fe7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 21:37:47 -0800
Subject: [PATCH 13/42] xbps: fix build with gcc14
---
srcpkgs/xbps/patches/fix-transposed-calloc.patch | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 srcpkgs/xbps/patches/fix-transposed-calloc.patch
diff --git a/srcpkgs/xbps/patches/fix-transposed-calloc.patch b/srcpkgs/xbps/patches/fix-transposed-calloc.patch
new file mode 100644
index 00000000000000..67341372dab79a
--- /dev/null
+++ b/srcpkgs/xbps/patches/fix-transposed-calloc.patch
@@ -0,0 +1,13 @@
+diff --git a/bin/xbps-fbulk/main.c b/bin/xbps-fbulk/main.c
+index 6591bb61..4408bf20 100644
+--- a/bin/xbps-fbulk/main.c
++++ b/bin/xbps-fbulk/main.c
+@@ -397,7 +397,7 @@ runBuilds(const char *bpath)
+ static void
+ addDepn(struct item *item, struct item *xitem)
+ {
+- struct depn *depn = calloc(sizeof(*depn), 1);
++ struct depn *depn = calloc(1, sizeof(*depn));
+ char *logpath3;
+ FILE *fp;
+
From e169396118629ca5cdc09bfe030a7721b748f8b4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 22:59:26 -0700
Subject: [PATCH 14/42] openjdk7-bootstrap: fix build with gcc14
---
srcpkgs/openjdk7-bootstrap/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index 03d91bebf4934a..a4e4ff46091b65 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -86,7 +86,7 @@ skip_extraction="
shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
nocross=yes
-CFLAGS="-fcommon"
+CFLAGS="-fcommon -fpermissive"
post_extract() {
mv icedtea-*/* .
From 7fc5185b12eac993461fe933bd61c9ec2ec75f95 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 23:00:00 -0700
Subject: [PATCH 15/42] openjdk8: fix build with gcc14
---
.../patches/105_implicit_declaration.patch | 25 +++++++++++++++++++
.../openjdk8/patches/106_int_conversion.patch | 16 ++++++++++++
srcpkgs/openjdk8/template | 2 ++
3 files changed, 43 insertions(+)
create mode 100644 srcpkgs/openjdk8/patches/105_implicit_declaration.patch
create mode 100644 srcpkgs/openjdk8/patches/106_int_conversion.patch
diff --git a/srcpkgs/openjdk8/patches/105_implicit_declaration.patch b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
new file mode 100644
index 00000000000000..7a04c21ec910c3
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
@@ -0,0 +1,25 @@
+The isnanf BSD extension was deprecated with the
+introduction of isnan in c99 and isn't implemented in musl.
+Use the isnan function instead.
+
+--- a/jdk/src/solaris/native/common/jdk_util_md.h
++++ b/jdk/src/solaris/native/common/jdk_util_md.h
+@@ -37,7 +37,7 @@
+ #define ISNAND(d) isnan(d)
+ #elif defined(__linux__) || defined(_ALLBSD_SOURCE)
+ #include <math.h>
+-#define ISNANF(f) isnanf(f)
++#define ISNANF(f) isnan(f)
+ #define ISNAND(d) isnan(d)
+ #elif defined(_AIX)
+ #include <math.h>
+--- a/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
++++ b/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
+@@ -29,6 +29,7 @@
+ #include "jlong.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <dlfcn.h>
+ #include <errno.h>
diff --git a/srcpkgs/openjdk8/patches/106_int_conversion.patch b/srcpkgs/openjdk8/patches/106_int_conversion.patch
new file mode 100644
index 00000000000000..2c57cb01353072
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/106_int_conversion.patch
@@ -0,0 +1,16 @@
+--- a/jdk/src/share/bin/splashscreen_stubs.c
++++ b/jdk/src/share/bin/splashscreen_stubs.c
+@@ -61,11 +61,11 @@
+ #define INVOKEV(name) _INVOKE(name, ,;)
+
+ int DoSplashLoadMemory(void* pdata, int size) {
+- INVOKE(SplashLoadMemory, NULL)(pdata, size);
++ INVOKE(SplashLoadMemory, 0)(pdata, size);
+ }
+
+ int DoSplashLoadFile(const char* filename) {
+- INVOKE(SplashLoadFile, NULL)(filename);
++ INVOKE(SplashLoadFile, 0)(filename);
+ }
+
+ void DoSplashInit(void) {
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 3f01bd949417d9..045f78ad363dab 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -78,6 +78,8 @@ fi
# enabling ccache segfaults gcc
export CCACHE_DISABLE=1
+CFLAGS="-Wno-incompatible-pointer-types"
+
post_extract() {
chmod +x configure
}
From f0e2311c718a8641e5fd644c7646390790949e61 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 16/42] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From 048f3ba7ceb2fd4008c02487c2fe74fb1355f68c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 17/42] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..92c2d178e7d647 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 3148aaa86036113f83738a7358cee12ad1917fb8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 18/42] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..85db97e4a226fc 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From f328cf005a41a4252edc970a01f53d9618b756de Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 19/42] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..8a728f493edeb6 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ea6046c34ee7284d217a0112e48c3421ed417a1f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 20/42] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..977a854aa73247 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 154ca7ba6e56fc180a657e01685430f077c8949a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 21/42] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..5e1a0ca354c14c 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From ea1013d6828d965151580bcb89f96c75ed728042 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 22/42] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..a322434f077d3d 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 22a0a594b6fd2e6083a56ab946b33fb4309482f0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 23/42] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..c89746608c8b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 30bd2d80b8ff7da7a70637311924e158a66a570d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 24/42] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..0be817c88f2d09 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From d8842657246500c3845da91e91f8f632b4bb8b83 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 25/42] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..b0066e4bd92d4c 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From c638c315710f80ee3c39761d613c2dd856211880 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 26/42] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..99dfdd11548326 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 2d105f4d821f023ebfb5bc1c264ea36e3030e839 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 27/42] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..51c9c48320aac6 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 08bc09993525a1066f8d8133cf75f9a8ffaf325b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 28/42] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..bf210fc49481ef 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 5a771b74829a118fea8f94c679f8b1f8974edf21 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 29/42] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..66ca7dd8207192 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From bf85a44420ce70ed5153a5244248d9d2373c0f03 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 30/42] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..1695336c06c58c 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 982c9bd55743ea33bc900f45d1c38cb9579b1af6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 31/42] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..bf6c7ebc23c050 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7530a0b69d3821552feccf91d9429ea413da30b7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 32/42] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..f83a8acb09878c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 6abe238fbbc4d19458844a2f624d3aff8c053837 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 33/42] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..9ea4921f0c0888 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From b1f15bf7e5445aeb92cd0a8b0445efc0d0e3a827 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 34/42] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..855f38e88b7c12 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 43a0caf81c4c30f3ff19120a77ef015c74deac19 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 35/42] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..8dd06a1dc65f68 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 1ff4adb10f9869d4d78a8edacf6d02f0cee48b29 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 36/42] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..d70d94cf225088 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From be75edda61a83d470781e9fb9433a13ee7ef7295 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 37/42] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..1fa175ec63d2d7 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,9 +22,9 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 23ed521c6e720b80a49e1e56232349a8a7f48174 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 38/42] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..5887a1dbafead4 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 2ab7ba775e73f98f95cc6966c8671ae2e5f40851 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 39/42] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..b15ecaca36cc48 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 9a4bdf5ecd9905922dc0faa099146af52dae3ebd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 40/42] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..31483e4837a283 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 0e6761a4385c66422f739cad211dd3c437915ff4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 41/42] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..95beba72b8b622 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From eec3f1945bf870e35bcab8ff0459a0d9c0c694f7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:47 -0800
Subject: [PATCH 42/42] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..316b1d3896233d 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (30 preceding siblings ...)
2025-03-17 23:35 ` oreo639
@ 2025-03-18 2:52 ` oreo639
2025-03-19 9:06 ` oreo639
` (31 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-03-18 2:52 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 7009 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
You can test the ISOs here: https://devspace.voidlinux.org/oreo639/live/gcc14/
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp
- [x] libsasl
- [x] nvi (done in this pr)
- [x] xbps
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
- [x] gtk+ https://github.com/void-linux/void-packages/commit/ac57a55a5fda78618aec2ec7bb3c27404834ed04
- [x] gtk+3 https://github.com/void-linux/void-packages/pull/54187
- [x] libaom https://github.com/void-linux/void-packages/commit/fcbb94217389f64fea4c536959983814ebaadae4
- [x] perl-Tk https://github.com/void-linux/void-packages/commit/67aeb9d9b2b077d9b7f25902bbf079c1569a2633
- [x] gnu-efi-libs https://github.com/void-linux/void-packages/commit/92b2642bc8d1871605f824064863149985419010
- [x] syslinux https://github.com/void-linux/void-packages/commit/49af74a1dfb32ba1de556f4491b3870179c80872
- [ ] recode https://github.com/void-linux/void-packages/pull/54707
- [x] libcddb https://github.com/void-linux/void-packages/commit/eeae3026d1356e1ac5d0547e19e2742a335ae9ca
- [x] vim https://github.com/void-linux/void-packages/pull/54706
- [x] vmaf https://github.com/void-linux/void-packages/pull/54721
- [ ] audit https://github.com/void-linux/void-packages/pull/54722
- [x] aalib https://github.com/void-linux/void-packages/commit/d7769fe6d757a62fbfc0998d5cbde5dec8a7db11
- [x] cppdap (outdated vendored gtest, patch merged upstream) https://github.com/void-linux/void-packages/commit/a2c9d8ac073e9f40d6b7b1bb3df108c0d46481bb
- [x] snappy (outdated vendored gtest, upstream rejected patch stating that downstreams running their tests is not supported and that downstreams should either ship their own tests/patches or just disable them) https://github.com/void-linux/void-packages/commit/4e73161431672d245a8d558f269a74f1ab363cc8
- [x] openjdk7-bootstrap
- [x] openjdk8
- [x] gimp https://github.com/void-linux/void-packages/commit/d173951120b07bc57171f6962c92c0877becd0d8
- [x] xf86-video-nouveau https://github.com/void-linux/void-packages/pull/54720
- [x] libao https://github.com/void-linux/void-packages/commit/b9c6b010a201211c0ffba8a821f0021b9bdaf376
- [x] accountsservice https://github.com/void-linux/void-packages/commit/a1ca8cef0b2e98ba22c4d632685f85c5d0cde4c1
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [x] elfutils https://github.com/void-linux/void-packages/pull/54566
- [x] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [x] sane https://github.com/void-linux/void-packages/pull/54614
- [x] mdadm https://github.com/void-linux/void-packages/commit/10694f08c471b2701b3c275540b0c665f67c8b9b
- [x] pulseaudio (broken due to configure checks detecting presence of open64, this is fixed in musl 1.2.x https://github.com/bminor/musl/commit/246f1c811448f37a44b41cd8df8d0ef9736d95f4 https://github.com/bminor/musl/commit/50ab830633134dac99011219f0210ee2759ffbde) https://github.com/void-linux/void-packages/commit/b87ec8f3ca216b6d9cfb4836f236fca13f45c2ab
- [x] gpm
- [x] linux-tools https://github.com/void-linux/void-packages/commit/8c670d7a13a3d6783e23624bda033ef898cafd72
- [x] v4l-utils (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg6 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] gst-plugins-good1 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [ ] libcdio (fseek64, also broken on i686-glibc) https://github.com/void-linux/void-packages/pull/54724
- [x] gcr (getpass) https://github.com/void-linux/void-packages/commit/a40788b2db81ceba7e4a9f75e1c120efd7577600
- [x] libndp https://github.com/void-linux/void-packages/commit/580546374e10b6847a66bfb4d9f27579d5112902
- [x] samba https://github.com/void-linux/void-packages/commit/0900507d38bfc7963d7b6c1a7b04341ae987f2d2
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration instead of segfaulting later due to implicit pointer truncation. This is good, but ofc, packages need to be checked for this.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, please test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 135101 bytes --]
From a5ccc6f72838ee7615f81f9dc0e024bb2beff3a1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/39] binutils: update to 2.44.
---
srcpkgs/binutils/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..e10403f1ed7ae7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From e59c5de4dca57f2a1482d02955c3681650585891 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/39] gcc: update to 14.2.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 20 +-
6 files changed, 20 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index b9c44f7969bc31..50dfc17ad87b03 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.40 perl-5.40.1_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..a8aceb6283d8a8 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
@@ -202,6 +202,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -325,6 +326,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+
+ # Disable explicit -fno-PIE, gcc will figure this out itself.
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +352,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +361,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
From f1379be84f7cf8426165e24b0048b7e119d0e84d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 03/39] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
common/shlibs | 60 +-
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
7 files changed, 33 insertions(+), 1003 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/common/shlibs b/common/shlibs
index 50dfc17ad87b03..cb66d618902d1d 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -17,36 +17,36 @@
# one (order top->bottom) is preferred over the next ones.
#
libc.so musl-1.1.24_7
-libc.so.6 glibc-2.39_1
-libm.so.6 glibc-2.39_1
-libpthread.so.0 glibc-2.39_1
-librt.so.1 glibc-2.39_1
-libdl.so.2 glibc-2.39_1
-ld-linux-x86-64.so.2 glibc-2.39_1 x86_64
-ld-linux.so.2 glibc-2.39_1 i686
-ld-linux.so.3 glibc-2.39_1 armv5tel
-ld-linux-aarch64.so.1 glibc-2.39_1 aarch64
-ld-linux-riscv64-lp64d.so.1 glibc-2.39_1 riscv64
-ld64.so.2 glibc-2.39_1 ppc64
-ld.so.1 glibc-2.39_1 mips
-ld.so.1 glibc-2.39_1 ppc
-ld-linux-armhf.so.3 glibc-2.39_1
-libresolv.so.2 glibc-2.39_1
-libanl.so.1 glibc-2.39_1
-libthread_db.so.1 glibc-2.39_1
-libutil.so.1 glibc-2.39_1
-libnsl.so.1 glibc-2.39_1
-libnss_db.so.2 glibc-2.39_1
-libnss_files.so.2 glibc-2.39_1
-libnss_compat.so.2 glibc-2.39_1
-libnss_dns.so.2 glibc-2.39_1
-libnss_hesiod.so.2 glibc-2.39_1
-libBrokenLocale.so.1 glibc-2.39_1
-libmemusage.so glibc-2.39_1
-libSegFault.so glibc-2.39_1
-libpcprofile.so glibc-2.39_1
-libcidn.so.1 glibc-2.39_1
-libmvec.so.1 glibc-2.39_1
+libc.so.6 glibc-2.41_1
+libm.so.6 glibc-2.41_1
+libpthread.so.0 glibc-2.41_1
+librt.so.1 glibc-2.41_1
+libdl.so.2 glibc-2.41_1
+ld-linux-x86-64.so.2 glibc-2.41_1 x86_64
+ld-linux.so.2 glibc-2.41_1 i686
+ld-linux.so.3 glibc-2.41_1 armv5tel
+ld-linux-aarch64.so.1 glibc-2.41_1 aarch64
+ld-linux-riscv64-lp64d.so.1 glibc-2.41_1 riscv64
+ld64.so.2 glibc-2.41_1 ppc64
+ld.so.1 glibc-2.41_1 mips
+ld.so.1 glibc-2.41_1 ppc
+ld-linux-armhf.so.3 glibc-2.41_1
+libresolv.so.2 glibc-2.41_1
+libanl.so.1 glibc-2.41_1
+libthread_db.so.1 glibc-2.41_1
+libutil.so.1 glibc-2.41_1
+libnsl.so.1 glibc-2.41_1
+libnss_db.so.2 glibc-2.41_1
+libnss_files.so.2 glibc-2.41_1
+libnss_compat.so.2 glibc-2.41_1
+libnss_dns.so.2 glibc-2.41_1
+libnss_hesiod.so.2 glibc-2.41_1
+libBrokenLocale.so.1 glibc-2.41_1
+libmemusage.so glibc-2.41_1
+libSegFault.so glibc-2.41_1
+libpcprofile.so glibc-2.41_1
+libcidn.so.1 glibc-2.41_1
+libmvec.so.1 glibc-2.41_1
libcrypt.so.2 libxcrypt-4.4.36_1
libcrypt.so.1 libxcrypt-compat-4.4.36_1
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From 5723f27d060df024d263ecc754fd060146e7ab3a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 04/39] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 04e22c4fb01166..922d009ad8c36e 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=23
+revision=24
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From 11f34cc729c14ae02f2b76a71f34a917c41747b3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 05/39] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From f5326933f697fdd1bc21dd43f116c6b08fbe18ce Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 06/39] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 0b0993a9f0e36026a8eecbf75c4006329de507b9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 07/39] gcc-multilib: update to 14.2.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From 5a8a3b4e676f980d0fc7b3e5be56d154bf826a49 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 08/39] libgccjit: update to 14.2.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From 61263731fcb34ccefcce4b7c3a3900d8937dd7d2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 09/39] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From e19710eb7bd2ecc7f0fd89c25366cf5bb1363a5a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:57:58 -0800
Subject: [PATCH 10/39] nvi: fix build with gcc14
---
srcpkgs/nvi/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/nvi/template b/srcpkgs/nvi/template
index 8a43e9f7a601b5..3923150ff5a1a6 100644
--- a/srcpkgs/nvi/template
+++ b/srcpkgs/nvi/template
@@ -22,6 +22,8 @@ alternatives="
vi:view.1:/usr/share/man/man1/nview.1
"
+CFLAGS="-fpermissive"
+
post_extract() {
chmod +w $wrksrc/common/options_def.h
}
From 5cfd1223d2c1239b3cd612e52e639b14ca697cc7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 22:59:26 -0700
Subject: [PATCH 11/39] openjdk7-bootstrap: fix build with gcc14
---
srcpkgs/openjdk7-bootstrap/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index 03d91bebf4934a..a4e4ff46091b65 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -86,7 +86,7 @@ skip_extraction="
shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
nocross=yes
-CFLAGS="-fcommon"
+CFLAGS="-fcommon -fpermissive"
post_extract() {
mv icedtea-*/* .
From bdb57021c3a5639047062e385f5ba002b1de13cd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 23:00:00 -0700
Subject: [PATCH 12/39] openjdk8: fix build with gcc14
---
.../patches/105_implicit_declaration.patch | 25 +++++++++++++++++++
.../openjdk8/patches/106_int_conversion.patch | 16 ++++++++++++
srcpkgs/openjdk8/template | 2 ++
3 files changed, 43 insertions(+)
create mode 100644 srcpkgs/openjdk8/patches/105_implicit_declaration.patch
create mode 100644 srcpkgs/openjdk8/patches/106_int_conversion.patch
diff --git a/srcpkgs/openjdk8/patches/105_implicit_declaration.patch b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
new file mode 100644
index 00000000000000..7a04c21ec910c3
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
@@ -0,0 +1,25 @@
+The isnanf BSD extension was deprecated with the
+introduction of isnan in c99 and isn't implemented in musl.
+Use the isnan function instead.
+
+--- a/jdk/src/solaris/native/common/jdk_util_md.h
++++ b/jdk/src/solaris/native/common/jdk_util_md.h
+@@ -37,7 +37,7 @@
+ #define ISNAND(d) isnan(d)
+ #elif defined(__linux__) || defined(_ALLBSD_SOURCE)
+ #include <math.h>
+-#define ISNANF(f) isnanf(f)
++#define ISNANF(f) isnan(f)
+ #define ISNAND(d) isnan(d)
+ #elif defined(_AIX)
+ #include <math.h>
+--- a/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
++++ b/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
+@@ -29,6 +29,7 @@
+ #include "jlong.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <dlfcn.h>
+ #include <errno.h>
diff --git a/srcpkgs/openjdk8/patches/106_int_conversion.patch b/srcpkgs/openjdk8/patches/106_int_conversion.patch
new file mode 100644
index 00000000000000..2c57cb01353072
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/106_int_conversion.patch
@@ -0,0 +1,16 @@
+--- a/jdk/src/share/bin/splashscreen_stubs.c
++++ b/jdk/src/share/bin/splashscreen_stubs.c
+@@ -61,11 +61,11 @@
+ #define INVOKEV(name) _INVOKE(name, ,;)
+
+ int DoSplashLoadMemory(void* pdata, int size) {
+- INVOKE(SplashLoadMemory, NULL)(pdata, size);
++ INVOKE(SplashLoadMemory, 0)(pdata, size);
+ }
+
+ int DoSplashLoadFile(const char* filename) {
+- INVOKE(SplashLoadFile, NULL)(filename);
++ INVOKE(SplashLoadFile, 0)(filename);
+ }
+
+ void DoSplashInit(void) {
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 3f01bd949417d9..045f78ad363dab 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -78,6 +78,8 @@ fi
# enabling ccache segfaults gcc
export CCACHE_DISABLE=1
+CFLAGS="-Wno-incompatible-pointer-types"
+
post_extract() {
chmod +x configure
}
From 518f4df7aca960c7ebd706dd7fa8b32addd56e50 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 13/39] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From 55fe50981ac9ed47dca87ce2df027ef5047437be Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 14/39] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..92c2d178e7d647 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From dd1511d753f5cabf30a3ad2a3c8a4a2378a4a87e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 15/39] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..85db97e4a226fc 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 56878237e2ca06e948831e60eaf036da27afaf5c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 16/39] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..8a728f493edeb6 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 3c916979dfd896fa1523cdfa78e81bddf4f8ca4d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 17/39] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..977a854aa73247 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 5e7abe49f99a0141c3adf75cf55eb99cd25a1b87 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 18/39] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..5e1a0ca354c14c 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From b621bd110e7bef1001f44acdf44ac4f741d79976 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 19/39] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..a322434f077d3d 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 15464a9003aae6029421025c92735b059a7b048f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 20/39] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..c89746608c8b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From a0192e943c76182fbd80bc83298ad55b3b0bafe5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 21/39] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..0be817c88f2d09 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From db12ed7d8dee252527d16eac63d8dff6faa5706b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 22/39] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..b0066e4bd92d4c 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 8c544e955aaec89359df56821adcbe7f7da22536 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 23/39] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..99dfdd11548326 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 339675a15b8c9cbc4dc3814b896065c541fe58e4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 24/39] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..51c9c48320aac6 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 142bd1fa257faf4f0a3b57d158a5622ccd578367 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 25/39] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..bf210fc49481ef 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From e64894614cbcf2f06bdc2185cd6f1f46213fee55 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 26/39] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..66ca7dd8207192 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 81e5ba02655dc9823372412078078bc5bd79ae07 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 27/39] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..1695336c06c58c 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 3b5da2c6d33c24a3e0c5f5f7010cd29c3e7e922d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 28/39] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..bf6c7ebc23c050 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ba6929c0ad4b8c50537cf22fb707ac80a2944614 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 29/39] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..f83a8acb09878c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 53344374e31f6e3d999f61a2c74bb7d9e319bbbd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 30/39] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..9ea4921f0c0888 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 8d5d4d246882a352108890835ea361f72ff1371a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 31/39] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..855f38e88b7c12 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 4fffc332710ebb1687f7168707dc12d5171f12c6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 32/39] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..8dd06a1dc65f68 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ed023c59b6d03f2781d73a567fffd423207da60c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 33/39] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..d70d94cf225088 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From fad9bc00cf7069715d5a14038ca8db2691659a87 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 34/39] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..1fa175ec63d2d7 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,9 +22,9 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 4dbb6515147cd2383c9bf8f2d77e9bc0c289a931 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 35/39] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..5887a1dbafead4 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From de67615e1a5f98efd44a954c33951efebb85704b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 36/39] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..b15ecaca36cc48 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 23545993facee3d6359986089915f289d2205619 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 37/39] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..31483e4837a283 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From d964136415c346f1df4ebacde186a175db34af3c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 38/39] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..95beba72b8b622 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 1efb7e071c9f4d5c2a4f772bd3f2e8aa9ab1c251 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:47 -0800
Subject: [PATCH 39/39] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..316b1d3896233d 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (31 preceding siblings ...)
2025-03-18 2:52 ` oreo639
@ 2025-03-19 9:06 ` oreo639
2025-03-26 6:04 ` oreo639
` (30 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-03-19 9:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 7532 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
You can test the ISOs here: https://devspace.voidlinux.org/oreo639/live/gcc14/
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp https://github.com/void-linux/void-packages/commit/30e9e29bb5a348b2c6b7a9b3e29c13d2bc28cfae
- [x] libsasl https://github.com/void-linux/void-packages/commit/6f71c8889cc8a79411ddaca582250e19718f12da
- [x] nvi (done in this pr)
- [x] xbps https://github.com/void-linux/void-packages/commit/73c8cdee1d9b05980cdc0763294cce9372612ba4
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
- [x] gtk+ https://github.com/void-linux/void-packages/commit/ac57a55a5fda78618aec2ec7bb3c27404834ed04
- [x] gtk+3 https://github.com/void-linux/void-packages/pull/54187
- [x] libaom https://github.com/void-linux/void-packages/commit/fcbb94217389f64fea4c536959983814ebaadae4
- [x] perl-Tk https://github.com/void-linux/void-packages/commit/67aeb9d9b2b077d9b7f25902bbf079c1569a2633
- [x] gnu-efi-libs https://github.com/void-linux/void-packages/commit/92b2642bc8d1871605f824064863149985419010
- [x] syslinux https://github.com/void-linux/void-packages/commit/49af74a1dfb32ba1de556f4491b3870179c80872
- [ ] recode https://github.com/void-linux/void-packages/pull/54707
- [x] libcddb https://github.com/void-linux/void-packages/commit/eeae3026d1356e1ac5d0547e19e2742a335ae9ca
- [x] vim https://github.com/void-linux/void-packages/pull/54706
- [x] vmaf https://github.com/void-linux/void-packages/pull/54721
- [x] audit https://github.com/void-linux/void-packages/pull/54722
- [x] aalib https://github.com/void-linux/void-packages/commit/d7769fe6d757a62fbfc0998d5cbde5dec8a7db11
- [x] cppdap (outdated vendored gtest, patch merged upstream) https://github.com/void-linux/void-packages/commit/a2c9d8ac073e9f40d6b7b1bb3df108c0d46481bb
- [x] snappy (outdated vendored gtest, upstream rejected patch stating that downstreams running their tests is not supported and that downstreams should either ship their own tests/patches or just disable them) https://github.com/void-linux/void-packages/commit/4e73161431672d245a8d558f269a74f1ab363cc8
- [x] openjdk7-bootstrap
- [x] openjdk8
- [x] gimp https://github.com/void-linux/void-packages/commit/d173951120b07bc57171f6962c92c0877becd0d8
- [x] xf86-video-nouveau https://github.com/void-linux/void-packages/pull/54720
- [x] libao https://github.com/void-linux/void-packages/commit/b9c6b010a201211c0ffba8a821f0021b9bdaf376
- [x] accountsservice https://github.com/void-linux/void-packages/commit/a1ca8cef0b2e98ba22c4d632685f85c5d0cde4c1
- Done with base-syste/xfce
- [x] zeitgeist
- [x] libgee
- [x] cogl
- [x] clutter-gst3
- [x] telepathy-glib
- [ ] xen https://github.com/void-linux/void-packages/pull/54751
- [ ] vde2 https://github.com/void-linux/void-packages/pull/54750
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [x] elfutils https://github.com/void-linux/void-packages/pull/54566
- [x] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [x] sane https://github.com/void-linux/void-packages/pull/54614
- [x] mdadm https://github.com/void-linux/void-packages/commit/10694f08c471b2701b3c275540b0c665f67c8b9b
- [x] pulseaudio (broken due to configure checks detecting presence of open64, this is fixed in musl 1.2.x https://github.com/bminor/musl/commit/246f1c811448f37a44b41cd8df8d0ef9736d95f4 https://github.com/bminor/musl/commit/50ab830633134dac99011219f0210ee2759ffbde) https://github.com/void-linux/void-packages/commit/b87ec8f3ca216b6d9cfb4836f236fca13f45c2ab
- [x] gpm
- [x] linux-tools https://github.com/void-linux/void-packages/commit/8c670d7a13a3d6783e23624bda033ef898cafd72
- [x] v4l-utils (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg6 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] gst-plugins-good1 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] libcdio (fseek64, also broken on i686-glibc) https://github.com/void-linux/void-packages/pull/54724
- [x] gcr (getpass) https://github.com/void-linux/void-packages/commit/a40788b2db81ceba7e4a9f75e1c120efd7577600
- [x] libndp https://github.com/void-linux/void-packages/commit/580546374e10b6847a66bfb4d9f27579d5112902
- [x] samba https://github.com/void-linux/void-packages/commit/0900507d38bfc7963d7b6c1a7b04341ae987f2d2
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration instead of segfaulting later due to implicit pointer truncation. This is good, but ofc, packages need to be checked for this.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, please test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 135530 bytes --]
From fd87187a21604ba8165d679776f1e90f2047dda9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/39] binutils: update to 2.44.
---
srcpkgs/binutils/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..e10403f1ed7ae7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From 93ad5865ef3a4ff7ff2f20ce92284e1132ce6277 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/39] gcc: update to 14.2.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 24 +-
6 files changed, 24 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 3ca8263a7404ec..616bae13c21cb6 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.40 perl-5.40.1_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..9dcaa2be194f5f 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
@@ -202,6 +202,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -307,6 +308,10 @@ do_configure() {
mkdir -p build
cd build
if [ "$build_option_gnatboot" ]; then
+ # file-prefix-map isn't supported in gcc6
+ export CFLAGS="${CFLAGS/-ffile-prefix-map=$wrksrc=./}"
+ export CXXFLAGS="${CXXFLAGS/-ffile-prefix-map=$wrksrc=./}"
+
_args+=" --enable-languages=${_langs},ada"
_args+=" --enable-libada"
CONFIG_SHELL=/bin/bash \
@@ -325,6 +330,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ # gcc will configure itself again throughout the build, so make sure CFLAGS/CXXFLAGS/etc
+ # are still set the same.
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +356,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +365,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
From 4151614a828e1e1774cef100ef934beeec139727 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 03/39] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
common/shlibs | 60 +-
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
7 files changed, 33 insertions(+), 1003 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/common/shlibs b/common/shlibs
index 616bae13c21cb6..ce03a7edadb8a4 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -17,36 +17,36 @@
# one (order top->bottom) is preferred over the next ones.
#
libc.so musl-1.1.24_7
-libc.so.6 glibc-2.39_1
-libm.so.6 glibc-2.39_1
-libpthread.so.0 glibc-2.39_1
-librt.so.1 glibc-2.39_1
-libdl.so.2 glibc-2.39_1
-ld-linux-x86-64.so.2 glibc-2.39_1 x86_64
-ld-linux.so.2 glibc-2.39_1 i686
-ld-linux.so.3 glibc-2.39_1 armv5tel
-ld-linux-aarch64.so.1 glibc-2.39_1 aarch64
-ld-linux-riscv64-lp64d.so.1 glibc-2.39_1 riscv64
-ld64.so.2 glibc-2.39_1 ppc64
-ld.so.1 glibc-2.39_1 mips
-ld.so.1 glibc-2.39_1 ppc
-ld-linux-armhf.so.3 glibc-2.39_1
-libresolv.so.2 glibc-2.39_1
-libanl.so.1 glibc-2.39_1
-libthread_db.so.1 glibc-2.39_1
-libutil.so.1 glibc-2.39_1
-libnsl.so.1 glibc-2.39_1
-libnss_db.so.2 glibc-2.39_1
-libnss_files.so.2 glibc-2.39_1
-libnss_compat.so.2 glibc-2.39_1
-libnss_dns.so.2 glibc-2.39_1
-libnss_hesiod.so.2 glibc-2.39_1
-libBrokenLocale.so.1 glibc-2.39_1
-libmemusage.so glibc-2.39_1
-libSegFault.so glibc-2.39_1
-libpcprofile.so glibc-2.39_1
-libcidn.so.1 glibc-2.39_1
-libmvec.so.1 glibc-2.39_1
+libc.so.6 glibc-2.41_1
+libm.so.6 glibc-2.41_1
+libpthread.so.0 glibc-2.41_1
+librt.so.1 glibc-2.41_1
+libdl.so.2 glibc-2.41_1
+ld-linux-x86-64.so.2 glibc-2.41_1 x86_64
+ld-linux.so.2 glibc-2.41_1 i686
+ld-linux.so.3 glibc-2.41_1 armv5tel
+ld-linux-aarch64.so.1 glibc-2.41_1 aarch64
+ld-linux-riscv64-lp64d.so.1 glibc-2.41_1 riscv64
+ld64.so.2 glibc-2.41_1 ppc64
+ld.so.1 glibc-2.41_1 mips
+ld.so.1 glibc-2.41_1 ppc
+ld-linux-armhf.so.3 glibc-2.41_1
+libresolv.so.2 glibc-2.41_1
+libanl.so.1 glibc-2.41_1
+libthread_db.so.1 glibc-2.41_1
+libutil.so.1 glibc-2.41_1
+libnsl.so.1 glibc-2.41_1
+libnss_db.so.2 glibc-2.41_1
+libnss_files.so.2 glibc-2.41_1
+libnss_compat.so.2 glibc-2.41_1
+libnss_dns.so.2 glibc-2.41_1
+libnss_hesiod.so.2 glibc-2.41_1
+libBrokenLocale.so.1 glibc-2.41_1
+libmemusage.so glibc-2.41_1
+libSegFault.so glibc-2.41_1
+libpcprofile.so glibc-2.41_1
+libcidn.so.1 glibc-2.41_1
+libmvec.so.1 glibc-2.41_1
libcrypt.so.2 libxcrypt-4.4.36_1
libcrypt.so.1 libxcrypt-compat-4.4.36_1
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From 91ceeffa83ef13571a721afac4fe8affda6bd062 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 04/39] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 04e22c4fb01166..922d009ad8c36e 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=23
+revision=24
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From 40f1b657c82e92b641be6669562a9668b6e83516 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 05/39] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From effbf1d1c061058ba4e775d9af801c3d53e2614e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 06/39] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 418e60048b2056c10d220baf4b3dfa96ed78c683 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 07/39] gcc-multilib: update to 14.2.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From c9ca0ae2fc818d29146b32d90e64f1274dce02e7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 08/39] libgccjit: update to 14.2.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From 76608016577178ab8adde749f41c82c24a490a79 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 09/39] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From 8139b4e3a219268f10dc45155b7e0f88b75080b7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:57:58 -0800
Subject: [PATCH 10/39] nvi: fix build with gcc14
---
srcpkgs/nvi/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/nvi/template b/srcpkgs/nvi/template
index 8a43e9f7a601b5..3923150ff5a1a6 100644
--- a/srcpkgs/nvi/template
+++ b/srcpkgs/nvi/template
@@ -22,6 +22,8 @@ alternatives="
vi:view.1:/usr/share/man/man1/nview.1
"
+CFLAGS="-fpermissive"
+
post_extract() {
chmod +w $wrksrc/common/options_def.h
}
From f29b7ae930198bcd60151f310ce124df85f345af Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 22:59:26 -0700
Subject: [PATCH 11/39] openjdk7-bootstrap: fix build with gcc14
---
srcpkgs/openjdk7-bootstrap/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index 03d91bebf4934a..a4e4ff46091b65 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -86,7 +86,7 @@ skip_extraction="
shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
nocross=yes
-CFLAGS="-fcommon"
+CFLAGS="-fcommon -fpermissive"
post_extract() {
mv icedtea-*/* .
From 68f4f81339bb9e9fa0648564254a3109abe7f5d3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 23:00:00 -0700
Subject: [PATCH 12/39] openjdk8: fix build with gcc14
---
.../patches/105_implicit_declaration.patch | 25 +++++++++++++++++++
.../openjdk8/patches/106_int_conversion.patch | 16 ++++++++++++
srcpkgs/openjdk8/template | 2 ++
3 files changed, 43 insertions(+)
create mode 100644 srcpkgs/openjdk8/patches/105_implicit_declaration.patch
create mode 100644 srcpkgs/openjdk8/patches/106_int_conversion.patch
diff --git a/srcpkgs/openjdk8/patches/105_implicit_declaration.patch b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
new file mode 100644
index 00000000000000..7a04c21ec910c3
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
@@ -0,0 +1,25 @@
+The isnanf BSD extension was deprecated with the
+introduction of isnan in c99 and isn't implemented in musl.
+Use the isnan function instead.
+
+--- a/jdk/src/solaris/native/common/jdk_util_md.h
++++ b/jdk/src/solaris/native/common/jdk_util_md.h
+@@ -37,7 +37,7 @@
+ #define ISNAND(d) isnan(d)
+ #elif defined(__linux__) || defined(_ALLBSD_SOURCE)
+ #include <math.h>
+-#define ISNANF(f) isnanf(f)
++#define ISNANF(f) isnan(f)
+ #define ISNAND(d) isnan(d)
+ #elif defined(_AIX)
+ #include <math.h>
+--- a/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
++++ b/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
+@@ -29,6 +29,7 @@
+ #include "jlong.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <dlfcn.h>
+ #include <errno.h>
diff --git a/srcpkgs/openjdk8/patches/106_int_conversion.patch b/srcpkgs/openjdk8/patches/106_int_conversion.patch
new file mode 100644
index 00000000000000..2c57cb01353072
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/106_int_conversion.patch
@@ -0,0 +1,16 @@
+--- a/jdk/src/share/bin/splashscreen_stubs.c
++++ b/jdk/src/share/bin/splashscreen_stubs.c
+@@ -61,11 +61,11 @@
+ #define INVOKEV(name) _INVOKE(name, ,;)
+
+ int DoSplashLoadMemory(void* pdata, int size) {
+- INVOKE(SplashLoadMemory, NULL)(pdata, size);
++ INVOKE(SplashLoadMemory, 0)(pdata, size);
+ }
+
+ int DoSplashLoadFile(const char* filename) {
+- INVOKE(SplashLoadFile, NULL)(filename);
++ INVOKE(SplashLoadFile, 0)(filename);
+ }
+
+ void DoSplashInit(void) {
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 3f01bd949417d9..045f78ad363dab 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -78,6 +78,8 @@ fi
# enabling ccache segfaults gcc
export CCACHE_DISABLE=1
+CFLAGS="-Wno-incompatible-pointer-types"
+
post_extract() {
chmod +x configure
}
From 07b1dc04704107536d3fa813926be4b7e7c3d909 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 13/39] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From db963dbe1015b94c2ed837745bdb0d556c761fc3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 14/39] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..92c2d178e7d647 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 46a10d37b224bc77be6af58792d5df53fd8a3fa1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 15/39] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..85db97e4a226fc 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 7ced3f69b748fe5503f7d7af7ef676a5dacd4b87 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 16/39] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..8a728f493edeb6 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 52e93d36528caaaa03f86f3d21d1545849dd9baa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 17/39] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..977a854aa73247 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From fda9d45304c2f738552a5e880104f00efc761d31 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 18/39] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..5e1a0ca354c14c 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 7fd1681780f4fe5382ed856ade6257883dcd3e58 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 19/39] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..a322434f077d3d 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From d646ec3d0bda25e45cc2523cb8ade250e51a7f24 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 20/39] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..c89746608c8b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 8e060fe5d39c31812b5d64a48964ba7d9138ba62 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 21/39] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..0be817c88f2d09 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From d926b13de973ce1309f57cc7c6d079211f80fa34 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 22/39] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..b0066e4bd92d4c 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 2df87cb16fa6cf36e53a42e42dee293f61be58fe Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 23/39] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..99dfdd11548326 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 2f7c620a185891a9a0e83206c007cfbb7d330dcb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 24/39] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..51c9c48320aac6 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ac228242bdc78bcc4189e4adb046f826b7a93f4a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 25/39] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..bf210fc49481ef 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 1e3521c985a943cb030352dfa13cb3dd3f7311a1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 26/39] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..66ca7dd8207192 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 009edcde125879d38b81e99eecc8db8a27f7e1c1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 27/39] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..1695336c06c58c 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7c707120ae4adccb09d7bd63930f056acfeeba77 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 28/39] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..bf6c7ebc23c050 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7ad60cb00387b43cf3ca42555550737b2186e722 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 29/39] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..f83a8acb09878c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From d1532296d22344cf2259e634662261efe5495201 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 30/39] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..9ea4921f0c0888 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 2fb6a3d2f86fd7be97f1a0c27148d4bebba1c032 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 31/39] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..855f38e88b7c12 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From a2ba7c889602684840e6c8fe2eaf9274522d8f3d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 32/39] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..8dd06a1dc65f68 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 78df723d75acef505456fa389801e1ef9992e1fd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 33/39] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..d70d94cf225088 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 824f78b4659c17dc95fddb62f7d88d9189935871 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 34/39] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..1fa175ec63d2d7 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,9 +22,9 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From dbe71121aeb520372ae37cd0ef6d63f5f841a49e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 35/39] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..5887a1dbafead4 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From b73125322ab2688b4ad275632c60f722ce6beb35 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 36/39] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..b15ecaca36cc48 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 62ea78bc7222c30e8be668e2a41afeaaa17d2886 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 37/39] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..31483e4837a283 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From d336233a8422b9ee406c9b03cfdf718be0af65da Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 38/39] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..95beba72b8b622 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From a3cc1ed553d5333f257b9a45e0a0cc052c71d5e7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:47 -0800
Subject: [PATCH 39/39] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..316b1d3896233d 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (32 preceding siblings ...)
2025-03-19 9:06 ` oreo639
@ 2025-03-26 6:04 ` oreo639
2025-03-31 7:34 ` oreo639
` (29 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-03-26 6:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 7532 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
You can test the ISOs here: https://devspace.voidlinux.org/oreo639/live/gcc14/
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp https://github.com/void-linux/void-packages/commit/30e9e29bb5a348b2c6b7a9b3e29c13d2bc28cfae
- [x] libsasl https://github.com/void-linux/void-packages/commit/6f71c8889cc8a79411ddaca582250e19718f12da
- [x] nvi (done in this pr)
- [x] xbps https://github.com/void-linux/void-packages/commit/73c8cdee1d9b05980cdc0763294cce9372612ba4
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
- [x] gtk+ https://github.com/void-linux/void-packages/commit/ac57a55a5fda78618aec2ec7bb3c27404834ed04
- [x] gtk+3 https://github.com/void-linux/void-packages/pull/54187
- [x] libaom https://github.com/void-linux/void-packages/commit/fcbb94217389f64fea4c536959983814ebaadae4
- [x] perl-Tk https://github.com/void-linux/void-packages/commit/67aeb9d9b2b077d9b7f25902bbf079c1569a2633
- [x] gnu-efi-libs https://github.com/void-linux/void-packages/commit/92b2642bc8d1871605f824064863149985419010
- [x] syslinux https://github.com/void-linux/void-packages/commit/49af74a1dfb32ba1de556f4491b3870179c80872
- [x] recode https://github.com/void-linux/void-packages/pull/54707
- [x] libcddb https://github.com/void-linux/void-packages/commit/eeae3026d1356e1ac5d0547e19e2742a335ae9ca
- [x] vim https://github.com/void-linux/void-packages/pull/54706
- [x] vmaf https://github.com/void-linux/void-packages/pull/54721
- [x] audit https://github.com/void-linux/void-packages/pull/54722
- [x] aalib https://github.com/void-linux/void-packages/commit/d7769fe6d757a62fbfc0998d5cbde5dec8a7db11
- [x] cppdap (outdated vendored gtest, patch merged upstream) https://github.com/void-linux/void-packages/commit/a2c9d8ac073e9f40d6b7b1bb3df108c0d46481bb
- [x] snappy (outdated vendored gtest, upstream rejected patch stating that downstreams running their tests is not supported and that downstreams should either ship their own tests/patches or just disable them) https://github.com/void-linux/void-packages/commit/4e73161431672d245a8d558f269a74f1ab363cc8
- [x] openjdk7-bootstrap
- [x] openjdk8
- [x] gimp https://github.com/void-linux/void-packages/commit/d173951120b07bc57171f6962c92c0877becd0d8
- [x] xf86-video-nouveau https://github.com/void-linux/void-packages/pull/54720
- [x] libao https://github.com/void-linux/void-packages/commit/b9c6b010a201211c0ffba8a821f0021b9bdaf376
- [x] accountsservice https://github.com/void-linux/void-packages/commit/a1ca8cef0b2e98ba22c4d632685f85c5d0cde4c1
- Done with base-syste/xfce
- [x] zeitgeist
- [x] libgee
- [x] cogl
- [x] clutter-gst3
- [x] telepathy-glib
- [x] xen https://github.com/void-linux/void-packages/pull/54751
- [x] vde2 https://github.com/void-linux/void-packages/pull/54750
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [x] elfutils https://github.com/void-linux/void-packages/pull/54566
- [x] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [x] sane https://github.com/void-linux/void-packages/pull/54614
- [x] mdadm https://github.com/void-linux/void-packages/commit/10694f08c471b2701b3c275540b0c665f67c8b9b
- [x] pulseaudio (broken due to configure checks detecting presence of open64, this is fixed in musl 1.2.x https://github.com/bminor/musl/commit/246f1c811448f37a44b41cd8df8d0ef9736d95f4 https://github.com/bminor/musl/commit/50ab830633134dac99011219f0210ee2759ffbde) https://github.com/void-linux/void-packages/commit/b87ec8f3ca216b6d9cfb4836f236fca13f45c2ab
- [x] gpm
- [x] linux-tools https://github.com/void-linux/void-packages/commit/8c670d7a13a3d6783e23624bda033ef898cafd72
- [x] v4l-utils (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg6 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] gst-plugins-good1 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] libcdio (fseek64, also broken on i686-glibc) https://github.com/void-linux/void-packages/pull/54724
- [x] gcr (getpass) https://github.com/void-linux/void-packages/commit/a40788b2db81ceba7e4a9f75e1c120efd7577600
- [x] libndp https://github.com/void-linux/void-packages/commit/580546374e10b6847a66bfb4d9f27579d5112902
- [x] samba https://github.com/void-linux/void-packages/commit/0900507d38bfc7963d7b6c1a7b04341ae987f2d2
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration instead of segfaulting later due to implicit pointer truncation. This is good, but ofc, packages need to be checked for this.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, please test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 135530 bytes --]
From a591ba4f096c910d4ed01e21d77eb635357ae759 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/39] binutils: update to 2.44.
---
srcpkgs/binutils/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..e10403f1ed7ae7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From a11f895faca1b2aec2eb156a30179271a6cac4f5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/39] gcc: update to 14.2.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 24 +-
6 files changed, 24 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 3a5a8ce427f6ec..df7fdb746d06e1 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.40 perl-5.40.1_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..9dcaa2be194f5f 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
@@ -202,6 +202,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -307,6 +308,10 @@ do_configure() {
mkdir -p build
cd build
if [ "$build_option_gnatboot" ]; then
+ # file-prefix-map isn't supported in gcc6
+ export CFLAGS="${CFLAGS/-ffile-prefix-map=$wrksrc=./}"
+ export CXXFLAGS="${CXXFLAGS/-ffile-prefix-map=$wrksrc=./}"
+
_args+=" --enable-languages=${_langs},ada"
_args+=" --enable-libada"
CONFIG_SHELL=/bin/bash \
@@ -325,6 +330,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ # gcc will configure itself again throughout the build, so make sure CFLAGS/CXXFLAGS/etc
+ # are still set the same.
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +356,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +365,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
From f79980c0362034455290f600f5eff29ecdbfc518 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 03/39] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
common/shlibs | 60 +-
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
7 files changed, 33 insertions(+), 1003 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/common/shlibs b/common/shlibs
index df7fdb746d06e1..1d64fde4cfc3ca 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -17,36 +17,36 @@
# one (order top->bottom) is preferred over the next ones.
#
libc.so musl-1.1.24_7
-libc.so.6 glibc-2.39_1
-libm.so.6 glibc-2.39_1
-libpthread.so.0 glibc-2.39_1
-librt.so.1 glibc-2.39_1
-libdl.so.2 glibc-2.39_1
-ld-linux-x86-64.so.2 glibc-2.39_1 x86_64
-ld-linux.so.2 glibc-2.39_1 i686
-ld-linux.so.3 glibc-2.39_1 armv5tel
-ld-linux-aarch64.so.1 glibc-2.39_1 aarch64
-ld-linux-riscv64-lp64d.so.1 glibc-2.39_1 riscv64
-ld64.so.2 glibc-2.39_1 ppc64
-ld.so.1 glibc-2.39_1 mips
-ld.so.1 glibc-2.39_1 ppc
-ld-linux-armhf.so.3 glibc-2.39_1
-libresolv.so.2 glibc-2.39_1
-libanl.so.1 glibc-2.39_1
-libthread_db.so.1 glibc-2.39_1
-libutil.so.1 glibc-2.39_1
-libnsl.so.1 glibc-2.39_1
-libnss_db.so.2 glibc-2.39_1
-libnss_files.so.2 glibc-2.39_1
-libnss_compat.so.2 glibc-2.39_1
-libnss_dns.so.2 glibc-2.39_1
-libnss_hesiod.so.2 glibc-2.39_1
-libBrokenLocale.so.1 glibc-2.39_1
-libmemusage.so glibc-2.39_1
-libSegFault.so glibc-2.39_1
-libpcprofile.so glibc-2.39_1
-libcidn.so.1 glibc-2.39_1
-libmvec.so.1 glibc-2.39_1
+libc.so.6 glibc-2.41_1
+libm.so.6 glibc-2.41_1
+libpthread.so.0 glibc-2.41_1
+librt.so.1 glibc-2.41_1
+libdl.so.2 glibc-2.41_1
+ld-linux-x86-64.so.2 glibc-2.41_1 x86_64
+ld-linux.so.2 glibc-2.41_1 i686
+ld-linux.so.3 glibc-2.41_1 armv5tel
+ld-linux-aarch64.so.1 glibc-2.41_1 aarch64
+ld-linux-riscv64-lp64d.so.1 glibc-2.41_1 riscv64
+ld64.so.2 glibc-2.41_1 ppc64
+ld.so.1 glibc-2.41_1 mips
+ld.so.1 glibc-2.41_1 ppc
+ld-linux-armhf.so.3 glibc-2.41_1
+libresolv.so.2 glibc-2.41_1
+libanl.so.1 glibc-2.41_1
+libthread_db.so.1 glibc-2.41_1
+libutil.so.1 glibc-2.41_1
+libnsl.so.1 glibc-2.41_1
+libnss_db.so.2 glibc-2.41_1
+libnss_files.so.2 glibc-2.41_1
+libnss_compat.so.2 glibc-2.41_1
+libnss_dns.so.2 glibc-2.41_1
+libnss_hesiod.so.2 glibc-2.41_1
+libBrokenLocale.so.1 glibc-2.41_1
+libmemusage.so glibc-2.41_1
+libSegFault.so glibc-2.41_1
+libpcprofile.so glibc-2.41_1
+libcidn.so.1 glibc-2.41_1
+libmvec.so.1 glibc-2.41_1
libcrypt.so.2 libxcrypt-4.4.36_1
libcrypt.so.1 libxcrypt-compat-4.4.36_1
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From 0c9d6a1b2cd77c9e7fdad15e9ae784d0953cc8d1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 04/39] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 04e22c4fb01166..922d009ad8c36e 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=23
+revision=24
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From d9e14c2b022823618679b5ffe462da328d5bcd90 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 05/39] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 67a8628369a635663f37bd4ed2834dc28feb7dfd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 06/39] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 353e812ff85eaaba9aaea3df9f65587ccb4ddcdf Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 07/39] gcc-multilib: update to 14.2.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From 2777e1727f7fcd8ceefcfdb94644cab3a25930ef Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 08/39] libgccjit: update to 14.2.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From 5b905abc478458df9957a0562489af493a07403e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 09/39] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From 73f9d9060cc42f417fbb766f30aa2ac35368c641 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:57:58 -0800
Subject: [PATCH 10/39] nvi: fix build with gcc14
---
srcpkgs/nvi/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/nvi/template b/srcpkgs/nvi/template
index 8a43e9f7a601b5..3923150ff5a1a6 100644
--- a/srcpkgs/nvi/template
+++ b/srcpkgs/nvi/template
@@ -22,6 +22,8 @@ alternatives="
vi:view.1:/usr/share/man/man1/nview.1
"
+CFLAGS="-fpermissive"
+
post_extract() {
chmod +w $wrksrc/common/options_def.h
}
From 7fa01f78953246c7702d4883e514510c4681b672 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 22:59:26 -0700
Subject: [PATCH 11/39] openjdk7-bootstrap: fix build with gcc14
---
srcpkgs/openjdk7-bootstrap/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index 03d91bebf4934a..a4e4ff46091b65 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -86,7 +86,7 @@ skip_extraction="
shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
nocross=yes
-CFLAGS="-fcommon"
+CFLAGS="-fcommon -fpermissive"
post_extract() {
mv icedtea-*/* .
From b2f528a8d44c83ee5ffd4d2db3c586c9c793560b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 23:00:00 -0700
Subject: [PATCH 12/39] openjdk8: fix build with gcc14
---
.../patches/105_implicit_declaration.patch | 25 +++++++++++++++++++
.../openjdk8/patches/106_int_conversion.patch | 16 ++++++++++++
srcpkgs/openjdk8/template | 2 ++
3 files changed, 43 insertions(+)
create mode 100644 srcpkgs/openjdk8/patches/105_implicit_declaration.patch
create mode 100644 srcpkgs/openjdk8/patches/106_int_conversion.patch
diff --git a/srcpkgs/openjdk8/patches/105_implicit_declaration.patch b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
new file mode 100644
index 00000000000000..7a04c21ec910c3
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
@@ -0,0 +1,25 @@
+The isnanf BSD extension was deprecated with the
+introduction of isnan in c99 and isn't implemented in musl.
+Use the isnan function instead.
+
+--- a/jdk/src/solaris/native/common/jdk_util_md.h
++++ b/jdk/src/solaris/native/common/jdk_util_md.h
+@@ -37,7 +37,7 @@
+ #define ISNAND(d) isnan(d)
+ #elif defined(__linux__) || defined(_ALLBSD_SOURCE)
+ #include <math.h>
+-#define ISNANF(f) isnanf(f)
++#define ISNANF(f) isnan(f)
+ #define ISNAND(d) isnan(d)
+ #elif defined(_AIX)
+ #include <math.h>
+--- a/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
++++ b/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
+@@ -29,6 +29,7 @@
+ #include "jlong.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <dlfcn.h>
+ #include <errno.h>
diff --git a/srcpkgs/openjdk8/patches/106_int_conversion.patch b/srcpkgs/openjdk8/patches/106_int_conversion.patch
new file mode 100644
index 00000000000000..2c57cb01353072
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/106_int_conversion.patch
@@ -0,0 +1,16 @@
+--- a/jdk/src/share/bin/splashscreen_stubs.c
++++ b/jdk/src/share/bin/splashscreen_stubs.c
+@@ -61,11 +61,11 @@
+ #define INVOKEV(name) _INVOKE(name, ,;)
+
+ int DoSplashLoadMemory(void* pdata, int size) {
+- INVOKE(SplashLoadMemory, NULL)(pdata, size);
++ INVOKE(SplashLoadMemory, 0)(pdata, size);
+ }
+
+ int DoSplashLoadFile(const char* filename) {
+- INVOKE(SplashLoadFile, NULL)(filename);
++ INVOKE(SplashLoadFile, 0)(filename);
+ }
+
+ void DoSplashInit(void) {
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 3f01bd949417d9..045f78ad363dab 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -78,6 +78,8 @@ fi
# enabling ccache segfaults gcc
export CCACHE_DISABLE=1
+CFLAGS="-Wno-incompatible-pointer-types"
+
post_extract() {
chmod +x configure
}
From b8c4d1fc2aad2ddc6442ca9f1c48a4b3bfeaaf91 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 13/39] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From aedc3e91ed89c73f3d48d1d17b0ebc07f2969450 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 14/39] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..92c2d178e7d647 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From e5b5affd27a337d6759fa3ec7d4b5ae4e3bcdf42 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 15/39] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..85db97e4a226fc 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From cde6cfc5eb22f79ae74b88df86e9c56a1f74e3dd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 16/39] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..8a728f493edeb6 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From dd0711a1f11f56ea94791895e294934db387a7d6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 17/39] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..977a854aa73247 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f2712046aa853bfd296a247470dcbe3b78b31c50 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 18/39] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..5e1a0ca354c14c 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 3a438a95830a55bf505017326a85c008837d2679 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 19/39] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..a322434f077d3d 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 799bda91223db27ce063c8880810d5d68ae05a9e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 20/39] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..c89746608c8b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 1432bcab15295a774795da87f4962244ca25a5ac Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 21/39] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..0be817c88f2d09 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 9d85b8b34c53f9a7b8762e94c44cc828ec820454 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:44 -0800
Subject: [PATCH 22/39] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..b0066e4bd92d4c 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From a1af597b2e7b86c857a7141d5c89528386315117 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 23/39] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..99dfdd11548326 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 2f7e7c361bc51d67d46ed294b679027bc137515b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 24/39] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..51c9c48320aac6 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 2cb9c81f643a855c4eb11c91f4748adeae9501f9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 25/39] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..bf210fc49481ef 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 13cace977b48dda611fb2899cf993f22eb425c7c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 26/39] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..66ca7dd8207192 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7f771a0d1863318a4daa55c7b92e98a167469ac5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 27/39] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..1695336c06c58c 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ef2f6c93653ec99a81e2915108c4e04cb5d3b9c5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 28/39] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..bf6c7ebc23c050 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 49615bad2526164a9d496a17da7a5d7a3ee45be5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 29/39] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..f83a8acb09878c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 6399c57630b6b87f1b52b5fe49c442288815b74b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:45 -0800
Subject: [PATCH 30/39] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..9ea4921f0c0888 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 103e6132cc91c6897503c3be90260d15901e5191 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 31/39] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..855f38e88b7c12 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 9ef7751fbc866a240d1f9de80f7a0c99bfb71444 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 32/39] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..8dd06a1dc65f68 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 07846cf18652c2124cc71ad8d9d7c6b615404268 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 33/39] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..d70d94cf225088 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 9ead8d6bd4b50265347e4426d5c1614e2c39a6fa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 34/39] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..1fa175ec63d2d7 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,9 +22,9 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 4573821efd7bb169aa886af2d5d5d376c70422df Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 35/39] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..5887a1dbafead4 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 76f7fcef20ec9a259621cf03ed09b2db456c4dfc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 36/39] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..b15ecaca36cc48 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 126c902b3a248b536145d8c0c35264359a091bb8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 37/39] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..31483e4837a283 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From f6b8ef1382797c911df7b6fcebd5d009f8792570 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:46 -0800
Subject: [PATCH 38/39] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..95beba72b8b622 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.1.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 6d0717b4782b64cfa9529415bde2e1597de09fc5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 24 Feb 2025 23:17:47 -0800
Subject: [PATCH 39/39] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..316b1d3896233d 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.1.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (33 preceding siblings ...)
2025-03-26 6:04 ` oreo639
@ 2025-03-31 7:34 ` oreo639
2025-03-31 9:25 ` oreo639
` (28 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-03-31 7:34 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 7532 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
You can test the ISOs here: https://devspace.voidlinux.org/oreo639/live/gcc14/
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp https://github.com/void-linux/void-packages/commit/30e9e29bb5a348b2c6b7a9b3e29c13d2bc28cfae
- [x] libsasl https://github.com/void-linux/void-packages/commit/6f71c8889cc8a79411ddaca582250e19718f12da
- [x] nvi (done in this pr)
- [x] xbps https://github.com/void-linux/void-packages/commit/73c8cdee1d9b05980cdc0763294cce9372612ba4
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
- [x] gtk+ https://github.com/void-linux/void-packages/commit/ac57a55a5fda78618aec2ec7bb3c27404834ed04
- [x] gtk+3 https://github.com/void-linux/void-packages/pull/54187
- [x] libaom https://github.com/void-linux/void-packages/commit/fcbb94217389f64fea4c536959983814ebaadae4
- [x] perl-Tk https://github.com/void-linux/void-packages/commit/67aeb9d9b2b077d9b7f25902bbf079c1569a2633
- [x] gnu-efi-libs https://github.com/void-linux/void-packages/commit/92b2642bc8d1871605f824064863149985419010
- [x] syslinux https://github.com/void-linux/void-packages/commit/49af74a1dfb32ba1de556f4491b3870179c80872
- [x] recode https://github.com/void-linux/void-packages/pull/54707
- [x] libcddb https://github.com/void-linux/void-packages/commit/eeae3026d1356e1ac5d0547e19e2742a335ae9ca
- [x] vim https://github.com/void-linux/void-packages/pull/54706
- [x] vmaf https://github.com/void-linux/void-packages/pull/54721
- [x] audit https://github.com/void-linux/void-packages/pull/54722
- [x] aalib https://github.com/void-linux/void-packages/commit/d7769fe6d757a62fbfc0998d5cbde5dec8a7db11
- [x] cppdap (outdated vendored gtest, patch merged upstream) https://github.com/void-linux/void-packages/commit/a2c9d8ac073e9f40d6b7b1bb3df108c0d46481bb
- [x] snappy (outdated vendored gtest, upstream rejected patch stating that downstreams running their tests is not supported and that downstreams should either ship their own tests/patches or just disable them) https://github.com/void-linux/void-packages/commit/4e73161431672d245a8d558f269a74f1ab363cc8
- [x] openjdk7-bootstrap
- [x] openjdk8
- [x] gimp https://github.com/void-linux/void-packages/commit/d173951120b07bc57171f6962c92c0877becd0d8
- [x] xf86-video-nouveau https://github.com/void-linux/void-packages/pull/54720
- [x] libao https://github.com/void-linux/void-packages/commit/b9c6b010a201211c0ffba8a821f0021b9bdaf376
- [x] accountsservice https://github.com/void-linux/void-packages/commit/a1ca8cef0b2e98ba22c4d632685f85c5d0cde4c1
- Done with base-syste/xfce
- [x] zeitgeist
- [x] libgee
- [x] cogl
- [x] clutter-gst3
- [x] telepathy-glib
- [x] xen https://github.com/void-linux/void-packages/pull/54751
- [x] vde2 https://github.com/void-linux/void-packages/pull/54750
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [x] elfutils https://github.com/void-linux/void-packages/pull/54566
- [x] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [x] sane https://github.com/void-linux/void-packages/pull/54614
- [x] mdadm https://github.com/void-linux/void-packages/commit/10694f08c471b2701b3c275540b0c665f67c8b9b
- [x] pulseaudio (broken due to configure checks detecting presence of open64, this is fixed in musl 1.2.x https://github.com/bminor/musl/commit/246f1c811448f37a44b41cd8df8d0ef9736d95f4 https://github.com/bminor/musl/commit/50ab830633134dac99011219f0210ee2759ffbde) https://github.com/void-linux/void-packages/commit/b87ec8f3ca216b6d9cfb4836f236fca13f45c2ab
- [x] gpm
- [x] linux-tools https://github.com/void-linux/void-packages/commit/8c670d7a13a3d6783e23624bda033ef898cafd72
- [x] v4l-utils (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg6 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] gst-plugins-good1 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] libcdio (fseek64, also broken on i686-glibc) https://github.com/void-linux/void-packages/pull/54724
- [x] gcr (getpass) https://github.com/void-linux/void-packages/commit/a40788b2db81ceba7e4a9f75e1c120efd7577600
- [x] libndp https://github.com/void-linux/void-packages/commit/580546374e10b6847a66bfb4d9f27579d5112902
- [x] samba https://github.com/void-linux/void-packages/commit/0900507d38bfc7963d7b6c1a7b04341ae987f2d2
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration instead of segfaulting later due to implicit pointer truncation. This is good, but ofc, packages need to be checked for this.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, please test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 135530 bytes --]
From d57fa75e2487aacc3394f8df6b32fd6f8b44a282 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/39] binutils: update to 2.44.
---
srcpkgs/binutils/template | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..e10403f1ed7ae7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
From 48b234ef37e13cdaf779f06229396228ada6fbe8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/39] gcc: update to 14.2.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 24 +-
6 files changed, 24 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 0bd2d1fb7e4696..8b3a96a4a2340a 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.40 perl-5.40.1_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..9dcaa2be194f5f 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
@@ -202,6 +202,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -307,6 +308,10 @@ do_configure() {
mkdir -p build
cd build
if [ "$build_option_gnatboot" ]; then
+ # file-prefix-map isn't supported in gcc6
+ export CFLAGS="${CFLAGS/-ffile-prefix-map=$wrksrc=./}"
+ export CXXFLAGS="${CXXFLAGS/-ffile-prefix-map=$wrksrc=./}"
+
_args+=" --enable-languages=${_langs},ada"
_args+=" --enable-libada"
CONFIG_SHELL=/bin/bash \
@@ -325,6 +330,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ # gcc will configure itself again throughout the build, so make sure CFLAGS/CXXFLAGS/etc
+ # are still set the same.
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +356,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +365,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
From 963ee3671d244265a44d2ee6b3da4eac57dd332d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 03/39] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
common/shlibs | 60 +-
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
7 files changed, 33 insertions(+), 1003 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/common/shlibs b/common/shlibs
index 8b3a96a4a2340a..a7ecf93f042e01 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -17,36 +17,36 @@
# one (order top->bottom) is preferred over the next ones.
#
libc.so musl-1.1.24_7
-libc.so.6 glibc-2.39_1
-libm.so.6 glibc-2.39_1
-libpthread.so.0 glibc-2.39_1
-librt.so.1 glibc-2.39_1
-libdl.so.2 glibc-2.39_1
-ld-linux-x86-64.so.2 glibc-2.39_1 x86_64
-ld-linux.so.2 glibc-2.39_1 i686
-ld-linux.so.3 glibc-2.39_1 armv5tel
-ld-linux-aarch64.so.1 glibc-2.39_1 aarch64
-ld-linux-riscv64-lp64d.so.1 glibc-2.39_1 riscv64
-ld64.so.2 glibc-2.39_1 ppc64
-ld.so.1 glibc-2.39_1 mips
-ld.so.1 glibc-2.39_1 ppc
-ld-linux-armhf.so.3 glibc-2.39_1
-libresolv.so.2 glibc-2.39_1
-libanl.so.1 glibc-2.39_1
-libthread_db.so.1 glibc-2.39_1
-libutil.so.1 glibc-2.39_1
-libnsl.so.1 glibc-2.39_1
-libnss_db.so.2 glibc-2.39_1
-libnss_files.so.2 glibc-2.39_1
-libnss_compat.so.2 glibc-2.39_1
-libnss_dns.so.2 glibc-2.39_1
-libnss_hesiod.so.2 glibc-2.39_1
-libBrokenLocale.so.1 glibc-2.39_1
-libmemusage.so glibc-2.39_1
-libSegFault.so glibc-2.39_1
-libpcprofile.so glibc-2.39_1
-libcidn.so.1 glibc-2.39_1
-libmvec.so.1 glibc-2.39_1
+libc.so.6 glibc-2.41_1
+libm.so.6 glibc-2.41_1
+libpthread.so.0 glibc-2.41_1
+librt.so.1 glibc-2.41_1
+libdl.so.2 glibc-2.41_1
+ld-linux-x86-64.so.2 glibc-2.41_1 x86_64
+ld-linux.so.2 glibc-2.41_1 i686
+ld-linux.so.3 glibc-2.41_1 armv5tel
+ld-linux-aarch64.so.1 glibc-2.41_1 aarch64
+ld-linux-riscv64-lp64d.so.1 glibc-2.41_1 riscv64
+ld64.so.2 glibc-2.41_1 ppc64
+ld.so.1 glibc-2.41_1 mips
+ld.so.1 glibc-2.41_1 ppc
+ld-linux-armhf.so.3 glibc-2.41_1
+libresolv.so.2 glibc-2.41_1
+libanl.so.1 glibc-2.41_1
+libthread_db.so.1 glibc-2.41_1
+libutil.so.1 glibc-2.41_1
+libnsl.so.1 glibc-2.41_1
+libnss_db.so.2 glibc-2.41_1
+libnss_files.so.2 glibc-2.41_1
+libnss_compat.so.2 glibc-2.41_1
+libnss_dns.so.2 glibc-2.41_1
+libnss_hesiod.so.2 glibc-2.41_1
+libBrokenLocale.so.1 glibc-2.41_1
+libmemusage.so glibc-2.41_1
+libSegFault.so glibc-2.41_1
+libpcprofile.so glibc-2.41_1
+libcidn.so.1 glibc-2.41_1
+libmvec.so.1 glibc-2.41_1
libcrypt.so.2 libxcrypt-4.4.36_1
libcrypt.so.1 libxcrypt-compat-4.4.36_1
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From f427224b6a3cd163398e2ad9168082a5cba1d956 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 04/39] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 04e22c4fb01166..922d009ad8c36e 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=23
+revision=24
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From b4b0eba561271cd71be71a9f8ecaa35fc503b449 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 05/39] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 025e1c072e399454cce82acecf20ae7535172b3d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 06/39] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 2c49ce4c2bce732e9e2f67ca215b34a736c51209 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 07/39] gcc-multilib: update to 14.2.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From 5b699de3611722990042b463a127695a444a4cd9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 08/39] libgccjit: update to 14.2.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From 2583baf8096ab50b896b15fd82f596fe5f241df2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 09/39] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From fa3658cec243e1cec51611235851a2ff1b6b9da4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:57:58 -0800
Subject: [PATCH 10/39] nvi: fix build with gcc14
---
srcpkgs/nvi/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/nvi/template b/srcpkgs/nvi/template
index 8a43e9f7a601b5..3923150ff5a1a6 100644
--- a/srcpkgs/nvi/template
+++ b/srcpkgs/nvi/template
@@ -22,6 +22,8 @@ alternatives="
vi:view.1:/usr/share/man/man1/nview.1
"
+CFLAGS="-fpermissive"
+
post_extract() {
chmod +w $wrksrc/common/options_def.h
}
From ba4755ec4165f8403e2353ce88a829fb18e67c2e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 22:59:26 -0700
Subject: [PATCH 11/39] openjdk7-bootstrap: fix build with gcc14
---
srcpkgs/openjdk7-bootstrap/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index 03d91bebf4934a..a4e4ff46091b65 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -86,7 +86,7 @@ skip_extraction="
shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
nocross=yes
-CFLAGS="-fcommon"
+CFLAGS="-fcommon -fpermissive"
post_extract() {
mv icedtea-*/* .
From 01f0424986e55f204996077def8ba15bed7fecd2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 23:00:00 -0700
Subject: [PATCH 12/39] openjdk8: fix build with gcc14
---
.../patches/105_implicit_declaration.patch | 25 +++++++++++++++++++
.../openjdk8/patches/106_int_conversion.patch | 16 ++++++++++++
srcpkgs/openjdk8/template | 2 ++
3 files changed, 43 insertions(+)
create mode 100644 srcpkgs/openjdk8/patches/105_implicit_declaration.patch
create mode 100644 srcpkgs/openjdk8/patches/106_int_conversion.patch
diff --git a/srcpkgs/openjdk8/patches/105_implicit_declaration.patch b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
new file mode 100644
index 00000000000000..7a04c21ec910c3
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
@@ -0,0 +1,25 @@
+The isnanf BSD extension was deprecated with the
+introduction of isnan in c99 and isn't implemented in musl.
+Use the isnan function instead.
+
+--- a/jdk/src/solaris/native/common/jdk_util_md.h
++++ b/jdk/src/solaris/native/common/jdk_util_md.h
+@@ -37,7 +37,7 @@
+ #define ISNAND(d) isnan(d)
+ #elif defined(__linux__) || defined(_ALLBSD_SOURCE)
+ #include <math.h>
+-#define ISNANF(f) isnanf(f)
++#define ISNANF(f) isnan(f)
+ #define ISNAND(d) isnan(d)
+ #elif defined(_AIX)
+ #include <math.h>
+--- a/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
++++ b/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
+@@ -29,6 +29,7 @@
+ #include "jlong.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <dlfcn.h>
+ #include <errno.h>
diff --git a/srcpkgs/openjdk8/patches/106_int_conversion.patch b/srcpkgs/openjdk8/patches/106_int_conversion.patch
new file mode 100644
index 00000000000000..2c57cb01353072
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/106_int_conversion.patch
@@ -0,0 +1,16 @@
+--- a/jdk/src/share/bin/splashscreen_stubs.c
++++ b/jdk/src/share/bin/splashscreen_stubs.c
+@@ -61,11 +61,11 @@
+ #define INVOKEV(name) _INVOKE(name, ,;)
+
+ int DoSplashLoadMemory(void* pdata, int size) {
+- INVOKE(SplashLoadMemory, NULL)(pdata, size);
++ INVOKE(SplashLoadMemory, 0)(pdata, size);
+ }
+
+ int DoSplashLoadFile(const char* filename) {
+- INVOKE(SplashLoadFile, NULL)(filename);
++ INVOKE(SplashLoadFile, 0)(filename);
+ }
+
+ void DoSplashInit(void) {
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 3f01bd949417d9..045f78ad363dab 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -78,6 +78,8 @@ fi
# enabling ccache segfaults gcc
export CCACHE_DISABLE=1
+CFLAGS="-Wno-incompatible-pointer-types"
+
post_extract() {
chmod +x configure
}
From ddb52cf649949cc8a3dd608bf02fb1e7f44e8810 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 13/39] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From 7666df41ccc20b4b84369fc6800b589b24488a06 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:12 -0700
Subject: [PATCH 14/39] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..c29f130891c2a3 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 044bab5191173c5fca95a8b5dda48b4a3a53ec4e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:12 -0700
Subject: [PATCH 15/39] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..361fc22ea41318 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From d181ab67a91e39fca1713ace0d255463ea588886 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:12 -0700
Subject: [PATCH 16/39] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..ead5da53b1cfd3 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ea6d94c9242e03e2da78d7f5d43169a8d92bcf14 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:12 -0700
Subject: [PATCH 17/39] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..111fb843125566 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From d8c3c4508259f25505bdc7d2bb166421db1a8e2e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 18/39] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..f013fc3a816bf8 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From e6b28e16e22a8bc82bd50c760e0bba2d58c7d6e9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 19/39] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..e2096ce89556ef 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From bbfcef31fcff8bc455ad17a96e133b9b35ad13c1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 20/39] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..816e54765f7a12 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ab061a9e61004beed658d7be71efc5d605bfa249 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 21/39] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..09687566805f29 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From b314826fef55b9937554f829bfcd4083f8f606c6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 22/39] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..b8d98a7f1b2713 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 551e9f27d6c18cfd707f24f89a73b80f8d63d4a9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 23/39] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..0312d42ed04f0d 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 8c10b659ec5b517a9baca31a2f4e3e3f00024b61 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 24/39] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..c7d7513f40405c 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From d777a7801d43a1f01345018668669946c043727f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 25/39] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..db72bf6a21bf23 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 1cc62ad30341994636ce9475c797480489ea346e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 26/39] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..4238f87c971ce9 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 741d9b3ac68a3f88bada7cdab80acc48f0ec8e5d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 27/39] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..c4eebdbeefed25 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 27abbfd51e818fbecb9404ad7b28b992df7f0b1e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 28/39] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..276db498f77235 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From fca731eb34ec97bbf5e172158eb3b695d1d1fc30 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 29/39] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..14a68339106005 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 0841f25661b337c6c8e4372d7247ee5a12df804f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 30/39] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..a4fdca2c92c534 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From c197bc41c72c3b2c206f829b1ce2339a4f919676 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 31/39] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..b279d8e5f0a388 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 26ce08e382bfcda85aad404b5d02823466d8ee48 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 32/39] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..f79a9927ceb1c9 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From cdc1559a36e2381d72c2ec85662c425f8ae013d2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 33/39] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..35227199912488 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 1aaf0347b34223a8f0f5482fa3570ed55d1f0fe9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 34/39] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..6ea4fcf92176a0 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,9 +22,9 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ca797429e55d81fe9663eabc61f219b66d092804 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 35/39] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..2ea5e2f8b58b12 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7c76102334e7e342243ee12a37dc7f96b0f64fe3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 36/39] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..99e0114beba4e5 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 8c0aba674f4eb244f7114e8c9f3903f1a754b825 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 37/39] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..11c5e8d5abf57f 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 5d80bb1bd713322b1fe456fe22cdc77036aca4b5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 38/39] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..84c7e05f9badb1 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 5cfb8c7996f3a93c70a071b1334c43baf6f60162 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 39/39] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..3d681054c7d900 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (34 preceding siblings ...)
2025-03-31 7:34 ` oreo639
@ 2025-03-31 9:25 ` oreo639
2025-03-31 10:58 ` oreo639
` (27 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-03-31 9:25 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 7532 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
You can test the ISOs here: https://devspace.voidlinux.org/oreo639/live/gcc14/
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp https://github.com/void-linux/void-packages/commit/30e9e29bb5a348b2c6b7a9b3e29c13d2bc28cfae
- [x] libsasl https://github.com/void-linux/void-packages/commit/6f71c8889cc8a79411ddaca582250e19718f12da
- [x] nvi (done in this pr)
- [x] xbps https://github.com/void-linux/void-packages/commit/73c8cdee1d9b05980cdc0763294cce9372612ba4
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
- [x] gtk+ https://github.com/void-linux/void-packages/commit/ac57a55a5fda78618aec2ec7bb3c27404834ed04
- [x] gtk+3 https://github.com/void-linux/void-packages/pull/54187
- [x] libaom https://github.com/void-linux/void-packages/commit/fcbb94217389f64fea4c536959983814ebaadae4
- [x] perl-Tk https://github.com/void-linux/void-packages/commit/67aeb9d9b2b077d9b7f25902bbf079c1569a2633
- [x] gnu-efi-libs https://github.com/void-linux/void-packages/commit/92b2642bc8d1871605f824064863149985419010
- [x] syslinux https://github.com/void-linux/void-packages/commit/49af74a1dfb32ba1de556f4491b3870179c80872
- [x] recode https://github.com/void-linux/void-packages/pull/54707
- [x] libcddb https://github.com/void-linux/void-packages/commit/eeae3026d1356e1ac5d0547e19e2742a335ae9ca
- [x] vim https://github.com/void-linux/void-packages/pull/54706
- [x] vmaf https://github.com/void-linux/void-packages/pull/54721
- [x] audit https://github.com/void-linux/void-packages/pull/54722
- [x] aalib https://github.com/void-linux/void-packages/commit/d7769fe6d757a62fbfc0998d5cbde5dec8a7db11
- [x] cppdap (outdated vendored gtest, patch merged upstream) https://github.com/void-linux/void-packages/commit/a2c9d8ac073e9f40d6b7b1bb3df108c0d46481bb
- [x] snappy (outdated vendored gtest, upstream rejected patch stating that downstreams running their tests is not supported and that downstreams should either ship their own tests/patches or just disable them) https://github.com/void-linux/void-packages/commit/4e73161431672d245a8d558f269a74f1ab363cc8
- [x] openjdk7-bootstrap
- [x] openjdk8
- [x] gimp https://github.com/void-linux/void-packages/commit/d173951120b07bc57171f6962c92c0877becd0d8
- [x] xf86-video-nouveau https://github.com/void-linux/void-packages/pull/54720
- [x] libao https://github.com/void-linux/void-packages/commit/b9c6b010a201211c0ffba8a821f0021b9bdaf376
- [x] accountsservice https://github.com/void-linux/void-packages/commit/a1ca8cef0b2e98ba22c4d632685f85c5d0cde4c1
- Done with base-syste/xfce
- [x] zeitgeist
- [x] libgee
- [x] cogl
- [x] clutter-gst3
- [x] telepathy-glib
- [x] xen https://github.com/void-linux/void-packages/pull/54751
- [x] vde2 https://github.com/void-linux/void-packages/pull/54750
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [x] elfutils https://github.com/void-linux/void-packages/pull/54566
- [x] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [x] sane https://github.com/void-linux/void-packages/pull/54614
- [x] mdadm https://github.com/void-linux/void-packages/commit/10694f08c471b2701b3c275540b0c665f67c8b9b
- [x] pulseaudio (broken due to configure checks detecting presence of open64, this is fixed in musl 1.2.x https://github.com/bminor/musl/commit/246f1c811448f37a44b41cd8df8d0ef9736d95f4 https://github.com/bminor/musl/commit/50ab830633134dac99011219f0210ee2759ffbde) https://github.com/void-linux/void-packages/commit/b87ec8f3ca216b6d9cfb4836f236fca13f45c2ab
- [x] gpm
- [x] linux-tools https://github.com/void-linux/void-packages/commit/8c670d7a13a3d6783e23624bda033ef898cafd72
- [x] v4l-utils (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg6 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] gst-plugins-good1 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] libcdio (fseek64, also broken on i686-glibc) https://github.com/void-linux/void-packages/pull/54724
- [x] gcr (getpass) https://github.com/void-linux/void-packages/commit/a40788b2db81ceba7e4a9f75e1c120efd7577600
- [x] libndp https://github.com/void-linux/void-packages/commit/580546374e10b6847a66bfb4d9f27579d5112902
- [x] samba https://github.com/void-linux/void-packages/commit/0900507d38bfc7963d7b6c1a7b04341ae987f2d2
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration instead of segfaulting later due to implicit pointer truncation. This is good, but ofc, packages need to be checked for this.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, please test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 136217 bytes --]
From f0c419a15df39cda12eb9e154935568618dd7162 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/39] binutils: update to 2.44.
---
srcpkgs/binutils/template | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..024f8e5c634dd7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
@@ -73,8 +73,7 @@ do_configure() {
esac
# target archs supported by Void
- # borked: riscv64 (gold doesn't support it)
- void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,x86_64"
+ void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,riscv64,x86_64"
conf+=" --enable-targets=$(echo "$void_targets" | sed -E -e 's/(,|$)/-linux-gnu\1/g'),${extra_targets}"
if [ "$build_option_all_targets" ]; then
@@ -107,7 +106,6 @@ do_configure() {
--enable-threads \
--enable-plugins \
--enable-relro \
- --enable-gold \
--enable-new-dtags \
--enable-deterministic-archives \
--enable-64-bit-bfd \
From bce7b237b6f540da18a9041a101075465d3153e8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/39] gcc: update to 14.2.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 24 +-
6 files changed, 24 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 0bd2d1fb7e4696..8b3a96a4a2340a 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.40 perl-5.40.1_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..9dcaa2be194f5f 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
@@ -202,6 +202,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -307,6 +308,10 @@ do_configure() {
mkdir -p build
cd build
if [ "$build_option_gnatboot" ]; then
+ # file-prefix-map isn't supported in gcc6
+ export CFLAGS="${CFLAGS/-ffile-prefix-map=$wrksrc=./}"
+ export CXXFLAGS="${CXXFLAGS/-ffile-prefix-map=$wrksrc=./}"
+
_args+=" --enable-languages=${_langs},ada"
_args+=" --enable-libada"
CONFIG_SHELL=/bin/bash \
@@ -325,6 +330,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ # gcc will configure itself again throughout the build, so make sure CFLAGS/CXXFLAGS/etc
+ # are still set the same.
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +356,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +365,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
From 759616b7392a2bcaaa3c3814a0c74f6678958b63 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 03/39] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
common/shlibs | 60 +-
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
7 files changed, 33 insertions(+), 1003 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/common/shlibs b/common/shlibs
index 8b3a96a4a2340a..a7ecf93f042e01 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -17,36 +17,36 @@
# one (order top->bottom) is preferred over the next ones.
#
libc.so musl-1.1.24_7
-libc.so.6 glibc-2.39_1
-libm.so.6 glibc-2.39_1
-libpthread.so.0 glibc-2.39_1
-librt.so.1 glibc-2.39_1
-libdl.so.2 glibc-2.39_1
-ld-linux-x86-64.so.2 glibc-2.39_1 x86_64
-ld-linux.so.2 glibc-2.39_1 i686
-ld-linux.so.3 glibc-2.39_1 armv5tel
-ld-linux-aarch64.so.1 glibc-2.39_1 aarch64
-ld-linux-riscv64-lp64d.so.1 glibc-2.39_1 riscv64
-ld64.so.2 glibc-2.39_1 ppc64
-ld.so.1 glibc-2.39_1 mips
-ld.so.1 glibc-2.39_1 ppc
-ld-linux-armhf.so.3 glibc-2.39_1
-libresolv.so.2 glibc-2.39_1
-libanl.so.1 glibc-2.39_1
-libthread_db.so.1 glibc-2.39_1
-libutil.so.1 glibc-2.39_1
-libnsl.so.1 glibc-2.39_1
-libnss_db.so.2 glibc-2.39_1
-libnss_files.so.2 glibc-2.39_1
-libnss_compat.so.2 glibc-2.39_1
-libnss_dns.so.2 glibc-2.39_1
-libnss_hesiod.so.2 glibc-2.39_1
-libBrokenLocale.so.1 glibc-2.39_1
-libmemusage.so glibc-2.39_1
-libSegFault.so glibc-2.39_1
-libpcprofile.so glibc-2.39_1
-libcidn.so.1 glibc-2.39_1
-libmvec.so.1 glibc-2.39_1
+libc.so.6 glibc-2.41_1
+libm.so.6 glibc-2.41_1
+libpthread.so.0 glibc-2.41_1
+librt.so.1 glibc-2.41_1
+libdl.so.2 glibc-2.41_1
+ld-linux-x86-64.so.2 glibc-2.41_1 x86_64
+ld-linux.so.2 glibc-2.41_1 i686
+ld-linux.so.3 glibc-2.41_1 armv5tel
+ld-linux-aarch64.so.1 glibc-2.41_1 aarch64
+ld-linux-riscv64-lp64d.so.1 glibc-2.41_1 riscv64
+ld64.so.2 glibc-2.41_1 ppc64
+ld.so.1 glibc-2.41_1 mips
+ld.so.1 glibc-2.41_1 ppc
+ld-linux-armhf.so.3 glibc-2.41_1
+libresolv.so.2 glibc-2.41_1
+libanl.so.1 glibc-2.41_1
+libthread_db.so.1 glibc-2.41_1
+libutil.so.1 glibc-2.41_1
+libnsl.so.1 glibc-2.41_1
+libnss_db.so.2 glibc-2.41_1
+libnss_files.so.2 glibc-2.41_1
+libnss_compat.so.2 glibc-2.41_1
+libnss_dns.so.2 glibc-2.41_1
+libnss_hesiod.so.2 glibc-2.41_1
+libBrokenLocale.so.1 glibc-2.41_1
+libmemusage.so glibc-2.41_1
+libSegFault.so glibc-2.41_1
+libpcprofile.so glibc-2.41_1
+libcidn.so.1 glibc-2.41_1
+libmvec.so.1 glibc-2.41_1
libcrypt.so.2 libxcrypt-4.4.36_1
libcrypt.so.1 libxcrypt-compat-4.4.36_1
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From 6d6dcb3ac34616e892b4c993a8d673bca9699e0b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 04/39] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 04e22c4fb01166..922d009ad8c36e 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=23
+revision=24
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From 94d7e745b76701efc92380b7e4cedf97ba83d37a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 05/39] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 2acfe441cb28ba454449779902ea87ae7318a259 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 06/39] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From f057dbd7be889e7b45b85eaca798bab41c7b7638 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 07/39] gcc-multilib: update to 14.2.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From 8ec546422717d74d5753e8579be0d3c58d21e7ba Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 08/39] libgccjit: update to 14.2.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From e2fe2801532c72ecd7c895e79a4f240342378d5a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 09/39] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From d4db76d3a1fe27994a6c7a7f515f0441a4bd9f8b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 13 Dec 2024 20:57:58 -0800
Subject: [PATCH 10/39] nvi: fix build with gcc14
---
srcpkgs/nvi/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/nvi/template b/srcpkgs/nvi/template
index 8a43e9f7a601b5..3923150ff5a1a6 100644
--- a/srcpkgs/nvi/template
+++ b/srcpkgs/nvi/template
@@ -22,6 +22,8 @@ alternatives="
vi:view.1:/usr/share/man/man1/nview.1
"
+CFLAGS="-fpermissive"
+
post_extract() {
chmod +w $wrksrc/common/options_def.h
}
From 0f94f37c8a67e31ef6f7a90a9cb15d6affe53ba2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 22:59:26 -0700
Subject: [PATCH 11/39] openjdk7-bootstrap: fix build with gcc14
---
srcpkgs/openjdk7-bootstrap/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index 03d91bebf4934a..a4e4ff46091b65 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -86,7 +86,7 @@ skip_extraction="
shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
nocross=yes
-CFLAGS="-fcommon"
+CFLAGS="-fcommon -fpermissive"
post_extract() {
mv icedtea-*/* .
From b22e47d6c1f02b5b4227bb0ae76da87677faeedb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 23:00:00 -0700
Subject: [PATCH 12/39] openjdk8: fix build with gcc14
---
.../patches/105_implicit_declaration.patch | 25 +++++++++++++++++++
.../openjdk8/patches/106_int_conversion.patch | 16 ++++++++++++
srcpkgs/openjdk8/template | 2 ++
3 files changed, 43 insertions(+)
create mode 100644 srcpkgs/openjdk8/patches/105_implicit_declaration.patch
create mode 100644 srcpkgs/openjdk8/patches/106_int_conversion.patch
diff --git a/srcpkgs/openjdk8/patches/105_implicit_declaration.patch b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
new file mode 100644
index 00000000000000..7a04c21ec910c3
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
@@ -0,0 +1,25 @@
+The isnanf BSD extension was deprecated with the
+introduction of isnan in c99 and isn't implemented in musl.
+Use the isnan function instead.
+
+--- a/jdk/src/solaris/native/common/jdk_util_md.h
++++ b/jdk/src/solaris/native/common/jdk_util_md.h
+@@ -37,7 +37,7 @@
+ #define ISNAND(d) isnan(d)
+ #elif defined(__linux__) || defined(_ALLBSD_SOURCE)
+ #include <math.h>
+-#define ISNANF(f) isnanf(f)
++#define ISNANF(f) isnan(f)
+ #define ISNAND(d) isnan(d)
+ #elif defined(_AIX)
+ #include <math.h>
+--- a/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
++++ b/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
+@@ -29,6 +29,7 @@
+ #include "jlong.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <dlfcn.h>
+ #include <errno.h>
diff --git a/srcpkgs/openjdk8/patches/106_int_conversion.patch b/srcpkgs/openjdk8/patches/106_int_conversion.patch
new file mode 100644
index 00000000000000..2c57cb01353072
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/106_int_conversion.patch
@@ -0,0 +1,16 @@
+--- a/jdk/src/share/bin/splashscreen_stubs.c
++++ b/jdk/src/share/bin/splashscreen_stubs.c
+@@ -61,11 +61,11 @@
+ #define INVOKEV(name) _INVOKE(name, ,;)
+
+ int DoSplashLoadMemory(void* pdata, int size) {
+- INVOKE(SplashLoadMemory, NULL)(pdata, size);
++ INVOKE(SplashLoadMemory, 0)(pdata, size);
+ }
+
+ int DoSplashLoadFile(const char* filename) {
+- INVOKE(SplashLoadFile, NULL)(filename);
++ INVOKE(SplashLoadFile, 0)(filename);
+ }
+
+ void DoSplashInit(void) {
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 3f01bd949417d9..045f78ad363dab 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -78,6 +78,8 @@ fi
# enabling ccache segfaults gcc
export CCACHE_DISABLE=1
+CFLAGS="-Wno-incompatible-pointer-types"
+
post_extract() {
chmod +x configure
}
From 860ea16d2e7e2009649fd168c227f0d3b198d13c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 13/39] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From 6fb0343c00610486cf09e948d72f977c324702b6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:12 -0700
Subject: [PATCH 14/39] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..c29f130891c2a3 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 439ff81815e08611a7d8aeafb4ddb36d5372bb9e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:12 -0700
Subject: [PATCH 15/39] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..361fc22ea41318 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 11c20a2d1494c561bc5e39b1aa28e277cb58582b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:12 -0700
Subject: [PATCH 16/39] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..ead5da53b1cfd3 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 045ee1f1be9a47ba955130975b6637bce9359fc0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:12 -0700
Subject: [PATCH 17/39] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..111fb843125566 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f80a04b6fe9e0c919076287522273862f83d5266 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 18/39] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..f013fc3a816bf8 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From aedaf0409a03b8c46b42e9420f9f4f10782d448c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 19/39] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..e2096ce89556ef 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 53fe8a2334cfd096b5312fe3506f0f40e8f29ab6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 20/39] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..816e54765f7a12 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From bf59e0e07a6a00a8ffaad20e7d7e5d06b55dca44 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 21/39] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..09687566805f29 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 6134d2eaf3e4fd43cb87d2398aa5c267c52f42a1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 22/39] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..b8d98a7f1b2713 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 4c0abbfd94a71fbffd57018b88975ea399486c3b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 23/39] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..0312d42ed04f0d 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 1836c98fec5c50fedd8fa9d02ef5aa3770b2ea0f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 24/39] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..c7d7513f40405c 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 90f6fc32c0248958426d7ac72fdd396ea8fc30b6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 25/39] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..db72bf6a21bf23 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 447f627c909c7780d4c73bc6348d09b3908cfa80 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 26/39] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..4238f87c971ce9 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 5b560fd8abc585cb344cb8aa8ff8db630a4d4884 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 27/39] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..c4eebdbeefed25 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 9901643c69b4a75257ccada063d8fda771e1ff62 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 28/39] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..276db498f77235 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f57515e8b53e6b6c6a8fe1960f1c6a2211711785 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 29/39] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..14a68339106005 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From a25b722992123c1b48bf4fc63a62900b4fe8d9c8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 30/39] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..a4fdca2c92c534 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f0a3bbc89daad5e55405f6d09c92acb9e81cefd7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 31/39] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..b279d8e5f0a388 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From c22f6e3f233b6e5639c47afb4ac5e09ca6f8d480 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 32/39] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..f79a9927ceb1c9 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 1715933641919d4761d50f5b103bd589ba1b3277 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 33/39] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..35227199912488 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From bfcfd03d6edc96f93df8ce7fd0f41252e2ab6cc4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 34/39] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..6ea4fcf92176a0 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,9 +22,9 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From a8d1768083ed0caca7bb4eaa471777b9c9780438 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 35/39] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..2ea5e2f8b58b12 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 8b587ed14ce71002e50684bcd0f5bb8d896e1fc8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 36/39] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..99e0114beba4e5 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 056f6ca71b0e637889978ed880ae81720a5c855d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 37/39] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..11c5e8d5abf57f 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 1c91047f79d8f3baec1b191ca0747fb774fddbfe Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 38/39] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..84c7e05f9badb1 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From cc010b2b5fa75590dd848b09ed1c207d275ea626 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 39/39] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..3d681054c7d900 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (35 preceding siblings ...)
2025-03-31 9:25 ` oreo639
@ 2025-03-31 10:58 ` oreo639
2025-04-01 17:19 ` oreo639
` (26 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-03-31 10:58 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 7532 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
You can test the ISOs here: https://devspace.voidlinux.org/oreo639/live/gcc14/
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp https://github.com/void-linux/void-packages/commit/30e9e29bb5a348b2c6b7a9b3e29c13d2bc28cfae
- [x] libsasl https://github.com/void-linux/void-packages/commit/6f71c8889cc8a79411ddaca582250e19718f12da
- [x] nvi (done in this pr)
- [x] xbps https://github.com/void-linux/void-packages/commit/73c8cdee1d9b05980cdc0763294cce9372612ba4
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
- [x] gtk+ https://github.com/void-linux/void-packages/commit/ac57a55a5fda78618aec2ec7bb3c27404834ed04
- [x] gtk+3 https://github.com/void-linux/void-packages/pull/54187
- [x] libaom https://github.com/void-linux/void-packages/commit/fcbb94217389f64fea4c536959983814ebaadae4
- [x] perl-Tk https://github.com/void-linux/void-packages/commit/67aeb9d9b2b077d9b7f25902bbf079c1569a2633
- [x] gnu-efi-libs https://github.com/void-linux/void-packages/commit/92b2642bc8d1871605f824064863149985419010
- [x] syslinux https://github.com/void-linux/void-packages/commit/49af74a1dfb32ba1de556f4491b3870179c80872
- [x] recode https://github.com/void-linux/void-packages/pull/54707
- [x] libcddb https://github.com/void-linux/void-packages/commit/eeae3026d1356e1ac5d0547e19e2742a335ae9ca
- [x] vim https://github.com/void-linux/void-packages/pull/54706
- [x] vmaf https://github.com/void-linux/void-packages/pull/54721
- [x] audit https://github.com/void-linux/void-packages/pull/54722
- [x] aalib https://github.com/void-linux/void-packages/commit/d7769fe6d757a62fbfc0998d5cbde5dec8a7db11
- [x] cppdap (outdated vendored gtest, patch merged upstream) https://github.com/void-linux/void-packages/commit/a2c9d8ac073e9f40d6b7b1bb3df108c0d46481bb
- [x] snappy (outdated vendored gtest, upstream rejected patch stating that downstreams running their tests is not supported and that downstreams should either ship their own tests/patches or just disable them) https://github.com/void-linux/void-packages/commit/4e73161431672d245a8d558f269a74f1ab363cc8
- [x] openjdk7-bootstrap
- [x] openjdk8
- [x] gimp https://github.com/void-linux/void-packages/commit/d173951120b07bc57171f6962c92c0877becd0d8
- [x] xf86-video-nouveau https://github.com/void-linux/void-packages/pull/54720
- [x] libao https://github.com/void-linux/void-packages/commit/b9c6b010a201211c0ffba8a821f0021b9bdaf376
- [x] accountsservice https://github.com/void-linux/void-packages/commit/a1ca8cef0b2e98ba22c4d632685f85c5d0cde4c1
- Done with base-syste/xfce
- [x] zeitgeist
- [x] libgee
- [x] cogl
- [x] clutter-gst3
- [x] telepathy-glib
- [x] xen https://github.com/void-linux/void-packages/pull/54751
- [x] vde2 https://github.com/void-linux/void-packages/pull/54750
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [x] elfutils https://github.com/void-linux/void-packages/pull/54566
- [x] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [x] sane https://github.com/void-linux/void-packages/pull/54614
- [x] mdadm https://github.com/void-linux/void-packages/commit/10694f08c471b2701b3c275540b0c665f67c8b9b
- [x] pulseaudio (broken due to configure checks detecting presence of open64, this is fixed in musl 1.2.x https://github.com/bminor/musl/commit/246f1c811448f37a44b41cd8df8d0ef9736d95f4 https://github.com/bminor/musl/commit/50ab830633134dac99011219f0210ee2759ffbde) https://github.com/void-linux/void-packages/commit/b87ec8f3ca216b6d9cfb4836f236fca13f45c2ab
- [x] gpm
- [x] linux-tools https://github.com/void-linux/void-packages/commit/8c670d7a13a3d6783e23624bda033ef898cafd72
- [x] v4l-utils (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg6 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] gst-plugins-good1 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] libcdio (fseek64, also broken on i686-glibc) https://github.com/void-linux/void-packages/pull/54724
- [x] gcr (getpass) https://github.com/void-linux/void-packages/commit/a40788b2db81ceba7e4a9f75e1c120efd7577600
- [x] libndp https://github.com/void-linux/void-packages/commit/580546374e10b6847a66bfb4d9f27579d5112902
- [x] samba https://github.com/void-linux/void-packages/commit/0900507d38bfc7963d7b6c1a7b04341ae987f2d2
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration instead of segfaulting later due to implicit pointer truncation. This is good, but ofc, packages need to be checked for this.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, please test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 136000 bytes --]
From 1fe813da5b7f7a25c3f7434e2362a4d670c8d978 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/38] binutils: update to 2.44.
---
srcpkgs/binutils/template | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..024f8e5c634dd7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
@@ -73,8 +73,7 @@ do_configure() {
esac
# target archs supported by Void
- # borked: riscv64 (gold doesn't support it)
- void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,x86_64"
+ void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,riscv64,x86_64"
conf+=" --enable-targets=$(echo "$void_targets" | sed -E -e 's/(,|$)/-linux-gnu\1/g'),${extra_targets}"
if [ "$build_option_all_targets" ]; then
@@ -107,7 +106,6 @@ do_configure() {
--enable-threads \
--enable-plugins \
--enable-relro \
- --enable-gold \
--enable-new-dtags \
--enable-deterministic-archives \
--enable-64-bit-bfd \
From be7f6db72eddc2ef51c92a213dc257c0a33870ee Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/38] gcc: update to 14.2.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 24 +-
6 files changed, 24 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 0bd2d1fb7e4696..8b3a96a4a2340a 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.40 perl-5.40.1_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..9dcaa2be194f5f 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
@@ -202,6 +202,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -307,6 +308,10 @@ do_configure() {
mkdir -p build
cd build
if [ "$build_option_gnatboot" ]; then
+ # file-prefix-map isn't supported in gcc6
+ export CFLAGS="${CFLAGS/-ffile-prefix-map=$wrksrc=./}"
+ export CXXFLAGS="${CXXFLAGS/-ffile-prefix-map=$wrksrc=./}"
+
_args+=" --enable-languages=${_langs},ada"
_args+=" --enable-libada"
CONFIG_SHELL=/bin/bash \
@@ -325,6 +330,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ # gcc will configure itself again throughout the build, so make sure CFLAGS/CXXFLAGS/etc
+ # are still set the same.
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +356,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +365,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
From a0327f23dbfa0241fc17cb8478227c1e85615856 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 03/38] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
common/shlibs | 60 +-
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
7 files changed, 33 insertions(+), 1003 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/common/shlibs b/common/shlibs
index 8b3a96a4a2340a..a7ecf93f042e01 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -17,36 +17,36 @@
# one (order top->bottom) is preferred over the next ones.
#
libc.so musl-1.1.24_7
-libc.so.6 glibc-2.39_1
-libm.so.6 glibc-2.39_1
-libpthread.so.0 glibc-2.39_1
-librt.so.1 glibc-2.39_1
-libdl.so.2 glibc-2.39_1
-ld-linux-x86-64.so.2 glibc-2.39_1 x86_64
-ld-linux.so.2 glibc-2.39_1 i686
-ld-linux.so.3 glibc-2.39_1 armv5tel
-ld-linux-aarch64.so.1 glibc-2.39_1 aarch64
-ld-linux-riscv64-lp64d.so.1 glibc-2.39_1 riscv64
-ld64.so.2 glibc-2.39_1 ppc64
-ld.so.1 glibc-2.39_1 mips
-ld.so.1 glibc-2.39_1 ppc
-ld-linux-armhf.so.3 glibc-2.39_1
-libresolv.so.2 glibc-2.39_1
-libanl.so.1 glibc-2.39_1
-libthread_db.so.1 glibc-2.39_1
-libutil.so.1 glibc-2.39_1
-libnsl.so.1 glibc-2.39_1
-libnss_db.so.2 glibc-2.39_1
-libnss_files.so.2 glibc-2.39_1
-libnss_compat.so.2 glibc-2.39_1
-libnss_dns.so.2 glibc-2.39_1
-libnss_hesiod.so.2 glibc-2.39_1
-libBrokenLocale.so.1 glibc-2.39_1
-libmemusage.so glibc-2.39_1
-libSegFault.so glibc-2.39_1
-libpcprofile.so glibc-2.39_1
-libcidn.so.1 glibc-2.39_1
-libmvec.so.1 glibc-2.39_1
+libc.so.6 glibc-2.41_1
+libm.so.6 glibc-2.41_1
+libpthread.so.0 glibc-2.41_1
+librt.so.1 glibc-2.41_1
+libdl.so.2 glibc-2.41_1
+ld-linux-x86-64.so.2 glibc-2.41_1 x86_64
+ld-linux.so.2 glibc-2.41_1 i686
+ld-linux.so.3 glibc-2.41_1 armv5tel
+ld-linux-aarch64.so.1 glibc-2.41_1 aarch64
+ld-linux-riscv64-lp64d.so.1 glibc-2.41_1 riscv64
+ld64.so.2 glibc-2.41_1 ppc64
+ld.so.1 glibc-2.41_1 mips
+ld.so.1 glibc-2.41_1 ppc
+ld-linux-armhf.so.3 glibc-2.41_1
+libresolv.so.2 glibc-2.41_1
+libanl.so.1 glibc-2.41_1
+libthread_db.so.1 glibc-2.41_1
+libutil.so.1 glibc-2.41_1
+libnsl.so.1 glibc-2.41_1
+libnss_db.so.2 glibc-2.41_1
+libnss_files.so.2 glibc-2.41_1
+libnss_compat.so.2 glibc-2.41_1
+libnss_dns.so.2 glibc-2.41_1
+libnss_hesiod.so.2 glibc-2.41_1
+libBrokenLocale.so.1 glibc-2.41_1
+libmemusage.so glibc-2.41_1
+libSegFault.so glibc-2.41_1
+libpcprofile.so glibc-2.41_1
+libcidn.so.1 glibc-2.41_1
+libmvec.so.1 glibc-2.41_1
libcrypt.so.2 libxcrypt-4.4.36_1
libcrypt.so.1 libxcrypt-compat-4.4.36_1
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From b469c6bad1f1be21a0ac2e2b252ba03093c8980b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 04/38] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 04e22c4fb01166..922d009ad8c36e 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=23
+revision=24
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From 915d5824216a9a8a6cfa6b411f4f162a82f8afb6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 05/38] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 0f521f0259d30f1260356bb410ed2363c54a7115 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 06/38] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 4ed3f7de5c0b43a860a7cb94d3a239dcc7a7ff9a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 07/38] gcc-multilib: update to 14.2.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From ce588e601c5613ffb2242cb0a7469e671c43f67d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 08/38] libgccjit: update to 14.2.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From 86f7034aa3ed82b4177406b677ce982a1e5a3100 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 09/38] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From 7759b4a134ce18f0ffc6711285a31078861cde2f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 22:59:26 -0700
Subject: [PATCH 10/38] openjdk7-bootstrap: fix build with gcc14
---
srcpkgs/openjdk7-bootstrap/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index 03d91bebf4934a..a4e4ff46091b65 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -86,7 +86,7 @@ skip_extraction="
shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
nocross=yes
-CFLAGS="-fcommon"
+CFLAGS="-fcommon -fpermissive"
post_extract() {
mv icedtea-*/* .
From c58361aa20a7c939c27948a0d7d36495f0a5829f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 23:00:00 -0700
Subject: [PATCH 11/38] openjdk8: fix build with gcc14
---
.../patches/105_implicit_declaration.patch | 25 +++++++++++++++++++
.../openjdk8/patches/106_int_conversion.patch | 16 ++++++++++++
srcpkgs/openjdk8/template | 2 ++
3 files changed, 43 insertions(+)
create mode 100644 srcpkgs/openjdk8/patches/105_implicit_declaration.patch
create mode 100644 srcpkgs/openjdk8/patches/106_int_conversion.patch
diff --git a/srcpkgs/openjdk8/patches/105_implicit_declaration.patch b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
new file mode 100644
index 00000000000000..7a04c21ec910c3
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
@@ -0,0 +1,25 @@
+The isnanf BSD extension was deprecated with the
+introduction of isnan in c99 and isn't implemented in musl.
+Use the isnan function instead.
+
+--- a/jdk/src/solaris/native/common/jdk_util_md.h
++++ b/jdk/src/solaris/native/common/jdk_util_md.h
+@@ -37,7 +37,7 @@
+ #define ISNAND(d) isnan(d)
+ #elif defined(__linux__) || defined(_ALLBSD_SOURCE)
+ #include <math.h>
+-#define ISNANF(f) isnanf(f)
++#define ISNANF(f) isnan(f)
+ #define ISNAND(d) isnan(d)
+ #elif defined(_AIX)
+ #include <math.h>
+--- a/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
++++ b/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
+@@ -29,6 +29,7 @@
+ #include "jlong.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <dlfcn.h>
+ #include <errno.h>
diff --git a/srcpkgs/openjdk8/patches/106_int_conversion.patch b/srcpkgs/openjdk8/patches/106_int_conversion.patch
new file mode 100644
index 00000000000000..2c57cb01353072
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/106_int_conversion.patch
@@ -0,0 +1,16 @@
+--- a/jdk/src/share/bin/splashscreen_stubs.c
++++ b/jdk/src/share/bin/splashscreen_stubs.c
+@@ -61,11 +61,11 @@
+ #define INVOKEV(name) _INVOKE(name, ,;)
+
+ int DoSplashLoadMemory(void* pdata, int size) {
+- INVOKE(SplashLoadMemory, NULL)(pdata, size);
++ INVOKE(SplashLoadMemory, 0)(pdata, size);
+ }
+
+ int DoSplashLoadFile(const char* filename) {
+- INVOKE(SplashLoadFile, NULL)(filename);
++ INVOKE(SplashLoadFile, 0)(filename);
+ }
+
+ void DoSplashInit(void) {
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 3f01bd949417d9..045f78ad363dab 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -78,6 +78,8 @@ fi
# enabling ccache segfaults gcc
export CCACHE_DISABLE=1
+CFLAGS="-Wno-incompatible-pointer-types"
+
post_extract() {
chmod +x configure
}
From ffede636222fd1623409e84fb8e1ab6695ce3cba Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 12/38] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From d2ffda89ec1b365e08f3aaefb28b1f2dd4302b65 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:12 -0700
Subject: [PATCH 13/38] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..c29f130891c2a3 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 298dc1c973d0347a3dbf701044d5808b8bb147a0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:12 -0700
Subject: [PATCH 14/38] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..361fc22ea41318 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 23963c095f4f2ba8c9843930f25ea6a4e098cfcc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:12 -0700
Subject: [PATCH 15/38] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..ead5da53b1cfd3 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 484ab8e13f4e63351e5edce299bcbffb3e49ffce Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:12 -0700
Subject: [PATCH 16/38] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..111fb843125566 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From edb4e604346c5338f43d3dbd5b89bc19a9ef5395 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 17/38] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..f013fc3a816bf8 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 7cc94c84aa9352ac6dbb9f636103da6172d098e3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 18/38] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..e2096ce89556ef 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 8963695a2b785ce12b45ef0b6ff0c9745ca7f1c2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 19/38] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..816e54765f7a12 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From a6381fe395dc4294faed510299a8a8cec8894167 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 20/38] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..09687566805f29 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From eec6e873f1b42462d9a4ec3e258e7c4827c45371 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 21/38] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..b8d98a7f1b2713 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 7c114283ae118b66351e161ad41724fca3217a26 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 22/38] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..0312d42ed04f0d 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From a4a62de136c9a5354a60f10b545951b4a7048ac5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 23/38] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..c7d7513f40405c 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 641c59fdb4b7d9271c2721e68a62d1eebf8fe8bd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 24/38] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..db72bf6a21bf23 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 33ec6bb867813c730f1e5787d5d74d765256a462 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 25/38] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..4238f87c971ce9 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 520f0ca894bbe16c443a9cd5e70af8310b88fab4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 26/38] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..c4eebdbeefed25 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f069e171d19cbf0d53998cf8f3a2e743d6edda30 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 27/38] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..276db498f77235 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 6a46279ce0e0f3901f774f1837812230c8c56a62 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 28/38] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..14a68339106005 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 3e045604d39ac4c6efb521b3ace36a8ba9de25a4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 29/38] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..a4fdca2c92c534 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 824c98b4322b5aa1b18e22f99f6ad6cb620a342c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 30/38] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..b279d8e5f0a388 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From d0b501a4d1f74e18b8b69f06ad604324e79bc46f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 31/38] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..f79a9927ceb1c9 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From fc4d66cb6c0752c4d33fa6c918317d1ac5c45908 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 32/38] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..35227199912488 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From a8d4f87a18db4d307a5cd6496aeca21a20dde2dd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 33/38] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..58ca3f96646b33 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,9 +22,9 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
@@ -37,7 +37,7 @@ if [ "$XBPS_TARGET_MACHINE" = "ppcle" ]; then
broken="Can't build crosstoolchain to itself"
fi
-broken="glibc uses big-endian specific instructions on 32-bit powerpc"
+broken="glibc uses big-endian specific instructions (stmw and lmw) in 32-bit powerpc clone.S"
cross-powerpcle-linux-gnu-libc_package() {
short_desc+=" - glibc files"
From fa2166d4106b1020de49bb1cd2c8ec41d2a4a40b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 34/38] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..2ea5e2f8b58b12 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7a66c8349a1dde31c524b898790351a590b1e208 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 35/38] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..99e0114beba4e5 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 4f7707c8ebea5aa61da43c4f252f15c0ad8fedb8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 36/38] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..11c5e8d5abf57f 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 698e668114f278558129b53af9603ed5ed32808e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 37/38] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..84c7e05f9badb1 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From bdf251061aefcb75eb59c7930652a9e2c504b737 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 38/38] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..3d681054c7d900 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (36 preceding siblings ...)
2025-03-31 10:58 ` oreo639
@ 2025-04-01 17:19 ` oreo639
2025-04-04 22:00 ` dkwo
` (25 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-04-01 17:19 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 7532 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
You can test the ISOs here: https://devspace.voidlinux.org/oreo639/live/gcc14/
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp https://github.com/void-linux/void-packages/commit/30e9e29bb5a348b2c6b7a9b3e29c13d2bc28cfae
- [x] libsasl https://github.com/void-linux/void-packages/commit/6f71c8889cc8a79411ddaca582250e19718f12da
- [x] nvi (done in this pr)
- [x] xbps https://github.com/void-linux/void-packages/commit/73c8cdee1d9b05980cdc0763294cce9372612ba4
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
- [x] gtk+ https://github.com/void-linux/void-packages/commit/ac57a55a5fda78618aec2ec7bb3c27404834ed04
- [x] gtk+3 https://github.com/void-linux/void-packages/pull/54187
- [x] libaom https://github.com/void-linux/void-packages/commit/fcbb94217389f64fea4c536959983814ebaadae4
- [x] perl-Tk https://github.com/void-linux/void-packages/commit/67aeb9d9b2b077d9b7f25902bbf079c1569a2633
- [x] gnu-efi-libs https://github.com/void-linux/void-packages/commit/92b2642bc8d1871605f824064863149985419010
- [x] syslinux https://github.com/void-linux/void-packages/commit/49af74a1dfb32ba1de556f4491b3870179c80872
- [x] recode https://github.com/void-linux/void-packages/pull/54707
- [x] libcddb https://github.com/void-linux/void-packages/commit/eeae3026d1356e1ac5d0547e19e2742a335ae9ca
- [x] vim https://github.com/void-linux/void-packages/pull/54706
- [x] vmaf https://github.com/void-linux/void-packages/pull/54721
- [x] audit https://github.com/void-linux/void-packages/pull/54722
- [x] aalib https://github.com/void-linux/void-packages/commit/d7769fe6d757a62fbfc0998d5cbde5dec8a7db11
- [x] cppdap (outdated vendored gtest, patch merged upstream) https://github.com/void-linux/void-packages/commit/a2c9d8ac073e9f40d6b7b1bb3df108c0d46481bb
- [x] snappy (outdated vendored gtest, upstream rejected patch stating that downstreams running their tests is not supported and that downstreams should either ship their own tests/patches or just disable them) https://github.com/void-linux/void-packages/commit/4e73161431672d245a8d558f269a74f1ab363cc8
- [x] openjdk7-bootstrap
- [x] openjdk8
- [x] gimp https://github.com/void-linux/void-packages/commit/d173951120b07bc57171f6962c92c0877becd0d8
- [x] xf86-video-nouveau https://github.com/void-linux/void-packages/pull/54720
- [x] libao https://github.com/void-linux/void-packages/commit/b9c6b010a201211c0ffba8a821f0021b9bdaf376
- [x] accountsservice https://github.com/void-linux/void-packages/commit/a1ca8cef0b2e98ba22c4d632685f85c5d0cde4c1
- Done with base-syste/xfce
- [x] zeitgeist
- [x] libgee
- [x] cogl
- [x] clutter-gst3
- [x] telepathy-glib
- [x] xen https://github.com/void-linux/void-packages/pull/54751
- [x] vde2 https://github.com/void-linux/void-packages/pull/54750
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [x] elfutils https://github.com/void-linux/void-packages/pull/54566
- [x] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [x] sane https://github.com/void-linux/void-packages/pull/54614
- [x] mdadm https://github.com/void-linux/void-packages/commit/10694f08c471b2701b3c275540b0c665f67c8b9b
- [x] pulseaudio (broken due to configure checks detecting presence of open64, this is fixed in musl 1.2.x https://github.com/bminor/musl/commit/246f1c811448f37a44b41cd8df8d0ef9736d95f4 https://github.com/bminor/musl/commit/50ab830633134dac99011219f0210ee2759ffbde) https://github.com/void-linux/void-packages/commit/b87ec8f3ca216b6d9cfb4836f236fca13f45c2ab
- [x] gpm
- [x] linux-tools https://github.com/void-linux/void-packages/commit/8c670d7a13a3d6783e23624bda033ef898cafd72
- [x] v4l-utils (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg6 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] gst-plugins-good1 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] libcdio (fseek64, also broken on i686-glibc) https://github.com/void-linux/void-packages/pull/54724
- [x] gcr (getpass) https://github.com/void-linux/void-packages/commit/a40788b2db81ceba7e4a9f75e1c120efd7577600
- [x] libndp https://github.com/void-linux/void-packages/commit/580546374e10b6847a66bfb4d9f27579d5112902
- [x] samba https://github.com/void-linux/void-packages/commit/0900507d38bfc7963d7b6c1a7b04341ae987f2d2
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration instead of segfaulting later due to implicit pointer truncation. This is good, but ofc, packages need to be checked for this.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, please test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 136000 bytes --]
From 8f9a036d6e8f1677efa641b4a4084a71bacc4f87 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 01/38] binutils: update to 2.44.
---
srcpkgs/binutils/template | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..024f8e5c634dd7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
@@ -73,8 +73,7 @@ do_configure() {
esac
# target archs supported by Void
- # borked: riscv64 (gold doesn't support it)
- void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,x86_64"
+ void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,riscv64,x86_64"
conf+=" --enable-targets=$(echo "$void_targets" | sed -E -e 's/(,|$)/-linux-gnu\1/g'),${extra_targets}"
if [ "$build_option_all_targets" ]; then
@@ -107,7 +106,6 @@ do_configure() {
--enable-threads \
--enable-plugins \
--enable-relro \
- --enable-gold \
--enable-new-dtags \
--enable-deterministic-archives \
--enable-64-bit-bfd \
From 7d5e96fa2418f07f368f1f61b6bb1d55744ac0b5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 02/38] gcc: update to 14.2.0.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ------------------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ---------
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 ----
.../patches/fix-pretty-printer-warnings.patch | 125 --------
srcpkgs/gcc/template | 24 +-
6 files changed, 24 insertions(+), 630 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
diff --git a/common/shlibs b/common/shlibs
index 0bd2d1fb7e4696..8b3a96a4a2340a 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.40 perl-5.40.1_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..9dcaa2be194f5f 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,8 +3,8 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.0
+revision=1
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
@@ -23,7 +23,7 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
@@ -202,6 +202,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -307,6 +308,10 @@ do_configure() {
mkdir -p build
cd build
if [ "$build_option_gnatboot" ]; then
+ # file-prefix-map isn't supported in gcc6
+ export CFLAGS="${CFLAGS/-ffile-prefix-map=$wrksrc=./}"
+ export CXXFLAGS="${CXXFLAGS/-ffile-prefix-map=$wrksrc=./}"
+
_args+=" --enable-languages=${_langs},ada"
_args+=" --enable-libada"
CONFIG_SHELL=/bin/bash \
@@ -325,6 +330,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ # gcc will configure itself again throughout the build, so make sure CFLAGS/CXXFLAGS/etc
+ # are still set the same.
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +356,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +365,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
From 41b7c9707b84c94f31011aa70bb28043742b2f48 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 03/38] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
common/shlibs | 60 +-
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
7 files changed, 33 insertions(+), 1003 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/common/shlibs b/common/shlibs
index 8b3a96a4a2340a..a7ecf93f042e01 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -17,36 +17,36 @@
# one (order top->bottom) is preferred over the next ones.
#
libc.so musl-1.1.24_7
-libc.so.6 glibc-2.39_1
-libm.so.6 glibc-2.39_1
-libpthread.so.0 glibc-2.39_1
-librt.so.1 glibc-2.39_1
-libdl.so.2 glibc-2.39_1
-ld-linux-x86-64.so.2 glibc-2.39_1 x86_64
-ld-linux.so.2 glibc-2.39_1 i686
-ld-linux.so.3 glibc-2.39_1 armv5tel
-ld-linux-aarch64.so.1 glibc-2.39_1 aarch64
-ld-linux-riscv64-lp64d.so.1 glibc-2.39_1 riscv64
-ld64.so.2 glibc-2.39_1 ppc64
-ld.so.1 glibc-2.39_1 mips
-ld.so.1 glibc-2.39_1 ppc
-ld-linux-armhf.so.3 glibc-2.39_1
-libresolv.so.2 glibc-2.39_1
-libanl.so.1 glibc-2.39_1
-libthread_db.so.1 glibc-2.39_1
-libutil.so.1 glibc-2.39_1
-libnsl.so.1 glibc-2.39_1
-libnss_db.so.2 glibc-2.39_1
-libnss_files.so.2 glibc-2.39_1
-libnss_compat.so.2 glibc-2.39_1
-libnss_dns.so.2 glibc-2.39_1
-libnss_hesiod.so.2 glibc-2.39_1
-libBrokenLocale.so.1 glibc-2.39_1
-libmemusage.so glibc-2.39_1
-libSegFault.so glibc-2.39_1
-libpcprofile.so glibc-2.39_1
-libcidn.so.1 glibc-2.39_1
-libmvec.so.1 glibc-2.39_1
+libc.so.6 glibc-2.41_1
+libm.so.6 glibc-2.41_1
+libpthread.so.0 glibc-2.41_1
+librt.so.1 glibc-2.41_1
+libdl.so.2 glibc-2.41_1
+ld-linux-x86-64.so.2 glibc-2.41_1 x86_64
+ld-linux.so.2 glibc-2.41_1 i686
+ld-linux.so.3 glibc-2.41_1 armv5tel
+ld-linux-aarch64.so.1 glibc-2.41_1 aarch64
+ld-linux-riscv64-lp64d.so.1 glibc-2.41_1 riscv64
+ld64.so.2 glibc-2.41_1 ppc64
+ld.so.1 glibc-2.41_1 mips
+ld.so.1 glibc-2.41_1 ppc
+ld-linux-armhf.so.3 glibc-2.41_1
+libresolv.so.2 glibc-2.41_1
+libanl.so.1 glibc-2.41_1
+libthread_db.so.1 glibc-2.41_1
+libutil.so.1 glibc-2.41_1
+libnsl.so.1 glibc-2.41_1
+libnss_db.so.2 glibc-2.41_1
+libnss_files.so.2 glibc-2.41_1
+libnss_compat.so.2 glibc-2.41_1
+libnss_dns.so.2 glibc-2.41_1
+libnss_hesiod.so.2 glibc-2.41_1
+libBrokenLocale.so.1 glibc-2.41_1
+libmemusage.so glibc-2.41_1
+libSegFault.so glibc-2.41_1
+libpcprofile.so glibc-2.41_1
+libcidn.so.1 glibc-2.41_1
+libmvec.so.1 glibc-2.41_1
libcrypt.so.2 libxcrypt-4.4.36_1
libcrypt.so.1 libxcrypt-compat-4.4.36_1
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From 27260656ae25be198cd27661342bdb6ce5ddd547 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 04/38] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 04e22c4fb01166..922d009ad8c36e 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=23
+revision=24
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From 6deb4f71f53d1657ac6fa402d3602ebd74b74e0a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 05/38] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From c4cc6451cc63b96dfbaf6e9d22303bcdeede5fbd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 06/38] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From e33b86ea4621a8d9ac07f063133ac1fa6f579892 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 07/38] gcc-multilib: update to 14.2.0.
---
srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..c95b2ab71b8d0a 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,7 +3,7 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.0
revision=1
_majorver="${version%.*}"
short_desc="GNU Compiler Collection (multilib files)"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum=a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
hostmakedepends="perl flex tar zip unzip"
makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
@@ -69,6 +69,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
From 9049f5a328396ceaee262f6c3fff783a6879681a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 08/38] libgccjit: update to 14.2.0.
---
srcpkgs/libgccjit/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..0de561019c980e 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,12 +3,12 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.0
revision=1
_gmp_version=6.3.0
-_mpfr_version=4.2.0
+_mpfr_version=4.2.1
_mpc_version=1.3.1
-_isl_version=0.24
+_isl_version=0.26
create_wrksrc=yes
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
@@ -21,11 +21,11 @@ distfiles="
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
nopie=yes
lib32disabled=yes
makedepends="zlib-devel"
From 0509f949b26aa08bf6fcbeb64d0d8a6720d1fecc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 09/38] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From f4ca4e0c14ff5c32f0cb6e166c4b035e0487f434 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 22:59:26 -0700
Subject: [PATCH 10/38] openjdk7-bootstrap: fix build with gcc14
---
srcpkgs/openjdk7-bootstrap/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index 03d91bebf4934a..a4e4ff46091b65 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -86,7 +86,7 @@ skip_extraction="
shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
nocross=yes
-CFLAGS="-fcommon"
+CFLAGS="-fcommon -fpermissive"
post_extract() {
mv icedtea-*/* .
From 934d5c79c48b80c6e22c02284560982e69acb3ef Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 23:00:00 -0700
Subject: [PATCH 11/38] openjdk8: fix build with gcc14
---
.../patches/105_implicit_declaration.patch | 25 +++++++++++++++++++
.../openjdk8/patches/106_int_conversion.patch | 16 ++++++++++++
srcpkgs/openjdk8/template | 2 ++
3 files changed, 43 insertions(+)
create mode 100644 srcpkgs/openjdk8/patches/105_implicit_declaration.patch
create mode 100644 srcpkgs/openjdk8/patches/106_int_conversion.patch
diff --git a/srcpkgs/openjdk8/patches/105_implicit_declaration.patch b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
new file mode 100644
index 00000000000000..7a04c21ec910c3
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
@@ -0,0 +1,25 @@
+The isnanf BSD extension was deprecated with the
+introduction of isnan in c99 and isn't implemented in musl.
+Use the isnan function instead.
+
+--- a/jdk/src/solaris/native/common/jdk_util_md.h
++++ b/jdk/src/solaris/native/common/jdk_util_md.h
+@@ -37,7 +37,7 @@
+ #define ISNAND(d) isnan(d)
+ #elif defined(__linux__) || defined(_ALLBSD_SOURCE)
+ #include <math.h>
+-#define ISNANF(f) isnanf(f)
++#define ISNANF(f) isnan(f)
+ #define ISNAND(d) isnan(d)
+ #elif defined(_AIX)
+ #include <math.h>
+--- a/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
++++ b/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
+@@ -29,6 +29,7 @@
+ #include "jlong.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <dlfcn.h>
+ #include <errno.h>
diff --git a/srcpkgs/openjdk8/patches/106_int_conversion.patch b/srcpkgs/openjdk8/patches/106_int_conversion.patch
new file mode 100644
index 00000000000000..2c57cb01353072
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/106_int_conversion.patch
@@ -0,0 +1,16 @@
+--- a/jdk/src/share/bin/splashscreen_stubs.c
++++ b/jdk/src/share/bin/splashscreen_stubs.c
+@@ -61,11 +61,11 @@
+ #define INVOKEV(name) _INVOKE(name, ,;)
+
+ int DoSplashLoadMemory(void* pdata, int size) {
+- INVOKE(SplashLoadMemory, NULL)(pdata, size);
++ INVOKE(SplashLoadMemory, 0)(pdata, size);
+ }
+
+ int DoSplashLoadFile(const char* filename) {
+- INVOKE(SplashLoadFile, NULL)(filename);
++ INVOKE(SplashLoadFile, 0)(filename);
+ }
+
+ void DoSplashInit(void) {
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 3f01bd949417d9..045f78ad363dab 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -78,6 +78,8 @@ fi
# enabling ccache segfaults gcc
export CCACHE_DISABLE=1
+CFLAGS="-Wno-incompatible-pointer-types"
+
post_extract() {
chmod +x configure
}
From 77b58e8f3476732e81ade4f730dce9275ff0d939 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 12/38] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From 0073ca778837a35bc0f596db649c6db1b88ae54c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:12 -0700
Subject: [PATCH 13/38] cross-aarch64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..c29f130891c2a3 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 97be4e1c65846ed1bc59607514ad65bcbaeee852 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:12 -0700
Subject: [PATCH 14/38] cross-aarch64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..361fc22ea41318 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 7d2a62347ce6bf0d755ec447b4432f75ce940bc1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:12 -0700
Subject: [PATCH 15/38] cross-arm-linux-gnueabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabi/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..ead5da53b1cfd3 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 85a338859d3ef3cc927329fe0f4750a63e031c5d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:12 -0700
Subject: [PATCH 16/38] cross-arm-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..111fb843125566 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From a3bf8b0d6bb06c464d3a05d7b40f3d1ea7bb0aab Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 17/38] cross-arm-linux-musleabi: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..f013fc3a816bf8 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 94bd067048110628a77bf5ac755f85462a60579f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 18/38] cross-arm-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..e2096ce89556ef 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 820d8815d930dfaa99194ccf5f159a00b9ab0ebe Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 19/38] cross-armv7l-linux-gnueabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..816e54765f7a12 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 5a2962b64f68ec3286d1fd167145a3fcdf7fcd96 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 20/38] cross-armv7l-linux-musleabihf: update to gcc 14.2.0
---
srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..09687566805f29 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From bac6dbee44484ec74118dbcf80e7cd8ec62c99b7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 21/38] cross-i686-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..b8d98a7f1b2713 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 13d22fba46d39d36b1cc5868ac768514ad4cfff2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:13 -0700
Subject: [PATCH 22/38] cross-i686-pc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-i686-pc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..0312d42ed04f0d 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From d0314803ac375c062ea8ed5c9c43f59436285a4c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 23/38] cross-mips-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..c7d7513f40405c 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 1eb8178158d0343ae22a1a630fd90878c3e08970 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 24/38] cross-mips-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..db72bf6a21bf23 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 427f2dc3026409e94ea45152d8aa5c098a18d523 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 25/38] cross-mipsel-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..4238f87c971ce9 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 9b0f02220972c5830de50b7c0d20bbd203738421 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 26/38] cross-mipsel-linux-muslhf: update to gcc 14.2.0
---
srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..c4eebdbeefed25 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 685c080677a8526b44736cd09db3c3ac509cbf53 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 27/38] cross-powerpc-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..276db498f77235 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f0a813887d34040e209b253e4a49e7925b606427 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 28/38] cross-powerpc-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..14a68339106005 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From eb0ab2ed057684d901bc8a39491e76a600cc46e0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 29/38] cross-powerpc64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..a4fdca2c92c534 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7c34505045055c66812481eaf2fd21bf7c7bd8f8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:14 -0700
Subject: [PATCH 30/38] cross-powerpc64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..b279d8e5f0a388 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 2782a141a3c204cc5bd04f752d1ce455270be43b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 31/38] cross-powerpc64le-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..f79a9927ceb1c9 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,9 +21,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 54107e69e4cd3103b86eded69a579fa1186393f6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 32/38] cross-powerpc64le-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..35227199912488 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 7cee369917bff30662d8f9f317e10cff499e6819 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 33/38] cross-powerpcle-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-gnu/template | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..58ca3f96646b33 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -22,9 +22,9 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
@@ -37,7 +37,7 @@ if [ "$XBPS_TARGET_MACHINE" = "ppcle" ]; then
broken="Can't build crosstoolchain to itself"
fi
-broken="glibc uses big-endian specific instructions on 32-bit powerpc"
+broken="glibc uses big-endian specific instructions (stmw and lmw) in 32-bit powerpc clone.S"
cross-powerpcle-linux-gnu-libc_package() {
short_desc+=" - glibc files"
From 2f114f35417762e82f135f7afa1c765b932b8d8f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 34/38] cross-powerpcle-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..2ea5e2f8b58b12 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 0d1c05e25cc31d234bf6b2da3ef4af3de51d8f36 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 35/38] cross-riscv64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..99e0114beba4e5 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,9 +20,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 75d8fd2a3abb608b4ebfbdde2896c8bcdd4cacb4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 36/38] cross-riscv64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..11c5e8d5abf57f 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 080e86a5bfb62741a625075ba6ecb1b078b367f6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 37/38] cross-x86_64-linux-gnu: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-gnu/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..84c7e05f9badb1 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.0
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,9 +19,9 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 877540cb9163ae2bb8e9cabb1047d3d63d1b1a27 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 31 Mar 2025 00:24:15 -0700
Subject: [PATCH 38/38] cross-x86_64-linux-musl: update to gcc 14.2.0
---
srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..3d681054c7d900 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.0
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (37 preceding siblings ...)
2025-04-01 17:19 ` oreo639
@ 2025-04-04 22:00 ` dkwo
2025-04-04 22:02 ` dkwo
` (24 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: dkwo @ 2025-04-04 22:00 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 336 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2779798231
Comment:
On aarch64, I also fail to build givaro, which builds fine from master
(I've tried a few from this list from Alpine, in case it helps: https://gitlab.alpinelinux.org/alpine/aports/-/issues/16335 )
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (38 preceding siblings ...)
2025-04-04 22:00 ` dkwo
@ 2025-04-04 22:02 ` dkwo
2025-04-04 22:08 ` dkwo
` (23 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: dkwo @ 2025-04-04 22:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 223 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2779801659
Comment:
Which is fixed by updating at https://github.com/void-linux/void-packages/pull/54607
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (39 preceding siblings ...)
2025-04-04 22:02 ` dkwo
@ 2025-04-04 22:08 ` dkwo
2025-04-06 2:55 ` oreo639
` (22 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: dkwo @ 2025-04-04 22:08 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 207 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2779808173
Comment:
btw, `linbox` is also failing with gcc 14, but no release since 2021
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (40 preceding siblings ...)
2025-04-04 22:08 ` dkwo
@ 2025-04-06 2:55 ` oreo639
2025-04-06 9:33 ` [PR PATCH] [Updated] " oreo639
` (21 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-04-06 2:55 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 372 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2781189916
Comment:
Thanks for testing this with the sagemath packages.
I checked it as well rn with its dependencies, so they should be fixed now.
For future reference, linbox also needs patches for GCC 15, but I'll get to that when I get to that.
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.0.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (41 preceding siblings ...)
2025-04-06 2:55 ` oreo639
@ 2025-04-06 9:33 ` oreo639
2025-04-06 9:37 ` [PR PATCH] [Updated] gcc: update to 14.2.1+20250329 oreo639
` (20 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-04-06 9:33 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 7666 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
You can test the ISOs here: https://devspace.voidlinux.org/oreo639/live/gcc14/
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp https://github.com/void-linux/void-packages/commit/30e9e29bb5a348b2c6b7a9b3e29c13d2bc28cfae
- [x] libsasl https://github.com/void-linux/void-packages/commit/6f71c8889cc8a79411ddaca582250e19718f12da
- [x] nvi https://github.com/void-linux/void-packages/commit/a51ebf219534e5420ffc83d5a89b43dc992c9b81
- [x] xbps https://github.com/void-linux/void-packages/commit/73c8cdee1d9b05980cdc0763294cce9372612ba4
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
- [x] gtk+ https://github.com/void-linux/void-packages/commit/ac57a55a5fda78618aec2ec7bb3c27404834ed04
- [x] gtk+3 https://github.com/void-linux/void-packages/pull/54187
- [x] libaom https://github.com/void-linux/void-packages/commit/fcbb94217389f64fea4c536959983814ebaadae4
- [x] perl-Tk https://github.com/void-linux/void-packages/commit/67aeb9d9b2b077d9b7f25902bbf079c1569a2633
- [x] gnu-efi-libs https://github.com/void-linux/void-packages/commit/92b2642bc8d1871605f824064863149985419010
- [x] syslinux https://github.com/void-linux/void-packages/commit/49af74a1dfb32ba1de556f4491b3870179c80872
- [x] recode https://github.com/void-linux/void-packages/pull/54707
- [x] libcddb https://github.com/void-linux/void-packages/commit/eeae3026d1356e1ac5d0547e19e2742a335ae9ca
- [x] vim https://github.com/void-linux/void-packages/pull/54706
- [x] vmaf https://github.com/void-linux/void-packages/pull/54721
- [x] audit https://github.com/void-linux/void-packages/pull/54722
- [x] aalib https://github.com/void-linux/void-packages/commit/d7769fe6d757a62fbfc0998d5cbde5dec8a7db11
- [x] cppdap (outdated vendored gtest, patch merged upstream) https://github.com/void-linux/void-packages/commit/a2c9d8ac073e9f40d6b7b1bb3df108c0d46481bb
- [x] snappy (outdated vendored gtest, upstream rejected patch stating that downstreams running their tests is not supported and that downstreams should either ship their own tests/patches or just disable them) https://github.com/void-linux/void-packages/commit/4e73161431672d245a8d558f269a74f1ab363cc8
- [x] openjdk7-bootstrap
- [x] openjdk8
- [x] gimp https://github.com/void-linux/void-packages/commit/d173951120b07bc57171f6962c92c0877becd0d8
- [x] xf86-video-nouveau https://github.com/void-linux/void-packages/pull/54720
- [x] libao https://github.com/void-linux/void-packages/commit/b9c6b010a201211c0ffba8a821f0021b9bdaf376
- [x] accountsservice https://github.com/void-linux/void-packages/commit/a1ca8cef0b2e98ba22c4d632685f85c5d0cde4c1
- Done with base-syste/xfce
- [x] zeitgeist
- [x] libgee
- [x] cogl
- [x] clutter-gst3
- [x] telepathy-glib
- [x] xen https://github.com/void-linux/void-packages/pull/54751
- [x] vde2 https://github.com/void-linux/void-packages/pull/54750
- Sagemath Related
- [x] gf2x
- [x] linbox
- [x] givaro
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [x] elfutils https://github.com/void-linux/void-packages/pull/54566
- [x] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [x] sane https://github.com/void-linux/void-packages/pull/54614
- [x] mdadm https://github.com/void-linux/void-packages/commit/10694f08c471b2701b3c275540b0c665f67c8b9b
- [x] pulseaudio (broken due to configure checks detecting presence of open64, this is fixed in musl 1.2.x https://github.com/bminor/musl/commit/246f1c811448f37a44b41cd8df8d0ef9736d95f4 https://github.com/bminor/musl/commit/50ab830633134dac99011219f0210ee2759ffbde) https://github.com/void-linux/void-packages/commit/b87ec8f3ca216b6d9cfb4836f236fca13f45c2ab
- [x] gpm
- [x] linux-tools https://github.com/void-linux/void-packages/commit/8c670d7a13a3d6783e23624bda033ef898cafd72
- [x] v4l-utils (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg6 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] gst-plugins-good1 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] libcdio (fseek64, also broken on i686-glibc) https://github.com/void-linux/void-packages/pull/54724
- [x] gcr (getpass) https://github.com/void-linux/void-packages/commit/a40788b2db81ceba7e4a9f75e1c120efd7577600
- [x] libndp https://github.com/void-linux/void-packages/commit/580546374e10b6847a66bfb4d9f27579d5112902
- [x] samba https://github.com/void-linux/void-packages/commit/0900507d38bfc7963d7b6c1a7b04341ae987f2d2
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration instead of segfaulting later due to implicit pointer truncation. This is good, but ofc, packages need to be checked for this.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, please test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 187681 bytes --]
From 966e6a37cbaa962da5a02dabf3a0d5d03cd97602 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Tue, 28 May 2024 15:31:49 -0400
Subject: [PATCH 01/39] xbps-src: add option to use distfiles mirror as a
fallback
This adds an optional configuration to add a fallback distfiles mirror
The idea is that normally, distfiles should be fetched from the urls in
the template. However, occasionally the urls have rotted, or are simply
down temporairily, in which case the fetch will fail. A workaround to
this has been to use the $XBPS_DISTFILES_MIRROR option, however the
downside to this is that it is always tried first, and 99% of the time isn't
needed.
This adds the $XBPS_DISTFILES_FALLBACK option, which can be set to an
addiontional list of mirrors which will be attempted after both
$XBPS_DISTFILES_MIRROR, and the urls in the template have failed to
fetch the distfiles
Co-authored-by: oreo639 <oreo6391@gmail.com>
---
common/hooks/do-fetch/00-distfiles.sh | 15 +++++++++------
xbps-src | 10 +++++++---
2 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/common/hooks/do-fetch/00-distfiles.sh b/common/hooks/do-fetch/00-distfiles.sh
index 1adb86a5167823..2065d5442a3a12 100644
--- a/common/hooks/do-fetch/00-distfiles.sh
+++ b/common/hooks/do-fetch/00-distfiles.sh
@@ -128,11 +128,11 @@ link_cksum() {
}
try_mirrors() {
- local curfile="$1" distfile="$2" cksum="$3" f="$4"
+ local curfile="$1" distfile="$2" cksum="$3" f="$4" mirror_list="$5"
local filesum basefile mirror path scheme good
- [ -z "$XBPS_DISTFILES_MIRROR" ] && return 1
+ [ -z "$mirror_list" ] && return 1
basefile="${f##*/}"
- for mirror in $XBPS_DISTFILES_MIRROR; do
+ for mirror in $mirror_list; do
scheme="file"
if [[ $mirror == *://* ]]; then
scheme="${mirror%%:/*}"
@@ -148,8 +148,8 @@ try_mirrors() {
continue
fi
fi
- if [[ "$mirror" == *voidlinux* ]]; then
- # For distfiles.voidlinux.* append the subdirectory
+ if [[ "$mirror" == *sources.voidlinux.* ]]; then
+ # For sources.voidlinux.* append the subdirectory
mirror="$mirror/$pkgname-$version"
fi
msg_normal "$pkgver: fetching distfile '$curfile' from mirror '$mirror'...\n"
@@ -286,11 +286,14 @@ hook() {
fi
# If distfile does not exist, download it from a mirror location.
- if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}"; then
+ if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}" "$XBPS_DISTFILES_MIRROR"; then
continue
fi
if ! try_urls "$curfile"; then
+ if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}" "$XBPS_DISTFILES_FALLBACK"; then
+ continue
+ fi
msg_error "$pkgver: failed to fetch '$curfile'.\n"
fi
done
diff --git a/xbps-src b/xbps-src
index c17270b62ee4b5..1ce830c7bf9c18 100755
--- a/xbps-src
+++ b/xbps-src
@@ -343,10 +343,11 @@ read_pkg() {
}
setup_distfiles_mirror() {
+ local mirror_list="$1"
local mirror scheme path
# Scheme file:// mirror locations only work with uchroot
- for mirror in $XBPS_DISTFILES_MIRROR; do
+ for mirror in $mirror_list; do
scheme="file"
if [[ "$mirror" == *://* ]]; then
scheme="${mirror%%://*}"
@@ -696,7 +697,7 @@ export XBPS_SHUTILSDIR XBPS_CROSSPFDIR XBPS_TRIGGERSDIR \
XBPS_LIBEXECDIR XBPS_DISTDIR XBPS_DISTFILES_MIRROR XBPS_ALLOW_RESTRICTED \
XBPS_USE_GIT_COMMIT_DATE XBPS_PKG_COMPTYPE XBPS_REPO_COMPTYPE \
XBPS_BUILDHELPERDIR XBPS_USE_BUILD_MTIME XBPS_BUILD_ENVIRONMENT \
- XBPS_PRESERVE_PKGS XBPS_IGNORE_BROKENNESS
+ XBPS_PRESERVE_PKGS XBPS_IGNORE_BROKENNESS XBPS_DISTFILES_FALLBACK
for i in REPOSITORY DESTDIR BUILDDIR SRCDISTDIR; do
eval val="\$XBPS_$i"
@@ -760,7 +761,10 @@ done
if [ -z "$IN_CHROOT" ]; then
trap 'exit_func' INT TERM
if [ -n "$XBPS_DISTFILES_MIRROR" ]; then
- setup_distfiles_mirror
+ setup_distfiles_mirror "$XBPS_DISTFILES_MIRROR"
+ fi
+ if [ -n "$XBPS_DISTFILES_FALLBACK" ]; then
+ setup_distfiles_mirror "$XBPS_DISTFILES_FALLBACK"
fi
fi
From 91019a9ff783286ef82c3f00f8d91cc26267e03c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 02/39] binutils: update to 2.44.
---
srcpkgs/binutils/template | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..024f8e5c634dd7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
@@ -73,8 +73,7 @@ do_configure() {
esac
# target archs supported by Void
- # borked: riscv64 (gold doesn't support it)
- void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,x86_64"
+ void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,riscv64,x86_64"
conf+=" --enable-targets=$(echo "$void_targets" | sed -E -e 's/(,|$)/-linux-gnu\1/g'),${extra_targets}"
if [ "$build_option_all_targets" ]; then
@@ -107,7 +106,6 @@ do_configure() {
--enable-threads \
--enable-plugins \
--enable-relro \
- --enable-gold \
--enable-new-dtags \
--enable-deterministic-archives \
--enable-64-bit-bfd \
From 4d719866ed4757b7260b1766816c2d7d43d770aa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 03/39] gcc: update to 14.2.1+20250329.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ---------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 -----
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 --
.../patches/fix-pretty-printer-warnings.patch | 125 ----
.../gcc/patches/libstdcxx-tzdb-z-format.patch | 563 ------------------
srcpkgs/gcc/template | 109 ++--
7 files changed, 70 insertions(+), 1232 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
delete mode 100644 srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
diff --git a/common/shlibs b/common/shlibs
index a51d54d5472096..26f9ead7a32c95 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.40 perl-5.40.1_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch b/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
deleted file mode 100644
index 0deb99ac6a2df2..00000000000000
--- a/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
+++ /dev/null
@@ -1,563 +0,0 @@
-From 5ceea2ac106d6dd1aa8175670b15a801316cf1c9 Mon Sep 17 00:00:00 2001
-From: Jonathan Wakely <jwakely@redhat.com>
-Date: Tue, 30 Apr 2024 09:52:13 +0100
-Subject: [PATCH] libstdc++: Fix std::chrono::tzdb to work with vanguard format
-
-I found some issues in the std::chrono::tzdb parser by testing the
-tzdata "vanguard" format, which uses new features that aren't enabled in
-the "main" and "rearguard" data formats.
-
-Since 2024a the keyword "minimum" is no longer valid for the FROM and TO
-fields in a Rule line, which means that "m" is now a valid abbreviation
-for "maximum". Previously we expected either "mi" or "ma". For backwards
-compatibility, a FROM field beginning with "mi" is still supported and
-is treated as 1900. The "maximum" keyword is only allowed in TO now,
-because it makes no sense in FROM. To support these changes the
-minmax_year and minmax_year2 classes for parsing FROM and TO are
-replaced with a single years_from_to class that reads both fields.
-
-The vanguard format makes use of %z in Zone FORMAT fields, which caused
-an exception to be thrown from ZoneInfo::set_abbrev because no % or /
-characters were expected when a Zone doesn't use a named Rule. The
-ZoneInfo::to(sys_info&) function now uses format_abbrev_str to replace
-any %z with the current offset. Although format_abbrev_str also checks
-for %s and STD/DST formats, those only make sense when a named Rule is
-in effect, so won't occur when ZoneInfo::to(sys_info&) is used.
-
-Since making this change on trunk, the tzdata-2024b release started
-using %z in the main format, not just vanguard. This makes a backport to
-release branches necessary (see PR 116657).
-
-This change also implements a feature that has always been missing from
-time_zone::_M_get_sys_info: finding the Rule that is active before the
-specified time point, so that we can correctly handle %s in the FORMAT
-for the first new sys_info that gets created. This requires implementing
-a poorly documented feature of zic, to get the LETTERS field from a
-later transition, as described at
-https://mm.icann.org/pipermail/tz/2024-April/058891.html
-In order for this to work we need to be able to distinguish an empty
-letters field (as used by CE%sT where the variable part is either empty
-or "S") from "the letters field is not known for this transition". The
-tzdata file uses "-" for an empty letters field, which libstdc++ was
-previously replacing with "" when the Rule was parsed. Instead, we now
-preserve the "-" in the Rule object, so that "" can be used for the case
-where we don't know the letters (and so need to decide it).
-
-libstdc++-v3/ChangeLog:
-
- * src/c++20/tzdb.cc (minmax_year, minmax_year2): Remove.
- (years_from_to): New class replacing minmax_year and
- minmax_year2.
- (format_abbrev_str, select_std_or_dst_abbrev): Move earlier in
- the file. Handle "-" for letters.
- (ZoneInfo::to): Use format_abbrev_str to expand %z.
- (ZoneInfo::set_abbrev): Remove exception. Change parameter from
- reference to value.
- (operator>>(istream&, Rule&)): Do not clear letters when it
- contains "-".
- (time_zone::_M_get_sys_info): Add missing logic to find the Rule
- in effect before the time point.
- * testsuite/std/time/tzdb/1.cc: Adjust for vanguard format using
- "GMT" as the Zone name, not as a Link to "Etc/GMT".
- * testsuite/std/time/time_zone/sys_info_abbrev.cc: New test.
-
-(cherry picked from commit 0ca8d56f2085715f27ee536c6c344bc47af49cdd)
----
- libstdc++-v3/src/c++20/tzdb.cc | 265 +++++++++++-------
- .../std/time/time_zone/sys_info_abbrev.cc | 106 +++++++
- libstdc++-v3/testsuite/std/time/tzdb/1.cc | 6 +-
- 3 files changed, 274 insertions(+), 103 deletions(-)
- create mode 100644 libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-
-diff --git a/libstdc++-v3/src/c++20/tzdb.cc b/libstdc++-v3/src/c++20/tzdb.cc
-index e058caf27d89..034e72f02743 100644
---- a/libstdc++-v3/src/c++20/tzdb.cc
-+++ b/libstdc++-v3/src/c++20/tzdb.cc
-@@ -342,51 +342,103 @@ namespace std::chrono
- friend istream& operator>>(istream&, on_day&);
- };
-
-- // Wrapper for chrono::year that reads a year, or one of the keywords
-- // "minimum" or "maximum", or an unambiguous prefix of a keyword.
-- struct minmax_year
-+ // Wrapper for two chrono::year values, which reads the FROM and TO
-+ // fields of a Rule line. The FROM field is a year and TO is a year or
-+ // one of the keywords "maximum" or "only" (or an abbreviation of those).
-+ // For backwards compatibility, the keyword "minimum" is recognized
-+ // for FROM and interpreted as 1900.
-+ struct years_from_to
- {
-- year& y;
-+ year& from;
-+ year& to;
-
-- friend istream& operator>>(istream& in, minmax_year&& y)
-+ friend istream& operator>>(istream& in, years_from_to&& yy)
- {
-- if (ws(in).peek() == 'm') // keywords "minimum" or "maximum"
-+ string s;
-+ auto c = ws(in).peek();
-+ if (c == 'm') [[unlikely]] // keyword "minimum"
- {
-- string s;
-- in >> s; // extract the rest of the word, but only look at s[1]
-- if (s[1] == 'a')
-- y.y = year::max();
-- else if (s[1] == 'i')
-- y.y = year::min();
-- else
-- in.setstate(ios::failbit);
-+ in >> s; // extract the rest of the word
-+ yy.from = year(1900);
-+ }
-+ else if (int num = 0; in >> num) [[likely]]
-+ yy.from = year{num};
-+
-+ c = ws(in).peek();
-+ if (c == 'm') // keyword "maximum"
-+ {
-+ in >> s; // extract the rest of the word
-+ yy.to = year::max();
-+ }
-+ else if (c == 'o') // keyword "only"
-+ {
-+ in >> s; // extract the rest of the word
-+ yy.to = yy.from;
- }
- else if (int num = 0; in >> num)
-- y.y = year{num};
-+ yy.to = year{num};
-+
- return in;
- }
- };
-
-- // As above for minmax_year, but also supports the keyword "only",
-- // meaning that the TO year is the same as the FROM year.
-- struct minmax_year2
-+ bool
-+ select_std_or_dst_abbrev(string& abbrev, minutes save)
- {
-- minmax_year to;
-- year from;
-+ if (size_t pos = abbrev.find('/'); pos != string::npos)
-+ {
-+ // Select one of "STD/DST" for standard or daylight.
-+ if (save == 0min)
-+ abbrev.erase(pos);
-+ else
-+ abbrev.erase(0, pos + 1);
-+ return true;
-+ }
-+ return false;
-+ }
-
-- friend istream& operator>>(istream& in, minmax_year2&& y)
-- {
-- if (ws(in).peek() == 'o') // keyword "only"
-- {
-- string s;
-- in >> s; // extract the whole keyword
-- y.to.y = y.from;
-- }
-- else
-- in >> std::move(y.to);
-- return in;
-- }
-- };
-+ // Set the sys_info::abbrev string by expanding any placeholders.
-+ void
-+ format_abbrev_str(sys_info& info, string_view letters = {})
-+ {
-+ if (size_t pos = info.abbrev.find('%'); pos != string::npos)
-+ {
-+ if (info.abbrev[pos + 1] == 's')
-+ {
-+ // Expand "%s" to the variable part, given by Rule::letters.
-+ if (letters == "-")
-+ info.abbrev.erase(pos, 2);
-+ else
-+ info.abbrev.replace(pos, 2, letters);
-+ }
-+ else if (info.abbrev[pos + 1] == 'z')
-+ {
-+ // Expand "%z" to the UT offset as +/-hh, +/-hhmm, or +/-hhmmss.
-+ hh_mm_ss<seconds> t(info.offset);
-+ string z(1, "+-"[t.is_negative()]);
-+ long val = t.hours().count();
-+ int digits = 2;
-+ if (int m = t.minutes().count())
-+ {
-+ digits = 4;
-+ val *= 100;
-+ val += m;
-+ if (int s = t.seconds().count())
-+ {
-+ digits = 6;
-+ val *= 100;
-+ val += s;
-+ }
-+ }
-+ auto sval = std::to_string(val);
-+ z += string(digits - sval.size(), '0');
-+ z += sval;
-+ info.abbrev.replace(pos, 2, z);
-+ }
-+ }
-+ else
-+ select_std_or_dst_abbrev(info.abbrev, info.save);
-+ }
-
- // A time zone information record.
- // Zone NAME STDOFF RULES FORMAT [UNTIL]
-@@ -462,6 +514,7 @@ namespace std::chrono
- info.offset = offset();
- info.save = minutes(m_save);
- info.abbrev = format();
-+ format_abbrev_str(info); // expand %z
- return true;
- }
-
-@@ -469,12 +522,9 @@ namespace std::chrono
- friend class time_zone;
-
- void
-- set_abbrev(const string& abbrev)
-+ set_abbrev(string abbrev)
- {
-- // In practice, the FORMAT field never needs expanding here.
-- if (abbrev.find_first_of("/%") != abbrev.npos)
-- __throw_runtime_error("std::chrono::time_zone: invalid data");
-- m_buf = abbrev;
-+ m_buf = std::move(abbrev);
- m_pos = 0;
- m_expanded = true;
- }
-@@ -544,9 +594,7 @@ namespace std::chrono
-
- // Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
-
-- in >> quoted(rule.name)
-- >> minmax_year{rule.from}
-- >> minmax_year2{rule.to, rule.from};
-+ in >> quoted(rule.name) >> years_from_to{rule.from, rule.to};
-
- if (char type; in >> type && type != '-')
- in.setstate(ios::failbit);
-@@ -557,7 +605,7 @@ namespace std::chrono
- if (save_time.indicator != at_time::Wall)
- {
- // We don't actually store the save_time.indicator, because we
-- // assume that it's always deducable from the actual offset value.
-+ // assume that it's always deducible from the offset value.
- auto expected = save_time.time == 0s
- ? at_time::Standard
- : at_time::Daylight;
-@@ -567,8 +615,6 @@ namespace std::chrono
- rule.save = save_time.time;
-
- in >> rule.letters;
-- if (rule.letters == "-")
-- rule.letters.clear();
- return in;
- }
-
-@@ -714,58 +760,6 @@ namespace std::chrono
- #endif // TZDB_DISABLED
- };
-
--#ifndef TZDB_DISABLED
-- namespace
-- {
-- bool
-- select_std_or_dst_abbrev(string& abbrev, minutes save)
-- {
-- if (size_t pos = abbrev.find('/'); pos != string::npos)
-- {
-- // Select one of "STD/DST" for standard or daylight.
-- if (save == 0min)
-- abbrev.erase(pos);
-- else
-- abbrev.erase(0, pos + 1);
-- return true;
-- }
-- return false;
-- }
--
-- // Set the sys_info::abbrev string by expanding any placeholders.
-- void
-- format_abbrev_str(sys_info& info, string_view letters = {})
-- {
-- if (size_t pos = info.abbrev.find("%s"); pos != string::npos)
-- {
-- // Expand "%s" to the variable part, given by Rule::letters.
-- info.abbrev.replace(pos, 2, letters);
-- }
-- else if (size_t pos = info.abbrev.find("%z"); pos != string::npos)
-- {
-- // Expand "%z" to the UT offset as +/-hh, +/-hhmm, or +/-hhmmss.
-- hh_mm_ss<seconds> t(info.offset);
-- string z(1, "+-"[t.is_negative()]);
-- long val = t.hours().count();
-- if (minutes m = t.minutes(); m != m.zero())
-- {
-- val *= 100;
-- val += m.count();
-- if (seconds s = t.seconds(); s != s.zero())
-- {
-- val *= 100;
-- val += s.count();
-- }
-- }
-- z += std::to_string(val);
-- info.abbrev.replace(pos, 2, z);
-- }
-- else
-- select_std_or_dst_abbrev(info.abbrev, info.save);
-- }
-- }
--#endif // TZDB_DISABLED
--
- // Implementation of std::chrono::time_zone::get_info(const sys_time<D>&)
- sys_info
- time_zone::_M_get_sys_info(sys_seconds tp) const
-@@ -834,12 +828,72 @@ namespace std::chrono
- info.abbrev = ri.format();
-
- string_view letters;
-- if (i != infos.begin())
-+ if (i != infos.begin() && i[-1].expanded())
-+ letters = i[-1].next_letters();
-+
-+ if (letters.empty())
- {
-- if (i[-1].expanded())
-- letters = i[-1].next_letters();
-- // XXX else need to find Rule active before this time and use it
-- // to know the initial offset, save, and letters.
-+ sys_seconds t = info.begin - seconds(1);
-+ const year_month_day date(chrono::floor<days>(t));
-+
-+ // Try to find a Rule active before this time, to get initial
-+ // SAVE and LETTERS values. There may not be a Rule for the period
-+ // before the first DST transition, so find the earliest DST->STD
-+ // transition and use the LETTERS from that.
-+ const Rule* active_rule = nullptr;
-+ sys_seconds active_rule_start = sys_seconds::min();
-+ const Rule* first_std = nullptr;
-+ for (const auto& rule : rules)
-+ {
-+ if (rule.save == minutes(0))
-+ {
-+ if (!first_std)
-+ first_std = &rule;
-+ else if (rule.from < first_std->from)
-+ first_std = &rule;
-+ else if (rule.from == first_std->from)
-+ {
-+ if (rule.start_time(rule.from, {})
-+ < first_std->start_time(first_std->from, {}))
-+ first_std = &rule;
-+ }
-+ }
-+
-+ year y = date.year();
-+
-+ if (y > rule.to) // rule no longer applies at time t
-+ continue;
-+ if (y < rule.from) // rule doesn't apply yet at time t
-+ continue;
-+
-+ sys_seconds rule_start;
-+
-+ seconds offset{}; // appropriate for at_time::Universal
-+ if (rule.when.indicator == at_time::Wall)
-+ offset = info.offset;
-+ else if (rule.when.indicator == at_time::Standard)
-+ offset = ri.offset();
-+
-+ // Time the rule takes effect this year:
-+ rule_start = rule.start_time(y, offset);
-+
-+ if (rule_start >= t && rule.from < y)
-+ {
-+ // Try this rule in the previous year.
-+ rule_start = rule.start_time(--y, offset);
-+ }
-+
-+ if (active_rule_start < rule_start && rule_start < t)
-+ {
-+ active_rule_start = rule_start;
-+ active_rule = &rule;
-+ }
-+ }
-+
-+ if (active_rule)
-+ letters = active_rule->letters;
-+ else if (first_std)
-+ letters = first_std->letters;
- }
-
- const Rule* curr_rule = nullptr;
-@@ -2064,9 +2118,11 @@ namespace std::chrono
- istringstream in2(std::move(rules));
- in2 >> rules_time;
- inf.m_save = duration_cast<minutes>(rules_time.time);
-+ // If the FORMAT is "STD/DST" then we can choose the right one
-+ // now, so that we store a shorter string.
- select_std_or_dst_abbrev(fmt, inf.m_save);
- }
-- inf.set_abbrev(fmt);
-+ inf.set_abbrev(std::move(fmt));
- }
-
- // YEAR [MONTH [DAY [TIME]]]
-@@ -2077,7 +2133,12 @@ namespace std::chrono
- abbrev_month m{January};
- int d = 1;
- at_time t{};
-+ // XXX DAY should support ON format, e.g. lastSun or Sun>=8
- in >> m >> d >> t;
-+ // XXX UNTIL field should be interpreted
-+ // "using the rules in effect just before the transition"
-+ // so might need to store as year_month_day and hh_mm_ss and only
-+ // convert to a sys_time once we know the offset in effect.
- inf.m_until = sys_days(year(y)/m.m/day(d)) + seconds(t.time);
- }
- else
-diff --git a/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc b/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-new file mode 100644
-index 000000000000..f1a8fff02f58
---- /dev/null
-+++ b/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-@@ -0,0 +1,106 @@
-+// { dg-do run { target c++20 } }
-+// { dg-require-effective-target tzdb }
-+// { dg-require-effective-target cxx11_abi }
-+// { dg-xfail-run-if "no weak override on AIX" { powerpc-ibm-aix* } }
-+
-+#include <chrono>
-+#include <fstream>
-+#include <testsuite_hooks.h>
-+
-+static bool override_used = false;
-+
-+namespace __gnu_cxx
-+{
-+ const char* zoneinfo_dir_override() {
-+ override_used = true;
-+ return "./";
-+ }
-+}
-+
-+using namespace std::chrono;
-+
-+void
-+test_format()
-+{
-+ std::ofstream("tzdata.zi") << R"(# version test_1
-+Zone Africa/Bissau -1:2:20 - LMT 1912 Ja 1 1u
-+ -1 - %z 1975
-+ 0 - GMT
-+Zon Some/Zone 1:2:3 - %z 1900
-+ 1:23:45 - %z 1950
-+Zo Another/Zone 1:2:3 - AZ0 1901
-+ 1 Roolz A%sZ 2000
-+ 1 Roolz SAZ/DAZ 2005
-+ 1 Roolz %z
-+Rule Roolz 1950 max - April 1 2 1 D
-+Rul Roolz 1950 max - Oct 1 1 0 S
-+Z Strange/Zone 1 - X%sX 1980
-+ 1 - FOO/BAR 1990
-+ 2:00 - %zzz 1995
-+ 0:9 - %zzz 1996
-+ 0:8:7 - %zzz 1997
-+ 0:6:5.5 - %zzz 1998
-+)";
-+
-+ const auto& db = reload_tzdb();
-+ VERIFY( override_used ); // If this fails then XFAIL for the target.
-+ VERIFY( db.version == "test_1" );
-+
-+ // Test formatting %z as
-+ auto tz = locate_zone("Africa/Bissau");
-+ auto inf = tz->get_info(sys_days(1974y/1/1));
-+ VERIFY( inf.abbrev == "-01" );
-+
-+ tz = locate_zone("Some/Zone");
-+ inf = tz->get_info(sys_days(1899y/1/1));
-+ VERIFY( inf.abbrev == "+010203" );
-+ inf = tz->get_info(sys_days(1955y/1/1));
-+ VERIFY( inf.abbrev == "+012345" );
-+
-+ tz = locate_zone("Another/Zone");
-+ // Test formatting %s as the LETTER/S field from the active Rule.
-+ inf = tz->get_info(sys_days(1910y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1950y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1950y/June/1));
-+ VERIFY( inf.abbrev == "ADZ" );
-+ inf = tz->get_info(sys_days(1999y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1999y/July/1));
-+ VERIFY( inf.abbrev == "ADZ" );
-+ // Test formatting STD/DST according to the active Rule.
-+ inf = tz->get_info(sys_days(2000y/January/2));
-+ VERIFY( inf.abbrev == "SAZ" );
-+ inf = tz->get_info(sys_days(2001y/January/1));
-+ VERIFY( inf.abbrev == "SAZ" );
-+ inf = tz->get_info(sys_days(2001y/July/1));
-+ VERIFY( inf.abbrev == "DAZ" );
-+ // Test formatting %z as the offset determined by the active Rule.
-+ inf = tz->get_info(sys_days(2005y/January/2));
-+ VERIFY( inf.abbrev == "+01" );
-+ inf = tz->get_info(sys_days(2006y/January/1));
-+ VERIFY( inf.abbrev == "+01" );
-+ inf = tz->get_info(sys_days(2006y/July/1));
-+ VERIFY( inf.abbrev == "+02" );
-+
-+ // Test formatting %z, %s and S/D for a Zone with no associated Rules.
-+ tz = locate_zone("Strange/Zone");
-+ inf = tz->get_info(sys_days(1979y/January/1));
-+ VERIFY( inf.abbrev == "XX" ); // No Rule means nothing to use for %s.
-+ inf = tz->get_info(sys_days(1981y/July/1));
-+ VERIFY( inf.abbrev == "FOO" ); // Always standard time means first string.
-+ inf = tz->get_info(sys_days(1994y/July/1));
-+ VERIFY( inf.abbrev == "+02zz" );
-+ inf = tz->get_info(sys_days(1995y/July/1));
-+ VERIFY( inf.abbrev == "+0009zz" );
-+ inf = tz->get_info(sys_days(1996y/July/1));
-+ VERIFY( inf.abbrev == "+000807zz" );
-+ inf = tz->get_info(sys_days(1997y/July/1));
-+ VERIFY( inf.abbrev == "+000606zz" );
-+}
-+
-+int main()
-+{
-+ test_format();
-+}
-diff --git a/libstdc++-v3/testsuite/std/time/tzdb/1.cc b/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-index 5f69e182603d..73d316f55708 100644
---- a/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-+++ b/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-@@ -40,11 +40,15 @@ test_locate()
- const tzdb& db = get_tzdb();
- const time_zone* tz = db.locate_zone("GMT");
- VERIFY( tz != nullptr );
-- VERIFY( tz->name() == "Etc/GMT" );
- VERIFY( tz == std::chrono::locate_zone("GMT") );
- VERIFY( tz == db.locate_zone("Etc/GMT") );
- VERIFY( tz == db.locate_zone("Etc/GMT+0") );
-
-+ // Since 2022f GMT is now a Zone and Etc/GMT a link instead of vice versa,
-+ // but only when using the vanguard format. As of 2024a, the main and
-+ // rearguard formats still have Etc/GMT as a Zone and GMT as a link.
-+ VERIFY( tz->name() == "GMT" || tz->name() == "Etc/GMT" );
-+
- VERIFY( db.locate_zone(db.current_zone()->name()) == db.current_zone() );
- }
-
---
-2.43.5
-
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..938d446e5c61f1 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,57 +3,51 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.1+20250329
+revision=1
+bootstrap=yes
+_patchver="${version%+*}"
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
_mpfr_version=4.2.1
_mpc_version=1.3.1
_isl_version=0.26
-create_wrksrc=yes
short_desc="GNU Compiler Collection"
maintainer="Enno Boland <gottox@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-# *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
-distfiles="
- ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_majorver}-${version#*+}/gcc-${_majorver}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
+skip_extraction="gmp-${_gmp_version}.tar.xz mpfr-${_mpfr_version}.tar.xz
+ mpc-${_mpc_version}.tar.gz isl-${_isl_version}.tar.bz2"
+
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
nopie=yes
lib32disabled=yes
-bootstrap=yes
replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
libssp>=0 libssp-devel>=0"
-_have_gccgo=yes
-_have_libquadmath=no
-
-# MIPS is untested and does not have go in crosstoolchains
-# 32-bit PowerPC seems weirdly broken since the 10.x release
-# 32-bit little endian PowerPC has no support at all (no GOARCH)
-case "$XBPS_TARGET_MACHINE" in
- ppc64*) ;;
- mips*-musl|ppc*) _have_gccgo=no ;;
-esac
-
-case "$XBPS_TARGET_MACHINE" in
- i686*|x86_64*|ppc64le*) _have_libquadmath=yes ;;
-esac
-
if [ "$CHROOT_READY" ]; then
hostmakedepends="tar texinfo perl flex"
else
- _have_gccgo=no
# libzstd fails to link in bootstrap with glibc 2.36
# when zlib has been compiled with glibc 2.32.
LDFLAGS="-lzstd -pthread"
@@ -62,7 +56,6 @@ makedepends="zlib-devel libzstd-devel"
depends="binutils libgcc-devel-${version}_${revision}
libstdc++-devel-${version}_${revision} libatomic-devel-${version}_${revision}"
checkdepends="dejagnu"
-
subpackages="libgcc libgomp libgomp-devel libatomic libatomic-devel"
build_options="ada gnatboot"
@@ -70,18 +63,35 @@ build_options_default="ada"
desc_option_ada="Enable Ada build"
desc_option_gnatboot="Enable Ada bootstrap using adacore.com binaries"
+_have_gccgo=yes
+_have_libquadmath=no
+
+case "$XBPS_TARGET_MACHINE" in
+ i686*|x86_64*|ppc64le*) _have_libquadmath=yes ;;
+esac
+
+# MIPS is untested and does not have go in crosstoolchains
+# 32-bit PowerPC seems weirdly broken since the 10.x release
+# 32-bit little endian PowerPC has no support at all (no GOARCH)
+case "$XBPS_TARGET_MACHINE" in
+ ppc64*) ;;
+ mips*-musl|ppc*) _have_gccgo=no ;;
+esac
+
if [ "$build_option_gnatboot" ]; then
case "$XBPS_TARGET_MACHINE" in
x86_64)
_gnat_tarball="gnat-gpl-2017-x86_64-linux-bin.tar.gz"
distfiles+=" https://community.download.adacore.com/v1/9682e2e1f2f232ce03fe21d77b14c37a0de5649b?filename=$_gnat_tarball>$_gnat_tarball"
checksum+=" b942bcac20dea39748b39f8b624d9619f60a8dee2e8195dbe3829c835b0956e6"
+ skip_extraction+=" $_gnat_tarball"
build_options_default="gnatboot"
;;
i686)
_gnat_tarball="gnat-gpl-2014-x86-linux-bin.tar.gz"
distfiles+=" https://community.download.adacore.com/v1/c5e9e6fdff5cb77ed90cf8c62536653e27c0bed6?filename=$_gnat_tarball>$_gnat_tarball"
checksum+=" 3b693510f5d22a240abb3034934c1adbd80ccd6e4f61a4f491cc408fdfd9c042"
+ skip_extraction+=" $_gnat_tarball"
build_options_default="gnatboot"
;;
esac
@@ -90,10 +100,11 @@ fi
if [ "$CHROOT_READY" ]; then
subpackages+=" gcc-fortran libgfortran-devel libgfortran"
subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
-
if [ "$_have_libquadmath" = "yes" ]; then
subpackages+=" libquadmath libquadmath-devel"
fi
+else
+ _have_gccgo=no
fi
if [ "$_have_gccgo" = "yes" ]; then
@@ -162,18 +173,14 @@ if [ "$CROSS_BUILD" ]; then
fi
post_extract() {
- mv gcc-${version}/* gcc-${version}/.??* .
- rmdir gcc-${version}
- mv gmp-${_gmp_version} gmp
- mv mpfr-${_mpfr_version} mpfr
- mv mpc-${_mpc_version} mpc
- mv isl-${_isl_version} isl
+ vsrcextract -C gmp gmp-${_gmp_version}.tar.xz
+ vsrcextract -C mpfr mpfr-${_mpfr_version}.tar.xz
+ vsrcextract -C mpc mpc-${_mpc_version}.tar.gz
+ vsrcextract -C isl isl-${_isl_version}.tar.bz2
if [ "$build_option_gnatboot" ]; then
- local f="${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_gnat_tarball}"
msg_normal "Extracting ${_gnat_tarball} ...\n"
- mkdir -p ${wrksrc}/gnat-ins
- tar -x -f "$f" --strip-components=1 -C ${wrksrc}/gnat-ins
+ vsrcextract -C gnat-ins ${_gnat_tarball}
cd ${wrksrc}/gnat-ins
make ins-all prefix=${wrksrc}/gnat
cd ${wrksrc}
@@ -202,6 +209,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -307,6 +315,10 @@ do_configure() {
mkdir -p build
cd build
if [ "$build_option_gnatboot" ]; then
+ # file-prefix-map isn't supported in gcc6
+ export CFLAGS="${CFLAGS/-ffile-prefix-map=$wrksrc=./}"
+ export CXXFLAGS="${CXXFLAGS/-ffile-prefix-map=$wrksrc=./}"
+
_args+=" --enable-languages=${_langs},ada"
_args+=" --enable-libada"
CONFIG_SHELL=/bin/bash \
@@ -325,6 +337,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ # gcc will configure itself again throughout the build, so make sure CFLAGS/CXXFLAGS/etc
+ # are still set the same.
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +363,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +372,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
@@ -355,16 +380,16 @@ do_install() {
# Make version a symlink of major version to make all versions
# from the same series work automagically.
- mv ${DESTDIR}/usr/lib/gcc/${_triplet}/${version} \
+ mv ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver} \
${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver}
ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver} \
- ${DESTDIR}/usr/lib/gcc/${_triplet}/${version}
+ ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver}
# Ditto for c++ headers.
- mv ${DESTDIR}/usr/include/c++/${version} \
+ mv ${DESTDIR}/usr/include/c++/${_patchver} \
${DESTDIR}/usr/include/c++/${_minorver}
ln -sfr ${DESTDIR}/usr/include/c++/${_minorver} \
- ${DESTDIR}/usr/include/c++/${version}
+ ${DESTDIR}/usr/include/c++/${_patchver}
# cc symlink
ln -sfr ${DESTDIR}/usr/bin/gcc ${DESTDIR}/usr/bin/cc
@@ -373,7 +398,7 @@ do_install() {
# lto plugin symlink
vmkdir usr/lib/bfd-plugins
- ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${version}/liblto_plugin.so \
+ ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver}/liblto_plugin.so \
${DESTDIR}/usr/lib/bfd-plugins
# Remove "fixed" header
@@ -457,7 +482,7 @@ gcc-fortran_package() {
if [ "$CROSS_BUILD" ]; then
# A number of OMP modules are not built when cross
# compiling gcc. Copy them from the cross compiler.
- local src="/usr/lib/gcc/${_triplet}/${version}/finclude"
+ local src="/usr/lib/gcc/${_triplet}/${_patchver}/finclude"
local dst="usr/lib/gcc/${_triplet}/${_minorver}/finclude"
for f in omp_lib.f90 omp_lib.h omp_lib.mod omp_lib_kinds.mod \
openacc.f90 openacc.mod openacc_kinds.mod openacc_lib.h; do
@@ -714,7 +739,7 @@ libstdc++_package() {
short_desc+=" - Standard C++ Library"
pkg_install() {
vmove usr/share/gdb
- vmove usr/share/gcc-${version}/python
+ vmove usr/share/gcc-${_patchver}/python
vmove "usr/lib/libstdc++.so*"
vlicense COPYING.RUNTIME RUNTIME.LIBRARY.EXCEPTION
}
From 4645bb8ae0b1010ae88a1b9721866935d416c27e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 04/39] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
common/shlibs | 60 +-
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
7 files changed, 33 insertions(+), 1003 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/common/shlibs b/common/shlibs
index 26f9ead7a32c95..4bc3ce575e7784 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -17,36 +17,36 @@
# one (order top->bottom) is preferred over the next ones.
#
libc.so musl-1.1.24_7
-libc.so.6 glibc-2.39_1
-libm.so.6 glibc-2.39_1
-libpthread.so.0 glibc-2.39_1
-librt.so.1 glibc-2.39_1
-libdl.so.2 glibc-2.39_1
-ld-linux-x86-64.so.2 glibc-2.39_1 x86_64
-ld-linux.so.2 glibc-2.39_1 i686
-ld-linux.so.3 glibc-2.39_1 armv5tel
-ld-linux-aarch64.so.1 glibc-2.39_1 aarch64
-ld-linux-riscv64-lp64d.so.1 glibc-2.39_1 riscv64
-ld64.so.2 glibc-2.39_1 ppc64
-ld.so.1 glibc-2.39_1 mips
-ld.so.1 glibc-2.39_1 ppc
-ld-linux-armhf.so.3 glibc-2.39_1
-libresolv.so.2 glibc-2.39_1
-libanl.so.1 glibc-2.39_1
-libthread_db.so.1 glibc-2.39_1
-libutil.so.1 glibc-2.39_1
-libnsl.so.1 glibc-2.39_1
-libnss_db.so.2 glibc-2.39_1
-libnss_files.so.2 glibc-2.39_1
-libnss_compat.so.2 glibc-2.39_1
-libnss_dns.so.2 glibc-2.39_1
-libnss_hesiod.so.2 glibc-2.39_1
-libBrokenLocale.so.1 glibc-2.39_1
-libmemusage.so glibc-2.39_1
-libSegFault.so glibc-2.39_1
-libpcprofile.so glibc-2.39_1
-libcidn.so.1 glibc-2.39_1
-libmvec.so.1 glibc-2.39_1
+libc.so.6 glibc-2.41_1
+libm.so.6 glibc-2.41_1
+libpthread.so.0 glibc-2.41_1
+librt.so.1 glibc-2.41_1
+libdl.so.2 glibc-2.41_1
+ld-linux-x86-64.so.2 glibc-2.41_1 x86_64
+ld-linux.so.2 glibc-2.41_1 i686
+ld-linux.so.3 glibc-2.41_1 armv5tel
+ld-linux-aarch64.so.1 glibc-2.41_1 aarch64
+ld-linux-riscv64-lp64d.so.1 glibc-2.41_1 riscv64
+ld64.so.2 glibc-2.41_1 ppc64
+ld.so.1 glibc-2.41_1 mips
+ld.so.1 glibc-2.41_1 ppc
+ld-linux-armhf.so.3 glibc-2.41_1
+libresolv.so.2 glibc-2.41_1
+libanl.so.1 glibc-2.41_1
+libthread_db.so.1 glibc-2.41_1
+libutil.so.1 glibc-2.41_1
+libnsl.so.1 glibc-2.41_1
+libnss_db.so.2 glibc-2.41_1
+libnss_files.so.2 glibc-2.41_1
+libnss_compat.so.2 glibc-2.41_1
+libnss_dns.so.2 glibc-2.41_1
+libnss_hesiod.so.2 glibc-2.41_1
+libBrokenLocale.so.1 glibc-2.41_1
+libmemusage.so glibc-2.41_1
+libSegFault.so glibc-2.41_1
+libpcprofile.so glibc-2.41_1
+libcidn.so.1 glibc-2.41_1
+libmvec.so.1 glibc-2.41_1
libcrypt.so.2 libxcrypt-4.4.36_1
libcrypt.so.1 libxcrypt-compat-4.4.36_1
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From 62a82b2861fa0bafbda7a64bd001b1406fd66a5d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 05/39] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 04e22c4fb01166..922d009ad8c36e 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=23
+revision=24
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From e330781ba7455271b65745d906069a46a996990a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 06/39] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 5d3ba2a7a9feb4501e3f64d6a6f3c5c22b7b829a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 07/39] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 3a6883c5291021e2e16c6c37164daf10d61f6b64 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 08/39] gcc-multilib: update to 14.2.1+20250329.
---
.../patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 62 +++++++++++--------
2 files changed, 37 insertions(+), 27 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..a3f737567de2dd 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,32 +3,41 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.1+20250329
revision=1
-_majorver="${version%.*}"
+_patchver="${version%+*}"
+_minorver="${version%.*}"
+_majorver="${_minorver%.*}"
+hostmakedepends="perl flex tar"
+makedepends="zlib-devel libzstd-devel isl-devel libmpc-devel gmp-devel mpfr-devel
+ glibc-32bit glibc-devel-32bit"
+depends="
+ gcc>=${_minorver}
+ libgcc-32bit>=${_minorver}
+ libgomp-devel-32bit>=${_minorver}
+ libitm-devel-32bit>=${_minorver}
+ libsanitizer-devel-32bit>=${_minorver}
+ libatomic-devel-32bit>=${_minorver}
+ libvtv-devel-32bit>=${_minorver}
+ zlib-32bit glibc-devel-32bit"
short_desc="GNU Compiler Collection (multilib files)"
maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
-
-hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
- glibc-32bit glibc-devel-32bit"
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_majorver}-${version#*+}/gcc-${_majorver}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+checksum=973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
-depends="
- gcc>=${_majorver}
- libgcc-32bit>=${_majorver}
- libgomp-devel-32bit>=${_majorver}
- libitm-devel-32bit>=${_majorver}
- libsanitizer-devel-32bit>=${_majorver}
- libatomic-devel-32bit>=${_majorver}
- libvtv-devel-32bit>=${_majorver}
- zlib-32bit
- glibc-devel-32bit"
replaces="libmpx-devel-32bit>=0 libssp-32bit>=0 libssp-devel-32bit>=0"
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
+
do_configure() {
ldconfig &>/dev/null
@@ -69,6 +78,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
@@ -77,19 +87,19 @@ do_install() {
# Make version a symlink of major version to make all versions
# from the same series work automagically.
- vmkdir usr/include/c++/${_majorver}/${_triplet}
- vmkdir usr/lib/gcc/${_triplet}/${_majorver}
+ vmkdir usr/include/c++/${_minorver}/${_triplet}
+ vmkdir usr/lib/gcc/${_triplet}/${_minorver}
- cp -a ${wrksrc}/${pkgname}-build/usr/lib/gcc/${_pc_triplet}/${version}/32 \
- ${DESTDIR}/usr/lib/gcc/${_triplet}/${_majorver}/
- cp -a ${wrksrc}/${pkgname}-build/usr/include/c++/${version}/${_pc_triplet}/32 \
- ${DESTDIR}/usr/include/c++/${_majorver}/${_triplet}
+ cp -a ${wrksrc}/${pkgname}-build/usr/lib/gcc/${_pc_triplet}/${_patchver}/32 \
+ ${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver}/
+ cp -a ${wrksrc}/${pkgname}-build/usr/include/c++/${_patchver}/${_pc_triplet}/32 \
+ ${DESTDIR}/usr/include/c++/${_minorver}/${_triplet}
- vinstall ${wrksrc}/host-${_pc_triplet}/gcc/specs 644 usr/lib/gcc/${_triplet}/${_majorver}
+ vinstall ${wrksrc}/host-${_pc_triplet}/gcc/specs 644 usr/lib/gcc/${_triplet}/${_minorver}
}
gcc-objc-multilib_package() {
- depends="gcc-multilib>=${_majorver} gcc-objc>=${_majorver} libobjc-devel-32bit>=${_majorver}"
+ depends="gcc-multilib>=${_minorver} gcc-objc>=${_minorver} libobjc-devel-32bit>=${_minorver}"
short_desc="GNU Objective-C compiler (multilib files)"
build_style=meta
}
From 5bdb199aaba6cc276e5641628420df0651847d52 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 09/39] libgccjit: update to 14.2.1+20250329.
---
srcpkgs/libgccjit/template | 44 +++++++++++++-------------------------
1 file changed, 15 insertions(+), 29 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..78de3d222d4433 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,43 +3,29 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.1+20250329
revision=1
-_gmp_version=6.3.0
-_mpfr_version=4.2.0
-_mpc_version=1.3.1
-_isl_version=0.24
-create_wrksrc=yes
+hostmakedepends="tar texinfo perl flex"
+makedepends="zlib-devel libzstd-devel isl-devel libmpc-devel gmp-devel mpfr-devel"
+depends="gcc"
+checkdepends="dejagnu"
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
homepage="https://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-# *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
-distfiles="
- ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
- ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
- ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
- ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
- ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${version%%.*}-${version#*+}/gcc-${version%%.*}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+checksum=973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
nopie=yes
lib32disabled=yes
-makedepends="zlib-devel"
-hostmakedepends="tar texinfo perl flex"
-depends="gcc"
-checkdepends="dejagnu"
-post_extract() {
- mv gcc-*/* .
- mv gmp-${_gmp_version} gmp
- mv mpfr-${_mpfr_version} mpfr
- mv mpc-${_mpc_version} mpc
- mv isl-${_isl_version} isl
-}
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
pre_configure() {
if [ "$XBPS_TARGET_LIBC" = musl ]; then
From 464b7bd24160864be775e47497bc047820863f06 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 10/39] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From baea67d18ca0168d1eb94dc87be8ce8f66f27691 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 22:59:26 -0700
Subject: [PATCH 11/39] openjdk7-bootstrap: fix build with gcc14
---
srcpkgs/openjdk7-bootstrap/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index 03d91bebf4934a..a4e4ff46091b65 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -86,7 +86,7 @@ skip_extraction="
shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
nocross=yes
-CFLAGS="-fcommon"
+CFLAGS="-fcommon -fpermissive"
post_extract() {
mv icedtea-*/* .
From d242e8ef86581618e9a8bdf8aa8317fbcfc2676d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 23:00:00 -0700
Subject: [PATCH 12/39] openjdk8: fix build with gcc14
---
.../patches/105_implicit_declaration.patch | 25 +++++++++++++++++++
.../openjdk8/patches/106_int_conversion.patch | 16 ++++++++++++
srcpkgs/openjdk8/template | 2 ++
3 files changed, 43 insertions(+)
create mode 100644 srcpkgs/openjdk8/patches/105_implicit_declaration.patch
create mode 100644 srcpkgs/openjdk8/patches/106_int_conversion.patch
diff --git a/srcpkgs/openjdk8/patches/105_implicit_declaration.patch b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
new file mode 100644
index 00000000000000..7a04c21ec910c3
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
@@ -0,0 +1,25 @@
+The isnanf BSD extension was deprecated with the
+introduction of isnan in c99 and isn't implemented in musl.
+Use the isnan function instead.
+
+--- a/jdk/src/solaris/native/common/jdk_util_md.h
++++ b/jdk/src/solaris/native/common/jdk_util_md.h
+@@ -37,7 +37,7 @@
+ #define ISNAND(d) isnan(d)
+ #elif defined(__linux__) || defined(_ALLBSD_SOURCE)
+ #include <math.h>
+-#define ISNANF(f) isnanf(f)
++#define ISNANF(f) isnan(f)
+ #define ISNAND(d) isnan(d)
+ #elif defined(_AIX)
+ #include <math.h>
+--- a/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
++++ b/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
+@@ -29,6 +29,7 @@
+ #include "jlong.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <dlfcn.h>
+ #include <errno.h>
diff --git a/srcpkgs/openjdk8/patches/106_int_conversion.patch b/srcpkgs/openjdk8/patches/106_int_conversion.patch
new file mode 100644
index 00000000000000..2c57cb01353072
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/106_int_conversion.patch
@@ -0,0 +1,16 @@
+--- a/jdk/src/share/bin/splashscreen_stubs.c
++++ b/jdk/src/share/bin/splashscreen_stubs.c
+@@ -61,11 +61,11 @@
+ #define INVOKEV(name) _INVOKE(name, ,;)
+
+ int DoSplashLoadMemory(void* pdata, int size) {
+- INVOKE(SplashLoadMemory, NULL)(pdata, size);
++ INVOKE(SplashLoadMemory, 0)(pdata, size);
+ }
+
+ int DoSplashLoadFile(const char* filename) {
+- INVOKE(SplashLoadFile, NULL)(filename);
++ INVOKE(SplashLoadFile, 0)(filename);
+ }
+
+ void DoSplashInit(void) {
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 3f01bd949417d9..045f78ad363dab 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -78,6 +78,8 @@ fi
# enabling ccache segfaults gcc
export CCACHE_DISABLE=1
+CFLAGS="-Wno-incompatible-pointer-types"
+
post_extract() {
chmod +x configure
}
From b44ac6a25164afb79fd62e12db6c4d7b721ecb4b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 13/39] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From 4f1e3126a81d84b01d0c8e69a511155664876148 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:09 -0700
Subject: [PATCH 14/39] cross-aarch64-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-aarch64-linux-gnu/template | 25 +++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..b0e9daceffe8a0 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -15,14 +15,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From fa0377ffee7c1d4f13bf13c405e1f4f8ffcc142a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:09 -0700
Subject: [PATCH 15/39] cross-aarch64-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-aarch64-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..d6eb1046c12884 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,15 +16,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From af93e0fc8a440ef2bc4be0c93c7a096cb74039a8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:09 -0700
Subject: [PATCH 16/39] cross-arm-linux-gnueabi: update to gcc 14.2.1+20250329
---
srcpkgs/cross-arm-linux-gnueabi/template | 25 +++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..8c363a24847c6e 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From d669955fceaf0471025bc03901dab4705526d174 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:09 -0700
Subject: [PATCH 17/39] cross-arm-linux-gnueabihf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-arm-linux-gnueabihf/template | 25 ++++++++++++----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..3cdebc157e2e8a 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From fb99e4616b84e6280a5726509b1bda7364b22e9e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 18/39] cross-arm-linux-musleabi: update to gcc 14.2.1+20250329
---
srcpkgs/cross-arm-linux-musleabi/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..a3b1bf8605042d 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -17,15 +17,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 21418c9f79fa228a59f4cc496715eec74b8a13bb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 19/39] cross-arm-linux-musleabihf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-arm-linux-musleabihf/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..ea99a20947d4e6 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -17,15 +17,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 560c3471850f26dbec5bd7501464912684f84ef3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 20/39] cross-armv7l-linux-gnueabihf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 25 +++++++++++--------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..ad9a6271551716 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -15,14 +15,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 479d31ba0139dbb989cfc3bd04b25b1083982bab Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 21/39] cross-armv7l-linux-musleabihf: update to gcc
14.2.1+20250329
---
.../cross-armv7l-linux-musleabihf/template | 21 +++++++++++--------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..cb526eba5304d2 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,15 +16,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 5ff425404ea08428284febe2653a71c4a1bbbcd5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 22/39] cross-i686-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-i686-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..6173a2c5efb778 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -15,15 +15,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From fb1423b6e81c0c23b88f846405c6e36f59f8b737 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 23/39] cross-i686-pc-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-i686-pc-linux-gnu/template | 25 +++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..f5280bad74e1f5 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -14,14 +14,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 85e153a97eb84578ebec72cb3571132c9bbb4fbc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 24/39] cross-mips-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-mips-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..65d89c83de2c8b 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 139d9f613d5b24f2c53fb603021adbdba9561036 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 25/39] cross-mips-linux-muslhf: update to gcc 14.2.1+20250329
---
srcpkgs/cross-mips-linux-muslhf/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..9fadaf148799e4 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="hipperson0 <hipperson0@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 246edc6c0b33fd87ea62c9e6bf3cbd1c5365897e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 26/39] cross-mipsel-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-mipsel-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..eebfd8913e2827 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 10c8947a92cf24598016c68078bed094465b76bd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 27/39] cross-mipsel-linux-muslhf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-mipsel-linux-muslhf/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..a194e2b56927c8 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From d786b0ccadc9952f3c99572d21e58dc641549759 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 28/39] cross-powerpc-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-powerpc-linux-gnu/template | 25 +++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..a2093d3507ba8c 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Thomas Batten <stenstorpmc@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7723ac58b582b8a924d750bcf78dfcf0725166eb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 29/39] cross-powerpc-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-powerpc-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..e14ffcf8ba26b3 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Thomas Batten <stenstorpmc@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 6355e9a3e2d294c5b5236f85e22afa11866f26c4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 30/39] cross-powerpc64-linux-gnu: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64-linux-gnu/template | 25 ++++++++++++----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..43fd15796716a1 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 4897f1a486deb3bd9cabbf62e5629508cec3c122 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 31/39] cross-powerpc64-linux-musl: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..156335883d6caf 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -18,15 +18,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From b1ccc951f259baad99987d2253f932292500a458 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 32/39] cross-powerpc64le-linux-gnu: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 25 +++++++++++---------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..5b59960a6e8e21 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f022e2306694bb5bfca3a21af8769504e764b624 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 33/39] cross-powerpc64le-linux-musl: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64le-linux-musl/template | 21 +++++++++++--------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..7ef7fbfda4e466 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -18,15 +18,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 7ff11585102cbc3c3ae9c9f395186ed13a297999 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 34/39] cross-powerpcle-linux-gnu: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpcle-linux-gnu/template | 27 ++++++++++++----------
1 file changed, 15 insertions(+), 12 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..7b8f24ef7d45af 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -16,15 +16,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
@@ -37,7 +40,7 @@ if [ "$XBPS_TARGET_MACHINE" = "ppcle" ]; then
broken="Can't build crosstoolchain to itself"
fi
-broken="glibc uses big-endian specific instructions on 32-bit powerpc"
+broken="glibc uses big-endian specific instructions (stmw and lmw) in 32-bit powerpc clone.S"
cross-powerpcle-linux-gnu-libc_package() {
short_desc+=" - glibc files"
From 74b0a2e6166f9cb0b9d9b1e730d240b47cf3201b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:12 -0700
Subject: [PATCH 35/39] cross-powerpcle-linux-musl: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpcle-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..abf1c5b4b4cd5a 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From adc46a6008fc0e18ddf339bee5784d36bff49fe8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:12 -0700
Subject: [PATCH 36/39] cross-riscv64-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-riscv64-linux-gnu/template | 25 +++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..64664233f9d8dc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -15,14 +15,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 522712e2ded89a0bc7cb694c7426a701e7bbcd0d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:12 -0700
Subject: [PATCH 37/39] cross-riscv64-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-riscv64-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..c6f885caf7218d 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,15 +16,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 9bdf1519ef2e36118a2e47a859dd509fa9e31d88 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:12 -0700
Subject: [PATCH 38/39] cross-x86_64-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-x86_64-linux-gnu/template | 25 ++++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..db352f9f624b10 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -14,14 +14,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 83b622c873911a34ac251c34521888125c22b539 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:12 -0700
Subject: [PATCH 39/39] cross-x86_64-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-x86_64-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..b782841cff337d 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -15,15 +15,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.1+20250329.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (42 preceding siblings ...)
2025-04-06 9:33 ` [PR PATCH] [Updated] " oreo639
@ 2025-04-06 9:37 ` oreo639
2025-04-06 9:38 ` oreo639
` (19 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-04-06 9:37 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 7675 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.1+20250329.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
You can test the ISOs here: https://devspace.voidlinux.org/oreo639/live/gcc14/
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp https://github.com/void-linux/void-packages/commit/30e9e29bb5a348b2c6b7a9b3e29c13d2bc28cfae
- [x] libsasl https://github.com/void-linux/void-packages/commit/6f71c8889cc8a79411ddaca582250e19718f12da
- [x] nvi https://github.com/void-linux/void-packages/commit/a51ebf219534e5420ffc83d5a89b43dc992c9b81
- [x] xbps https://github.com/void-linux/void-packages/commit/73c8cdee1d9b05980cdc0763294cce9372612ba4
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
- [x] gtk+ https://github.com/void-linux/void-packages/commit/ac57a55a5fda78618aec2ec7bb3c27404834ed04
- [x] gtk+3 https://github.com/void-linux/void-packages/pull/54187
- [x] libaom https://github.com/void-linux/void-packages/commit/fcbb94217389f64fea4c536959983814ebaadae4
- [x] perl-Tk https://github.com/void-linux/void-packages/commit/67aeb9d9b2b077d9b7f25902bbf079c1569a2633
- [x] gnu-efi-libs https://github.com/void-linux/void-packages/commit/92b2642bc8d1871605f824064863149985419010
- [x] syslinux https://github.com/void-linux/void-packages/commit/49af74a1dfb32ba1de556f4491b3870179c80872
- [x] recode https://github.com/void-linux/void-packages/pull/54707
- [x] libcddb https://github.com/void-linux/void-packages/commit/eeae3026d1356e1ac5d0547e19e2742a335ae9ca
- [x] vim https://github.com/void-linux/void-packages/pull/54706
- [x] vmaf https://github.com/void-linux/void-packages/pull/54721
- [x] audit https://github.com/void-linux/void-packages/pull/54722
- [x] aalib https://github.com/void-linux/void-packages/commit/d7769fe6d757a62fbfc0998d5cbde5dec8a7db11
- [x] cppdap (outdated vendored gtest, patch merged upstream) https://github.com/void-linux/void-packages/commit/a2c9d8ac073e9f40d6b7b1bb3df108c0d46481bb
- [x] snappy (outdated vendored gtest, upstream rejected patch stating that downstreams running their tests is not supported and that downstreams should either ship their own tests/patches or just disable them) https://github.com/void-linux/void-packages/commit/4e73161431672d245a8d558f269a74f1ab363cc8
- [x] openjdk7-bootstrap
- [x] openjdk8
- [x] gimp https://github.com/void-linux/void-packages/commit/d173951120b07bc57171f6962c92c0877becd0d8
- [x] xf86-video-nouveau https://github.com/void-linux/void-packages/pull/54720
- [x] libao https://github.com/void-linux/void-packages/commit/b9c6b010a201211c0ffba8a821f0021b9bdaf376
- [x] accountsservice https://github.com/void-linux/void-packages/commit/a1ca8cef0b2e98ba22c4d632685f85c5d0cde4c1
- Done with base-syste/xfce
- [x] zeitgeist
- [x] libgee
- [x] cogl
- [x] clutter-gst3
- [x] telepathy-glib
- [x] xen https://github.com/void-linux/void-packages/pull/54751
- [x] vde2 https://github.com/void-linux/void-packages/pull/54750
- Sagemath Related
- [x] gf2x
- [x] linbox
- [x] givaro
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [x] elfutils https://github.com/void-linux/void-packages/pull/54566
- [x] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [x] sane https://github.com/void-linux/void-packages/pull/54614
- [x] mdadm https://github.com/void-linux/void-packages/commit/10694f08c471b2701b3c275540b0c665f67c8b9b
- [x] pulseaudio (broken due to configure checks detecting presence of open64, this is fixed in musl 1.2.x https://github.com/bminor/musl/commit/246f1c811448f37a44b41cd8df8d0ef9736d95f4 https://github.com/bminor/musl/commit/50ab830633134dac99011219f0210ee2759ffbde) https://github.com/void-linux/void-packages/commit/b87ec8f3ca216b6d9cfb4836f236fca13f45c2ab
- [x] gpm
- [x] linux-tools https://github.com/void-linux/void-packages/commit/8c670d7a13a3d6783e23624bda033ef898cafd72
- [x] v4l-utils (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg6 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] gst-plugins-good1 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] libcdio (fseek64, also broken on i686-glibc) https://github.com/void-linux/void-packages/pull/54724
- [x] gcr (getpass) https://github.com/void-linux/void-packages/commit/a40788b2db81ceba7e4a9f75e1c120efd7577600
- [x] libndp https://github.com/void-linux/void-packages/commit/580546374e10b6847a66bfb4d9f27579d5112902
- [x] samba https://github.com/void-linux/void-packages/commit/0900507d38bfc7963d7b6c1a7b04341ae987f2d2
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration instead of segfaulting later due to implicit pointer truncation. This is good, but ofc, packages need to be checked for this.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, please test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 188601 bytes --]
From 966e6a37cbaa962da5a02dabf3a0d5d03cd97602 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Tue, 28 May 2024 15:31:49 -0400
Subject: [PATCH 01/40] xbps-src: add option to use distfiles mirror as a
fallback
This adds an optional configuration to add a fallback distfiles mirror
The idea is that normally, distfiles should be fetched from the urls in
the template. However, occasionally the urls have rotted, or are simply
down temporairily, in which case the fetch will fail. A workaround to
this has been to use the $XBPS_DISTFILES_MIRROR option, however the
downside to this is that it is always tried first, and 99% of the time isn't
needed.
This adds the $XBPS_DISTFILES_FALLBACK option, which can be set to an
addiontional list of mirrors which will be attempted after both
$XBPS_DISTFILES_MIRROR, and the urls in the template have failed to
fetch the distfiles
Co-authored-by: oreo639 <oreo6391@gmail.com>
---
common/hooks/do-fetch/00-distfiles.sh | 15 +++++++++------
xbps-src | 10 +++++++---
2 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/common/hooks/do-fetch/00-distfiles.sh b/common/hooks/do-fetch/00-distfiles.sh
index 1adb86a5167823..2065d5442a3a12 100644
--- a/common/hooks/do-fetch/00-distfiles.sh
+++ b/common/hooks/do-fetch/00-distfiles.sh
@@ -128,11 +128,11 @@ link_cksum() {
}
try_mirrors() {
- local curfile="$1" distfile="$2" cksum="$3" f="$4"
+ local curfile="$1" distfile="$2" cksum="$3" f="$4" mirror_list="$5"
local filesum basefile mirror path scheme good
- [ -z "$XBPS_DISTFILES_MIRROR" ] && return 1
+ [ -z "$mirror_list" ] && return 1
basefile="${f##*/}"
- for mirror in $XBPS_DISTFILES_MIRROR; do
+ for mirror in $mirror_list; do
scheme="file"
if [[ $mirror == *://* ]]; then
scheme="${mirror%%:/*}"
@@ -148,8 +148,8 @@ try_mirrors() {
continue
fi
fi
- if [[ "$mirror" == *voidlinux* ]]; then
- # For distfiles.voidlinux.* append the subdirectory
+ if [[ "$mirror" == *sources.voidlinux.* ]]; then
+ # For sources.voidlinux.* append the subdirectory
mirror="$mirror/$pkgname-$version"
fi
msg_normal "$pkgver: fetching distfile '$curfile' from mirror '$mirror'...\n"
@@ -286,11 +286,14 @@ hook() {
fi
# If distfile does not exist, download it from a mirror location.
- if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}"; then
+ if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}" "$XBPS_DISTFILES_MIRROR"; then
continue
fi
if ! try_urls "$curfile"; then
+ if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}" "$XBPS_DISTFILES_FALLBACK"; then
+ continue
+ fi
msg_error "$pkgver: failed to fetch '$curfile'.\n"
fi
done
diff --git a/xbps-src b/xbps-src
index c17270b62ee4b5..1ce830c7bf9c18 100755
--- a/xbps-src
+++ b/xbps-src
@@ -343,10 +343,11 @@ read_pkg() {
}
setup_distfiles_mirror() {
+ local mirror_list="$1"
local mirror scheme path
# Scheme file:// mirror locations only work with uchroot
- for mirror in $XBPS_DISTFILES_MIRROR; do
+ for mirror in $mirror_list; do
scheme="file"
if [[ "$mirror" == *://* ]]; then
scheme="${mirror%%://*}"
@@ -696,7 +697,7 @@ export XBPS_SHUTILSDIR XBPS_CROSSPFDIR XBPS_TRIGGERSDIR \
XBPS_LIBEXECDIR XBPS_DISTDIR XBPS_DISTFILES_MIRROR XBPS_ALLOW_RESTRICTED \
XBPS_USE_GIT_COMMIT_DATE XBPS_PKG_COMPTYPE XBPS_REPO_COMPTYPE \
XBPS_BUILDHELPERDIR XBPS_USE_BUILD_MTIME XBPS_BUILD_ENVIRONMENT \
- XBPS_PRESERVE_PKGS XBPS_IGNORE_BROKENNESS
+ XBPS_PRESERVE_PKGS XBPS_IGNORE_BROKENNESS XBPS_DISTFILES_FALLBACK
for i in REPOSITORY DESTDIR BUILDDIR SRCDISTDIR; do
eval val="\$XBPS_$i"
@@ -760,7 +761,10 @@ done
if [ -z "$IN_CHROOT" ]; then
trap 'exit_func' INT TERM
if [ -n "$XBPS_DISTFILES_MIRROR" ]; then
- setup_distfiles_mirror
+ setup_distfiles_mirror "$XBPS_DISTFILES_MIRROR"
+ fi
+ if [ -n "$XBPS_DISTFILES_FALLBACK" ]; then
+ setup_distfiles_mirror "$XBPS_DISTFILES_FALLBACK"
fi
fi
From 91019a9ff783286ef82c3f00f8d91cc26267e03c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 02/40] binutils: update to 2.44.
---
srcpkgs/binutils/template | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..024f8e5c634dd7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
@@ -73,8 +73,7 @@ do_configure() {
esac
# target archs supported by Void
- # borked: riscv64 (gold doesn't support it)
- void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,x86_64"
+ void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,riscv64,x86_64"
conf+=" --enable-targets=$(echo "$void_targets" | sed -E -e 's/(,|$)/-linux-gnu\1/g'),${extra_targets}"
if [ "$build_option_all_targets" ]; then
@@ -107,7 +106,6 @@ do_configure() {
--enable-threads \
--enable-plugins \
--enable-relro \
- --enable-gold \
--enable-new-dtags \
--enable-deterministic-archives \
--enable-64-bit-bfd \
From 4d719866ed4757b7260b1766816c2d7d43d770aa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 03/40] gcc: update to 14.2.1+20250329.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ---------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 -----
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 --
.../patches/fix-pretty-printer-warnings.patch | 125 ----
.../gcc/patches/libstdcxx-tzdb-z-format.patch | 563 ------------------
srcpkgs/gcc/template | 109 ++--
7 files changed, 70 insertions(+), 1232 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
delete mode 100644 srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
diff --git a/common/shlibs b/common/shlibs
index a51d54d5472096..26f9ead7a32c95 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.40 perl-5.40.1_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch b/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
deleted file mode 100644
index 0deb99ac6a2df2..00000000000000
--- a/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
+++ /dev/null
@@ -1,563 +0,0 @@
-From 5ceea2ac106d6dd1aa8175670b15a801316cf1c9 Mon Sep 17 00:00:00 2001
-From: Jonathan Wakely <jwakely@redhat.com>
-Date: Tue, 30 Apr 2024 09:52:13 +0100
-Subject: [PATCH] libstdc++: Fix std::chrono::tzdb to work with vanguard format
-
-I found some issues in the std::chrono::tzdb parser by testing the
-tzdata "vanguard" format, which uses new features that aren't enabled in
-the "main" and "rearguard" data formats.
-
-Since 2024a the keyword "minimum" is no longer valid for the FROM and TO
-fields in a Rule line, which means that "m" is now a valid abbreviation
-for "maximum". Previously we expected either "mi" or "ma". For backwards
-compatibility, a FROM field beginning with "mi" is still supported and
-is treated as 1900. The "maximum" keyword is only allowed in TO now,
-because it makes no sense in FROM. To support these changes the
-minmax_year and minmax_year2 classes for parsing FROM and TO are
-replaced with a single years_from_to class that reads both fields.
-
-The vanguard format makes use of %z in Zone FORMAT fields, which caused
-an exception to be thrown from ZoneInfo::set_abbrev because no % or /
-characters were expected when a Zone doesn't use a named Rule. The
-ZoneInfo::to(sys_info&) function now uses format_abbrev_str to replace
-any %z with the current offset. Although format_abbrev_str also checks
-for %s and STD/DST formats, those only make sense when a named Rule is
-in effect, so won't occur when ZoneInfo::to(sys_info&) is used.
-
-Since making this change on trunk, the tzdata-2024b release started
-using %z in the main format, not just vanguard. This makes a backport to
-release branches necessary (see PR 116657).
-
-This change also implements a feature that has always been missing from
-time_zone::_M_get_sys_info: finding the Rule that is active before the
-specified time point, so that we can correctly handle %s in the FORMAT
-for the first new sys_info that gets created. This requires implementing
-a poorly documented feature of zic, to get the LETTERS field from a
-later transition, as described at
-https://mm.icann.org/pipermail/tz/2024-April/058891.html
-In order for this to work we need to be able to distinguish an empty
-letters field (as used by CE%sT where the variable part is either empty
-or "S") from "the letters field is not known for this transition". The
-tzdata file uses "-" for an empty letters field, which libstdc++ was
-previously replacing with "" when the Rule was parsed. Instead, we now
-preserve the "-" in the Rule object, so that "" can be used for the case
-where we don't know the letters (and so need to decide it).
-
-libstdc++-v3/ChangeLog:
-
- * src/c++20/tzdb.cc (minmax_year, minmax_year2): Remove.
- (years_from_to): New class replacing minmax_year and
- minmax_year2.
- (format_abbrev_str, select_std_or_dst_abbrev): Move earlier in
- the file. Handle "-" for letters.
- (ZoneInfo::to): Use format_abbrev_str to expand %z.
- (ZoneInfo::set_abbrev): Remove exception. Change parameter from
- reference to value.
- (operator>>(istream&, Rule&)): Do not clear letters when it
- contains "-".
- (time_zone::_M_get_sys_info): Add missing logic to find the Rule
- in effect before the time point.
- * testsuite/std/time/tzdb/1.cc: Adjust for vanguard format using
- "GMT" as the Zone name, not as a Link to "Etc/GMT".
- * testsuite/std/time/time_zone/sys_info_abbrev.cc: New test.
-
-(cherry picked from commit 0ca8d56f2085715f27ee536c6c344bc47af49cdd)
----
- libstdc++-v3/src/c++20/tzdb.cc | 265 +++++++++++-------
- .../std/time/time_zone/sys_info_abbrev.cc | 106 +++++++
- libstdc++-v3/testsuite/std/time/tzdb/1.cc | 6 +-
- 3 files changed, 274 insertions(+), 103 deletions(-)
- create mode 100644 libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-
-diff --git a/libstdc++-v3/src/c++20/tzdb.cc b/libstdc++-v3/src/c++20/tzdb.cc
-index e058caf27d89..034e72f02743 100644
---- a/libstdc++-v3/src/c++20/tzdb.cc
-+++ b/libstdc++-v3/src/c++20/tzdb.cc
-@@ -342,51 +342,103 @@ namespace std::chrono
- friend istream& operator>>(istream&, on_day&);
- };
-
-- // Wrapper for chrono::year that reads a year, or one of the keywords
-- // "minimum" or "maximum", or an unambiguous prefix of a keyword.
-- struct minmax_year
-+ // Wrapper for two chrono::year values, which reads the FROM and TO
-+ // fields of a Rule line. The FROM field is a year and TO is a year or
-+ // one of the keywords "maximum" or "only" (or an abbreviation of those).
-+ // For backwards compatibility, the keyword "minimum" is recognized
-+ // for FROM and interpreted as 1900.
-+ struct years_from_to
- {
-- year& y;
-+ year& from;
-+ year& to;
-
-- friend istream& operator>>(istream& in, minmax_year&& y)
-+ friend istream& operator>>(istream& in, years_from_to&& yy)
- {
-- if (ws(in).peek() == 'm') // keywords "minimum" or "maximum"
-+ string s;
-+ auto c = ws(in).peek();
-+ if (c == 'm') [[unlikely]] // keyword "minimum"
- {
-- string s;
-- in >> s; // extract the rest of the word, but only look at s[1]
-- if (s[1] == 'a')
-- y.y = year::max();
-- else if (s[1] == 'i')
-- y.y = year::min();
-- else
-- in.setstate(ios::failbit);
-+ in >> s; // extract the rest of the word
-+ yy.from = year(1900);
-+ }
-+ else if (int num = 0; in >> num) [[likely]]
-+ yy.from = year{num};
-+
-+ c = ws(in).peek();
-+ if (c == 'm') // keyword "maximum"
-+ {
-+ in >> s; // extract the rest of the word
-+ yy.to = year::max();
-+ }
-+ else if (c == 'o') // keyword "only"
-+ {
-+ in >> s; // extract the rest of the word
-+ yy.to = yy.from;
- }
- else if (int num = 0; in >> num)
-- y.y = year{num};
-+ yy.to = year{num};
-+
- return in;
- }
- };
-
-- // As above for minmax_year, but also supports the keyword "only",
-- // meaning that the TO year is the same as the FROM year.
-- struct minmax_year2
-+ bool
-+ select_std_or_dst_abbrev(string& abbrev, minutes save)
- {
-- minmax_year to;
-- year from;
-+ if (size_t pos = abbrev.find('/'); pos != string::npos)
-+ {
-+ // Select one of "STD/DST" for standard or daylight.
-+ if (save == 0min)
-+ abbrev.erase(pos);
-+ else
-+ abbrev.erase(0, pos + 1);
-+ return true;
-+ }
-+ return false;
-+ }
-
-- friend istream& operator>>(istream& in, minmax_year2&& y)
-- {
-- if (ws(in).peek() == 'o') // keyword "only"
-- {
-- string s;
-- in >> s; // extract the whole keyword
-- y.to.y = y.from;
-- }
-- else
-- in >> std::move(y.to);
-- return in;
-- }
-- };
-+ // Set the sys_info::abbrev string by expanding any placeholders.
-+ void
-+ format_abbrev_str(sys_info& info, string_view letters = {})
-+ {
-+ if (size_t pos = info.abbrev.find('%'); pos != string::npos)
-+ {
-+ if (info.abbrev[pos + 1] == 's')
-+ {
-+ // Expand "%s" to the variable part, given by Rule::letters.
-+ if (letters == "-")
-+ info.abbrev.erase(pos, 2);
-+ else
-+ info.abbrev.replace(pos, 2, letters);
-+ }
-+ else if (info.abbrev[pos + 1] == 'z')
-+ {
-+ // Expand "%z" to the UT offset as +/-hh, +/-hhmm, or +/-hhmmss.
-+ hh_mm_ss<seconds> t(info.offset);
-+ string z(1, "+-"[t.is_negative()]);
-+ long val = t.hours().count();
-+ int digits = 2;
-+ if (int m = t.minutes().count())
-+ {
-+ digits = 4;
-+ val *= 100;
-+ val += m;
-+ if (int s = t.seconds().count())
-+ {
-+ digits = 6;
-+ val *= 100;
-+ val += s;
-+ }
-+ }
-+ auto sval = std::to_string(val);
-+ z += string(digits - sval.size(), '0');
-+ z += sval;
-+ info.abbrev.replace(pos, 2, z);
-+ }
-+ }
-+ else
-+ select_std_or_dst_abbrev(info.abbrev, info.save);
-+ }
-
- // A time zone information record.
- // Zone NAME STDOFF RULES FORMAT [UNTIL]
-@@ -462,6 +514,7 @@ namespace std::chrono
- info.offset = offset();
- info.save = minutes(m_save);
- info.abbrev = format();
-+ format_abbrev_str(info); // expand %z
- return true;
- }
-
-@@ -469,12 +522,9 @@ namespace std::chrono
- friend class time_zone;
-
- void
-- set_abbrev(const string& abbrev)
-+ set_abbrev(string abbrev)
- {
-- // In practice, the FORMAT field never needs expanding here.
-- if (abbrev.find_first_of("/%") != abbrev.npos)
-- __throw_runtime_error("std::chrono::time_zone: invalid data");
-- m_buf = abbrev;
-+ m_buf = std::move(abbrev);
- m_pos = 0;
- m_expanded = true;
- }
-@@ -544,9 +594,7 @@ namespace std::chrono
-
- // Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
-
-- in >> quoted(rule.name)
-- >> minmax_year{rule.from}
-- >> minmax_year2{rule.to, rule.from};
-+ in >> quoted(rule.name) >> years_from_to{rule.from, rule.to};
-
- if (char type; in >> type && type != '-')
- in.setstate(ios::failbit);
-@@ -557,7 +605,7 @@ namespace std::chrono
- if (save_time.indicator != at_time::Wall)
- {
- // We don't actually store the save_time.indicator, because we
-- // assume that it's always deducable from the actual offset value.
-+ // assume that it's always deducible from the offset value.
- auto expected = save_time.time == 0s
- ? at_time::Standard
- : at_time::Daylight;
-@@ -567,8 +615,6 @@ namespace std::chrono
- rule.save = save_time.time;
-
- in >> rule.letters;
-- if (rule.letters == "-")
-- rule.letters.clear();
- return in;
- }
-
-@@ -714,58 +760,6 @@ namespace std::chrono
- #endif // TZDB_DISABLED
- };
-
--#ifndef TZDB_DISABLED
-- namespace
-- {
-- bool
-- select_std_or_dst_abbrev(string& abbrev, minutes save)
-- {
-- if (size_t pos = abbrev.find('/'); pos != string::npos)
-- {
-- // Select one of "STD/DST" for standard or daylight.
-- if (save == 0min)
-- abbrev.erase(pos);
-- else
-- abbrev.erase(0, pos + 1);
-- return true;
-- }
-- return false;
-- }
--
-- // Set the sys_info::abbrev string by expanding any placeholders.
-- void
-- format_abbrev_str(sys_info& info, string_view letters = {})
-- {
-- if (size_t pos = info.abbrev.find("%s"); pos != string::npos)
-- {
-- // Expand "%s" to the variable part, given by Rule::letters.
-- info.abbrev.replace(pos, 2, letters);
-- }
-- else if (size_t pos = info.abbrev.find("%z"); pos != string::npos)
-- {
-- // Expand "%z" to the UT offset as +/-hh, +/-hhmm, or +/-hhmmss.
-- hh_mm_ss<seconds> t(info.offset);
-- string z(1, "+-"[t.is_negative()]);
-- long val = t.hours().count();
-- if (minutes m = t.minutes(); m != m.zero())
-- {
-- val *= 100;
-- val += m.count();
-- if (seconds s = t.seconds(); s != s.zero())
-- {
-- val *= 100;
-- val += s.count();
-- }
-- }
-- z += std::to_string(val);
-- info.abbrev.replace(pos, 2, z);
-- }
-- else
-- select_std_or_dst_abbrev(info.abbrev, info.save);
-- }
-- }
--#endif // TZDB_DISABLED
--
- // Implementation of std::chrono::time_zone::get_info(const sys_time<D>&)
- sys_info
- time_zone::_M_get_sys_info(sys_seconds tp) const
-@@ -834,12 +828,72 @@ namespace std::chrono
- info.abbrev = ri.format();
-
- string_view letters;
-- if (i != infos.begin())
-+ if (i != infos.begin() && i[-1].expanded())
-+ letters = i[-1].next_letters();
-+
-+ if (letters.empty())
- {
-- if (i[-1].expanded())
-- letters = i[-1].next_letters();
-- // XXX else need to find Rule active before this time and use it
-- // to know the initial offset, save, and letters.
-+ sys_seconds t = info.begin - seconds(1);
-+ const year_month_day date(chrono::floor<days>(t));
-+
-+ // Try to find a Rule active before this time, to get initial
-+ // SAVE and LETTERS values. There may not be a Rule for the period
-+ // before the first DST transition, so find the earliest DST->STD
-+ // transition and use the LETTERS from that.
-+ const Rule* active_rule = nullptr;
-+ sys_seconds active_rule_start = sys_seconds::min();
-+ const Rule* first_std = nullptr;
-+ for (const auto& rule : rules)
-+ {
-+ if (rule.save == minutes(0))
-+ {
-+ if (!first_std)
-+ first_std = &rule;
-+ else if (rule.from < first_std->from)
-+ first_std = &rule;
-+ else if (rule.from == first_std->from)
-+ {
-+ if (rule.start_time(rule.from, {})
-+ < first_std->start_time(first_std->from, {}))
-+ first_std = &rule;
-+ }
-+ }
-+
-+ year y = date.year();
-+
-+ if (y > rule.to) // rule no longer applies at time t
-+ continue;
-+ if (y < rule.from) // rule doesn't apply yet at time t
-+ continue;
-+
-+ sys_seconds rule_start;
-+
-+ seconds offset{}; // appropriate for at_time::Universal
-+ if (rule.when.indicator == at_time::Wall)
-+ offset = info.offset;
-+ else if (rule.when.indicator == at_time::Standard)
-+ offset = ri.offset();
-+
-+ // Time the rule takes effect this year:
-+ rule_start = rule.start_time(y, offset);
-+
-+ if (rule_start >= t && rule.from < y)
-+ {
-+ // Try this rule in the previous year.
-+ rule_start = rule.start_time(--y, offset);
-+ }
-+
-+ if (active_rule_start < rule_start && rule_start < t)
-+ {
-+ active_rule_start = rule_start;
-+ active_rule = &rule;
-+ }
-+ }
-+
-+ if (active_rule)
-+ letters = active_rule->letters;
-+ else if (first_std)
-+ letters = first_std->letters;
- }
-
- const Rule* curr_rule = nullptr;
-@@ -2064,9 +2118,11 @@ namespace std::chrono
- istringstream in2(std::move(rules));
- in2 >> rules_time;
- inf.m_save = duration_cast<minutes>(rules_time.time);
-+ // If the FORMAT is "STD/DST" then we can choose the right one
-+ // now, so that we store a shorter string.
- select_std_or_dst_abbrev(fmt, inf.m_save);
- }
-- inf.set_abbrev(fmt);
-+ inf.set_abbrev(std::move(fmt));
- }
-
- // YEAR [MONTH [DAY [TIME]]]
-@@ -2077,7 +2133,12 @@ namespace std::chrono
- abbrev_month m{January};
- int d = 1;
- at_time t{};
-+ // XXX DAY should support ON format, e.g. lastSun or Sun>=8
- in >> m >> d >> t;
-+ // XXX UNTIL field should be interpreted
-+ // "using the rules in effect just before the transition"
-+ // so might need to store as year_month_day and hh_mm_ss and only
-+ // convert to a sys_time once we know the offset in effect.
- inf.m_until = sys_days(year(y)/m.m/day(d)) + seconds(t.time);
- }
- else
-diff --git a/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc b/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-new file mode 100644
-index 000000000000..f1a8fff02f58
---- /dev/null
-+++ b/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-@@ -0,0 +1,106 @@
-+// { dg-do run { target c++20 } }
-+// { dg-require-effective-target tzdb }
-+// { dg-require-effective-target cxx11_abi }
-+// { dg-xfail-run-if "no weak override on AIX" { powerpc-ibm-aix* } }
-+
-+#include <chrono>
-+#include <fstream>
-+#include <testsuite_hooks.h>
-+
-+static bool override_used = false;
-+
-+namespace __gnu_cxx
-+{
-+ const char* zoneinfo_dir_override() {
-+ override_used = true;
-+ return "./";
-+ }
-+}
-+
-+using namespace std::chrono;
-+
-+void
-+test_format()
-+{
-+ std::ofstream("tzdata.zi") << R"(# version test_1
-+Zone Africa/Bissau -1:2:20 - LMT 1912 Ja 1 1u
-+ -1 - %z 1975
-+ 0 - GMT
-+Zon Some/Zone 1:2:3 - %z 1900
-+ 1:23:45 - %z 1950
-+Zo Another/Zone 1:2:3 - AZ0 1901
-+ 1 Roolz A%sZ 2000
-+ 1 Roolz SAZ/DAZ 2005
-+ 1 Roolz %z
-+Rule Roolz 1950 max - April 1 2 1 D
-+Rul Roolz 1950 max - Oct 1 1 0 S
-+Z Strange/Zone 1 - X%sX 1980
-+ 1 - FOO/BAR 1990
-+ 2:00 - %zzz 1995
-+ 0:9 - %zzz 1996
-+ 0:8:7 - %zzz 1997
-+ 0:6:5.5 - %zzz 1998
-+)";
-+
-+ const auto& db = reload_tzdb();
-+ VERIFY( override_used ); // If this fails then XFAIL for the target.
-+ VERIFY( db.version == "test_1" );
-+
-+ // Test formatting %z as
-+ auto tz = locate_zone("Africa/Bissau");
-+ auto inf = tz->get_info(sys_days(1974y/1/1));
-+ VERIFY( inf.abbrev == "-01" );
-+
-+ tz = locate_zone("Some/Zone");
-+ inf = tz->get_info(sys_days(1899y/1/1));
-+ VERIFY( inf.abbrev == "+010203" );
-+ inf = tz->get_info(sys_days(1955y/1/1));
-+ VERIFY( inf.abbrev == "+012345" );
-+
-+ tz = locate_zone("Another/Zone");
-+ // Test formatting %s as the LETTER/S field from the active Rule.
-+ inf = tz->get_info(sys_days(1910y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1950y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1950y/June/1));
-+ VERIFY( inf.abbrev == "ADZ" );
-+ inf = tz->get_info(sys_days(1999y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1999y/July/1));
-+ VERIFY( inf.abbrev == "ADZ" );
-+ // Test formatting STD/DST according to the active Rule.
-+ inf = tz->get_info(sys_days(2000y/January/2));
-+ VERIFY( inf.abbrev == "SAZ" );
-+ inf = tz->get_info(sys_days(2001y/January/1));
-+ VERIFY( inf.abbrev == "SAZ" );
-+ inf = tz->get_info(sys_days(2001y/July/1));
-+ VERIFY( inf.abbrev == "DAZ" );
-+ // Test formatting %z as the offset determined by the active Rule.
-+ inf = tz->get_info(sys_days(2005y/January/2));
-+ VERIFY( inf.abbrev == "+01" );
-+ inf = tz->get_info(sys_days(2006y/January/1));
-+ VERIFY( inf.abbrev == "+01" );
-+ inf = tz->get_info(sys_days(2006y/July/1));
-+ VERIFY( inf.abbrev == "+02" );
-+
-+ // Test formatting %z, %s and S/D for a Zone with no associated Rules.
-+ tz = locate_zone("Strange/Zone");
-+ inf = tz->get_info(sys_days(1979y/January/1));
-+ VERIFY( inf.abbrev == "XX" ); // No Rule means nothing to use for %s.
-+ inf = tz->get_info(sys_days(1981y/July/1));
-+ VERIFY( inf.abbrev == "FOO" ); // Always standard time means first string.
-+ inf = tz->get_info(sys_days(1994y/July/1));
-+ VERIFY( inf.abbrev == "+02zz" );
-+ inf = tz->get_info(sys_days(1995y/July/1));
-+ VERIFY( inf.abbrev == "+0009zz" );
-+ inf = tz->get_info(sys_days(1996y/July/1));
-+ VERIFY( inf.abbrev == "+000807zz" );
-+ inf = tz->get_info(sys_days(1997y/July/1));
-+ VERIFY( inf.abbrev == "+000606zz" );
-+}
-+
-+int main()
-+{
-+ test_format();
-+}
-diff --git a/libstdc++-v3/testsuite/std/time/tzdb/1.cc b/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-index 5f69e182603d..73d316f55708 100644
---- a/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-+++ b/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-@@ -40,11 +40,15 @@ test_locate()
- const tzdb& db = get_tzdb();
- const time_zone* tz = db.locate_zone("GMT");
- VERIFY( tz != nullptr );
-- VERIFY( tz->name() == "Etc/GMT" );
- VERIFY( tz == std::chrono::locate_zone("GMT") );
- VERIFY( tz == db.locate_zone("Etc/GMT") );
- VERIFY( tz == db.locate_zone("Etc/GMT+0") );
-
-+ // Since 2022f GMT is now a Zone and Etc/GMT a link instead of vice versa,
-+ // but only when using the vanguard format. As of 2024a, the main and
-+ // rearguard formats still have Etc/GMT as a Zone and GMT as a link.
-+ VERIFY( tz->name() == "GMT" || tz->name() == "Etc/GMT" );
-+
- VERIFY( db.locate_zone(db.current_zone()->name()) == db.current_zone() );
- }
-
---
-2.43.5
-
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..938d446e5c61f1 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,57 +3,51 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.1+20250329
+revision=1
+bootstrap=yes
+_patchver="${version%+*}"
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
_mpfr_version=4.2.1
_mpc_version=1.3.1
_isl_version=0.26
-create_wrksrc=yes
short_desc="GNU Compiler Collection"
maintainer="Enno Boland <gottox@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-# *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
-distfiles="
- ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_majorver}-${version#*+}/gcc-${_majorver}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
+skip_extraction="gmp-${_gmp_version}.tar.xz mpfr-${_mpfr_version}.tar.xz
+ mpc-${_mpc_version}.tar.gz isl-${_isl_version}.tar.bz2"
+
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
nopie=yes
lib32disabled=yes
-bootstrap=yes
replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
libssp>=0 libssp-devel>=0"
-_have_gccgo=yes
-_have_libquadmath=no
-
-# MIPS is untested and does not have go in crosstoolchains
-# 32-bit PowerPC seems weirdly broken since the 10.x release
-# 32-bit little endian PowerPC has no support at all (no GOARCH)
-case "$XBPS_TARGET_MACHINE" in
- ppc64*) ;;
- mips*-musl|ppc*) _have_gccgo=no ;;
-esac
-
-case "$XBPS_TARGET_MACHINE" in
- i686*|x86_64*|ppc64le*) _have_libquadmath=yes ;;
-esac
-
if [ "$CHROOT_READY" ]; then
hostmakedepends="tar texinfo perl flex"
else
- _have_gccgo=no
# libzstd fails to link in bootstrap with glibc 2.36
# when zlib has been compiled with glibc 2.32.
LDFLAGS="-lzstd -pthread"
@@ -62,7 +56,6 @@ makedepends="zlib-devel libzstd-devel"
depends="binutils libgcc-devel-${version}_${revision}
libstdc++-devel-${version}_${revision} libatomic-devel-${version}_${revision}"
checkdepends="dejagnu"
-
subpackages="libgcc libgomp libgomp-devel libatomic libatomic-devel"
build_options="ada gnatboot"
@@ -70,18 +63,35 @@ build_options_default="ada"
desc_option_ada="Enable Ada build"
desc_option_gnatboot="Enable Ada bootstrap using adacore.com binaries"
+_have_gccgo=yes
+_have_libquadmath=no
+
+case "$XBPS_TARGET_MACHINE" in
+ i686*|x86_64*|ppc64le*) _have_libquadmath=yes ;;
+esac
+
+# MIPS is untested and does not have go in crosstoolchains
+# 32-bit PowerPC seems weirdly broken since the 10.x release
+# 32-bit little endian PowerPC has no support at all (no GOARCH)
+case "$XBPS_TARGET_MACHINE" in
+ ppc64*) ;;
+ mips*-musl|ppc*) _have_gccgo=no ;;
+esac
+
if [ "$build_option_gnatboot" ]; then
case "$XBPS_TARGET_MACHINE" in
x86_64)
_gnat_tarball="gnat-gpl-2017-x86_64-linux-bin.tar.gz"
distfiles+=" https://community.download.adacore.com/v1/9682e2e1f2f232ce03fe21d77b14c37a0de5649b?filename=$_gnat_tarball>$_gnat_tarball"
checksum+=" b942bcac20dea39748b39f8b624d9619f60a8dee2e8195dbe3829c835b0956e6"
+ skip_extraction+=" $_gnat_tarball"
build_options_default="gnatboot"
;;
i686)
_gnat_tarball="gnat-gpl-2014-x86-linux-bin.tar.gz"
distfiles+=" https://community.download.adacore.com/v1/c5e9e6fdff5cb77ed90cf8c62536653e27c0bed6?filename=$_gnat_tarball>$_gnat_tarball"
checksum+=" 3b693510f5d22a240abb3034934c1adbd80ccd6e4f61a4f491cc408fdfd9c042"
+ skip_extraction+=" $_gnat_tarball"
build_options_default="gnatboot"
;;
esac
@@ -90,10 +100,11 @@ fi
if [ "$CHROOT_READY" ]; then
subpackages+=" gcc-fortran libgfortran-devel libgfortran"
subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
-
if [ "$_have_libquadmath" = "yes" ]; then
subpackages+=" libquadmath libquadmath-devel"
fi
+else
+ _have_gccgo=no
fi
if [ "$_have_gccgo" = "yes" ]; then
@@ -162,18 +173,14 @@ if [ "$CROSS_BUILD" ]; then
fi
post_extract() {
- mv gcc-${version}/* gcc-${version}/.??* .
- rmdir gcc-${version}
- mv gmp-${_gmp_version} gmp
- mv mpfr-${_mpfr_version} mpfr
- mv mpc-${_mpc_version} mpc
- mv isl-${_isl_version} isl
+ vsrcextract -C gmp gmp-${_gmp_version}.tar.xz
+ vsrcextract -C mpfr mpfr-${_mpfr_version}.tar.xz
+ vsrcextract -C mpc mpc-${_mpc_version}.tar.gz
+ vsrcextract -C isl isl-${_isl_version}.tar.bz2
if [ "$build_option_gnatboot" ]; then
- local f="${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_gnat_tarball}"
msg_normal "Extracting ${_gnat_tarball} ...\n"
- mkdir -p ${wrksrc}/gnat-ins
- tar -x -f "$f" --strip-components=1 -C ${wrksrc}/gnat-ins
+ vsrcextract -C gnat-ins ${_gnat_tarball}
cd ${wrksrc}/gnat-ins
make ins-all prefix=${wrksrc}/gnat
cd ${wrksrc}
@@ -202,6 +209,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -307,6 +315,10 @@ do_configure() {
mkdir -p build
cd build
if [ "$build_option_gnatboot" ]; then
+ # file-prefix-map isn't supported in gcc6
+ export CFLAGS="${CFLAGS/-ffile-prefix-map=$wrksrc=./}"
+ export CXXFLAGS="${CXXFLAGS/-ffile-prefix-map=$wrksrc=./}"
+
_args+=" --enable-languages=${_langs},ada"
_args+=" --enable-libada"
CONFIG_SHELL=/bin/bash \
@@ -325,6 +337,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ # gcc will configure itself again throughout the build, so make sure CFLAGS/CXXFLAGS/etc
+ # are still set the same.
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +363,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +372,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
@@ -355,16 +380,16 @@ do_install() {
# Make version a symlink of major version to make all versions
# from the same series work automagically.
- mv ${DESTDIR}/usr/lib/gcc/${_triplet}/${version} \
+ mv ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver} \
${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver}
ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver} \
- ${DESTDIR}/usr/lib/gcc/${_triplet}/${version}
+ ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver}
# Ditto for c++ headers.
- mv ${DESTDIR}/usr/include/c++/${version} \
+ mv ${DESTDIR}/usr/include/c++/${_patchver} \
${DESTDIR}/usr/include/c++/${_minorver}
ln -sfr ${DESTDIR}/usr/include/c++/${_minorver} \
- ${DESTDIR}/usr/include/c++/${version}
+ ${DESTDIR}/usr/include/c++/${_patchver}
# cc symlink
ln -sfr ${DESTDIR}/usr/bin/gcc ${DESTDIR}/usr/bin/cc
@@ -373,7 +398,7 @@ do_install() {
# lto plugin symlink
vmkdir usr/lib/bfd-plugins
- ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${version}/liblto_plugin.so \
+ ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver}/liblto_plugin.so \
${DESTDIR}/usr/lib/bfd-plugins
# Remove "fixed" header
@@ -457,7 +482,7 @@ gcc-fortran_package() {
if [ "$CROSS_BUILD" ]; then
# A number of OMP modules are not built when cross
# compiling gcc. Copy them from the cross compiler.
- local src="/usr/lib/gcc/${_triplet}/${version}/finclude"
+ local src="/usr/lib/gcc/${_triplet}/${_patchver}/finclude"
local dst="usr/lib/gcc/${_triplet}/${_minorver}/finclude"
for f in omp_lib.f90 omp_lib.h omp_lib.mod omp_lib_kinds.mod \
openacc.f90 openacc.mod openacc_kinds.mod openacc_lib.h; do
@@ -714,7 +739,7 @@ libstdc++_package() {
short_desc+=" - Standard C++ Library"
pkg_install() {
vmove usr/share/gdb
- vmove usr/share/gcc-${version}/python
+ vmove usr/share/gcc-${_patchver}/python
vmove "usr/lib/libstdc++.so*"
vlicense COPYING.RUNTIME RUNTIME.LIBRARY.EXCEPTION
}
From 4645bb8ae0b1010ae88a1b9721866935d416c27e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 04/40] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
common/shlibs | 60 +-
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
7 files changed, 33 insertions(+), 1003 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/common/shlibs b/common/shlibs
index 26f9ead7a32c95..4bc3ce575e7784 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -17,36 +17,36 @@
# one (order top->bottom) is preferred over the next ones.
#
libc.so musl-1.1.24_7
-libc.so.6 glibc-2.39_1
-libm.so.6 glibc-2.39_1
-libpthread.so.0 glibc-2.39_1
-librt.so.1 glibc-2.39_1
-libdl.so.2 glibc-2.39_1
-ld-linux-x86-64.so.2 glibc-2.39_1 x86_64
-ld-linux.so.2 glibc-2.39_1 i686
-ld-linux.so.3 glibc-2.39_1 armv5tel
-ld-linux-aarch64.so.1 glibc-2.39_1 aarch64
-ld-linux-riscv64-lp64d.so.1 glibc-2.39_1 riscv64
-ld64.so.2 glibc-2.39_1 ppc64
-ld.so.1 glibc-2.39_1 mips
-ld.so.1 glibc-2.39_1 ppc
-ld-linux-armhf.so.3 glibc-2.39_1
-libresolv.so.2 glibc-2.39_1
-libanl.so.1 glibc-2.39_1
-libthread_db.so.1 glibc-2.39_1
-libutil.so.1 glibc-2.39_1
-libnsl.so.1 glibc-2.39_1
-libnss_db.so.2 glibc-2.39_1
-libnss_files.so.2 glibc-2.39_1
-libnss_compat.so.2 glibc-2.39_1
-libnss_dns.so.2 glibc-2.39_1
-libnss_hesiod.so.2 glibc-2.39_1
-libBrokenLocale.so.1 glibc-2.39_1
-libmemusage.so glibc-2.39_1
-libSegFault.so glibc-2.39_1
-libpcprofile.so glibc-2.39_1
-libcidn.so.1 glibc-2.39_1
-libmvec.so.1 glibc-2.39_1
+libc.so.6 glibc-2.41_1
+libm.so.6 glibc-2.41_1
+libpthread.so.0 glibc-2.41_1
+librt.so.1 glibc-2.41_1
+libdl.so.2 glibc-2.41_1
+ld-linux-x86-64.so.2 glibc-2.41_1 x86_64
+ld-linux.so.2 glibc-2.41_1 i686
+ld-linux.so.3 glibc-2.41_1 armv5tel
+ld-linux-aarch64.so.1 glibc-2.41_1 aarch64
+ld-linux-riscv64-lp64d.so.1 glibc-2.41_1 riscv64
+ld64.so.2 glibc-2.41_1 ppc64
+ld.so.1 glibc-2.41_1 mips
+ld.so.1 glibc-2.41_1 ppc
+ld-linux-armhf.so.3 glibc-2.41_1
+libresolv.so.2 glibc-2.41_1
+libanl.so.1 glibc-2.41_1
+libthread_db.so.1 glibc-2.41_1
+libutil.so.1 glibc-2.41_1
+libnsl.so.1 glibc-2.41_1
+libnss_db.so.2 glibc-2.41_1
+libnss_files.so.2 glibc-2.41_1
+libnss_compat.so.2 glibc-2.41_1
+libnss_dns.so.2 glibc-2.41_1
+libnss_hesiod.so.2 glibc-2.41_1
+libBrokenLocale.so.1 glibc-2.41_1
+libmemusage.so glibc-2.41_1
+libSegFault.so glibc-2.41_1
+libpcprofile.so glibc-2.41_1
+libcidn.so.1 glibc-2.41_1
+libmvec.so.1 glibc-2.41_1
libcrypt.so.2 libxcrypt-4.4.36_1
libcrypt.so.1 libxcrypt-compat-4.4.36_1
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From 62a82b2861fa0bafbda7a64bd001b1406fd66a5d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 05/40] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 04e22c4fb01166..922d009ad8c36e 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=23
+revision=24
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From e330781ba7455271b65745d906069a46a996990a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 06/40] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 5d3ba2a7a9feb4501e3f64d6a6f3c5c22b7b829a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 07/40] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 3a6883c5291021e2e16c6c37164daf10d61f6b64 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 08/40] gcc-multilib: update to 14.2.1+20250329.
---
.../patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 62 +++++++++++--------
2 files changed, 37 insertions(+), 27 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..a3f737567de2dd 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,32 +3,41 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.1+20250329
revision=1
-_majorver="${version%.*}"
+_patchver="${version%+*}"
+_minorver="${version%.*}"
+_majorver="${_minorver%.*}"
+hostmakedepends="perl flex tar"
+makedepends="zlib-devel libzstd-devel isl-devel libmpc-devel gmp-devel mpfr-devel
+ glibc-32bit glibc-devel-32bit"
+depends="
+ gcc>=${_minorver}
+ libgcc-32bit>=${_minorver}
+ libgomp-devel-32bit>=${_minorver}
+ libitm-devel-32bit>=${_minorver}
+ libsanitizer-devel-32bit>=${_minorver}
+ libatomic-devel-32bit>=${_minorver}
+ libvtv-devel-32bit>=${_minorver}
+ zlib-32bit glibc-devel-32bit"
short_desc="GNU Compiler Collection (multilib files)"
maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
-
-hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
- glibc-32bit glibc-devel-32bit"
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_majorver}-${version#*+}/gcc-${_majorver}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+checksum=973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
-depends="
- gcc>=${_majorver}
- libgcc-32bit>=${_majorver}
- libgomp-devel-32bit>=${_majorver}
- libitm-devel-32bit>=${_majorver}
- libsanitizer-devel-32bit>=${_majorver}
- libatomic-devel-32bit>=${_majorver}
- libvtv-devel-32bit>=${_majorver}
- zlib-32bit
- glibc-devel-32bit"
replaces="libmpx-devel-32bit>=0 libssp-32bit>=0 libssp-devel-32bit>=0"
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
+
do_configure() {
ldconfig &>/dev/null
@@ -69,6 +78,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
@@ -77,19 +87,19 @@ do_install() {
# Make version a symlink of major version to make all versions
# from the same series work automagically.
- vmkdir usr/include/c++/${_majorver}/${_triplet}
- vmkdir usr/lib/gcc/${_triplet}/${_majorver}
+ vmkdir usr/include/c++/${_minorver}/${_triplet}
+ vmkdir usr/lib/gcc/${_triplet}/${_minorver}
- cp -a ${wrksrc}/${pkgname}-build/usr/lib/gcc/${_pc_triplet}/${version}/32 \
- ${DESTDIR}/usr/lib/gcc/${_triplet}/${_majorver}/
- cp -a ${wrksrc}/${pkgname}-build/usr/include/c++/${version}/${_pc_triplet}/32 \
- ${DESTDIR}/usr/include/c++/${_majorver}/${_triplet}
+ cp -a ${wrksrc}/${pkgname}-build/usr/lib/gcc/${_pc_triplet}/${_patchver}/32 \
+ ${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver}/
+ cp -a ${wrksrc}/${pkgname}-build/usr/include/c++/${_patchver}/${_pc_triplet}/32 \
+ ${DESTDIR}/usr/include/c++/${_minorver}/${_triplet}
- vinstall ${wrksrc}/host-${_pc_triplet}/gcc/specs 644 usr/lib/gcc/${_triplet}/${_majorver}
+ vinstall ${wrksrc}/host-${_pc_triplet}/gcc/specs 644 usr/lib/gcc/${_triplet}/${_minorver}
}
gcc-objc-multilib_package() {
- depends="gcc-multilib>=${_majorver} gcc-objc>=${_majorver} libobjc-devel-32bit>=${_majorver}"
+ depends="gcc-multilib>=${_minorver} gcc-objc>=${_minorver} libobjc-devel-32bit>=${_minorver}"
short_desc="GNU Objective-C compiler (multilib files)"
build_style=meta
}
From 5bdb199aaba6cc276e5641628420df0651847d52 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 09/40] libgccjit: update to 14.2.1+20250329.
---
srcpkgs/libgccjit/template | 44 +++++++++++++-------------------------
1 file changed, 15 insertions(+), 29 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..78de3d222d4433 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,43 +3,29 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.1+20250329
revision=1
-_gmp_version=6.3.0
-_mpfr_version=4.2.0
-_mpc_version=1.3.1
-_isl_version=0.24
-create_wrksrc=yes
+hostmakedepends="tar texinfo perl flex"
+makedepends="zlib-devel libzstd-devel isl-devel libmpc-devel gmp-devel mpfr-devel"
+depends="gcc"
+checkdepends="dejagnu"
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
homepage="https://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-# *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
-distfiles="
- ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
- ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
- ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
- ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
- ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${version%%.*}-${version#*+}/gcc-${version%%.*}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+checksum=973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
nopie=yes
lib32disabled=yes
-makedepends="zlib-devel"
-hostmakedepends="tar texinfo perl flex"
-depends="gcc"
-checkdepends="dejagnu"
-post_extract() {
- mv gcc-*/* .
- mv gmp-${_gmp_version} gmp
- mv mpfr-${_mpfr_version} mpfr
- mv mpc-${_mpc_version} mpc
- mv isl-${_isl_version} isl
-}
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
pre_configure() {
if [ "$XBPS_TARGET_LIBC" = musl ]; then
From 464b7bd24160864be775e47497bc047820863f06 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 10/40] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From baea67d18ca0168d1eb94dc87be8ce8f66f27691 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 22:59:26 -0700
Subject: [PATCH 11/40] openjdk7-bootstrap: fix build with gcc14
---
srcpkgs/openjdk7-bootstrap/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index 03d91bebf4934a..a4e4ff46091b65 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -86,7 +86,7 @@ skip_extraction="
shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
nocross=yes
-CFLAGS="-fcommon"
+CFLAGS="-fcommon -fpermissive"
post_extract() {
mv icedtea-*/* .
From d242e8ef86581618e9a8bdf8aa8317fbcfc2676d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 23:00:00 -0700
Subject: [PATCH 12/40] openjdk8: fix build with gcc14
---
.../patches/105_implicit_declaration.patch | 25 +++++++++++++++++++
.../openjdk8/patches/106_int_conversion.patch | 16 ++++++++++++
srcpkgs/openjdk8/template | 2 ++
3 files changed, 43 insertions(+)
create mode 100644 srcpkgs/openjdk8/patches/105_implicit_declaration.patch
create mode 100644 srcpkgs/openjdk8/patches/106_int_conversion.patch
diff --git a/srcpkgs/openjdk8/patches/105_implicit_declaration.patch b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
new file mode 100644
index 00000000000000..7a04c21ec910c3
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
@@ -0,0 +1,25 @@
+The isnanf BSD extension was deprecated with the
+introduction of isnan in c99 and isn't implemented in musl.
+Use the isnan function instead.
+
+--- a/jdk/src/solaris/native/common/jdk_util_md.h
++++ b/jdk/src/solaris/native/common/jdk_util_md.h
+@@ -37,7 +37,7 @@
+ #define ISNAND(d) isnan(d)
+ #elif defined(__linux__) || defined(_ALLBSD_SOURCE)
+ #include <math.h>
+-#define ISNANF(f) isnanf(f)
++#define ISNANF(f) isnan(f)
+ #define ISNAND(d) isnan(d)
+ #elif defined(_AIX)
+ #include <math.h>
+--- a/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
++++ b/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
+@@ -29,6 +29,7 @@
+ #include "jlong.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <dlfcn.h>
+ #include <errno.h>
diff --git a/srcpkgs/openjdk8/patches/106_int_conversion.patch b/srcpkgs/openjdk8/patches/106_int_conversion.patch
new file mode 100644
index 00000000000000..2c57cb01353072
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/106_int_conversion.patch
@@ -0,0 +1,16 @@
+--- a/jdk/src/share/bin/splashscreen_stubs.c
++++ b/jdk/src/share/bin/splashscreen_stubs.c
+@@ -61,11 +61,11 @@
+ #define INVOKEV(name) _INVOKE(name, ,;)
+
+ int DoSplashLoadMemory(void* pdata, int size) {
+- INVOKE(SplashLoadMemory, NULL)(pdata, size);
++ INVOKE(SplashLoadMemory, 0)(pdata, size);
+ }
+
+ int DoSplashLoadFile(const char* filename) {
+- INVOKE(SplashLoadFile, NULL)(filename);
++ INVOKE(SplashLoadFile, 0)(filename);
+ }
+
+ void DoSplashInit(void) {
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 3f01bd949417d9..045f78ad363dab 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -78,6 +78,8 @@ fi
# enabling ccache segfaults gcc
export CCACHE_DISABLE=1
+CFLAGS="-Wno-incompatible-pointer-types"
+
post_extract() {
chmod +x configure
}
From 82d0030df707aa73160a28003b14b57414158c3d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:37:27 -0700
Subject: [PATCH 13/40] common/environment/build-style/void-cross.sh: add
distfiles fallback for gcc snapshots
---
common/environment/build-style/void-cross.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/common/environment/build-style/void-cross.sh b/common/environment/build-style/void-cross.sh
index 40df98e95e9026..26d586a6cb59a3 100644
--- a/common/environment/build-style/void-cross.sh
+++ b/common/environment/build-style/void-cross.sh
@@ -1,3 +1,9 @@
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
+
lib32disabled=yes
nopie=yes
From cf1941e35934c43dbdcc9c851dbdd99289bf96e7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 14/40] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From 02bdab97a5effc8b9693769bdd6cf87393ec8627 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:09 -0700
Subject: [PATCH 15/40] cross-aarch64-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-aarch64-linux-gnu/template | 25 +++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..b0e9daceffe8a0 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -15,14 +15,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 26c3d44c22fb615ba4732acae5575216d02b2ff3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:09 -0700
Subject: [PATCH 16/40] cross-aarch64-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-aarch64-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..d6eb1046c12884 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,15 +16,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 56f5df05e32280d364c588f061d28aab79921ad3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:09 -0700
Subject: [PATCH 17/40] cross-arm-linux-gnueabi: update to gcc 14.2.1+20250329
---
srcpkgs/cross-arm-linux-gnueabi/template | 25 +++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..8c363a24847c6e 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From c1465ffbb3a0f86d0b6d10e71089a479de74be7c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:09 -0700
Subject: [PATCH 18/40] cross-arm-linux-gnueabihf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-arm-linux-gnueabihf/template | 25 ++++++++++++----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..3cdebc157e2e8a 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 1eaf504fb70a07cc7e4450fcc9e925a144f636e3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 19/40] cross-arm-linux-musleabi: update to gcc 14.2.1+20250329
---
srcpkgs/cross-arm-linux-musleabi/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..a3b1bf8605042d 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -17,15 +17,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From cf925067acaa3e2cf7041e70e142bdb0aa5ef730 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 20/40] cross-arm-linux-musleabihf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-arm-linux-musleabihf/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..ea99a20947d4e6 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -17,15 +17,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 5b79f713dc29709d495d961faf7ac9773222d2c7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 21/40] cross-armv7l-linux-gnueabihf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 25 +++++++++++--------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..ad9a6271551716 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -15,14 +15,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From e6a9f996521b977d2e22bba0b6d608e4f8e0ed8b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 22/40] cross-armv7l-linux-musleabihf: update to gcc
14.2.1+20250329
---
.../cross-armv7l-linux-musleabihf/template | 21 +++++++++++--------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..cb526eba5304d2 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,15 +16,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From bb03dbbf215a5423b80ccd0fd758a73062a57268 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 23/40] cross-i686-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-i686-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..6173a2c5efb778 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -15,15 +15,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 2cadc5e51a1984f108ad765a186a45bc8c340650 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 24/40] cross-i686-pc-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-i686-pc-linux-gnu/template | 25 +++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..f5280bad74e1f5 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -14,14 +14,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 4603e18496413fb73f443ae95e394b354ab1739a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 25/40] cross-mips-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-mips-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..65d89c83de2c8b 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 42488828e1e4d5d917202af8b39ca5be5fc226fc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 26/40] cross-mips-linux-muslhf: update to gcc 14.2.1+20250329
---
srcpkgs/cross-mips-linux-muslhf/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..9fadaf148799e4 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="hipperson0 <hipperson0@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 2fd79b2d4feb7e35c9b340a36840275fe82758ab Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 27/40] cross-mipsel-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-mipsel-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..eebfd8913e2827 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 9e2d4275db9c819a4cf4d5a37fbf096c579f9740 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 28/40] cross-mipsel-linux-muslhf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-mipsel-linux-muslhf/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..a194e2b56927c8 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 570eddf661912f5fb6cbfc5d7f8734adc08cffcb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 29/40] cross-powerpc-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-powerpc-linux-gnu/template | 25 +++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..a2093d3507ba8c 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Thomas Batten <stenstorpmc@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 44df0448fee11b86bc1b406a5758afd3933cd9f7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 30/40] cross-powerpc-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-powerpc-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..e14ffcf8ba26b3 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Thomas Batten <stenstorpmc@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From b4875c612eb39a873e623e29d4e15a4d1c05c14b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 31/40] cross-powerpc64-linux-gnu: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64-linux-gnu/template | 25 ++++++++++++----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..43fd15796716a1 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 0954dc791e989934ab8c0b6873ae308d55a1321c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 32/40] cross-powerpc64-linux-musl: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..156335883d6caf 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -18,15 +18,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From dbbcde39b6312904fbb29b652aa7d1caab89cb4c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 33/40] cross-powerpc64le-linux-gnu: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 25 +++++++++++---------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..5b59960a6e8e21 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 83de1fd4efa66609c45fe2abc49c091eabf322de Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 34/40] cross-powerpc64le-linux-musl: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64le-linux-musl/template | 21 +++++++++++--------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..7ef7fbfda4e466 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -18,15 +18,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 625a18ab46b064731a9c193c9768a235d76f4366 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 35/40] cross-powerpcle-linux-gnu: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpcle-linux-gnu/template | 27 ++++++++++++----------
1 file changed, 15 insertions(+), 12 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..7b8f24ef7d45af 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -16,15 +16,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
@@ -37,7 +40,7 @@ if [ "$XBPS_TARGET_MACHINE" = "ppcle" ]; then
broken="Can't build crosstoolchain to itself"
fi
-broken="glibc uses big-endian specific instructions on 32-bit powerpc"
+broken="glibc uses big-endian specific instructions (stmw and lmw) in 32-bit powerpc clone.S"
cross-powerpcle-linux-gnu-libc_package() {
short_desc+=" - glibc files"
From 6dd7ee57f913e266be69b3e64a249fb394102ff9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:12 -0700
Subject: [PATCH 36/40] cross-powerpcle-linux-musl: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpcle-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..abf1c5b4b4cd5a 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 79e5d36cc86caff30f15e1fcbe9ec0f77ee71de7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:12 -0700
Subject: [PATCH 37/40] cross-riscv64-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-riscv64-linux-gnu/template | 25 +++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..64664233f9d8dc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -15,14 +15,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 2dccc131ce602478a61a7a4c1391588b44094d86 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:12 -0700
Subject: [PATCH 38/40] cross-riscv64-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-riscv64-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..c6f885caf7218d 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,15 +16,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From fef57a8fcf6aec03db4cc52631a6ae31a265e99a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:12 -0700
Subject: [PATCH 39/40] cross-x86_64-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-x86_64-linux-gnu/template | 25 ++++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..db352f9f624b10 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -14,14 +14,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 4492f751af67dd8f0e93e01d2d551db7cbe07226 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:12 -0700
Subject: [PATCH 40/40] cross-x86_64-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-x86_64-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..b782841cff337d 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -15,15 +15,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: gcc: update to 14.2.1+20250329.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (43 preceding siblings ...)
2025-04-06 9:37 ` [PR PATCH] [Updated] gcc: update to 14.2.1+20250329 oreo639
@ 2025-04-06 9:38 ` oreo639
2025-04-06 9:39 ` [PR PATCH] [Updated] " oreo639
` (18 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-04-06 9:38 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 197 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/pull/50825#issuecomment-2781332755
Comment:
Updated to support gcc snapshots as per recommendation.
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.1+20250329.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (44 preceding siblings ...)
2025-04-06 9:38 ` oreo639
@ 2025-04-06 9:39 ` oreo639
2025-04-06 9:56 ` oreo639
` (17 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-04-06 9:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 7675 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.1+20250329.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
You can test the ISOs here: https://devspace.voidlinux.org/oreo639/live/gcc14/
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp https://github.com/void-linux/void-packages/commit/30e9e29bb5a348b2c6b7a9b3e29c13d2bc28cfae
- [x] libsasl https://github.com/void-linux/void-packages/commit/6f71c8889cc8a79411ddaca582250e19718f12da
- [x] nvi https://github.com/void-linux/void-packages/commit/a51ebf219534e5420ffc83d5a89b43dc992c9b81
- [x] xbps https://github.com/void-linux/void-packages/commit/73c8cdee1d9b05980cdc0763294cce9372612ba4
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
- [x] gtk+ https://github.com/void-linux/void-packages/commit/ac57a55a5fda78618aec2ec7bb3c27404834ed04
- [x] gtk+3 https://github.com/void-linux/void-packages/pull/54187
- [x] libaom https://github.com/void-linux/void-packages/commit/fcbb94217389f64fea4c536959983814ebaadae4
- [x] perl-Tk https://github.com/void-linux/void-packages/commit/67aeb9d9b2b077d9b7f25902bbf079c1569a2633
- [x] gnu-efi-libs https://github.com/void-linux/void-packages/commit/92b2642bc8d1871605f824064863149985419010
- [x] syslinux https://github.com/void-linux/void-packages/commit/49af74a1dfb32ba1de556f4491b3870179c80872
- [x] recode https://github.com/void-linux/void-packages/pull/54707
- [x] libcddb https://github.com/void-linux/void-packages/commit/eeae3026d1356e1ac5d0547e19e2742a335ae9ca
- [x] vim https://github.com/void-linux/void-packages/pull/54706
- [x] vmaf https://github.com/void-linux/void-packages/pull/54721
- [x] audit https://github.com/void-linux/void-packages/pull/54722
- [x] aalib https://github.com/void-linux/void-packages/commit/d7769fe6d757a62fbfc0998d5cbde5dec8a7db11
- [x] cppdap (outdated vendored gtest, patch merged upstream) https://github.com/void-linux/void-packages/commit/a2c9d8ac073e9f40d6b7b1bb3df108c0d46481bb
- [x] snappy (outdated vendored gtest, upstream rejected patch stating that downstreams running their tests is not supported and that downstreams should either ship their own tests/patches or just disable them) https://github.com/void-linux/void-packages/commit/4e73161431672d245a8d558f269a74f1ab363cc8
- [x] openjdk7-bootstrap
- [x] openjdk8
- [x] gimp https://github.com/void-linux/void-packages/commit/d173951120b07bc57171f6962c92c0877becd0d8
- [x] xf86-video-nouveau https://github.com/void-linux/void-packages/pull/54720
- [x] libao https://github.com/void-linux/void-packages/commit/b9c6b010a201211c0ffba8a821f0021b9bdaf376
- [x] accountsservice https://github.com/void-linux/void-packages/commit/a1ca8cef0b2e98ba22c4d632685f85c5d0cde4c1
- Done with base-syste/xfce
- [x] zeitgeist
- [x] libgee
- [x] cogl
- [x] clutter-gst3
- [x] telepathy-glib
- [x] xen https://github.com/void-linux/void-packages/pull/54751
- [x] vde2 https://github.com/void-linux/void-packages/pull/54750
- Sagemath Related
- [x] gf2x
- [x] linbox
- [x] givaro
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [x] elfutils https://github.com/void-linux/void-packages/pull/54566
- [x] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [x] sane https://github.com/void-linux/void-packages/pull/54614
- [x] mdadm https://github.com/void-linux/void-packages/commit/10694f08c471b2701b3c275540b0c665f67c8b9b
- [x] pulseaudio (broken due to configure checks detecting presence of open64, this is fixed in musl 1.2.x https://github.com/bminor/musl/commit/246f1c811448f37a44b41cd8df8d0ef9736d95f4 https://github.com/bminor/musl/commit/50ab830633134dac99011219f0210ee2759ffbde) https://github.com/void-linux/void-packages/commit/b87ec8f3ca216b6d9cfb4836f236fca13f45c2ab
- [x] gpm
- [x] linux-tools https://github.com/void-linux/void-packages/commit/8c670d7a13a3d6783e23624bda033ef898cafd72
- [x] v4l-utils (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg6 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] gst-plugins-good1 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] libcdio (fseek64, also broken on i686-glibc) https://github.com/void-linux/void-packages/pull/54724
- [x] gcr (getpass) https://github.com/void-linux/void-packages/commit/a40788b2db81ceba7e4a9f75e1c120efd7577600
- [x] libndp https://github.com/void-linux/void-packages/commit/580546374e10b6847a66bfb4d9f27579d5112902
- [x] samba https://github.com/void-linux/void-packages/commit/0900507d38bfc7963d7b6c1a7b04341ae987f2d2
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration instead of segfaulting later due to implicit pointer truncation. This is good, but ofc, packages need to be checked for this.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, please test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 188646 bytes --]
From 966e6a37cbaa962da5a02dabf3a0d5d03cd97602 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Tue, 28 May 2024 15:31:49 -0400
Subject: [PATCH 01/40] xbps-src: add option to use distfiles mirror as a
fallback
This adds an optional configuration to add a fallback distfiles mirror
The idea is that normally, distfiles should be fetched from the urls in
the template. However, occasionally the urls have rotted, or are simply
down temporairily, in which case the fetch will fail. A workaround to
this has been to use the $XBPS_DISTFILES_MIRROR option, however the
downside to this is that it is always tried first, and 99% of the time isn't
needed.
This adds the $XBPS_DISTFILES_FALLBACK option, which can be set to an
addiontional list of mirrors which will be attempted after both
$XBPS_DISTFILES_MIRROR, and the urls in the template have failed to
fetch the distfiles
Co-authored-by: oreo639 <oreo6391@gmail.com>
---
common/hooks/do-fetch/00-distfiles.sh | 15 +++++++++------
xbps-src | 10 +++++++---
2 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/common/hooks/do-fetch/00-distfiles.sh b/common/hooks/do-fetch/00-distfiles.sh
index 1adb86a5167823..2065d5442a3a12 100644
--- a/common/hooks/do-fetch/00-distfiles.sh
+++ b/common/hooks/do-fetch/00-distfiles.sh
@@ -128,11 +128,11 @@ link_cksum() {
}
try_mirrors() {
- local curfile="$1" distfile="$2" cksum="$3" f="$4"
+ local curfile="$1" distfile="$2" cksum="$3" f="$4" mirror_list="$5"
local filesum basefile mirror path scheme good
- [ -z "$XBPS_DISTFILES_MIRROR" ] && return 1
+ [ -z "$mirror_list" ] && return 1
basefile="${f##*/}"
- for mirror in $XBPS_DISTFILES_MIRROR; do
+ for mirror in $mirror_list; do
scheme="file"
if [[ $mirror == *://* ]]; then
scheme="${mirror%%:/*}"
@@ -148,8 +148,8 @@ try_mirrors() {
continue
fi
fi
- if [[ "$mirror" == *voidlinux* ]]; then
- # For distfiles.voidlinux.* append the subdirectory
+ if [[ "$mirror" == *sources.voidlinux.* ]]; then
+ # For sources.voidlinux.* append the subdirectory
mirror="$mirror/$pkgname-$version"
fi
msg_normal "$pkgver: fetching distfile '$curfile' from mirror '$mirror'...\n"
@@ -286,11 +286,14 @@ hook() {
fi
# If distfile does not exist, download it from a mirror location.
- if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}"; then
+ if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}" "$XBPS_DISTFILES_MIRROR"; then
continue
fi
if ! try_urls "$curfile"; then
+ if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}" "$XBPS_DISTFILES_FALLBACK"; then
+ continue
+ fi
msg_error "$pkgver: failed to fetch '$curfile'.\n"
fi
done
diff --git a/xbps-src b/xbps-src
index c17270b62ee4b5..1ce830c7bf9c18 100755
--- a/xbps-src
+++ b/xbps-src
@@ -343,10 +343,11 @@ read_pkg() {
}
setup_distfiles_mirror() {
+ local mirror_list="$1"
local mirror scheme path
# Scheme file:// mirror locations only work with uchroot
- for mirror in $XBPS_DISTFILES_MIRROR; do
+ for mirror in $mirror_list; do
scheme="file"
if [[ "$mirror" == *://* ]]; then
scheme="${mirror%%://*}"
@@ -696,7 +697,7 @@ export XBPS_SHUTILSDIR XBPS_CROSSPFDIR XBPS_TRIGGERSDIR \
XBPS_LIBEXECDIR XBPS_DISTDIR XBPS_DISTFILES_MIRROR XBPS_ALLOW_RESTRICTED \
XBPS_USE_GIT_COMMIT_DATE XBPS_PKG_COMPTYPE XBPS_REPO_COMPTYPE \
XBPS_BUILDHELPERDIR XBPS_USE_BUILD_MTIME XBPS_BUILD_ENVIRONMENT \
- XBPS_PRESERVE_PKGS XBPS_IGNORE_BROKENNESS
+ XBPS_PRESERVE_PKGS XBPS_IGNORE_BROKENNESS XBPS_DISTFILES_FALLBACK
for i in REPOSITORY DESTDIR BUILDDIR SRCDISTDIR; do
eval val="\$XBPS_$i"
@@ -760,7 +761,10 @@ done
if [ -z "$IN_CHROOT" ]; then
trap 'exit_func' INT TERM
if [ -n "$XBPS_DISTFILES_MIRROR" ]; then
- setup_distfiles_mirror
+ setup_distfiles_mirror "$XBPS_DISTFILES_MIRROR"
+ fi
+ if [ -n "$XBPS_DISTFILES_FALLBACK" ]; then
+ setup_distfiles_mirror "$XBPS_DISTFILES_FALLBACK"
fi
fi
From 91019a9ff783286ef82c3f00f8d91cc26267e03c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 02/40] binutils: update to 2.44.
---
srcpkgs/binutils/template | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..024f8e5c634dd7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
@@ -73,8 +73,7 @@ do_configure() {
esac
# target archs supported by Void
- # borked: riscv64 (gold doesn't support it)
- void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,x86_64"
+ void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,riscv64,x86_64"
conf+=" --enable-targets=$(echo "$void_targets" | sed -E -e 's/(,|$)/-linux-gnu\1/g'),${extra_targets}"
if [ "$build_option_all_targets" ]; then
@@ -107,7 +106,6 @@ do_configure() {
--enable-threads \
--enable-plugins \
--enable-relro \
- --enable-gold \
--enable-new-dtags \
--enable-deterministic-archives \
--enable-64-bit-bfd \
From 4d719866ed4757b7260b1766816c2d7d43d770aa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 03/40] gcc: update to 14.2.1+20250329.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ---------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 -----
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 --
.../patches/fix-pretty-printer-warnings.patch | 125 ----
.../gcc/patches/libstdcxx-tzdb-z-format.patch | 563 ------------------
srcpkgs/gcc/template | 109 ++--
7 files changed, 70 insertions(+), 1232 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
delete mode 100644 srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
diff --git a/common/shlibs b/common/shlibs
index a51d54d5472096..26f9ead7a32c95 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.40 perl-5.40.1_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch b/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
deleted file mode 100644
index 0deb99ac6a2df2..00000000000000
--- a/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
+++ /dev/null
@@ -1,563 +0,0 @@
-From 5ceea2ac106d6dd1aa8175670b15a801316cf1c9 Mon Sep 17 00:00:00 2001
-From: Jonathan Wakely <jwakely@redhat.com>
-Date: Tue, 30 Apr 2024 09:52:13 +0100
-Subject: [PATCH] libstdc++: Fix std::chrono::tzdb to work with vanguard format
-
-I found some issues in the std::chrono::tzdb parser by testing the
-tzdata "vanguard" format, which uses new features that aren't enabled in
-the "main" and "rearguard" data formats.
-
-Since 2024a the keyword "minimum" is no longer valid for the FROM and TO
-fields in a Rule line, which means that "m" is now a valid abbreviation
-for "maximum". Previously we expected either "mi" or "ma". For backwards
-compatibility, a FROM field beginning with "mi" is still supported and
-is treated as 1900. The "maximum" keyword is only allowed in TO now,
-because it makes no sense in FROM. To support these changes the
-minmax_year and minmax_year2 classes for parsing FROM and TO are
-replaced with a single years_from_to class that reads both fields.
-
-The vanguard format makes use of %z in Zone FORMAT fields, which caused
-an exception to be thrown from ZoneInfo::set_abbrev because no % or /
-characters were expected when a Zone doesn't use a named Rule. The
-ZoneInfo::to(sys_info&) function now uses format_abbrev_str to replace
-any %z with the current offset. Although format_abbrev_str also checks
-for %s and STD/DST formats, those only make sense when a named Rule is
-in effect, so won't occur when ZoneInfo::to(sys_info&) is used.
-
-Since making this change on trunk, the tzdata-2024b release started
-using %z in the main format, not just vanguard. This makes a backport to
-release branches necessary (see PR 116657).
-
-This change also implements a feature that has always been missing from
-time_zone::_M_get_sys_info: finding the Rule that is active before the
-specified time point, so that we can correctly handle %s in the FORMAT
-for the first new sys_info that gets created. This requires implementing
-a poorly documented feature of zic, to get the LETTERS field from a
-later transition, as described at
-https://mm.icann.org/pipermail/tz/2024-April/058891.html
-In order for this to work we need to be able to distinguish an empty
-letters field (as used by CE%sT where the variable part is either empty
-or "S") from "the letters field is not known for this transition". The
-tzdata file uses "-" for an empty letters field, which libstdc++ was
-previously replacing with "" when the Rule was parsed. Instead, we now
-preserve the "-" in the Rule object, so that "" can be used for the case
-where we don't know the letters (and so need to decide it).
-
-libstdc++-v3/ChangeLog:
-
- * src/c++20/tzdb.cc (minmax_year, minmax_year2): Remove.
- (years_from_to): New class replacing minmax_year and
- minmax_year2.
- (format_abbrev_str, select_std_or_dst_abbrev): Move earlier in
- the file. Handle "-" for letters.
- (ZoneInfo::to): Use format_abbrev_str to expand %z.
- (ZoneInfo::set_abbrev): Remove exception. Change parameter from
- reference to value.
- (operator>>(istream&, Rule&)): Do not clear letters when it
- contains "-".
- (time_zone::_M_get_sys_info): Add missing logic to find the Rule
- in effect before the time point.
- * testsuite/std/time/tzdb/1.cc: Adjust for vanguard format using
- "GMT" as the Zone name, not as a Link to "Etc/GMT".
- * testsuite/std/time/time_zone/sys_info_abbrev.cc: New test.
-
-(cherry picked from commit 0ca8d56f2085715f27ee536c6c344bc47af49cdd)
----
- libstdc++-v3/src/c++20/tzdb.cc | 265 +++++++++++-------
- .../std/time/time_zone/sys_info_abbrev.cc | 106 +++++++
- libstdc++-v3/testsuite/std/time/tzdb/1.cc | 6 +-
- 3 files changed, 274 insertions(+), 103 deletions(-)
- create mode 100644 libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-
-diff --git a/libstdc++-v3/src/c++20/tzdb.cc b/libstdc++-v3/src/c++20/tzdb.cc
-index e058caf27d89..034e72f02743 100644
---- a/libstdc++-v3/src/c++20/tzdb.cc
-+++ b/libstdc++-v3/src/c++20/tzdb.cc
-@@ -342,51 +342,103 @@ namespace std::chrono
- friend istream& operator>>(istream&, on_day&);
- };
-
-- // Wrapper for chrono::year that reads a year, or one of the keywords
-- // "minimum" or "maximum", or an unambiguous prefix of a keyword.
-- struct minmax_year
-+ // Wrapper for two chrono::year values, which reads the FROM and TO
-+ // fields of a Rule line. The FROM field is a year and TO is a year or
-+ // one of the keywords "maximum" or "only" (or an abbreviation of those).
-+ // For backwards compatibility, the keyword "minimum" is recognized
-+ // for FROM and interpreted as 1900.
-+ struct years_from_to
- {
-- year& y;
-+ year& from;
-+ year& to;
-
-- friend istream& operator>>(istream& in, minmax_year&& y)
-+ friend istream& operator>>(istream& in, years_from_to&& yy)
- {
-- if (ws(in).peek() == 'm') // keywords "minimum" or "maximum"
-+ string s;
-+ auto c = ws(in).peek();
-+ if (c == 'm') [[unlikely]] // keyword "minimum"
- {
-- string s;
-- in >> s; // extract the rest of the word, but only look at s[1]
-- if (s[1] == 'a')
-- y.y = year::max();
-- else if (s[1] == 'i')
-- y.y = year::min();
-- else
-- in.setstate(ios::failbit);
-+ in >> s; // extract the rest of the word
-+ yy.from = year(1900);
-+ }
-+ else if (int num = 0; in >> num) [[likely]]
-+ yy.from = year{num};
-+
-+ c = ws(in).peek();
-+ if (c == 'm') // keyword "maximum"
-+ {
-+ in >> s; // extract the rest of the word
-+ yy.to = year::max();
-+ }
-+ else if (c == 'o') // keyword "only"
-+ {
-+ in >> s; // extract the rest of the word
-+ yy.to = yy.from;
- }
- else if (int num = 0; in >> num)
-- y.y = year{num};
-+ yy.to = year{num};
-+
- return in;
- }
- };
-
-- // As above for minmax_year, but also supports the keyword "only",
-- // meaning that the TO year is the same as the FROM year.
-- struct minmax_year2
-+ bool
-+ select_std_or_dst_abbrev(string& abbrev, minutes save)
- {
-- minmax_year to;
-- year from;
-+ if (size_t pos = abbrev.find('/'); pos != string::npos)
-+ {
-+ // Select one of "STD/DST" for standard or daylight.
-+ if (save == 0min)
-+ abbrev.erase(pos);
-+ else
-+ abbrev.erase(0, pos + 1);
-+ return true;
-+ }
-+ return false;
-+ }
-
-- friend istream& operator>>(istream& in, minmax_year2&& y)
-- {
-- if (ws(in).peek() == 'o') // keyword "only"
-- {
-- string s;
-- in >> s; // extract the whole keyword
-- y.to.y = y.from;
-- }
-- else
-- in >> std::move(y.to);
-- return in;
-- }
-- };
-+ // Set the sys_info::abbrev string by expanding any placeholders.
-+ void
-+ format_abbrev_str(sys_info& info, string_view letters = {})
-+ {
-+ if (size_t pos = info.abbrev.find('%'); pos != string::npos)
-+ {
-+ if (info.abbrev[pos + 1] == 's')
-+ {
-+ // Expand "%s" to the variable part, given by Rule::letters.
-+ if (letters == "-")
-+ info.abbrev.erase(pos, 2);
-+ else
-+ info.abbrev.replace(pos, 2, letters);
-+ }
-+ else if (info.abbrev[pos + 1] == 'z')
-+ {
-+ // Expand "%z" to the UT offset as +/-hh, +/-hhmm, or +/-hhmmss.
-+ hh_mm_ss<seconds> t(info.offset);
-+ string z(1, "+-"[t.is_negative()]);
-+ long val = t.hours().count();
-+ int digits = 2;
-+ if (int m = t.minutes().count())
-+ {
-+ digits = 4;
-+ val *= 100;
-+ val += m;
-+ if (int s = t.seconds().count())
-+ {
-+ digits = 6;
-+ val *= 100;
-+ val += s;
-+ }
-+ }
-+ auto sval = std::to_string(val);
-+ z += string(digits - sval.size(), '0');
-+ z += sval;
-+ info.abbrev.replace(pos, 2, z);
-+ }
-+ }
-+ else
-+ select_std_or_dst_abbrev(info.abbrev, info.save);
-+ }
-
- // A time zone information record.
- // Zone NAME STDOFF RULES FORMAT [UNTIL]
-@@ -462,6 +514,7 @@ namespace std::chrono
- info.offset = offset();
- info.save = minutes(m_save);
- info.abbrev = format();
-+ format_abbrev_str(info); // expand %z
- return true;
- }
-
-@@ -469,12 +522,9 @@ namespace std::chrono
- friend class time_zone;
-
- void
-- set_abbrev(const string& abbrev)
-+ set_abbrev(string abbrev)
- {
-- // In practice, the FORMAT field never needs expanding here.
-- if (abbrev.find_first_of("/%") != abbrev.npos)
-- __throw_runtime_error("std::chrono::time_zone: invalid data");
-- m_buf = abbrev;
-+ m_buf = std::move(abbrev);
- m_pos = 0;
- m_expanded = true;
- }
-@@ -544,9 +594,7 @@ namespace std::chrono
-
- // Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
-
-- in >> quoted(rule.name)
-- >> minmax_year{rule.from}
-- >> minmax_year2{rule.to, rule.from};
-+ in >> quoted(rule.name) >> years_from_to{rule.from, rule.to};
-
- if (char type; in >> type && type != '-')
- in.setstate(ios::failbit);
-@@ -557,7 +605,7 @@ namespace std::chrono
- if (save_time.indicator != at_time::Wall)
- {
- // We don't actually store the save_time.indicator, because we
-- // assume that it's always deducable from the actual offset value.
-+ // assume that it's always deducible from the offset value.
- auto expected = save_time.time == 0s
- ? at_time::Standard
- : at_time::Daylight;
-@@ -567,8 +615,6 @@ namespace std::chrono
- rule.save = save_time.time;
-
- in >> rule.letters;
-- if (rule.letters == "-")
-- rule.letters.clear();
- return in;
- }
-
-@@ -714,58 +760,6 @@ namespace std::chrono
- #endif // TZDB_DISABLED
- };
-
--#ifndef TZDB_DISABLED
-- namespace
-- {
-- bool
-- select_std_or_dst_abbrev(string& abbrev, minutes save)
-- {
-- if (size_t pos = abbrev.find('/'); pos != string::npos)
-- {
-- // Select one of "STD/DST" for standard or daylight.
-- if (save == 0min)
-- abbrev.erase(pos);
-- else
-- abbrev.erase(0, pos + 1);
-- return true;
-- }
-- return false;
-- }
--
-- // Set the sys_info::abbrev string by expanding any placeholders.
-- void
-- format_abbrev_str(sys_info& info, string_view letters = {})
-- {
-- if (size_t pos = info.abbrev.find("%s"); pos != string::npos)
-- {
-- // Expand "%s" to the variable part, given by Rule::letters.
-- info.abbrev.replace(pos, 2, letters);
-- }
-- else if (size_t pos = info.abbrev.find("%z"); pos != string::npos)
-- {
-- // Expand "%z" to the UT offset as +/-hh, +/-hhmm, or +/-hhmmss.
-- hh_mm_ss<seconds> t(info.offset);
-- string z(1, "+-"[t.is_negative()]);
-- long val = t.hours().count();
-- if (minutes m = t.minutes(); m != m.zero())
-- {
-- val *= 100;
-- val += m.count();
-- if (seconds s = t.seconds(); s != s.zero())
-- {
-- val *= 100;
-- val += s.count();
-- }
-- }
-- z += std::to_string(val);
-- info.abbrev.replace(pos, 2, z);
-- }
-- else
-- select_std_or_dst_abbrev(info.abbrev, info.save);
-- }
-- }
--#endif // TZDB_DISABLED
--
- // Implementation of std::chrono::time_zone::get_info(const sys_time<D>&)
- sys_info
- time_zone::_M_get_sys_info(sys_seconds tp) const
-@@ -834,12 +828,72 @@ namespace std::chrono
- info.abbrev = ri.format();
-
- string_view letters;
-- if (i != infos.begin())
-+ if (i != infos.begin() && i[-1].expanded())
-+ letters = i[-1].next_letters();
-+
-+ if (letters.empty())
- {
-- if (i[-1].expanded())
-- letters = i[-1].next_letters();
-- // XXX else need to find Rule active before this time and use it
-- // to know the initial offset, save, and letters.
-+ sys_seconds t = info.begin - seconds(1);
-+ const year_month_day date(chrono::floor<days>(t));
-+
-+ // Try to find a Rule active before this time, to get initial
-+ // SAVE and LETTERS values. There may not be a Rule for the period
-+ // before the first DST transition, so find the earliest DST->STD
-+ // transition and use the LETTERS from that.
-+ const Rule* active_rule = nullptr;
-+ sys_seconds active_rule_start = sys_seconds::min();
-+ const Rule* first_std = nullptr;
-+ for (const auto& rule : rules)
-+ {
-+ if (rule.save == minutes(0))
-+ {
-+ if (!first_std)
-+ first_std = &rule;
-+ else if (rule.from < first_std->from)
-+ first_std = &rule;
-+ else if (rule.from == first_std->from)
-+ {
-+ if (rule.start_time(rule.from, {})
-+ < first_std->start_time(first_std->from, {}))
-+ first_std = &rule;
-+ }
-+ }
-+
-+ year y = date.year();
-+
-+ if (y > rule.to) // rule no longer applies at time t
-+ continue;
-+ if (y < rule.from) // rule doesn't apply yet at time t
-+ continue;
-+
-+ sys_seconds rule_start;
-+
-+ seconds offset{}; // appropriate for at_time::Universal
-+ if (rule.when.indicator == at_time::Wall)
-+ offset = info.offset;
-+ else if (rule.when.indicator == at_time::Standard)
-+ offset = ri.offset();
-+
-+ // Time the rule takes effect this year:
-+ rule_start = rule.start_time(y, offset);
-+
-+ if (rule_start >= t && rule.from < y)
-+ {
-+ // Try this rule in the previous year.
-+ rule_start = rule.start_time(--y, offset);
-+ }
-+
-+ if (active_rule_start < rule_start && rule_start < t)
-+ {
-+ active_rule_start = rule_start;
-+ active_rule = &rule;
-+ }
-+ }
-+
-+ if (active_rule)
-+ letters = active_rule->letters;
-+ else if (first_std)
-+ letters = first_std->letters;
- }
-
- const Rule* curr_rule = nullptr;
-@@ -2064,9 +2118,11 @@ namespace std::chrono
- istringstream in2(std::move(rules));
- in2 >> rules_time;
- inf.m_save = duration_cast<minutes>(rules_time.time);
-+ // If the FORMAT is "STD/DST" then we can choose the right one
-+ // now, so that we store a shorter string.
- select_std_or_dst_abbrev(fmt, inf.m_save);
- }
-- inf.set_abbrev(fmt);
-+ inf.set_abbrev(std::move(fmt));
- }
-
- // YEAR [MONTH [DAY [TIME]]]
-@@ -2077,7 +2133,12 @@ namespace std::chrono
- abbrev_month m{January};
- int d = 1;
- at_time t{};
-+ // XXX DAY should support ON format, e.g. lastSun or Sun>=8
- in >> m >> d >> t;
-+ // XXX UNTIL field should be interpreted
-+ // "using the rules in effect just before the transition"
-+ // so might need to store as year_month_day and hh_mm_ss and only
-+ // convert to a sys_time once we know the offset in effect.
- inf.m_until = sys_days(year(y)/m.m/day(d)) + seconds(t.time);
- }
- else
-diff --git a/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc b/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-new file mode 100644
-index 000000000000..f1a8fff02f58
---- /dev/null
-+++ b/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-@@ -0,0 +1,106 @@
-+// { dg-do run { target c++20 } }
-+// { dg-require-effective-target tzdb }
-+// { dg-require-effective-target cxx11_abi }
-+// { dg-xfail-run-if "no weak override on AIX" { powerpc-ibm-aix* } }
-+
-+#include <chrono>
-+#include <fstream>
-+#include <testsuite_hooks.h>
-+
-+static bool override_used = false;
-+
-+namespace __gnu_cxx
-+{
-+ const char* zoneinfo_dir_override() {
-+ override_used = true;
-+ return "./";
-+ }
-+}
-+
-+using namespace std::chrono;
-+
-+void
-+test_format()
-+{
-+ std::ofstream("tzdata.zi") << R"(# version test_1
-+Zone Africa/Bissau -1:2:20 - LMT 1912 Ja 1 1u
-+ -1 - %z 1975
-+ 0 - GMT
-+Zon Some/Zone 1:2:3 - %z 1900
-+ 1:23:45 - %z 1950
-+Zo Another/Zone 1:2:3 - AZ0 1901
-+ 1 Roolz A%sZ 2000
-+ 1 Roolz SAZ/DAZ 2005
-+ 1 Roolz %z
-+Rule Roolz 1950 max - April 1 2 1 D
-+Rul Roolz 1950 max - Oct 1 1 0 S
-+Z Strange/Zone 1 - X%sX 1980
-+ 1 - FOO/BAR 1990
-+ 2:00 - %zzz 1995
-+ 0:9 - %zzz 1996
-+ 0:8:7 - %zzz 1997
-+ 0:6:5.5 - %zzz 1998
-+)";
-+
-+ const auto& db = reload_tzdb();
-+ VERIFY( override_used ); // If this fails then XFAIL for the target.
-+ VERIFY( db.version == "test_1" );
-+
-+ // Test formatting %z as
-+ auto tz = locate_zone("Africa/Bissau");
-+ auto inf = tz->get_info(sys_days(1974y/1/1));
-+ VERIFY( inf.abbrev == "-01" );
-+
-+ tz = locate_zone("Some/Zone");
-+ inf = tz->get_info(sys_days(1899y/1/1));
-+ VERIFY( inf.abbrev == "+010203" );
-+ inf = tz->get_info(sys_days(1955y/1/1));
-+ VERIFY( inf.abbrev == "+012345" );
-+
-+ tz = locate_zone("Another/Zone");
-+ // Test formatting %s as the LETTER/S field from the active Rule.
-+ inf = tz->get_info(sys_days(1910y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1950y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1950y/June/1));
-+ VERIFY( inf.abbrev == "ADZ" );
-+ inf = tz->get_info(sys_days(1999y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1999y/July/1));
-+ VERIFY( inf.abbrev == "ADZ" );
-+ // Test formatting STD/DST according to the active Rule.
-+ inf = tz->get_info(sys_days(2000y/January/2));
-+ VERIFY( inf.abbrev == "SAZ" );
-+ inf = tz->get_info(sys_days(2001y/January/1));
-+ VERIFY( inf.abbrev == "SAZ" );
-+ inf = tz->get_info(sys_days(2001y/July/1));
-+ VERIFY( inf.abbrev == "DAZ" );
-+ // Test formatting %z as the offset determined by the active Rule.
-+ inf = tz->get_info(sys_days(2005y/January/2));
-+ VERIFY( inf.abbrev == "+01" );
-+ inf = tz->get_info(sys_days(2006y/January/1));
-+ VERIFY( inf.abbrev == "+01" );
-+ inf = tz->get_info(sys_days(2006y/July/1));
-+ VERIFY( inf.abbrev == "+02" );
-+
-+ // Test formatting %z, %s and S/D for a Zone with no associated Rules.
-+ tz = locate_zone("Strange/Zone");
-+ inf = tz->get_info(sys_days(1979y/January/1));
-+ VERIFY( inf.abbrev == "XX" ); // No Rule means nothing to use for %s.
-+ inf = tz->get_info(sys_days(1981y/July/1));
-+ VERIFY( inf.abbrev == "FOO" ); // Always standard time means first string.
-+ inf = tz->get_info(sys_days(1994y/July/1));
-+ VERIFY( inf.abbrev == "+02zz" );
-+ inf = tz->get_info(sys_days(1995y/July/1));
-+ VERIFY( inf.abbrev == "+0009zz" );
-+ inf = tz->get_info(sys_days(1996y/July/1));
-+ VERIFY( inf.abbrev == "+000807zz" );
-+ inf = tz->get_info(sys_days(1997y/July/1));
-+ VERIFY( inf.abbrev == "+000606zz" );
-+}
-+
-+int main()
-+{
-+ test_format();
-+}
-diff --git a/libstdc++-v3/testsuite/std/time/tzdb/1.cc b/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-index 5f69e182603d..73d316f55708 100644
---- a/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-+++ b/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-@@ -40,11 +40,15 @@ test_locate()
- const tzdb& db = get_tzdb();
- const time_zone* tz = db.locate_zone("GMT");
- VERIFY( tz != nullptr );
-- VERIFY( tz->name() == "Etc/GMT" );
- VERIFY( tz == std::chrono::locate_zone("GMT") );
- VERIFY( tz == db.locate_zone("Etc/GMT") );
- VERIFY( tz == db.locate_zone("Etc/GMT+0") );
-
-+ // Since 2022f GMT is now a Zone and Etc/GMT a link instead of vice versa,
-+ // but only when using the vanguard format. As of 2024a, the main and
-+ // rearguard formats still have Etc/GMT as a Zone and GMT as a link.
-+ VERIFY( tz->name() == "GMT" || tz->name() == "Etc/GMT" );
-+
- VERIFY( db.locate_zone(db.current_zone()->name()) == db.current_zone() );
- }
-
---
-2.43.5
-
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..938d446e5c61f1 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,57 +3,51 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.1+20250329
+revision=1
+bootstrap=yes
+_patchver="${version%+*}"
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
_mpfr_version=4.2.1
_mpc_version=1.3.1
_isl_version=0.26
-create_wrksrc=yes
short_desc="GNU Compiler Collection"
maintainer="Enno Boland <gottox@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-# *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
-distfiles="
- ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_majorver}-${version#*+}/gcc-${_majorver}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
+skip_extraction="gmp-${_gmp_version}.tar.xz mpfr-${_mpfr_version}.tar.xz
+ mpc-${_mpc_version}.tar.gz isl-${_isl_version}.tar.bz2"
+
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
nopie=yes
lib32disabled=yes
-bootstrap=yes
replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
libssp>=0 libssp-devel>=0"
-_have_gccgo=yes
-_have_libquadmath=no
-
-# MIPS is untested and does not have go in crosstoolchains
-# 32-bit PowerPC seems weirdly broken since the 10.x release
-# 32-bit little endian PowerPC has no support at all (no GOARCH)
-case "$XBPS_TARGET_MACHINE" in
- ppc64*) ;;
- mips*-musl|ppc*) _have_gccgo=no ;;
-esac
-
-case "$XBPS_TARGET_MACHINE" in
- i686*|x86_64*|ppc64le*) _have_libquadmath=yes ;;
-esac
-
if [ "$CHROOT_READY" ]; then
hostmakedepends="tar texinfo perl flex"
else
- _have_gccgo=no
# libzstd fails to link in bootstrap with glibc 2.36
# when zlib has been compiled with glibc 2.32.
LDFLAGS="-lzstd -pthread"
@@ -62,7 +56,6 @@ makedepends="zlib-devel libzstd-devel"
depends="binutils libgcc-devel-${version}_${revision}
libstdc++-devel-${version}_${revision} libatomic-devel-${version}_${revision}"
checkdepends="dejagnu"
-
subpackages="libgcc libgomp libgomp-devel libatomic libatomic-devel"
build_options="ada gnatboot"
@@ -70,18 +63,35 @@ build_options_default="ada"
desc_option_ada="Enable Ada build"
desc_option_gnatboot="Enable Ada bootstrap using adacore.com binaries"
+_have_gccgo=yes
+_have_libquadmath=no
+
+case "$XBPS_TARGET_MACHINE" in
+ i686*|x86_64*|ppc64le*) _have_libquadmath=yes ;;
+esac
+
+# MIPS is untested and does not have go in crosstoolchains
+# 32-bit PowerPC seems weirdly broken since the 10.x release
+# 32-bit little endian PowerPC has no support at all (no GOARCH)
+case "$XBPS_TARGET_MACHINE" in
+ ppc64*) ;;
+ mips*-musl|ppc*) _have_gccgo=no ;;
+esac
+
if [ "$build_option_gnatboot" ]; then
case "$XBPS_TARGET_MACHINE" in
x86_64)
_gnat_tarball="gnat-gpl-2017-x86_64-linux-bin.tar.gz"
distfiles+=" https://community.download.adacore.com/v1/9682e2e1f2f232ce03fe21d77b14c37a0de5649b?filename=$_gnat_tarball>$_gnat_tarball"
checksum+=" b942bcac20dea39748b39f8b624d9619f60a8dee2e8195dbe3829c835b0956e6"
+ skip_extraction+=" $_gnat_tarball"
build_options_default="gnatboot"
;;
i686)
_gnat_tarball="gnat-gpl-2014-x86-linux-bin.tar.gz"
distfiles+=" https://community.download.adacore.com/v1/c5e9e6fdff5cb77ed90cf8c62536653e27c0bed6?filename=$_gnat_tarball>$_gnat_tarball"
checksum+=" 3b693510f5d22a240abb3034934c1adbd80ccd6e4f61a4f491cc408fdfd9c042"
+ skip_extraction+=" $_gnat_tarball"
build_options_default="gnatboot"
;;
esac
@@ -90,10 +100,11 @@ fi
if [ "$CHROOT_READY" ]; then
subpackages+=" gcc-fortran libgfortran-devel libgfortran"
subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
-
if [ "$_have_libquadmath" = "yes" ]; then
subpackages+=" libquadmath libquadmath-devel"
fi
+else
+ _have_gccgo=no
fi
if [ "$_have_gccgo" = "yes" ]; then
@@ -162,18 +173,14 @@ if [ "$CROSS_BUILD" ]; then
fi
post_extract() {
- mv gcc-${version}/* gcc-${version}/.??* .
- rmdir gcc-${version}
- mv gmp-${_gmp_version} gmp
- mv mpfr-${_mpfr_version} mpfr
- mv mpc-${_mpc_version} mpc
- mv isl-${_isl_version} isl
+ vsrcextract -C gmp gmp-${_gmp_version}.tar.xz
+ vsrcextract -C mpfr mpfr-${_mpfr_version}.tar.xz
+ vsrcextract -C mpc mpc-${_mpc_version}.tar.gz
+ vsrcextract -C isl isl-${_isl_version}.tar.bz2
if [ "$build_option_gnatboot" ]; then
- local f="${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_gnat_tarball}"
msg_normal "Extracting ${_gnat_tarball} ...\n"
- mkdir -p ${wrksrc}/gnat-ins
- tar -x -f "$f" --strip-components=1 -C ${wrksrc}/gnat-ins
+ vsrcextract -C gnat-ins ${_gnat_tarball}
cd ${wrksrc}/gnat-ins
make ins-all prefix=${wrksrc}/gnat
cd ${wrksrc}
@@ -202,6 +209,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -307,6 +315,10 @@ do_configure() {
mkdir -p build
cd build
if [ "$build_option_gnatboot" ]; then
+ # file-prefix-map isn't supported in gcc6
+ export CFLAGS="${CFLAGS/-ffile-prefix-map=$wrksrc=./}"
+ export CXXFLAGS="${CXXFLAGS/-ffile-prefix-map=$wrksrc=./}"
+
_args+=" --enable-languages=${_langs},ada"
_args+=" --enable-libada"
CONFIG_SHELL=/bin/bash \
@@ -325,6 +337,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ # gcc will configure itself again throughout the build, so make sure CFLAGS/CXXFLAGS/etc
+ # are still set the same.
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +363,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +372,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
@@ -355,16 +380,16 @@ do_install() {
# Make version a symlink of major version to make all versions
# from the same series work automagically.
- mv ${DESTDIR}/usr/lib/gcc/${_triplet}/${version} \
+ mv ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver} \
${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver}
ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver} \
- ${DESTDIR}/usr/lib/gcc/${_triplet}/${version}
+ ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver}
# Ditto for c++ headers.
- mv ${DESTDIR}/usr/include/c++/${version} \
+ mv ${DESTDIR}/usr/include/c++/${_patchver} \
${DESTDIR}/usr/include/c++/${_minorver}
ln -sfr ${DESTDIR}/usr/include/c++/${_minorver} \
- ${DESTDIR}/usr/include/c++/${version}
+ ${DESTDIR}/usr/include/c++/${_patchver}
# cc symlink
ln -sfr ${DESTDIR}/usr/bin/gcc ${DESTDIR}/usr/bin/cc
@@ -373,7 +398,7 @@ do_install() {
# lto plugin symlink
vmkdir usr/lib/bfd-plugins
- ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${version}/liblto_plugin.so \
+ ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver}/liblto_plugin.so \
${DESTDIR}/usr/lib/bfd-plugins
# Remove "fixed" header
@@ -457,7 +482,7 @@ gcc-fortran_package() {
if [ "$CROSS_BUILD" ]; then
# A number of OMP modules are not built when cross
# compiling gcc. Copy them from the cross compiler.
- local src="/usr/lib/gcc/${_triplet}/${version}/finclude"
+ local src="/usr/lib/gcc/${_triplet}/${_patchver}/finclude"
local dst="usr/lib/gcc/${_triplet}/${_minorver}/finclude"
for f in omp_lib.f90 omp_lib.h omp_lib.mod omp_lib_kinds.mod \
openacc.f90 openacc.mod openacc_kinds.mod openacc_lib.h; do
@@ -714,7 +739,7 @@ libstdc++_package() {
short_desc+=" - Standard C++ Library"
pkg_install() {
vmove usr/share/gdb
- vmove usr/share/gcc-${version}/python
+ vmove usr/share/gcc-${_patchver}/python
vmove "usr/lib/libstdc++.so*"
vlicense COPYING.RUNTIME RUNTIME.LIBRARY.EXCEPTION
}
From 4645bb8ae0b1010ae88a1b9721866935d416c27e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 04/40] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
common/shlibs | 60 +-
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
7 files changed, 33 insertions(+), 1003 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/common/shlibs b/common/shlibs
index 26f9ead7a32c95..4bc3ce575e7784 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -17,36 +17,36 @@
# one (order top->bottom) is preferred over the next ones.
#
libc.so musl-1.1.24_7
-libc.so.6 glibc-2.39_1
-libm.so.6 glibc-2.39_1
-libpthread.so.0 glibc-2.39_1
-librt.so.1 glibc-2.39_1
-libdl.so.2 glibc-2.39_1
-ld-linux-x86-64.so.2 glibc-2.39_1 x86_64
-ld-linux.so.2 glibc-2.39_1 i686
-ld-linux.so.3 glibc-2.39_1 armv5tel
-ld-linux-aarch64.so.1 glibc-2.39_1 aarch64
-ld-linux-riscv64-lp64d.so.1 glibc-2.39_1 riscv64
-ld64.so.2 glibc-2.39_1 ppc64
-ld.so.1 glibc-2.39_1 mips
-ld.so.1 glibc-2.39_1 ppc
-ld-linux-armhf.so.3 glibc-2.39_1
-libresolv.so.2 glibc-2.39_1
-libanl.so.1 glibc-2.39_1
-libthread_db.so.1 glibc-2.39_1
-libutil.so.1 glibc-2.39_1
-libnsl.so.1 glibc-2.39_1
-libnss_db.so.2 glibc-2.39_1
-libnss_files.so.2 glibc-2.39_1
-libnss_compat.so.2 glibc-2.39_1
-libnss_dns.so.2 glibc-2.39_1
-libnss_hesiod.so.2 glibc-2.39_1
-libBrokenLocale.so.1 glibc-2.39_1
-libmemusage.so glibc-2.39_1
-libSegFault.so glibc-2.39_1
-libpcprofile.so glibc-2.39_1
-libcidn.so.1 glibc-2.39_1
-libmvec.so.1 glibc-2.39_1
+libc.so.6 glibc-2.41_1
+libm.so.6 glibc-2.41_1
+libpthread.so.0 glibc-2.41_1
+librt.so.1 glibc-2.41_1
+libdl.so.2 glibc-2.41_1
+ld-linux-x86-64.so.2 glibc-2.41_1 x86_64
+ld-linux.so.2 glibc-2.41_1 i686
+ld-linux.so.3 glibc-2.41_1 armv5tel
+ld-linux-aarch64.so.1 glibc-2.41_1 aarch64
+ld-linux-riscv64-lp64d.so.1 glibc-2.41_1 riscv64
+ld64.so.2 glibc-2.41_1 ppc64
+ld.so.1 glibc-2.41_1 mips
+ld.so.1 glibc-2.41_1 ppc
+ld-linux-armhf.so.3 glibc-2.41_1
+libresolv.so.2 glibc-2.41_1
+libanl.so.1 glibc-2.41_1
+libthread_db.so.1 glibc-2.41_1
+libutil.so.1 glibc-2.41_1
+libnsl.so.1 glibc-2.41_1
+libnss_db.so.2 glibc-2.41_1
+libnss_files.so.2 glibc-2.41_1
+libnss_compat.so.2 glibc-2.41_1
+libnss_dns.so.2 glibc-2.41_1
+libnss_hesiod.so.2 glibc-2.41_1
+libBrokenLocale.so.1 glibc-2.41_1
+libmemusage.so glibc-2.41_1
+libSegFault.so glibc-2.41_1
+libpcprofile.so glibc-2.41_1
+libcidn.so.1 glibc-2.41_1
+libmvec.so.1 glibc-2.41_1
libcrypt.so.2 libxcrypt-4.4.36_1
libcrypt.so.1 libxcrypt-compat-4.4.36_1
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From 62a82b2861fa0bafbda7a64bd001b1406fd66a5d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 05/40] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 04e22c4fb01166..922d009ad8c36e 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=23
+revision=24
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From e330781ba7455271b65745d906069a46a996990a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 06/40] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 5d3ba2a7a9feb4501e3f64d6a6f3c5c22b7b829a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 07/40] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 3a6883c5291021e2e16c6c37164daf10d61f6b64 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 08/40] gcc-multilib: update to 14.2.1+20250329.
---
.../patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 62 +++++++++++--------
2 files changed, 37 insertions(+), 27 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..a3f737567de2dd 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,32 +3,41 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.1+20250329
revision=1
-_majorver="${version%.*}"
+_patchver="${version%+*}"
+_minorver="${version%.*}"
+_majorver="${_minorver%.*}"
+hostmakedepends="perl flex tar"
+makedepends="zlib-devel libzstd-devel isl-devel libmpc-devel gmp-devel mpfr-devel
+ glibc-32bit glibc-devel-32bit"
+depends="
+ gcc>=${_minorver}
+ libgcc-32bit>=${_minorver}
+ libgomp-devel-32bit>=${_minorver}
+ libitm-devel-32bit>=${_minorver}
+ libsanitizer-devel-32bit>=${_minorver}
+ libatomic-devel-32bit>=${_minorver}
+ libvtv-devel-32bit>=${_minorver}
+ zlib-32bit glibc-devel-32bit"
short_desc="GNU Compiler Collection (multilib files)"
maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
-
-hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
- glibc-32bit glibc-devel-32bit"
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_majorver}-${version#*+}/gcc-${_majorver}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+checksum=973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
-depends="
- gcc>=${_majorver}
- libgcc-32bit>=${_majorver}
- libgomp-devel-32bit>=${_majorver}
- libitm-devel-32bit>=${_majorver}
- libsanitizer-devel-32bit>=${_majorver}
- libatomic-devel-32bit>=${_majorver}
- libvtv-devel-32bit>=${_majorver}
- zlib-32bit
- glibc-devel-32bit"
replaces="libmpx-devel-32bit>=0 libssp-32bit>=0 libssp-devel-32bit>=0"
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
+
do_configure() {
ldconfig &>/dev/null
@@ -69,6 +78,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
@@ -77,19 +87,19 @@ do_install() {
# Make version a symlink of major version to make all versions
# from the same series work automagically.
- vmkdir usr/include/c++/${_majorver}/${_triplet}
- vmkdir usr/lib/gcc/${_triplet}/${_majorver}
+ vmkdir usr/include/c++/${_minorver}/${_triplet}
+ vmkdir usr/lib/gcc/${_triplet}/${_minorver}
- cp -a ${wrksrc}/${pkgname}-build/usr/lib/gcc/${_pc_triplet}/${version}/32 \
- ${DESTDIR}/usr/lib/gcc/${_triplet}/${_majorver}/
- cp -a ${wrksrc}/${pkgname}-build/usr/include/c++/${version}/${_pc_triplet}/32 \
- ${DESTDIR}/usr/include/c++/${_majorver}/${_triplet}
+ cp -a ${wrksrc}/${pkgname}-build/usr/lib/gcc/${_pc_triplet}/${_patchver}/32 \
+ ${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver}/
+ cp -a ${wrksrc}/${pkgname}-build/usr/include/c++/${_patchver}/${_pc_triplet}/32 \
+ ${DESTDIR}/usr/include/c++/${_minorver}/${_triplet}
- vinstall ${wrksrc}/host-${_pc_triplet}/gcc/specs 644 usr/lib/gcc/${_triplet}/${_majorver}
+ vinstall ${wrksrc}/host-${_pc_triplet}/gcc/specs 644 usr/lib/gcc/${_triplet}/${_minorver}
}
gcc-objc-multilib_package() {
- depends="gcc-multilib>=${_majorver} gcc-objc>=${_majorver} libobjc-devel-32bit>=${_majorver}"
+ depends="gcc-multilib>=${_minorver} gcc-objc>=${_minorver} libobjc-devel-32bit>=${_minorver}"
short_desc="GNU Objective-C compiler (multilib files)"
build_style=meta
}
From 5bdb199aaba6cc276e5641628420df0651847d52 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 09/40] libgccjit: update to 14.2.1+20250329.
---
srcpkgs/libgccjit/template | 44 +++++++++++++-------------------------
1 file changed, 15 insertions(+), 29 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..78de3d222d4433 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,43 +3,29 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.1+20250329
revision=1
-_gmp_version=6.3.0
-_mpfr_version=4.2.0
-_mpc_version=1.3.1
-_isl_version=0.24
-create_wrksrc=yes
+hostmakedepends="tar texinfo perl flex"
+makedepends="zlib-devel libzstd-devel isl-devel libmpc-devel gmp-devel mpfr-devel"
+depends="gcc"
+checkdepends="dejagnu"
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
homepage="https://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-# *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
-distfiles="
- ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
- ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
- ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
- ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
- ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${version%%.*}-${version#*+}/gcc-${version%%.*}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+checksum=973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
nopie=yes
lib32disabled=yes
-makedepends="zlib-devel"
-hostmakedepends="tar texinfo perl flex"
-depends="gcc"
-checkdepends="dejagnu"
-post_extract() {
- mv gcc-*/* .
- mv gmp-${_gmp_version} gmp
- mv mpfr-${_mpfr_version} mpfr
- mv mpc-${_mpc_version} mpc
- mv isl-${_isl_version} isl
-}
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
pre_configure() {
if [ "$XBPS_TARGET_LIBC" = musl ]; then
From 464b7bd24160864be775e47497bc047820863f06 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 10/40] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From baea67d18ca0168d1eb94dc87be8ce8f66f27691 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 22:59:26 -0700
Subject: [PATCH 11/40] openjdk7-bootstrap: fix build with gcc14
---
srcpkgs/openjdk7-bootstrap/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index 03d91bebf4934a..a4e4ff46091b65 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -86,7 +86,7 @@ skip_extraction="
shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
nocross=yes
-CFLAGS="-fcommon"
+CFLAGS="-fcommon -fpermissive"
post_extract() {
mv icedtea-*/* .
From d242e8ef86581618e9a8bdf8aa8317fbcfc2676d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 23:00:00 -0700
Subject: [PATCH 12/40] openjdk8: fix build with gcc14
---
.../patches/105_implicit_declaration.patch | 25 +++++++++++++++++++
.../openjdk8/patches/106_int_conversion.patch | 16 ++++++++++++
srcpkgs/openjdk8/template | 2 ++
3 files changed, 43 insertions(+)
create mode 100644 srcpkgs/openjdk8/patches/105_implicit_declaration.patch
create mode 100644 srcpkgs/openjdk8/patches/106_int_conversion.patch
diff --git a/srcpkgs/openjdk8/patches/105_implicit_declaration.patch b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
new file mode 100644
index 00000000000000..7a04c21ec910c3
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
@@ -0,0 +1,25 @@
+The isnanf BSD extension was deprecated with the
+introduction of isnan in c99 and isn't implemented in musl.
+Use the isnan function instead.
+
+--- a/jdk/src/solaris/native/common/jdk_util_md.h
++++ b/jdk/src/solaris/native/common/jdk_util_md.h
+@@ -37,7 +37,7 @@
+ #define ISNAND(d) isnan(d)
+ #elif defined(__linux__) || defined(_ALLBSD_SOURCE)
+ #include <math.h>
+-#define ISNANF(f) isnanf(f)
++#define ISNANF(f) isnan(f)
+ #define ISNAND(d) isnan(d)
+ #elif defined(_AIX)
+ #include <math.h>
+--- a/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
++++ b/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
+@@ -29,6 +29,7 @@
+ #include "jlong.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <dlfcn.h>
+ #include <errno.h>
diff --git a/srcpkgs/openjdk8/patches/106_int_conversion.patch b/srcpkgs/openjdk8/patches/106_int_conversion.patch
new file mode 100644
index 00000000000000..2c57cb01353072
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/106_int_conversion.patch
@@ -0,0 +1,16 @@
+--- a/jdk/src/share/bin/splashscreen_stubs.c
++++ b/jdk/src/share/bin/splashscreen_stubs.c
+@@ -61,11 +61,11 @@
+ #define INVOKEV(name) _INVOKE(name, ,;)
+
+ int DoSplashLoadMemory(void* pdata, int size) {
+- INVOKE(SplashLoadMemory, NULL)(pdata, size);
++ INVOKE(SplashLoadMemory, 0)(pdata, size);
+ }
+
+ int DoSplashLoadFile(const char* filename) {
+- INVOKE(SplashLoadFile, NULL)(filename);
++ INVOKE(SplashLoadFile, 0)(filename);
+ }
+
+ void DoSplashInit(void) {
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 3f01bd949417d9..045f78ad363dab 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -78,6 +78,8 @@ fi
# enabling ccache segfaults gcc
export CCACHE_DISABLE=1
+CFLAGS="-Wno-incompatible-pointer-types"
+
post_extract() {
chmod +x configure
}
From d4f02be7a5cac4a00c389c929946212d39390912 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:37:27 -0700
Subject: [PATCH 13/40] common/environment/build-style/void-cross.sh: add
distfiles fallback
Try the distfiles mirror in case the gcc snapshot has expired.
---
common/environment/build-style/void-cross.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/common/environment/build-style/void-cross.sh b/common/environment/build-style/void-cross.sh
index 40df98e95e9026..26d586a6cb59a3 100644
--- a/common/environment/build-style/void-cross.sh
+++ b/common/environment/build-style/void-cross.sh
@@ -1,3 +1,9 @@
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
+
lib32disabled=yes
nopie=yes
From 347b5b8f8a4e95f6d1dd3a8abf126e0110e9a7a5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 14/40] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From 849bf6a71beebd19dec04ad6a0396210736367d8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:09 -0700
Subject: [PATCH 15/40] cross-aarch64-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-aarch64-linux-gnu/template | 25 +++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..b0e9daceffe8a0 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -15,14 +15,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f9d89d50b6e5b54302ec117a1d107e2237895935 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:09 -0700
Subject: [PATCH 16/40] cross-aarch64-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-aarch64-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..d6eb1046c12884 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,15 +16,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 6588dfc66f367a803717b486f5e64c5b04de166e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:09 -0700
Subject: [PATCH 17/40] cross-arm-linux-gnueabi: update to gcc 14.2.1+20250329
---
srcpkgs/cross-arm-linux-gnueabi/template | 25 +++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..8c363a24847c6e 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 666ea8dffb6d71cf489011a0a66a86a98bc8f394 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:09 -0700
Subject: [PATCH 18/40] cross-arm-linux-gnueabihf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-arm-linux-gnueabihf/template | 25 ++++++++++++----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..3cdebc157e2e8a 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 83273ed4705818a6b2cf5a5980e3f004fb0e08aa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 19/40] cross-arm-linux-musleabi: update to gcc 14.2.1+20250329
---
srcpkgs/cross-arm-linux-musleabi/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..a3b1bf8605042d 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -17,15 +17,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 308895b232bd47c0bcc86ede63220f92ddf81c4d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 20/40] cross-arm-linux-musleabihf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-arm-linux-musleabihf/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..ea99a20947d4e6 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -17,15 +17,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From dd1c9c086392e434fe35741674e0087440ed6f9e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 21/40] cross-armv7l-linux-gnueabihf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 25 +++++++++++--------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..ad9a6271551716 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -15,14 +15,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 2d6f536e3a39444b1bcfa540423505472c2c3a6d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 22/40] cross-armv7l-linux-musleabihf: update to gcc
14.2.1+20250329
---
.../cross-armv7l-linux-musleabihf/template | 21 +++++++++++--------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..cb526eba5304d2 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,15 +16,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 8626d66d2839cfa09c905a0f01a1a6e3f62d0bdd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 23/40] cross-i686-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-i686-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..6173a2c5efb778 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -15,15 +15,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From ceb4b38fb8d5eb0f1dbcd81eb5d8d735c1ab846b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 24/40] cross-i686-pc-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-i686-pc-linux-gnu/template | 25 +++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..f5280bad74e1f5 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -14,14 +14,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 87d0764ee3af6093802bc53b7749412483ff9f82 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 25/40] cross-mips-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-mips-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..65d89c83de2c8b 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 52fdff6fcb85b9412ddb000bba3cb3e8ac503ca9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 26/40] cross-mips-linux-muslhf: update to gcc 14.2.1+20250329
---
srcpkgs/cross-mips-linux-muslhf/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..9fadaf148799e4 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="hipperson0 <hipperson0@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 2d68f5b3e5a13aa40d4f07bf24566ba7534d94ae Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:10 -0700
Subject: [PATCH 27/40] cross-mipsel-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-mipsel-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..eebfd8913e2827 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 6742dd33e39f5d12525a517d0cb0ef78247917c5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 28/40] cross-mipsel-linux-muslhf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-mipsel-linux-muslhf/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..a194e2b56927c8 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 76967da6e9ccab2ac3921568e4999cd2d53b3aa3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 29/40] cross-powerpc-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-powerpc-linux-gnu/template | 25 +++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..a2093d3507ba8c 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Thomas Batten <stenstorpmc@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7a0838ebe42f48dc9766db1a67dea55c64453b24 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 30/40] cross-powerpc-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-powerpc-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..e14ffcf8ba26b3 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Thomas Batten <stenstorpmc@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 484b500875a98053fb0b03555d7d55ca6f040176 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 31/40] cross-powerpc64-linux-gnu: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64-linux-gnu/template | 25 ++++++++++++----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..43fd15796716a1 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 4c96962b10caad137489422cc536b9abab5101d5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 32/40] cross-powerpc64-linux-musl: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..156335883d6caf 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -18,15 +18,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 9b4fbfc67f0dc97ac5cdde27fbc4f3d9d25b4471 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 33/40] cross-powerpc64le-linux-gnu: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 25 +++++++++++---------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..5b59960a6e8e21 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 34f2c3335e8510489686ae2f976ef55d744b9e06 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 34/40] cross-powerpc64le-linux-musl: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64le-linux-musl/template | 21 +++++++++++--------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..7ef7fbfda4e466 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -18,15 +18,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 4e96a38c76184c8131e78c68f3a14555a02027b0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:11 -0700
Subject: [PATCH 35/40] cross-powerpcle-linux-gnu: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpcle-linux-gnu/template | 27 ++++++++++++----------
1 file changed, 15 insertions(+), 12 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..7b8f24ef7d45af 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -16,15 +16,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
@@ -37,7 +40,7 @@ if [ "$XBPS_TARGET_MACHINE" = "ppcle" ]; then
broken="Can't build crosstoolchain to itself"
fi
-broken="glibc uses big-endian specific instructions on 32-bit powerpc"
+broken="glibc uses big-endian specific instructions (stmw and lmw) in 32-bit powerpc clone.S"
cross-powerpcle-linux-gnu-libc_package() {
short_desc+=" - glibc files"
From 823b6928f67ea11524c8896461976e8c34cfde89 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:12 -0700
Subject: [PATCH 36/40] cross-powerpcle-linux-musl: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpcle-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..abf1c5b4b4cd5a 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -16,14 +16,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From c99bc1bc635494fe2aabc1e810762b7825e8f379 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:12 -0700
Subject: [PATCH 37/40] cross-riscv64-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-riscv64-linux-gnu/template | 25 +++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..64664233f9d8dc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -15,14 +15,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7bfe3cfc2495461d25a43eb39627e0abbc6bfda1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:12 -0700
Subject: [PATCH 38/40] cross-riscv64-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-riscv64-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..c6f885caf7218d 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,15 +16,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From eb20ddd7c4848cd3cb705429a40854d336b46ac6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:12 -0700
Subject: [PATCH 39/40] cross-x86_64-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-x86_64-linux-gnu/template | 25 ++++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..db352f9f624b10 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -14,14 +14,17 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From dbebaafee22117f26a6c0a7f6a5ef142af953fe9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:33:12 -0700
Subject: [PATCH 40/40] cross-x86_64-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-x86_64-linux-musl/template | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..b782841cff337d 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -15,15 +15,18 @@ depends="${pkgname}-libc-${version}_${revision}"
short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
-homepage="https://www.voidlinux.org/"
-distfiles="
+homepage=https://www.voidlinux.org/
+case ${_gcc_version} in
+ *+*) distfiles=https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz ;;
+ *) distfiles=${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.1+20250329.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (45 preceding siblings ...)
2025-04-06 9:39 ` [PR PATCH] [Updated] " oreo639
@ 2025-04-06 9:56 ` oreo639
2025-04-06 11:06 ` oreo639
` (16 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-04-06 9:56 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 7675 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.1+20250329.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
You can test the ISOs here: https://devspace.voidlinux.org/oreo639/live/gcc14/
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp https://github.com/void-linux/void-packages/commit/30e9e29bb5a348b2c6b7a9b3e29c13d2bc28cfae
- [x] libsasl https://github.com/void-linux/void-packages/commit/6f71c8889cc8a79411ddaca582250e19718f12da
- [x] nvi https://github.com/void-linux/void-packages/commit/a51ebf219534e5420ffc83d5a89b43dc992c9b81
- [x] xbps https://github.com/void-linux/void-packages/commit/73c8cdee1d9b05980cdc0763294cce9372612ba4
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
- [x] gtk+ https://github.com/void-linux/void-packages/commit/ac57a55a5fda78618aec2ec7bb3c27404834ed04
- [x] gtk+3 https://github.com/void-linux/void-packages/pull/54187
- [x] libaom https://github.com/void-linux/void-packages/commit/fcbb94217389f64fea4c536959983814ebaadae4
- [x] perl-Tk https://github.com/void-linux/void-packages/commit/67aeb9d9b2b077d9b7f25902bbf079c1569a2633
- [x] gnu-efi-libs https://github.com/void-linux/void-packages/commit/92b2642bc8d1871605f824064863149985419010
- [x] syslinux https://github.com/void-linux/void-packages/commit/49af74a1dfb32ba1de556f4491b3870179c80872
- [x] recode https://github.com/void-linux/void-packages/pull/54707
- [x] libcddb https://github.com/void-linux/void-packages/commit/eeae3026d1356e1ac5d0547e19e2742a335ae9ca
- [x] vim https://github.com/void-linux/void-packages/pull/54706
- [x] vmaf https://github.com/void-linux/void-packages/pull/54721
- [x] audit https://github.com/void-linux/void-packages/pull/54722
- [x] aalib https://github.com/void-linux/void-packages/commit/d7769fe6d757a62fbfc0998d5cbde5dec8a7db11
- [x] cppdap (outdated vendored gtest, patch merged upstream) https://github.com/void-linux/void-packages/commit/a2c9d8ac073e9f40d6b7b1bb3df108c0d46481bb
- [x] snappy (outdated vendored gtest, upstream rejected patch stating that downstreams running their tests is not supported and that downstreams should either ship their own tests/patches or just disable them) https://github.com/void-linux/void-packages/commit/4e73161431672d245a8d558f269a74f1ab363cc8
- [x] openjdk7-bootstrap
- [x] openjdk8
- [x] gimp https://github.com/void-linux/void-packages/commit/d173951120b07bc57171f6962c92c0877becd0d8
- [x] xf86-video-nouveau https://github.com/void-linux/void-packages/pull/54720
- [x] libao https://github.com/void-linux/void-packages/commit/b9c6b010a201211c0ffba8a821f0021b9bdaf376
- [x] accountsservice https://github.com/void-linux/void-packages/commit/a1ca8cef0b2e98ba22c4d632685f85c5d0cde4c1
- Done with base-syste/xfce
- [x] zeitgeist
- [x] libgee
- [x] cogl
- [x] clutter-gst3
- [x] telepathy-glib
- [x] xen https://github.com/void-linux/void-packages/pull/54751
- [x] vde2 https://github.com/void-linux/void-packages/pull/54750
- Sagemath Related
- [x] gf2x
- [x] linbox
- [x] givaro
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [x] elfutils https://github.com/void-linux/void-packages/pull/54566
- [x] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [x] sane https://github.com/void-linux/void-packages/pull/54614
- [x] mdadm https://github.com/void-linux/void-packages/commit/10694f08c471b2701b3c275540b0c665f67c8b9b
- [x] pulseaudio (broken due to configure checks detecting presence of open64, this is fixed in musl 1.2.x https://github.com/bminor/musl/commit/246f1c811448f37a44b41cd8df8d0ef9736d95f4 https://github.com/bminor/musl/commit/50ab830633134dac99011219f0210ee2759ffbde) https://github.com/void-linux/void-packages/commit/b87ec8f3ca216b6d9cfb4836f236fca13f45c2ab
- [x] gpm
- [x] linux-tools https://github.com/void-linux/void-packages/commit/8c670d7a13a3d6783e23624bda033ef898cafd72
- [x] v4l-utils (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg6 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] gst-plugins-good1 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] libcdio (fseek64, also broken on i686-glibc) https://github.com/void-linux/void-packages/pull/54724
- [x] gcr (getpass) https://github.com/void-linux/void-packages/commit/a40788b2db81ceba7e4a9f75e1c120efd7577600
- [x] libndp https://github.com/void-linux/void-packages/commit/580546374e10b6847a66bfb4d9f27579d5112902
- [x] samba https://github.com/void-linux/void-packages/commit/0900507d38bfc7963d7b6c1a7b04341ae987f2d2
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration instead of segfaulting later due to implicit pointer truncation. This is good, but ofc, packages need to be checked for this.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, please test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 186507 bytes --]
From 966e6a37cbaa962da5a02dabf3a0d5d03cd97602 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Tue, 28 May 2024 15:31:49 -0400
Subject: [PATCH 01/40] xbps-src: add option to use distfiles mirror as a
fallback
This adds an optional configuration to add a fallback distfiles mirror
The idea is that normally, distfiles should be fetched from the urls in
the template. However, occasionally the urls have rotted, or are simply
down temporairily, in which case the fetch will fail. A workaround to
this has been to use the $XBPS_DISTFILES_MIRROR option, however the
downside to this is that it is always tried first, and 99% of the time isn't
needed.
This adds the $XBPS_DISTFILES_FALLBACK option, which can be set to an
addiontional list of mirrors which will be attempted after both
$XBPS_DISTFILES_MIRROR, and the urls in the template have failed to
fetch the distfiles
Co-authored-by: oreo639 <oreo6391@gmail.com>
---
common/hooks/do-fetch/00-distfiles.sh | 15 +++++++++------
xbps-src | 10 +++++++---
2 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/common/hooks/do-fetch/00-distfiles.sh b/common/hooks/do-fetch/00-distfiles.sh
index 1adb86a5167823..2065d5442a3a12 100644
--- a/common/hooks/do-fetch/00-distfiles.sh
+++ b/common/hooks/do-fetch/00-distfiles.sh
@@ -128,11 +128,11 @@ link_cksum() {
}
try_mirrors() {
- local curfile="$1" distfile="$2" cksum="$3" f="$4"
+ local curfile="$1" distfile="$2" cksum="$3" f="$4" mirror_list="$5"
local filesum basefile mirror path scheme good
- [ -z "$XBPS_DISTFILES_MIRROR" ] && return 1
+ [ -z "$mirror_list" ] && return 1
basefile="${f##*/}"
- for mirror in $XBPS_DISTFILES_MIRROR; do
+ for mirror in $mirror_list; do
scheme="file"
if [[ $mirror == *://* ]]; then
scheme="${mirror%%:/*}"
@@ -148,8 +148,8 @@ try_mirrors() {
continue
fi
fi
- if [[ "$mirror" == *voidlinux* ]]; then
- # For distfiles.voidlinux.* append the subdirectory
+ if [[ "$mirror" == *sources.voidlinux.* ]]; then
+ # For sources.voidlinux.* append the subdirectory
mirror="$mirror/$pkgname-$version"
fi
msg_normal "$pkgver: fetching distfile '$curfile' from mirror '$mirror'...\n"
@@ -286,11 +286,14 @@ hook() {
fi
# If distfile does not exist, download it from a mirror location.
- if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}"; then
+ if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}" "$XBPS_DISTFILES_MIRROR"; then
continue
fi
if ! try_urls "$curfile"; then
+ if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}" "$XBPS_DISTFILES_FALLBACK"; then
+ continue
+ fi
msg_error "$pkgver: failed to fetch '$curfile'.\n"
fi
done
diff --git a/xbps-src b/xbps-src
index c17270b62ee4b5..1ce830c7bf9c18 100755
--- a/xbps-src
+++ b/xbps-src
@@ -343,10 +343,11 @@ read_pkg() {
}
setup_distfiles_mirror() {
+ local mirror_list="$1"
local mirror scheme path
# Scheme file:// mirror locations only work with uchroot
- for mirror in $XBPS_DISTFILES_MIRROR; do
+ for mirror in $mirror_list; do
scheme="file"
if [[ "$mirror" == *://* ]]; then
scheme="${mirror%%://*}"
@@ -696,7 +697,7 @@ export XBPS_SHUTILSDIR XBPS_CROSSPFDIR XBPS_TRIGGERSDIR \
XBPS_LIBEXECDIR XBPS_DISTDIR XBPS_DISTFILES_MIRROR XBPS_ALLOW_RESTRICTED \
XBPS_USE_GIT_COMMIT_DATE XBPS_PKG_COMPTYPE XBPS_REPO_COMPTYPE \
XBPS_BUILDHELPERDIR XBPS_USE_BUILD_MTIME XBPS_BUILD_ENVIRONMENT \
- XBPS_PRESERVE_PKGS XBPS_IGNORE_BROKENNESS
+ XBPS_PRESERVE_PKGS XBPS_IGNORE_BROKENNESS XBPS_DISTFILES_FALLBACK
for i in REPOSITORY DESTDIR BUILDDIR SRCDISTDIR; do
eval val="\$XBPS_$i"
@@ -760,7 +761,10 @@ done
if [ -z "$IN_CHROOT" ]; then
trap 'exit_func' INT TERM
if [ -n "$XBPS_DISTFILES_MIRROR" ]; then
- setup_distfiles_mirror
+ setup_distfiles_mirror "$XBPS_DISTFILES_MIRROR"
+ fi
+ if [ -n "$XBPS_DISTFILES_FALLBACK" ]; then
+ setup_distfiles_mirror "$XBPS_DISTFILES_FALLBACK"
fi
fi
From 91019a9ff783286ef82c3f00f8d91cc26267e03c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 02/40] binutils: update to 2.44.
---
srcpkgs/binutils/template | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..024f8e5c634dd7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
@@ -73,8 +73,7 @@ do_configure() {
esac
# target archs supported by Void
- # borked: riscv64 (gold doesn't support it)
- void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,x86_64"
+ void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,riscv64,x86_64"
conf+=" --enable-targets=$(echo "$void_targets" | sed -E -e 's/(,|$)/-linux-gnu\1/g'),${extra_targets}"
if [ "$build_option_all_targets" ]; then
@@ -107,7 +106,6 @@ do_configure() {
--enable-threads \
--enable-plugins \
--enable-relro \
- --enable-gold \
--enable-new-dtags \
--enable-deterministic-archives \
--enable-64-bit-bfd \
From 4d719866ed4757b7260b1766816c2d7d43d770aa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 03/40] gcc: update to 14.2.1+20250329.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ---------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 -----
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 --
.../patches/fix-pretty-printer-warnings.patch | 125 ----
.../gcc/patches/libstdcxx-tzdb-z-format.patch | 563 ------------------
srcpkgs/gcc/template | 109 ++--
7 files changed, 70 insertions(+), 1232 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
delete mode 100644 srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
diff --git a/common/shlibs b/common/shlibs
index a51d54d5472096..26f9ead7a32c95 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.40 perl-5.40.1_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch b/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
deleted file mode 100644
index 0deb99ac6a2df2..00000000000000
--- a/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
+++ /dev/null
@@ -1,563 +0,0 @@
-From 5ceea2ac106d6dd1aa8175670b15a801316cf1c9 Mon Sep 17 00:00:00 2001
-From: Jonathan Wakely <jwakely@redhat.com>
-Date: Tue, 30 Apr 2024 09:52:13 +0100
-Subject: [PATCH] libstdc++: Fix std::chrono::tzdb to work with vanguard format
-
-I found some issues in the std::chrono::tzdb parser by testing the
-tzdata "vanguard" format, which uses new features that aren't enabled in
-the "main" and "rearguard" data formats.
-
-Since 2024a the keyword "minimum" is no longer valid for the FROM and TO
-fields in a Rule line, which means that "m" is now a valid abbreviation
-for "maximum". Previously we expected either "mi" or "ma". For backwards
-compatibility, a FROM field beginning with "mi" is still supported and
-is treated as 1900. The "maximum" keyword is only allowed in TO now,
-because it makes no sense in FROM. To support these changes the
-minmax_year and minmax_year2 classes for parsing FROM and TO are
-replaced with a single years_from_to class that reads both fields.
-
-The vanguard format makes use of %z in Zone FORMAT fields, which caused
-an exception to be thrown from ZoneInfo::set_abbrev because no % or /
-characters were expected when a Zone doesn't use a named Rule. The
-ZoneInfo::to(sys_info&) function now uses format_abbrev_str to replace
-any %z with the current offset. Although format_abbrev_str also checks
-for %s and STD/DST formats, those only make sense when a named Rule is
-in effect, so won't occur when ZoneInfo::to(sys_info&) is used.
-
-Since making this change on trunk, the tzdata-2024b release started
-using %z in the main format, not just vanguard. This makes a backport to
-release branches necessary (see PR 116657).
-
-This change also implements a feature that has always been missing from
-time_zone::_M_get_sys_info: finding the Rule that is active before the
-specified time point, so that we can correctly handle %s in the FORMAT
-for the first new sys_info that gets created. This requires implementing
-a poorly documented feature of zic, to get the LETTERS field from a
-later transition, as described at
-https://mm.icann.org/pipermail/tz/2024-April/058891.html
-In order for this to work we need to be able to distinguish an empty
-letters field (as used by CE%sT where the variable part is either empty
-or "S") from "the letters field is not known for this transition". The
-tzdata file uses "-" for an empty letters field, which libstdc++ was
-previously replacing with "" when the Rule was parsed. Instead, we now
-preserve the "-" in the Rule object, so that "" can be used for the case
-where we don't know the letters (and so need to decide it).
-
-libstdc++-v3/ChangeLog:
-
- * src/c++20/tzdb.cc (minmax_year, minmax_year2): Remove.
- (years_from_to): New class replacing minmax_year and
- minmax_year2.
- (format_abbrev_str, select_std_or_dst_abbrev): Move earlier in
- the file. Handle "-" for letters.
- (ZoneInfo::to): Use format_abbrev_str to expand %z.
- (ZoneInfo::set_abbrev): Remove exception. Change parameter from
- reference to value.
- (operator>>(istream&, Rule&)): Do not clear letters when it
- contains "-".
- (time_zone::_M_get_sys_info): Add missing logic to find the Rule
- in effect before the time point.
- * testsuite/std/time/tzdb/1.cc: Adjust for vanguard format using
- "GMT" as the Zone name, not as a Link to "Etc/GMT".
- * testsuite/std/time/time_zone/sys_info_abbrev.cc: New test.
-
-(cherry picked from commit 0ca8d56f2085715f27ee536c6c344bc47af49cdd)
----
- libstdc++-v3/src/c++20/tzdb.cc | 265 +++++++++++-------
- .../std/time/time_zone/sys_info_abbrev.cc | 106 +++++++
- libstdc++-v3/testsuite/std/time/tzdb/1.cc | 6 +-
- 3 files changed, 274 insertions(+), 103 deletions(-)
- create mode 100644 libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-
-diff --git a/libstdc++-v3/src/c++20/tzdb.cc b/libstdc++-v3/src/c++20/tzdb.cc
-index e058caf27d89..034e72f02743 100644
---- a/libstdc++-v3/src/c++20/tzdb.cc
-+++ b/libstdc++-v3/src/c++20/tzdb.cc
-@@ -342,51 +342,103 @@ namespace std::chrono
- friend istream& operator>>(istream&, on_day&);
- };
-
-- // Wrapper for chrono::year that reads a year, or one of the keywords
-- // "minimum" or "maximum", or an unambiguous prefix of a keyword.
-- struct minmax_year
-+ // Wrapper for two chrono::year values, which reads the FROM and TO
-+ // fields of a Rule line. The FROM field is a year and TO is a year or
-+ // one of the keywords "maximum" or "only" (or an abbreviation of those).
-+ // For backwards compatibility, the keyword "minimum" is recognized
-+ // for FROM and interpreted as 1900.
-+ struct years_from_to
- {
-- year& y;
-+ year& from;
-+ year& to;
-
-- friend istream& operator>>(istream& in, minmax_year&& y)
-+ friend istream& operator>>(istream& in, years_from_to&& yy)
- {
-- if (ws(in).peek() == 'm') // keywords "minimum" or "maximum"
-+ string s;
-+ auto c = ws(in).peek();
-+ if (c == 'm') [[unlikely]] // keyword "minimum"
- {
-- string s;
-- in >> s; // extract the rest of the word, but only look at s[1]
-- if (s[1] == 'a')
-- y.y = year::max();
-- else if (s[1] == 'i')
-- y.y = year::min();
-- else
-- in.setstate(ios::failbit);
-+ in >> s; // extract the rest of the word
-+ yy.from = year(1900);
-+ }
-+ else if (int num = 0; in >> num) [[likely]]
-+ yy.from = year{num};
-+
-+ c = ws(in).peek();
-+ if (c == 'm') // keyword "maximum"
-+ {
-+ in >> s; // extract the rest of the word
-+ yy.to = year::max();
-+ }
-+ else if (c == 'o') // keyword "only"
-+ {
-+ in >> s; // extract the rest of the word
-+ yy.to = yy.from;
- }
- else if (int num = 0; in >> num)
-- y.y = year{num};
-+ yy.to = year{num};
-+
- return in;
- }
- };
-
-- // As above for minmax_year, but also supports the keyword "only",
-- // meaning that the TO year is the same as the FROM year.
-- struct minmax_year2
-+ bool
-+ select_std_or_dst_abbrev(string& abbrev, minutes save)
- {
-- minmax_year to;
-- year from;
-+ if (size_t pos = abbrev.find('/'); pos != string::npos)
-+ {
-+ // Select one of "STD/DST" for standard or daylight.
-+ if (save == 0min)
-+ abbrev.erase(pos);
-+ else
-+ abbrev.erase(0, pos + 1);
-+ return true;
-+ }
-+ return false;
-+ }
-
-- friend istream& operator>>(istream& in, minmax_year2&& y)
-- {
-- if (ws(in).peek() == 'o') // keyword "only"
-- {
-- string s;
-- in >> s; // extract the whole keyword
-- y.to.y = y.from;
-- }
-- else
-- in >> std::move(y.to);
-- return in;
-- }
-- };
-+ // Set the sys_info::abbrev string by expanding any placeholders.
-+ void
-+ format_abbrev_str(sys_info& info, string_view letters = {})
-+ {
-+ if (size_t pos = info.abbrev.find('%'); pos != string::npos)
-+ {
-+ if (info.abbrev[pos + 1] == 's')
-+ {
-+ // Expand "%s" to the variable part, given by Rule::letters.
-+ if (letters == "-")
-+ info.abbrev.erase(pos, 2);
-+ else
-+ info.abbrev.replace(pos, 2, letters);
-+ }
-+ else if (info.abbrev[pos + 1] == 'z')
-+ {
-+ // Expand "%z" to the UT offset as +/-hh, +/-hhmm, or +/-hhmmss.
-+ hh_mm_ss<seconds> t(info.offset);
-+ string z(1, "+-"[t.is_negative()]);
-+ long val = t.hours().count();
-+ int digits = 2;
-+ if (int m = t.minutes().count())
-+ {
-+ digits = 4;
-+ val *= 100;
-+ val += m;
-+ if (int s = t.seconds().count())
-+ {
-+ digits = 6;
-+ val *= 100;
-+ val += s;
-+ }
-+ }
-+ auto sval = std::to_string(val);
-+ z += string(digits - sval.size(), '0');
-+ z += sval;
-+ info.abbrev.replace(pos, 2, z);
-+ }
-+ }
-+ else
-+ select_std_or_dst_abbrev(info.abbrev, info.save);
-+ }
-
- // A time zone information record.
- // Zone NAME STDOFF RULES FORMAT [UNTIL]
-@@ -462,6 +514,7 @@ namespace std::chrono
- info.offset = offset();
- info.save = minutes(m_save);
- info.abbrev = format();
-+ format_abbrev_str(info); // expand %z
- return true;
- }
-
-@@ -469,12 +522,9 @@ namespace std::chrono
- friend class time_zone;
-
- void
-- set_abbrev(const string& abbrev)
-+ set_abbrev(string abbrev)
- {
-- // In practice, the FORMAT field never needs expanding here.
-- if (abbrev.find_first_of("/%") != abbrev.npos)
-- __throw_runtime_error("std::chrono::time_zone: invalid data");
-- m_buf = abbrev;
-+ m_buf = std::move(abbrev);
- m_pos = 0;
- m_expanded = true;
- }
-@@ -544,9 +594,7 @@ namespace std::chrono
-
- // Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
-
-- in >> quoted(rule.name)
-- >> minmax_year{rule.from}
-- >> minmax_year2{rule.to, rule.from};
-+ in >> quoted(rule.name) >> years_from_to{rule.from, rule.to};
-
- if (char type; in >> type && type != '-')
- in.setstate(ios::failbit);
-@@ -557,7 +605,7 @@ namespace std::chrono
- if (save_time.indicator != at_time::Wall)
- {
- // We don't actually store the save_time.indicator, because we
-- // assume that it's always deducable from the actual offset value.
-+ // assume that it's always deducible from the offset value.
- auto expected = save_time.time == 0s
- ? at_time::Standard
- : at_time::Daylight;
-@@ -567,8 +615,6 @@ namespace std::chrono
- rule.save = save_time.time;
-
- in >> rule.letters;
-- if (rule.letters == "-")
-- rule.letters.clear();
- return in;
- }
-
-@@ -714,58 +760,6 @@ namespace std::chrono
- #endif // TZDB_DISABLED
- };
-
--#ifndef TZDB_DISABLED
-- namespace
-- {
-- bool
-- select_std_or_dst_abbrev(string& abbrev, minutes save)
-- {
-- if (size_t pos = abbrev.find('/'); pos != string::npos)
-- {
-- // Select one of "STD/DST" for standard or daylight.
-- if (save == 0min)
-- abbrev.erase(pos);
-- else
-- abbrev.erase(0, pos + 1);
-- return true;
-- }
-- return false;
-- }
--
-- // Set the sys_info::abbrev string by expanding any placeholders.
-- void
-- format_abbrev_str(sys_info& info, string_view letters = {})
-- {
-- if (size_t pos = info.abbrev.find("%s"); pos != string::npos)
-- {
-- // Expand "%s" to the variable part, given by Rule::letters.
-- info.abbrev.replace(pos, 2, letters);
-- }
-- else if (size_t pos = info.abbrev.find("%z"); pos != string::npos)
-- {
-- // Expand "%z" to the UT offset as +/-hh, +/-hhmm, or +/-hhmmss.
-- hh_mm_ss<seconds> t(info.offset);
-- string z(1, "+-"[t.is_negative()]);
-- long val = t.hours().count();
-- if (minutes m = t.minutes(); m != m.zero())
-- {
-- val *= 100;
-- val += m.count();
-- if (seconds s = t.seconds(); s != s.zero())
-- {
-- val *= 100;
-- val += s.count();
-- }
-- }
-- z += std::to_string(val);
-- info.abbrev.replace(pos, 2, z);
-- }
-- else
-- select_std_or_dst_abbrev(info.abbrev, info.save);
-- }
-- }
--#endif // TZDB_DISABLED
--
- // Implementation of std::chrono::time_zone::get_info(const sys_time<D>&)
- sys_info
- time_zone::_M_get_sys_info(sys_seconds tp) const
-@@ -834,12 +828,72 @@ namespace std::chrono
- info.abbrev = ri.format();
-
- string_view letters;
-- if (i != infos.begin())
-+ if (i != infos.begin() && i[-1].expanded())
-+ letters = i[-1].next_letters();
-+
-+ if (letters.empty())
- {
-- if (i[-1].expanded())
-- letters = i[-1].next_letters();
-- // XXX else need to find Rule active before this time and use it
-- // to know the initial offset, save, and letters.
-+ sys_seconds t = info.begin - seconds(1);
-+ const year_month_day date(chrono::floor<days>(t));
-+
-+ // Try to find a Rule active before this time, to get initial
-+ // SAVE and LETTERS values. There may not be a Rule for the period
-+ // before the first DST transition, so find the earliest DST->STD
-+ // transition and use the LETTERS from that.
-+ const Rule* active_rule = nullptr;
-+ sys_seconds active_rule_start = sys_seconds::min();
-+ const Rule* first_std = nullptr;
-+ for (const auto& rule : rules)
-+ {
-+ if (rule.save == minutes(0))
-+ {
-+ if (!first_std)
-+ first_std = &rule;
-+ else if (rule.from < first_std->from)
-+ first_std = &rule;
-+ else if (rule.from == first_std->from)
-+ {
-+ if (rule.start_time(rule.from, {})
-+ < first_std->start_time(first_std->from, {}))
-+ first_std = &rule;
-+ }
-+ }
-+
-+ year y = date.year();
-+
-+ if (y > rule.to) // rule no longer applies at time t
-+ continue;
-+ if (y < rule.from) // rule doesn't apply yet at time t
-+ continue;
-+
-+ sys_seconds rule_start;
-+
-+ seconds offset{}; // appropriate for at_time::Universal
-+ if (rule.when.indicator == at_time::Wall)
-+ offset = info.offset;
-+ else if (rule.when.indicator == at_time::Standard)
-+ offset = ri.offset();
-+
-+ // Time the rule takes effect this year:
-+ rule_start = rule.start_time(y, offset);
-+
-+ if (rule_start >= t && rule.from < y)
-+ {
-+ // Try this rule in the previous year.
-+ rule_start = rule.start_time(--y, offset);
-+ }
-+
-+ if (active_rule_start < rule_start && rule_start < t)
-+ {
-+ active_rule_start = rule_start;
-+ active_rule = &rule;
-+ }
-+ }
-+
-+ if (active_rule)
-+ letters = active_rule->letters;
-+ else if (first_std)
-+ letters = first_std->letters;
- }
-
- const Rule* curr_rule = nullptr;
-@@ -2064,9 +2118,11 @@ namespace std::chrono
- istringstream in2(std::move(rules));
- in2 >> rules_time;
- inf.m_save = duration_cast<minutes>(rules_time.time);
-+ // If the FORMAT is "STD/DST" then we can choose the right one
-+ // now, so that we store a shorter string.
- select_std_or_dst_abbrev(fmt, inf.m_save);
- }
-- inf.set_abbrev(fmt);
-+ inf.set_abbrev(std::move(fmt));
- }
-
- // YEAR [MONTH [DAY [TIME]]]
-@@ -2077,7 +2133,12 @@ namespace std::chrono
- abbrev_month m{January};
- int d = 1;
- at_time t{};
-+ // XXX DAY should support ON format, e.g. lastSun or Sun>=8
- in >> m >> d >> t;
-+ // XXX UNTIL field should be interpreted
-+ // "using the rules in effect just before the transition"
-+ // so might need to store as year_month_day and hh_mm_ss and only
-+ // convert to a sys_time once we know the offset in effect.
- inf.m_until = sys_days(year(y)/m.m/day(d)) + seconds(t.time);
- }
- else
-diff --git a/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc b/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-new file mode 100644
-index 000000000000..f1a8fff02f58
---- /dev/null
-+++ b/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-@@ -0,0 +1,106 @@
-+// { dg-do run { target c++20 } }
-+// { dg-require-effective-target tzdb }
-+// { dg-require-effective-target cxx11_abi }
-+// { dg-xfail-run-if "no weak override on AIX" { powerpc-ibm-aix* } }
-+
-+#include <chrono>
-+#include <fstream>
-+#include <testsuite_hooks.h>
-+
-+static bool override_used = false;
-+
-+namespace __gnu_cxx
-+{
-+ const char* zoneinfo_dir_override() {
-+ override_used = true;
-+ return "./";
-+ }
-+}
-+
-+using namespace std::chrono;
-+
-+void
-+test_format()
-+{
-+ std::ofstream("tzdata.zi") << R"(# version test_1
-+Zone Africa/Bissau -1:2:20 - LMT 1912 Ja 1 1u
-+ -1 - %z 1975
-+ 0 - GMT
-+Zon Some/Zone 1:2:3 - %z 1900
-+ 1:23:45 - %z 1950
-+Zo Another/Zone 1:2:3 - AZ0 1901
-+ 1 Roolz A%sZ 2000
-+ 1 Roolz SAZ/DAZ 2005
-+ 1 Roolz %z
-+Rule Roolz 1950 max - April 1 2 1 D
-+Rul Roolz 1950 max - Oct 1 1 0 S
-+Z Strange/Zone 1 - X%sX 1980
-+ 1 - FOO/BAR 1990
-+ 2:00 - %zzz 1995
-+ 0:9 - %zzz 1996
-+ 0:8:7 - %zzz 1997
-+ 0:6:5.5 - %zzz 1998
-+)";
-+
-+ const auto& db = reload_tzdb();
-+ VERIFY( override_used ); // If this fails then XFAIL for the target.
-+ VERIFY( db.version == "test_1" );
-+
-+ // Test formatting %z as
-+ auto tz = locate_zone("Africa/Bissau");
-+ auto inf = tz->get_info(sys_days(1974y/1/1));
-+ VERIFY( inf.abbrev == "-01" );
-+
-+ tz = locate_zone("Some/Zone");
-+ inf = tz->get_info(sys_days(1899y/1/1));
-+ VERIFY( inf.abbrev == "+010203" );
-+ inf = tz->get_info(sys_days(1955y/1/1));
-+ VERIFY( inf.abbrev == "+012345" );
-+
-+ tz = locate_zone("Another/Zone");
-+ // Test formatting %s as the LETTER/S field from the active Rule.
-+ inf = tz->get_info(sys_days(1910y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1950y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1950y/June/1));
-+ VERIFY( inf.abbrev == "ADZ" );
-+ inf = tz->get_info(sys_days(1999y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1999y/July/1));
-+ VERIFY( inf.abbrev == "ADZ" );
-+ // Test formatting STD/DST according to the active Rule.
-+ inf = tz->get_info(sys_days(2000y/January/2));
-+ VERIFY( inf.abbrev == "SAZ" );
-+ inf = tz->get_info(sys_days(2001y/January/1));
-+ VERIFY( inf.abbrev == "SAZ" );
-+ inf = tz->get_info(sys_days(2001y/July/1));
-+ VERIFY( inf.abbrev == "DAZ" );
-+ // Test formatting %z as the offset determined by the active Rule.
-+ inf = tz->get_info(sys_days(2005y/January/2));
-+ VERIFY( inf.abbrev == "+01" );
-+ inf = tz->get_info(sys_days(2006y/January/1));
-+ VERIFY( inf.abbrev == "+01" );
-+ inf = tz->get_info(sys_days(2006y/July/1));
-+ VERIFY( inf.abbrev == "+02" );
-+
-+ // Test formatting %z, %s and S/D for a Zone with no associated Rules.
-+ tz = locate_zone("Strange/Zone");
-+ inf = tz->get_info(sys_days(1979y/January/1));
-+ VERIFY( inf.abbrev == "XX" ); // No Rule means nothing to use for %s.
-+ inf = tz->get_info(sys_days(1981y/July/1));
-+ VERIFY( inf.abbrev == "FOO" ); // Always standard time means first string.
-+ inf = tz->get_info(sys_days(1994y/July/1));
-+ VERIFY( inf.abbrev == "+02zz" );
-+ inf = tz->get_info(sys_days(1995y/July/1));
-+ VERIFY( inf.abbrev == "+0009zz" );
-+ inf = tz->get_info(sys_days(1996y/July/1));
-+ VERIFY( inf.abbrev == "+000807zz" );
-+ inf = tz->get_info(sys_days(1997y/July/1));
-+ VERIFY( inf.abbrev == "+000606zz" );
-+}
-+
-+int main()
-+{
-+ test_format();
-+}
-diff --git a/libstdc++-v3/testsuite/std/time/tzdb/1.cc b/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-index 5f69e182603d..73d316f55708 100644
---- a/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-+++ b/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-@@ -40,11 +40,15 @@ test_locate()
- const tzdb& db = get_tzdb();
- const time_zone* tz = db.locate_zone("GMT");
- VERIFY( tz != nullptr );
-- VERIFY( tz->name() == "Etc/GMT" );
- VERIFY( tz == std::chrono::locate_zone("GMT") );
- VERIFY( tz == db.locate_zone("Etc/GMT") );
- VERIFY( tz == db.locate_zone("Etc/GMT+0") );
-
-+ // Since 2022f GMT is now a Zone and Etc/GMT a link instead of vice versa,
-+ // but only when using the vanguard format. As of 2024a, the main and
-+ // rearguard formats still have Etc/GMT as a Zone and GMT as a link.
-+ VERIFY( tz->name() == "GMT" || tz->name() == "Etc/GMT" );
-+
- VERIFY( db.locate_zone(db.current_zone()->name()) == db.current_zone() );
- }
-
---
-2.43.5
-
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..938d446e5c61f1 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,57 +3,51 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.1+20250329
+revision=1
+bootstrap=yes
+_patchver="${version%+*}"
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
_mpfr_version=4.2.1
_mpc_version=1.3.1
_isl_version=0.26
-create_wrksrc=yes
short_desc="GNU Compiler Collection"
maintainer="Enno Boland <gottox@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-# *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
-distfiles="
- ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_majorver}-${version#*+}/gcc-${_majorver}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
+skip_extraction="gmp-${_gmp_version}.tar.xz mpfr-${_mpfr_version}.tar.xz
+ mpc-${_mpc_version}.tar.gz isl-${_isl_version}.tar.bz2"
+
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
nopie=yes
lib32disabled=yes
-bootstrap=yes
replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
libssp>=0 libssp-devel>=0"
-_have_gccgo=yes
-_have_libquadmath=no
-
-# MIPS is untested and does not have go in crosstoolchains
-# 32-bit PowerPC seems weirdly broken since the 10.x release
-# 32-bit little endian PowerPC has no support at all (no GOARCH)
-case "$XBPS_TARGET_MACHINE" in
- ppc64*) ;;
- mips*-musl|ppc*) _have_gccgo=no ;;
-esac
-
-case "$XBPS_TARGET_MACHINE" in
- i686*|x86_64*|ppc64le*) _have_libquadmath=yes ;;
-esac
-
if [ "$CHROOT_READY" ]; then
hostmakedepends="tar texinfo perl flex"
else
- _have_gccgo=no
# libzstd fails to link in bootstrap with glibc 2.36
# when zlib has been compiled with glibc 2.32.
LDFLAGS="-lzstd -pthread"
@@ -62,7 +56,6 @@ makedepends="zlib-devel libzstd-devel"
depends="binutils libgcc-devel-${version}_${revision}
libstdc++-devel-${version}_${revision} libatomic-devel-${version}_${revision}"
checkdepends="dejagnu"
-
subpackages="libgcc libgomp libgomp-devel libatomic libatomic-devel"
build_options="ada gnatboot"
@@ -70,18 +63,35 @@ build_options_default="ada"
desc_option_ada="Enable Ada build"
desc_option_gnatboot="Enable Ada bootstrap using adacore.com binaries"
+_have_gccgo=yes
+_have_libquadmath=no
+
+case "$XBPS_TARGET_MACHINE" in
+ i686*|x86_64*|ppc64le*) _have_libquadmath=yes ;;
+esac
+
+# MIPS is untested and does not have go in crosstoolchains
+# 32-bit PowerPC seems weirdly broken since the 10.x release
+# 32-bit little endian PowerPC has no support at all (no GOARCH)
+case "$XBPS_TARGET_MACHINE" in
+ ppc64*) ;;
+ mips*-musl|ppc*) _have_gccgo=no ;;
+esac
+
if [ "$build_option_gnatboot" ]; then
case "$XBPS_TARGET_MACHINE" in
x86_64)
_gnat_tarball="gnat-gpl-2017-x86_64-linux-bin.tar.gz"
distfiles+=" https://community.download.adacore.com/v1/9682e2e1f2f232ce03fe21d77b14c37a0de5649b?filename=$_gnat_tarball>$_gnat_tarball"
checksum+=" b942bcac20dea39748b39f8b624d9619f60a8dee2e8195dbe3829c835b0956e6"
+ skip_extraction+=" $_gnat_tarball"
build_options_default="gnatboot"
;;
i686)
_gnat_tarball="gnat-gpl-2014-x86-linux-bin.tar.gz"
distfiles+=" https://community.download.adacore.com/v1/c5e9e6fdff5cb77ed90cf8c62536653e27c0bed6?filename=$_gnat_tarball>$_gnat_tarball"
checksum+=" 3b693510f5d22a240abb3034934c1adbd80ccd6e4f61a4f491cc408fdfd9c042"
+ skip_extraction+=" $_gnat_tarball"
build_options_default="gnatboot"
;;
esac
@@ -90,10 +100,11 @@ fi
if [ "$CHROOT_READY" ]; then
subpackages+=" gcc-fortran libgfortran-devel libgfortran"
subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
-
if [ "$_have_libquadmath" = "yes" ]; then
subpackages+=" libquadmath libquadmath-devel"
fi
+else
+ _have_gccgo=no
fi
if [ "$_have_gccgo" = "yes" ]; then
@@ -162,18 +173,14 @@ if [ "$CROSS_BUILD" ]; then
fi
post_extract() {
- mv gcc-${version}/* gcc-${version}/.??* .
- rmdir gcc-${version}
- mv gmp-${_gmp_version} gmp
- mv mpfr-${_mpfr_version} mpfr
- mv mpc-${_mpc_version} mpc
- mv isl-${_isl_version} isl
+ vsrcextract -C gmp gmp-${_gmp_version}.tar.xz
+ vsrcextract -C mpfr mpfr-${_mpfr_version}.tar.xz
+ vsrcextract -C mpc mpc-${_mpc_version}.tar.gz
+ vsrcextract -C isl isl-${_isl_version}.tar.bz2
if [ "$build_option_gnatboot" ]; then
- local f="${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_gnat_tarball}"
msg_normal "Extracting ${_gnat_tarball} ...\n"
- mkdir -p ${wrksrc}/gnat-ins
- tar -x -f "$f" --strip-components=1 -C ${wrksrc}/gnat-ins
+ vsrcextract -C gnat-ins ${_gnat_tarball}
cd ${wrksrc}/gnat-ins
make ins-all prefix=${wrksrc}/gnat
cd ${wrksrc}
@@ -202,6 +209,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -307,6 +315,10 @@ do_configure() {
mkdir -p build
cd build
if [ "$build_option_gnatboot" ]; then
+ # file-prefix-map isn't supported in gcc6
+ export CFLAGS="${CFLAGS/-ffile-prefix-map=$wrksrc=./}"
+ export CXXFLAGS="${CXXFLAGS/-ffile-prefix-map=$wrksrc=./}"
+
_args+=" --enable-languages=${_langs},ada"
_args+=" --enable-libada"
CONFIG_SHELL=/bin/bash \
@@ -325,6 +337,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ # gcc will configure itself again throughout the build, so make sure CFLAGS/CXXFLAGS/etc
+ # are still set the same.
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +363,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +372,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
@@ -355,16 +380,16 @@ do_install() {
# Make version a symlink of major version to make all versions
# from the same series work automagically.
- mv ${DESTDIR}/usr/lib/gcc/${_triplet}/${version} \
+ mv ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver} \
${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver}
ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver} \
- ${DESTDIR}/usr/lib/gcc/${_triplet}/${version}
+ ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver}
# Ditto for c++ headers.
- mv ${DESTDIR}/usr/include/c++/${version} \
+ mv ${DESTDIR}/usr/include/c++/${_patchver} \
${DESTDIR}/usr/include/c++/${_minorver}
ln -sfr ${DESTDIR}/usr/include/c++/${_minorver} \
- ${DESTDIR}/usr/include/c++/${version}
+ ${DESTDIR}/usr/include/c++/${_patchver}
# cc symlink
ln -sfr ${DESTDIR}/usr/bin/gcc ${DESTDIR}/usr/bin/cc
@@ -373,7 +398,7 @@ do_install() {
# lto plugin symlink
vmkdir usr/lib/bfd-plugins
- ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${version}/liblto_plugin.so \
+ ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver}/liblto_plugin.so \
${DESTDIR}/usr/lib/bfd-plugins
# Remove "fixed" header
@@ -457,7 +482,7 @@ gcc-fortran_package() {
if [ "$CROSS_BUILD" ]; then
# A number of OMP modules are not built when cross
# compiling gcc. Copy them from the cross compiler.
- local src="/usr/lib/gcc/${_triplet}/${version}/finclude"
+ local src="/usr/lib/gcc/${_triplet}/${_patchver}/finclude"
local dst="usr/lib/gcc/${_triplet}/${_minorver}/finclude"
for f in omp_lib.f90 omp_lib.h omp_lib.mod omp_lib_kinds.mod \
openacc.f90 openacc.mod openacc_kinds.mod openacc_lib.h; do
@@ -714,7 +739,7 @@ libstdc++_package() {
short_desc+=" - Standard C++ Library"
pkg_install() {
vmove usr/share/gdb
- vmove usr/share/gcc-${version}/python
+ vmove usr/share/gcc-${_patchver}/python
vmove "usr/lib/libstdc++.so*"
vlicense COPYING.RUNTIME RUNTIME.LIBRARY.EXCEPTION
}
From 4645bb8ae0b1010ae88a1b9721866935d416c27e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 04/40] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
common/shlibs | 60 +-
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
7 files changed, 33 insertions(+), 1003 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/common/shlibs b/common/shlibs
index 26f9ead7a32c95..4bc3ce575e7784 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -17,36 +17,36 @@
# one (order top->bottom) is preferred over the next ones.
#
libc.so musl-1.1.24_7
-libc.so.6 glibc-2.39_1
-libm.so.6 glibc-2.39_1
-libpthread.so.0 glibc-2.39_1
-librt.so.1 glibc-2.39_1
-libdl.so.2 glibc-2.39_1
-ld-linux-x86-64.so.2 glibc-2.39_1 x86_64
-ld-linux.so.2 glibc-2.39_1 i686
-ld-linux.so.3 glibc-2.39_1 armv5tel
-ld-linux-aarch64.so.1 glibc-2.39_1 aarch64
-ld-linux-riscv64-lp64d.so.1 glibc-2.39_1 riscv64
-ld64.so.2 glibc-2.39_1 ppc64
-ld.so.1 glibc-2.39_1 mips
-ld.so.1 glibc-2.39_1 ppc
-ld-linux-armhf.so.3 glibc-2.39_1
-libresolv.so.2 glibc-2.39_1
-libanl.so.1 glibc-2.39_1
-libthread_db.so.1 glibc-2.39_1
-libutil.so.1 glibc-2.39_1
-libnsl.so.1 glibc-2.39_1
-libnss_db.so.2 glibc-2.39_1
-libnss_files.so.2 glibc-2.39_1
-libnss_compat.so.2 glibc-2.39_1
-libnss_dns.so.2 glibc-2.39_1
-libnss_hesiod.so.2 glibc-2.39_1
-libBrokenLocale.so.1 glibc-2.39_1
-libmemusage.so glibc-2.39_1
-libSegFault.so glibc-2.39_1
-libpcprofile.so glibc-2.39_1
-libcidn.so.1 glibc-2.39_1
-libmvec.so.1 glibc-2.39_1
+libc.so.6 glibc-2.41_1
+libm.so.6 glibc-2.41_1
+libpthread.so.0 glibc-2.41_1
+librt.so.1 glibc-2.41_1
+libdl.so.2 glibc-2.41_1
+ld-linux-x86-64.so.2 glibc-2.41_1 x86_64
+ld-linux.so.2 glibc-2.41_1 i686
+ld-linux.so.3 glibc-2.41_1 armv5tel
+ld-linux-aarch64.so.1 glibc-2.41_1 aarch64
+ld-linux-riscv64-lp64d.so.1 glibc-2.41_1 riscv64
+ld64.so.2 glibc-2.41_1 ppc64
+ld.so.1 glibc-2.41_1 mips
+ld.so.1 glibc-2.41_1 ppc
+ld-linux-armhf.so.3 glibc-2.41_1
+libresolv.so.2 glibc-2.41_1
+libanl.so.1 glibc-2.41_1
+libthread_db.so.1 glibc-2.41_1
+libutil.so.1 glibc-2.41_1
+libnsl.so.1 glibc-2.41_1
+libnss_db.so.2 glibc-2.41_1
+libnss_files.so.2 glibc-2.41_1
+libnss_compat.so.2 glibc-2.41_1
+libnss_dns.so.2 glibc-2.41_1
+libnss_hesiod.so.2 glibc-2.41_1
+libBrokenLocale.so.1 glibc-2.41_1
+libmemusage.so glibc-2.41_1
+libSegFault.so glibc-2.41_1
+libpcprofile.so glibc-2.41_1
+libcidn.so.1 glibc-2.41_1
+libmvec.so.1 glibc-2.41_1
libcrypt.so.2 libxcrypt-4.4.36_1
libcrypt.so.1 libxcrypt-compat-4.4.36_1
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From 62a82b2861fa0bafbda7a64bd001b1406fd66a5d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 05/40] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 04e22c4fb01166..922d009ad8c36e 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=23
+revision=24
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From e330781ba7455271b65745d906069a46a996990a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 06/40] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 5d3ba2a7a9feb4501e3f64d6a6f3c5c22b7b829a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 07/40] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 3a6883c5291021e2e16c6c37164daf10d61f6b64 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 08/40] gcc-multilib: update to 14.2.1+20250329.
---
.../patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 62 +++++++++++--------
2 files changed, 37 insertions(+), 27 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..a3f737567de2dd 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,32 +3,41 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.1+20250329
revision=1
-_majorver="${version%.*}"
+_patchver="${version%+*}"
+_minorver="${version%.*}"
+_majorver="${_minorver%.*}"
+hostmakedepends="perl flex tar"
+makedepends="zlib-devel libzstd-devel isl-devel libmpc-devel gmp-devel mpfr-devel
+ glibc-32bit glibc-devel-32bit"
+depends="
+ gcc>=${_minorver}
+ libgcc-32bit>=${_minorver}
+ libgomp-devel-32bit>=${_minorver}
+ libitm-devel-32bit>=${_minorver}
+ libsanitizer-devel-32bit>=${_minorver}
+ libatomic-devel-32bit>=${_minorver}
+ libvtv-devel-32bit>=${_minorver}
+ zlib-32bit glibc-devel-32bit"
short_desc="GNU Compiler Collection (multilib files)"
maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
-
-hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
- glibc-32bit glibc-devel-32bit"
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_majorver}-${version#*+}/gcc-${_majorver}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+checksum=973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
-depends="
- gcc>=${_majorver}
- libgcc-32bit>=${_majorver}
- libgomp-devel-32bit>=${_majorver}
- libitm-devel-32bit>=${_majorver}
- libsanitizer-devel-32bit>=${_majorver}
- libatomic-devel-32bit>=${_majorver}
- libvtv-devel-32bit>=${_majorver}
- zlib-32bit
- glibc-devel-32bit"
replaces="libmpx-devel-32bit>=0 libssp-32bit>=0 libssp-devel-32bit>=0"
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
+
do_configure() {
ldconfig &>/dev/null
@@ -69,6 +78,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
@@ -77,19 +87,19 @@ do_install() {
# Make version a symlink of major version to make all versions
# from the same series work automagically.
- vmkdir usr/include/c++/${_majorver}/${_triplet}
- vmkdir usr/lib/gcc/${_triplet}/${_majorver}
+ vmkdir usr/include/c++/${_minorver}/${_triplet}
+ vmkdir usr/lib/gcc/${_triplet}/${_minorver}
- cp -a ${wrksrc}/${pkgname}-build/usr/lib/gcc/${_pc_triplet}/${version}/32 \
- ${DESTDIR}/usr/lib/gcc/${_triplet}/${_majorver}/
- cp -a ${wrksrc}/${pkgname}-build/usr/include/c++/${version}/${_pc_triplet}/32 \
- ${DESTDIR}/usr/include/c++/${_majorver}/${_triplet}
+ cp -a ${wrksrc}/${pkgname}-build/usr/lib/gcc/${_pc_triplet}/${_patchver}/32 \
+ ${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver}/
+ cp -a ${wrksrc}/${pkgname}-build/usr/include/c++/${_patchver}/${_pc_triplet}/32 \
+ ${DESTDIR}/usr/include/c++/${_minorver}/${_triplet}
- vinstall ${wrksrc}/host-${_pc_triplet}/gcc/specs 644 usr/lib/gcc/${_triplet}/${_majorver}
+ vinstall ${wrksrc}/host-${_pc_triplet}/gcc/specs 644 usr/lib/gcc/${_triplet}/${_minorver}
}
gcc-objc-multilib_package() {
- depends="gcc-multilib>=${_majorver} gcc-objc>=${_majorver} libobjc-devel-32bit>=${_majorver}"
+ depends="gcc-multilib>=${_minorver} gcc-objc>=${_minorver} libobjc-devel-32bit>=${_minorver}"
short_desc="GNU Objective-C compiler (multilib files)"
build_style=meta
}
From 5bdb199aaba6cc276e5641628420df0651847d52 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 09/40] libgccjit: update to 14.2.1+20250329.
---
srcpkgs/libgccjit/template | 44 +++++++++++++-------------------------
1 file changed, 15 insertions(+), 29 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..78de3d222d4433 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,43 +3,29 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.1+20250329
revision=1
-_gmp_version=6.3.0
-_mpfr_version=4.2.0
-_mpc_version=1.3.1
-_isl_version=0.24
-create_wrksrc=yes
+hostmakedepends="tar texinfo perl flex"
+makedepends="zlib-devel libzstd-devel isl-devel libmpc-devel gmp-devel mpfr-devel"
+depends="gcc"
+checkdepends="dejagnu"
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
homepage="https://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-# *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
-distfiles="
- ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
- ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
- ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
- ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
- ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${version%%.*}-${version#*+}/gcc-${version%%.*}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+checksum=973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
nopie=yes
lib32disabled=yes
-makedepends="zlib-devel"
-hostmakedepends="tar texinfo perl flex"
-depends="gcc"
-checkdepends="dejagnu"
-post_extract() {
- mv gcc-*/* .
- mv gmp-${_gmp_version} gmp
- mv mpfr-${_mpfr_version} mpfr
- mv mpc-${_mpc_version} mpc
- mv isl-${_isl_version} isl
-}
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
pre_configure() {
if [ "$XBPS_TARGET_LIBC" = musl ]; then
From 464b7bd24160864be775e47497bc047820863f06 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 10/40] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From baea67d18ca0168d1eb94dc87be8ce8f66f27691 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 22:59:26 -0700
Subject: [PATCH 11/40] openjdk7-bootstrap: fix build with gcc14
---
srcpkgs/openjdk7-bootstrap/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index 03d91bebf4934a..a4e4ff46091b65 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -86,7 +86,7 @@ skip_extraction="
shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
nocross=yes
-CFLAGS="-fcommon"
+CFLAGS="-fcommon -fpermissive"
post_extract() {
mv icedtea-*/* .
From d242e8ef86581618e9a8bdf8aa8317fbcfc2676d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 23:00:00 -0700
Subject: [PATCH 12/40] openjdk8: fix build with gcc14
---
.../patches/105_implicit_declaration.patch | 25 +++++++++++++++++++
.../openjdk8/patches/106_int_conversion.patch | 16 ++++++++++++
srcpkgs/openjdk8/template | 2 ++
3 files changed, 43 insertions(+)
create mode 100644 srcpkgs/openjdk8/patches/105_implicit_declaration.patch
create mode 100644 srcpkgs/openjdk8/patches/106_int_conversion.patch
diff --git a/srcpkgs/openjdk8/patches/105_implicit_declaration.patch b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
new file mode 100644
index 00000000000000..7a04c21ec910c3
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
@@ -0,0 +1,25 @@
+The isnanf BSD extension was deprecated with the
+introduction of isnan in c99 and isn't implemented in musl.
+Use the isnan function instead.
+
+--- a/jdk/src/solaris/native/common/jdk_util_md.h
++++ b/jdk/src/solaris/native/common/jdk_util_md.h
+@@ -37,7 +37,7 @@
+ #define ISNAND(d) isnan(d)
+ #elif defined(__linux__) || defined(_ALLBSD_SOURCE)
+ #include <math.h>
+-#define ISNANF(f) isnanf(f)
++#define ISNANF(f) isnan(f)
+ #define ISNAND(d) isnan(d)
+ #elif defined(_AIX)
+ #include <math.h>
+--- a/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
++++ b/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
+@@ -29,6 +29,7 @@
+ #include "jlong.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <dlfcn.h>
+ #include <errno.h>
diff --git a/srcpkgs/openjdk8/patches/106_int_conversion.patch b/srcpkgs/openjdk8/patches/106_int_conversion.patch
new file mode 100644
index 00000000000000..2c57cb01353072
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/106_int_conversion.patch
@@ -0,0 +1,16 @@
+--- a/jdk/src/share/bin/splashscreen_stubs.c
++++ b/jdk/src/share/bin/splashscreen_stubs.c
+@@ -61,11 +61,11 @@
+ #define INVOKEV(name) _INVOKE(name, ,;)
+
+ int DoSplashLoadMemory(void* pdata, int size) {
+- INVOKE(SplashLoadMemory, NULL)(pdata, size);
++ INVOKE(SplashLoadMemory, 0)(pdata, size);
+ }
+
+ int DoSplashLoadFile(const char* filename) {
+- INVOKE(SplashLoadFile, NULL)(filename);
++ INVOKE(SplashLoadFile, 0)(filename);
+ }
+
+ void DoSplashInit(void) {
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 3f01bd949417d9..045f78ad363dab 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -78,6 +78,8 @@ fi
# enabling ccache segfaults gcc
export CCACHE_DISABLE=1
+CFLAGS="-Wno-incompatible-pointer-types"
+
post_extract() {
chmod +x configure
}
From d4f02be7a5cac4a00c389c929946212d39390912 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:37:27 -0700
Subject: [PATCH 13/40] common/environment/build-style/void-cross.sh: add
distfiles fallback
Try the distfiles mirror in case the gcc snapshot has expired.
---
common/environment/build-style/void-cross.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/common/environment/build-style/void-cross.sh b/common/environment/build-style/void-cross.sh
index 40df98e95e9026..26d586a6cb59a3 100644
--- a/common/environment/build-style/void-cross.sh
+++ b/common/environment/build-style/void-cross.sh
@@ -1,3 +1,9 @@
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
+
lib32disabled=yes
nopie=yes
From 347b5b8f8a4e95f6d1dd3a8abf126e0110e9a7a5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 14/40] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From be0a6173525173cbe953c571e5227ec2500fe166 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:54 -0700
Subject: [PATCH 15/40] cross-aarch64-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-aarch64-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..e454a971cda6b1 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,13 +16,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 021f7cf68ff1d2d0392004e129c1ba2c724f4299 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:54 -0700
Subject: [PATCH 16/40] cross-aarch64-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-aarch64-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..1ace2a2438d514 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -17,14 +17,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From dd6bd16053b81a534cc1e31f9ea0e6e903977829 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:54 -0700
Subject: [PATCH 17/40] cross-arm-linux-gnueabi: update to gcc 14.2.1+20250329
---
srcpkgs/cross-arm-linux-gnueabi/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..47f7d9e54a79d2 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From e9f7a6ea8af9fefd5883d75d706e42cf3add7d44 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:54 -0700
Subject: [PATCH 18/40] cross-arm-linux-gnueabihf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-arm-linux-gnueabihf/template | 23 ++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..1f9b6583acc40c 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 179925a219d02710a401da7d5510efdac58e40e3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:54 -0700
Subject: [PATCH 19/40] cross-arm-linux-musleabi: update to gcc 14.2.1+20250329
---
srcpkgs/cross-arm-linux-musleabi/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..00d96ea0f8dc7d 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -18,14 +18,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 783b301bdd8d6df04e48aa5938f6dae0342a355a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:54 -0700
Subject: [PATCH 20/40] cross-arm-linux-musleabihf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-arm-linux-musleabihf/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..4021da44d0a7ef 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -18,14 +18,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From f02e08d9937e87e745f2bc0344ca7d914a0bfa97 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 21/40] cross-armv7l-linux-gnueabihf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 23 +++++++++++--------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..ec31ae23e9c493 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,13 +16,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 59b9c5f7c9b6bbb2084af82eb508b461aba58978 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 22/40] cross-armv7l-linux-musleabihf: update to gcc
14.2.1+20250329
---
.../cross-armv7l-linux-musleabihf/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..b13590b0ed8082 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -17,14 +17,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 4ae022ac517071ccca16e0a6a91c792711150b0f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 23/40] cross-i686-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-i686-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..5d9612b02e3180 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -16,14 +16,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 581d07b7e35dcebd575ad95e8d55e12418770508 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 24/40] cross-i686-pc-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-i686-pc-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..2f833619f4e0ef 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -15,13 +15,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 23431b80506247a89c6a92e513ffc628795fd5eb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 25/40] cross-mips-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-mips-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..ad39078a14665d 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f4addbdef14ad5ffa91c317e9fd072885b606c47 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 26/40] cross-mips-linux-muslhf: update to gcc 14.2.1+20250329
---
srcpkgs/cross-mips-linux-muslhf/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..9cc9daccfc8c96 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="hipperson0 <hipperson0@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ff69a3f2de91e00091bee51930c5df2291c952b8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 27/40] cross-mipsel-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-mipsel-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..13b2ea2d5f7fe2 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 54529813bbbe56255112e0aeefc8a7cd53668c47 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 28/40] cross-mipsel-linux-muslhf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-mipsel-linux-muslhf/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..f6b4612ae14503 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 74c42b84d05ec1714ed328e8173ba9fad59dc793 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 29/40] cross-powerpc-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-powerpc-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..266a43581f9ff4 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Thomas Batten <stenstorpmc@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From fba920f497e4b9ef6a9423553fe8ec4234633f2d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 30/40] cross-powerpc-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-powerpc-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..149c2ddf6ef180 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Thomas Batten <stenstorpmc@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f18251cd5e011f5887b6aba67d941dd3d2b6980e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 31/40] cross-powerpc64-linux-gnu: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64-linux-gnu/template | 23 ++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..d9f79787ba51d3 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 7ece2b54ed38fc9186f3ceecc89ca30851fd6d55 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 32/40] cross-powerpc64-linux-musl: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..b9f5aa4733969f 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -19,14 +19,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From e3fd21b7d9bb276eb5bf14267cb866c9c21cd402 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 33/40] cross-powerpc64le-linux-gnu: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 23 +++++++++++---------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..3d3d3c3a282852 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 21247b17a62df5c4e27e56c674b9a1089bfb7dd7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 34/40] cross-powerpc64le-linux-musl: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64le-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..96a103c7cf5b3f 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -19,14 +19,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 83267dc060871f99a84e02a71122b17027cd3f4e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 35/40] cross-powerpcle-linux-gnu: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpcle-linux-gnu/template | 25 ++++++++++++----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..0d370d098dcfbc 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -17,14 +17,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
@@ -37,7 +40,7 @@ if [ "$XBPS_TARGET_MACHINE" = "ppcle" ]; then
broken="Can't build crosstoolchain to itself"
fi
-broken="glibc uses big-endian specific instructions on 32-bit powerpc"
+broken="glibc uses big-endian specific instructions (stmw and lmw) in 32-bit powerpc clone.S"
cross-powerpcle-linux-gnu-libc_package() {
short_desc+=" - glibc files"
From 34fd66e107d4852bbcc6e89a757182d6115c0c23 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:57 -0700
Subject: [PATCH 36/40] cross-powerpcle-linux-musl: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpcle-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..80428654415ad2 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From d7a7bc86e71e4a0fa007ea78bf1d33ebcd4f7ee5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:57 -0700
Subject: [PATCH 37/40] cross-riscv64-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-riscv64-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..5b69408d812c0b 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,13 +16,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 87f285c466fa1d443b3d64ab714a301d031e083f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:57 -0700
Subject: [PATCH 38/40] cross-riscv64-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-riscv64-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..972cdd2cfa8a50 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -17,14 +17,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 9394d391f81535db19904395afa5deebf879c376 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:57 -0700
Subject: [PATCH 39/40] cross-x86_64-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-x86_64-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..325bf041e44f21 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -15,13 +15,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 860d1ed9866208285bdb144f7ed052057f3271be Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:57 -0700
Subject: [PATCH 40/40] cross-x86_64-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-x86_64-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..afaa9258f7addf 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -16,14 +16,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.1+20250329.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (46 preceding siblings ...)
2025-04-06 9:56 ` oreo639
@ 2025-04-06 11:06 ` oreo639
2025-04-06 11:31 ` oreo639
` (15 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-04-06 11:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 7675 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.1+20250329.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
You can test the ISOs here: https://devspace.voidlinux.org/oreo639/live/gcc14/
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp https://github.com/void-linux/void-packages/commit/30e9e29bb5a348b2c6b7a9b3e29c13d2bc28cfae
- [x] libsasl https://github.com/void-linux/void-packages/commit/6f71c8889cc8a79411ddaca582250e19718f12da
- [x] nvi https://github.com/void-linux/void-packages/commit/a51ebf219534e5420ffc83d5a89b43dc992c9b81
- [x] xbps https://github.com/void-linux/void-packages/commit/73c8cdee1d9b05980cdc0763294cce9372612ba4
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
- [x] gtk+ https://github.com/void-linux/void-packages/commit/ac57a55a5fda78618aec2ec7bb3c27404834ed04
- [x] gtk+3 https://github.com/void-linux/void-packages/pull/54187
- [x] libaom https://github.com/void-linux/void-packages/commit/fcbb94217389f64fea4c536959983814ebaadae4
- [x] perl-Tk https://github.com/void-linux/void-packages/commit/67aeb9d9b2b077d9b7f25902bbf079c1569a2633
- [x] gnu-efi-libs https://github.com/void-linux/void-packages/commit/92b2642bc8d1871605f824064863149985419010
- [x] syslinux https://github.com/void-linux/void-packages/commit/49af74a1dfb32ba1de556f4491b3870179c80872
- [x] recode https://github.com/void-linux/void-packages/pull/54707
- [x] libcddb https://github.com/void-linux/void-packages/commit/eeae3026d1356e1ac5d0547e19e2742a335ae9ca
- [x] vim https://github.com/void-linux/void-packages/pull/54706
- [x] vmaf https://github.com/void-linux/void-packages/pull/54721
- [x] audit https://github.com/void-linux/void-packages/pull/54722
- [x] aalib https://github.com/void-linux/void-packages/commit/d7769fe6d757a62fbfc0998d5cbde5dec8a7db11
- [x] cppdap (outdated vendored gtest, patch merged upstream) https://github.com/void-linux/void-packages/commit/a2c9d8ac073e9f40d6b7b1bb3df108c0d46481bb
- [x] snappy (outdated vendored gtest, upstream rejected patch stating that downstreams running their tests is not supported and that downstreams should either ship their own tests/patches or just disable them) https://github.com/void-linux/void-packages/commit/4e73161431672d245a8d558f269a74f1ab363cc8
- [x] openjdk7-bootstrap
- [x] openjdk8
- [x] gimp https://github.com/void-linux/void-packages/commit/d173951120b07bc57171f6962c92c0877becd0d8
- [x] xf86-video-nouveau https://github.com/void-linux/void-packages/pull/54720
- [x] libao https://github.com/void-linux/void-packages/commit/b9c6b010a201211c0ffba8a821f0021b9bdaf376
- [x] accountsservice https://github.com/void-linux/void-packages/commit/a1ca8cef0b2e98ba22c4d632685f85c5d0cde4c1
- Done with base-syste/xfce
- [x] zeitgeist
- [x] libgee
- [x] cogl
- [x] clutter-gst3
- [x] telepathy-glib
- [x] xen https://github.com/void-linux/void-packages/pull/54751
- [x] vde2 https://github.com/void-linux/void-packages/pull/54750
- Sagemath Related
- [x] gf2x
- [x] linbox
- [x] givaro
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [x] elfutils https://github.com/void-linux/void-packages/pull/54566
- [x] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [x] sane https://github.com/void-linux/void-packages/pull/54614
- [x] mdadm https://github.com/void-linux/void-packages/commit/10694f08c471b2701b3c275540b0c665f67c8b9b
- [x] pulseaudio (broken due to configure checks detecting presence of open64, this is fixed in musl 1.2.x https://github.com/bminor/musl/commit/246f1c811448f37a44b41cd8df8d0ef9736d95f4 https://github.com/bminor/musl/commit/50ab830633134dac99011219f0210ee2759ffbde) https://github.com/void-linux/void-packages/commit/b87ec8f3ca216b6d9cfb4836f236fca13f45c2ab
- [x] gpm
- [x] linux-tools https://github.com/void-linux/void-packages/commit/8c670d7a13a3d6783e23624bda033ef898cafd72
- [x] v4l-utils (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg6 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] gst-plugins-good1 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] libcdio (fseek64, also broken on i686-glibc) https://github.com/void-linux/void-packages/pull/54724
- [x] gcr (getpass) https://github.com/void-linux/void-packages/commit/a40788b2db81ceba7e4a9f75e1c120efd7577600
- [x] libndp https://github.com/void-linux/void-packages/commit/580546374e10b6847a66bfb4d9f27579d5112902
- [x] samba https://github.com/void-linux/void-packages/commit/0900507d38bfc7963d7b6c1a7b04341ae987f2d2
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration instead of segfaulting later due to implicit pointer truncation. This is good, but ofc, packages need to be checked for this.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, please test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 187957 bytes --]
From 966e6a37cbaa962da5a02dabf3a0d5d03cd97602 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Tue, 28 May 2024 15:31:49 -0400
Subject: [PATCH 01/41] xbps-src: add option to use distfiles mirror as a
fallback
This adds an optional configuration to add a fallback distfiles mirror
The idea is that normally, distfiles should be fetched from the urls in
the template. However, occasionally the urls have rotted, or are simply
down temporairily, in which case the fetch will fail. A workaround to
this has been to use the $XBPS_DISTFILES_MIRROR option, however the
downside to this is that it is always tried first, and 99% of the time isn't
needed.
This adds the $XBPS_DISTFILES_FALLBACK option, which can be set to an
addiontional list of mirrors which will be attempted after both
$XBPS_DISTFILES_MIRROR, and the urls in the template have failed to
fetch the distfiles
Co-authored-by: oreo639 <oreo6391@gmail.com>
---
common/hooks/do-fetch/00-distfiles.sh | 15 +++++++++------
xbps-src | 10 +++++++---
2 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/common/hooks/do-fetch/00-distfiles.sh b/common/hooks/do-fetch/00-distfiles.sh
index 1adb86a5167823..2065d5442a3a12 100644
--- a/common/hooks/do-fetch/00-distfiles.sh
+++ b/common/hooks/do-fetch/00-distfiles.sh
@@ -128,11 +128,11 @@ link_cksum() {
}
try_mirrors() {
- local curfile="$1" distfile="$2" cksum="$3" f="$4"
+ local curfile="$1" distfile="$2" cksum="$3" f="$4" mirror_list="$5"
local filesum basefile mirror path scheme good
- [ -z "$XBPS_DISTFILES_MIRROR" ] && return 1
+ [ -z "$mirror_list" ] && return 1
basefile="${f##*/}"
- for mirror in $XBPS_DISTFILES_MIRROR; do
+ for mirror in $mirror_list; do
scheme="file"
if [[ $mirror == *://* ]]; then
scheme="${mirror%%:/*}"
@@ -148,8 +148,8 @@ try_mirrors() {
continue
fi
fi
- if [[ "$mirror" == *voidlinux* ]]; then
- # For distfiles.voidlinux.* append the subdirectory
+ if [[ "$mirror" == *sources.voidlinux.* ]]; then
+ # For sources.voidlinux.* append the subdirectory
mirror="$mirror/$pkgname-$version"
fi
msg_normal "$pkgver: fetching distfile '$curfile' from mirror '$mirror'...\n"
@@ -286,11 +286,14 @@ hook() {
fi
# If distfile does not exist, download it from a mirror location.
- if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}"; then
+ if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}" "$XBPS_DISTFILES_MIRROR"; then
continue
fi
if ! try_urls "$curfile"; then
+ if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}" "$XBPS_DISTFILES_FALLBACK"; then
+ continue
+ fi
msg_error "$pkgver: failed to fetch '$curfile'.\n"
fi
done
diff --git a/xbps-src b/xbps-src
index c17270b62ee4b5..1ce830c7bf9c18 100755
--- a/xbps-src
+++ b/xbps-src
@@ -343,10 +343,11 @@ read_pkg() {
}
setup_distfiles_mirror() {
+ local mirror_list="$1"
local mirror scheme path
# Scheme file:// mirror locations only work with uchroot
- for mirror in $XBPS_DISTFILES_MIRROR; do
+ for mirror in $mirror_list; do
scheme="file"
if [[ "$mirror" == *://* ]]; then
scheme="${mirror%%://*}"
@@ -696,7 +697,7 @@ export XBPS_SHUTILSDIR XBPS_CROSSPFDIR XBPS_TRIGGERSDIR \
XBPS_LIBEXECDIR XBPS_DISTDIR XBPS_DISTFILES_MIRROR XBPS_ALLOW_RESTRICTED \
XBPS_USE_GIT_COMMIT_DATE XBPS_PKG_COMPTYPE XBPS_REPO_COMPTYPE \
XBPS_BUILDHELPERDIR XBPS_USE_BUILD_MTIME XBPS_BUILD_ENVIRONMENT \
- XBPS_PRESERVE_PKGS XBPS_IGNORE_BROKENNESS
+ XBPS_PRESERVE_PKGS XBPS_IGNORE_BROKENNESS XBPS_DISTFILES_FALLBACK
for i in REPOSITORY DESTDIR BUILDDIR SRCDISTDIR; do
eval val="\$XBPS_$i"
@@ -760,7 +761,10 @@ done
if [ -z "$IN_CHROOT" ]; then
trap 'exit_func' INT TERM
if [ -n "$XBPS_DISTFILES_MIRROR" ]; then
- setup_distfiles_mirror
+ setup_distfiles_mirror "$XBPS_DISTFILES_MIRROR"
+ fi
+ if [ -n "$XBPS_DISTFILES_FALLBACK" ]; then
+ setup_distfiles_mirror "$XBPS_DISTFILES_FALLBACK"
fi
fi
From 91019a9ff783286ef82c3f00f8d91cc26267e03c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 02/41] binutils: update to 2.44.
---
srcpkgs/binutils/template | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..024f8e5c634dd7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
@@ -73,8 +73,7 @@ do_configure() {
esac
# target archs supported by Void
- # borked: riscv64 (gold doesn't support it)
- void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,x86_64"
+ void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,riscv64,x86_64"
conf+=" --enable-targets=$(echo "$void_targets" | sed -E -e 's/(,|$)/-linux-gnu\1/g'),${extra_targets}"
if [ "$build_option_all_targets" ]; then
@@ -107,7 +106,6 @@ do_configure() {
--enable-threads \
--enable-plugins \
--enable-relro \
- --enable-gold \
--enable-new-dtags \
--enable-deterministic-archives \
--enable-64-bit-bfd \
From 4d719866ed4757b7260b1766816c2d7d43d770aa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 03/41] gcc: update to 14.2.1+20250329.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ---------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 -----
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 --
.../patches/fix-pretty-printer-warnings.patch | 125 ----
.../gcc/patches/libstdcxx-tzdb-z-format.patch | 563 ------------------
srcpkgs/gcc/template | 109 ++--
7 files changed, 70 insertions(+), 1232 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
delete mode 100644 srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
diff --git a/common/shlibs b/common/shlibs
index a51d54d5472096..26f9ead7a32c95 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.40 perl-5.40.1_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch b/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
deleted file mode 100644
index 0deb99ac6a2df2..00000000000000
--- a/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
+++ /dev/null
@@ -1,563 +0,0 @@
-From 5ceea2ac106d6dd1aa8175670b15a801316cf1c9 Mon Sep 17 00:00:00 2001
-From: Jonathan Wakely <jwakely@redhat.com>
-Date: Tue, 30 Apr 2024 09:52:13 +0100
-Subject: [PATCH] libstdc++: Fix std::chrono::tzdb to work with vanguard format
-
-I found some issues in the std::chrono::tzdb parser by testing the
-tzdata "vanguard" format, which uses new features that aren't enabled in
-the "main" and "rearguard" data formats.
-
-Since 2024a the keyword "minimum" is no longer valid for the FROM and TO
-fields in a Rule line, which means that "m" is now a valid abbreviation
-for "maximum". Previously we expected either "mi" or "ma". For backwards
-compatibility, a FROM field beginning with "mi" is still supported and
-is treated as 1900. The "maximum" keyword is only allowed in TO now,
-because it makes no sense in FROM. To support these changes the
-minmax_year and minmax_year2 classes for parsing FROM and TO are
-replaced with a single years_from_to class that reads both fields.
-
-The vanguard format makes use of %z in Zone FORMAT fields, which caused
-an exception to be thrown from ZoneInfo::set_abbrev because no % or /
-characters were expected when a Zone doesn't use a named Rule. The
-ZoneInfo::to(sys_info&) function now uses format_abbrev_str to replace
-any %z with the current offset. Although format_abbrev_str also checks
-for %s and STD/DST formats, those only make sense when a named Rule is
-in effect, so won't occur when ZoneInfo::to(sys_info&) is used.
-
-Since making this change on trunk, the tzdata-2024b release started
-using %z in the main format, not just vanguard. This makes a backport to
-release branches necessary (see PR 116657).
-
-This change also implements a feature that has always been missing from
-time_zone::_M_get_sys_info: finding the Rule that is active before the
-specified time point, so that we can correctly handle %s in the FORMAT
-for the first new sys_info that gets created. This requires implementing
-a poorly documented feature of zic, to get the LETTERS field from a
-later transition, as described at
-https://mm.icann.org/pipermail/tz/2024-April/058891.html
-In order for this to work we need to be able to distinguish an empty
-letters field (as used by CE%sT where the variable part is either empty
-or "S") from "the letters field is not known for this transition". The
-tzdata file uses "-" for an empty letters field, which libstdc++ was
-previously replacing with "" when the Rule was parsed. Instead, we now
-preserve the "-" in the Rule object, so that "" can be used for the case
-where we don't know the letters (and so need to decide it).
-
-libstdc++-v3/ChangeLog:
-
- * src/c++20/tzdb.cc (minmax_year, minmax_year2): Remove.
- (years_from_to): New class replacing minmax_year and
- minmax_year2.
- (format_abbrev_str, select_std_or_dst_abbrev): Move earlier in
- the file. Handle "-" for letters.
- (ZoneInfo::to): Use format_abbrev_str to expand %z.
- (ZoneInfo::set_abbrev): Remove exception. Change parameter from
- reference to value.
- (operator>>(istream&, Rule&)): Do not clear letters when it
- contains "-".
- (time_zone::_M_get_sys_info): Add missing logic to find the Rule
- in effect before the time point.
- * testsuite/std/time/tzdb/1.cc: Adjust for vanguard format using
- "GMT" as the Zone name, not as a Link to "Etc/GMT".
- * testsuite/std/time/time_zone/sys_info_abbrev.cc: New test.
-
-(cherry picked from commit 0ca8d56f2085715f27ee536c6c344bc47af49cdd)
----
- libstdc++-v3/src/c++20/tzdb.cc | 265 +++++++++++-------
- .../std/time/time_zone/sys_info_abbrev.cc | 106 +++++++
- libstdc++-v3/testsuite/std/time/tzdb/1.cc | 6 +-
- 3 files changed, 274 insertions(+), 103 deletions(-)
- create mode 100644 libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-
-diff --git a/libstdc++-v3/src/c++20/tzdb.cc b/libstdc++-v3/src/c++20/tzdb.cc
-index e058caf27d89..034e72f02743 100644
---- a/libstdc++-v3/src/c++20/tzdb.cc
-+++ b/libstdc++-v3/src/c++20/tzdb.cc
-@@ -342,51 +342,103 @@ namespace std::chrono
- friend istream& operator>>(istream&, on_day&);
- };
-
-- // Wrapper for chrono::year that reads a year, or one of the keywords
-- // "minimum" or "maximum", or an unambiguous prefix of a keyword.
-- struct minmax_year
-+ // Wrapper for two chrono::year values, which reads the FROM and TO
-+ // fields of a Rule line. The FROM field is a year and TO is a year or
-+ // one of the keywords "maximum" or "only" (or an abbreviation of those).
-+ // For backwards compatibility, the keyword "minimum" is recognized
-+ // for FROM and interpreted as 1900.
-+ struct years_from_to
- {
-- year& y;
-+ year& from;
-+ year& to;
-
-- friend istream& operator>>(istream& in, minmax_year&& y)
-+ friend istream& operator>>(istream& in, years_from_to&& yy)
- {
-- if (ws(in).peek() == 'm') // keywords "minimum" or "maximum"
-+ string s;
-+ auto c = ws(in).peek();
-+ if (c == 'm') [[unlikely]] // keyword "minimum"
- {
-- string s;
-- in >> s; // extract the rest of the word, but only look at s[1]
-- if (s[1] == 'a')
-- y.y = year::max();
-- else if (s[1] == 'i')
-- y.y = year::min();
-- else
-- in.setstate(ios::failbit);
-+ in >> s; // extract the rest of the word
-+ yy.from = year(1900);
-+ }
-+ else if (int num = 0; in >> num) [[likely]]
-+ yy.from = year{num};
-+
-+ c = ws(in).peek();
-+ if (c == 'm') // keyword "maximum"
-+ {
-+ in >> s; // extract the rest of the word
-+ yy.to = year::max();
-+ }
-+ else if (c == 'o') // keyword "only"
-+ {
-+ in >> s; // extract the rest of the word
-+ yy.to = yy.from;
- }
- else if (int num = 0; in >> num)
-- y.y = year{num};
-+ yy.to = year{num};
-+
- return in;
- }
- };
-
-- // As above for minmax_year, but also supports the keyword "only",
-- // meaning that the TO year is the same as the FROM year.
-- struct minmax_year2
-+ bool
-+ select_std_or_dst_abbrev(string& abbrev, minutes save)
- {
-- minmax_year to;
-- year from;
-+ if (size_t pos = abbrev.find('/'); pos != string::npos)
-+ {
-+ // Select one of "STD/DST" for standard or daylight.
-+ if (save == 0min)
-+ abbrev.erase(pos);
-+ else
-+ abbrev.erase(0, pos + 1);
-+ return true;
-+ }
-+ return false;
-+ }
-
-- friend istream& operator>>(istream& in, minmax_year2&& y)
-- {
-- if (ws(in).peek() == 'o') // keyword "only"
-- {
-- string s;
-- in >> s; // extract the whole keyword
-- y.to.y = y.from;
-- }
-- else
-- in >> std::move(y.to);
-- return in;
-- }
-- };
-+ // Set the sys_info::abbrev string by expanding any placeholders.
-+ void
-+ format_abbrev_str(sys_info& info, string_view letters = {})
-+ {
-+ if (size_t pos = info.abbrev.find('%'); pos != string::npos)
-+ {
-+ if (info.abbrev[pos + 1] == 's')
-+ {
-+ // Expand "%s" to the variable part, given by Rule::letters.
-+ if (letters == "-")
-+ info.abbrev.erase(pos, 2);
-+ else
-+ info.abbrev.replace(pos, 2, letters);
-+ }
-+ else if (info.abbrev[pos + 1] == 'z')
-+ {
-+ // Expand "%z" to the UT offset as +/-hh, +/-hhmm, or +/-hhmmss.
-+ hh_mm_ss<seconds> t(info.offset);
-+ string z(1, "+-"[t.is_negative()]);
-+ long val = t.hours().count();
-+ int digits = 2;
-+ if (int m = t.minutes().count())
-+ {
-+ digits = 4;
-+ val *= 100;
-+ val += m;
-+ if (int s = t.seconds().count())
-+ {
-+ digits = 6;
-+ val *= 100;
-+ val += s;
-+ }
-+ }
-+ auto sval = std::to_string(val);
-+ z += string(digits - sval.size(), '0');
-+ z += sval;
-+ info.abbrev.replace(pos, 2, z);
-+ }
-+ }
-+ else
-+ select_std_or_dst_abbrev(info.abbrev, info.save);
-+ }
-
- // A time zone information record.
- // Zone NAME STDOFF RULES FORMAT [UNTIL]
-@@ -462,6 +514,7 @@ namespace std::chrono
- info.offset = offset();
- info.save = minutes(m_save);
- info.abbrev = format();
-+ format_abbrev_str(info); // expand %z
- return true;
- }
-
-@@ -469,12 +522,9 @@ namespace std::chrono
- friend class time_zone;
-
- void
-- set_abbrev(const string& abbrev)
-+ set_abbrev(string abbrev)
- {
-- // In practice, the FORMAT field never needs expanding here.
-- if (abbrev.find_first_of("/%") != abbrev.npos)
-- __throw_runtime_error("std::chrono::time_zone: invalid data");
-- m_buf = abbrev;
-+ m_buf = std::move(abbrev);
- m_pos = 0;
- m_expanded = true;
- }
-@@ -544,9 +594,7 @@ namespace std::chrono
-
- // Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
-
-- in >> quoted(rule.name)
-- >> minmax_year{rule.from}
-- >> minmax_year2{rule.to, rule.from};
-+ in >> quoted(rule.name) >> years_from_to{rule.from, rule.to};
-
- if (char type; in >> type && type != '-')
- in.setstate(ios::failbit);
-@@ -557,7 +605,7 @@ namespace std::chrono
- if (save_time.indicator != at_time::Wall)
- {
- // We don't actually store the save_time.indicator, because we
-- // assume that it's always deducable from the actual offset value.
-+ // assume that it's always deducible from the offset value.
- auto expected = save_time.time == 0s
- ? at_time::Standard
- : at_time::Daylight;
-@@ -567,8 +615,6 @@ namespace std::chrono
- rule.save = save_time.time;
-
- in >> rule.letters;
-- if (rule.letters == "-")
-- rule.letters.clear();
- return in;
- }
-
-@@ -714,58 +760,6 @@ namespace std::chrono
- #endif // TZDB_DISABLED
- };
-
--#ifndef TZDB_DISABLED
-- namespace
-- {
-- bool
-- select_std_or_dst_abbrev(string& abbrev, minutes save)
-- {
-- if (size_t pos = abbrev.find('/'); pos != string::npos)
-- {
-- // Select one of "STD/DST" for standard or daylight.
-- if (save == 0min)
-- abbrev.erase(pos);
-- else
-- abbrev.erase(0, pos + 1);
-- return true;
-- }
-- return false;
-- }
--
-- // Set the sys_info::abbrev string by expanding any placeholders.
-- void
-- format_abbrev_str(sys_info& info, string_view letters = {})
-- {
-- if (size_t pos = info.abbrev.find("%s"); pos != string::npos)
-- {
-- // Expand "%s" to the variable part, given by Rule::letters.
-- info.abbrev.replace(pos, 2, letters);
-- }
-- else if (size_t pos = info.abbrev.find("%z"); pos != string::npos)
-- {
-- // Expand "%z" to the UT offset as +/-hh, +/-hhmm, or +/-hhmmss.
-- hh_mm_ss<seconds> t(info.offset);
-- string z(1, "+-"[t.is_negative()]);
-- long val = t.hours().count();
-- if (minutes m = t.minutes(); m != m.zero())
-- {
-- val *= 100;
-- val += m.count();
-- if (seconds s = t.seconds(); s != s.zero())
-- {
-- val *= 100;
-- val += s.count();
-- }
-- }
-- z += std::to_string(val);
-- info.abbrev.replace(pos, 2, z);
-- }
-- else
-- select_std_or_dst_abbrev(info.abbrev, info.save);
-- }
-- }
--#endif // TZDB_DISABLED
--
- // Implementation of std::chrono::time_zone::get_info(const sys_time<D>&)
- sys_info
- time_zone::_M_get_sys_info(sys_seconds tp) const
-@@ -834,12 +828,72 @@ namespace std::chrono
- info.abbrev = ri.format();
-
- string_view letters;
-- if (i != infos.begin())
-+ if (i != infos.begin() && i[-1].expanded())
-+ letters = i[-1].next_letters();
-+
-+ if (letters.empty())
- {
-- if (i[-1].expanded())
-- letters = i[-1].next_letters();
-- // XXX else need to find Rule active before this time and use it
-- // to know the initial offset, save, and letters.
-+ sys_seconds t = info.begin - seconds(1);
-+ const year_month_day date(chrono::floor<days>(t));
-+
-+ // Try to find a Rule active before this time, to get initial
-+ // SAVE and LETTERS values. There may not be a Rule for the period
-+ // before the first DST transition, so find the earliest DST->STD
-+ // transition and use the LETTERS from that.
-+ const Rule* active_rule = nullptr;
-+ sys_seconds active_rule_start = sys_seconds::min();
-+ const Rule* first_std = nullptr;
-+ for (const auto& rule : rules)
-+ {
-+ if (rule.save == minutes(0))
-+ {
-+ if (!first_std)
-+ first_std = &rule;
-+ else if (rule.from < first_std->from)
-+ first_std = &rule;
-+ else if (rule.from == first_std->from)
-+ {
-+ if (rule.start_time(rule.from, {})
-+ < first_std->start_time(first_std->from, {}))
-+ first_std = &rule;
-+ }
-+ }
-+
-+ year y = date.year();
-+
-+ if (y > rule.to) // rule no longer applies at time t
-+ continue;
-+ if (y < rule.from) // rule doesn't apply yet at time t
-+ continue;
-+
-+ sys_seconds rule_start;
-+
-+ seconds offset{}; // appropriate for at_time::Universal
-+ if (rule.when.indicator == at_time::Wall)
-+ offset = info.offset;
-+ else if (rule.when.indicator == at_time::Standard)
-+ offset = ri.offset();
-+
-+ // Time the rule takes effect this year:
-+ rule_start = rule.start_time(y, offset);
-+
-+ if (rule_start >= t && rule.from < y)
-+ {
-+ // Try this rule in the previous year.
-+ rule_start = rule.start_time(--y, offset);
-+ }
-+
-+ if (active_rule_start < rule_start && rule_start < t)
-+ {
-+ active_rule_start = rule_start;
-+ active_rule = &rule;
-+ }
-+ }
-+
-+ if (active_rule)
-+ letters = active_rule->letters;
-+ else if (first_std)
-+ letters = first_std->letters;
- }
-
- const Rule* curr_rule = nullptr;
-@@ -2064,9 +2118,11 @@ namespace std::chrono
- istringstream in2(std::move(rules));
- in2 >> rules_time;
- inf.m_save = duration_cast<minutes>(rules_time.time);
-+ // If the FORMAT is "STD/DST" then we can choose the right one
-+ // now, so that we store a shorter string.
- select_std_or_dst_abbrev(fmt, inf.m_save);
- }
-- inf.set_abbrev(fmt);
-+ inf.set_abbrev(std::move(fmt));
- }
-
- // YEAR [MONTH [DAY [TIME]]]
-@@ -2077,7 +2133,12 @@ namespace std::chrono
- abbrev_month m{January};
- int d = 1;
- at_time t{};
-+ // XXX DAY should support ON format, e.g. lastSun or Sun>=8
- in >> m >> d >> t;
-+ // XXX UNTIL field should be interpreted
-+ // "using the rules in effect just before the transition"
-+ // so might need to store as year_month_day and hh_mm_ss and only
-+ // convert to a sys_time once we know the offset in effect.
- inf.m_until = sys_days(year(y)/m.m/day(d)) + seconds(t.time);
- }
- else
-diff --git a/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc b/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-new file mode 100644
-index 000000000000..f1a8fff02f58
---- /dev/null
-+++ b/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-@@ -0,0 +1,106 @@
-+// { dg-do run { target c++20 } }
-+// { dg-require-effective-target tzdb }
-+// { dg-require-effective-target cxx11_abi }
-+// { dg-xfail-run-if "no weak override on AIX" { powerpc-ibm-aix* } }
-+
-+#include <chrono>
-+#include <fstream>
-+#include <testsuite_hooks.h>
-+
-+static bool override_used = false;
-+
-+namespace __gnu_cxx
-+{
-+ const char* zoneinfo_dir_override() {
-+ override_used = true;
-+ return "./";
-+ }
-+}
-+
-+using namespace std::chrono;
-+
-+void
-+test_format()
-+{
-+ std::ofstream("tzdata.zi") << R"(# version test_1
-+Zone Africa/Bissau -1:2:20 - LMT 1912 Ja 1 1u
-+ -1 - %z 1975
-+ 0 - GMT
-+Zon Some/Zone 1:2:3 - %z 1900
-+ 1:23:45 - %z 1950
-+Zo Another/Zone 1:2:3 - AZ0 1901
-+ 1 Roolz A%sZ 2000
-+ 1 Roolz SAZ/DAZ 2005
-+ 1 Roolz %z
-+Rule Roolz 1950 max - April 1 2 1 D
-+Rul Roolz 1950 max - Oct 1 1 0 S
-+Z Strange/Zone 1 - X%sX 1980
-+ 1 - FOO/BAR 1990
-+ 2:00 - %zzz 1995
-+ 0:9 - %zzz 1996
-+ 0:8:7 - %zzz 1997
-+ 0:6:5.5 - %zzz 1998
-+)";
-+
-+ const auto& db = reload_tzdb();
-+ VERIFY( override_used ); // If this fails then XFAIL for the target.
-+ VERIFY( db.version == "test_1" );
-+
-+ // Test formatting %z as
-+ auto tz = locate_zone("Africa/Bissau");
-+ auto inf = tz->get_info(sys_days(1974y/1/1));
-+ VERIFY( inf.abbrev == "-01" );
-+
-+ tz = locate_zone("Some/Zone");
-+ inf = tz->get_info(sys_days(1899y/1/1));
-+ VERIFY( inf.abbrev == "+010203" );
-+ inf = tz->get_info(sys_days(1955y/1/1));
-+ VERIFY( inf.abbrev == "+012345" );
-+
-+ tz = locate_zone("Another/Zone");
-+ // Test formatting %s as the LETTER/S field from the active Rule.
-+ inf = tz->get_info(sys_days(1910y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1950y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1950y/June/1));
-+ VERIFY( inf.abbrev == "ADZ" );
-+ inf = tz->get_info(sys_days(1999y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1999y/July/1));
-+ VERIFY( inf.abbrev == "ADZ" );
-+ // Test formatting STD/DST according to the active Rule.
-+ inf = tz->get_info(sys_days(2000y/January/2));
-+ VERIFY( inf.abbrev == "SAZ" );
-+ inf = tz->get_info(sys_days(2001y/January/1));
-+ VERIFY( inf.abbrev == "SAZ" );
-+ inf = tz->get_info(sys_days(2001y/July/1));
-+ VERIFY( inf.abbrev == "DAZ" );
-+ // Test formatting %z as the offset determined by the active Rule.
-+ inf = tz->get_info(sys_days(2005y/January/2));
-+ VERIFY( inf.abbrev == "+01" );
-+ inf = tz->get_info(sys_days(2006y/January/1));
-+ VERIFY( inf.abbrev == "+01" );
-+ inf = tz->get_info(sys_days(2006y/July/1));
-+ VERIFY( inf.abbrev == "+02" );
-+
-+ // Test formatting %z, %s and S/D for a Zone with no associated Rules.
-+ tz = locate_zone("Strange/Zone");
-+ inf = tz->get_info(sys_days(1979y/January/1));
-+ VERIFY( inf.abbrev == "XX" ); // No Rule means nothing to use for %s.
-+ inf = tz->get_info(sys_days(1981y/July/1));
-+ VERIFY( inf.abbrev == "FOO" ); // Always standard time means first string.
-+ inf = tz->get_info(sys_days(1994y/July/1));
-+ VERIFY( inf.abbrev == "+02zz" );
-+ inf = tz->get_info(sys_days(1995y/July/1));
-+ VERIFY( inf.abbrev == "+0009zz" );
-+ inf = tz->get_info(sys_days(1996y/July/1));
-+ VERIFY( inf.abbrev == "+000807zz" );
-+ inf = tz->get_info(sys_days(1997y/July/1));
-+ VERIFY( inf.abbrev == "+000606zz" );
-+}
-+
-+int main()
-+{
-+ test_format();
-+}
-diff --git a/libstdc++-v3/testsuite/std/time/tzdb/1.cc b/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-index 5f69e182603d..73d316f55708 100644
---- a/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-+++ b/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-@@ -40,11 +40,15 @@ test_locate()
- const tzdb& db = get_tzdb();
- const time_zone* tz = db.locate_zone("GMT");
- VERIFY( tz != nullptr );
-- VERIFY( tz->name() == "Etc/GMT" );
- VERIFY( tz == std::chrono::locate_zone("GMT") );
- VERIFY( tz == db.locate_zone("Etc/GMT") );
- VERIFY( tz == db.locate_zone("Etc/GMT+0") );
-
-+ // Since 2022f GMT is now a Zone and Etc/GMT a link instead of vice versa,
-+ // but only when using the vanguard format. As of 2024a, the main and
-+ // rearguard formats still have Etc/GMT as a Zone and GMT as a link.
-+ VERIFY( tz->name() == "GMT" || tz->name() == "Etc/GMT" );
-+
- VERIFY( db.locate_zone(db.current_zone()->name()) == db.current_zone() );
- }
-
---
-2.43.5
-
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..938d446e5c61f1 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,57 +3,51 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.1+20250329
+revision=1
+bootstrap=yes
+_patchver="${version%+*}"
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
_mpfr_version=4.2.1
_mpc_version=1.3.1
_isl_version=0.26
-create_wrksrc=yes
short_desc="GNU Compiler Collection"
maintainer="Enno Boland <gottox@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-# *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
-distfiles="
- ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_majorver}-${version#*+}/gcc-${_majorver}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
+skip_extraction="gmp-${_gmp_version}.tar.xz mpfr-${_mpfr_version}.tar.xz
+ mpc-${_mpc_version}.tar.gz isl-${_isl_version}.tar.bz2"
+
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
nopie=yes
lib32disabled=yes
-bootstrap=yes
replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
libssp>=0 libssp-devel>=0"
-_have_gccgo=yes
-_have_libquadmath=no
-
-# MIPS is untested and does not have go in crosstoolchains
-# 32-bit PowerPC seems weirdly broken since the 10.x release
-# 32-bit little endian PowerPC has no support at all (no GOARCH)
-case "$XBPS_TARGET_MACHINE" in
- ppc64*) ;;
- mips*-musl|ppc*) _have_gccgo=no ;;
-esac
-
-case "$XBPS_TARGET_MACHINE" in
- i686*|x86_64*|ppc64le*) _have_libquadmath=yes ;;
-esac
-
if [ "$CHROOT_READY" ]; then
hostmakedepends="tar texinfo perl flex"
else
- _have_gccgo=no
# libzstd fails to link in bootstrap with glibc 2.36
# when zlib has been compiled with glibc 2.32.
LDFLAGS="-lzstd -pthread"
@@ -62,7 +56,6 @@ makedepends="zlib-devel libzstd-devel"
depends="binutils libgcc-devel-${version}_${revision}
libstdc++-devel-${version}_${revision} libatomic-devel-${version}_${revision}"
checkdepends="dejagnu"
-
subpackages="libgcc libgomp libgomp-devel libatomic libatomic-devel"
build_options="ada gnatboot"
@@ -70,18 +63,35 @@ build_options_default="ada"
desc_option_ada="Enable Ada build"
desc_option_gnatboot="Enable Ada bootstrap using adacore.com binaries"
+_have_gccgo=yes
+_have_libquadmath=no
+
+case "$XBPS_TARGET_MACHINE" in
+ i686*|x86_64*|ppc64le*) _have_libquadmath=yes ;;
+esac
+
+# MIPS is untested and does not have go in crosstoolchains
+# 32-bit PowerPC seems weirdly broken since the 10.x release
+# 32-bit little endian PowerPC has no support at all (no GOARCH)
+case "$XBPS_TARGET_MACHINE" in
+ ppc64*) ;;
+ mips*-musl|ppc*) _have_gccgo=no ;;
+esac
+
if [ "$build_option_gnatboot" ]; then
case "$XBPS_TARGET_MACHINE" in
x86_64)
_gnat_tarball="gnat-gpl-2017-x86_64-linux-bin.tar.gz"
distfiles+=" https://community.download.adacore.com/v1/9682e2e1f2f232ce03fe21d77b14c37a0de5649b?filename=$_gnat_tarball>$_gnat_tarball"
checksum+=" b942bcac20dea39748b39f8b624d9619f60a8dee2e8195dbe3829c835b0956e6"
+ skip_extraction+=" $_gnat_tarball"
build_options_default="gnatboot"
;;
i686)
_gnat_tarball="gnat-gpl-2014-x86-linux-bin.tar.gz"
distfiles+=" https://community.download.adacore.com/v1/c5e9e6fdff5cb77ed90cf8c62536653e27c0bed6?filename=$_gnat_tarball>$_gnat_tarball"
checksum+=" 3b693510f5d22a240abb3034934c1adbd80ccd6e4f61a4f491cc408fdfd9c042"
+ skip_extraction+=" $_gnat_tarball"
build_options_default="gnatboot"
;;
esac
@@ -90,10 +100,11 @@ fi
if [ "$CHROOT_READY" ]; then
subpackages+=" gcc-fortran libgfortran-devel libgfortran"
subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
-
if [ "$_have_libquadmath" = "yes" ]; then
subpackages+=" libquadmath libquadmath-devel"
fi
+else
+ _have_gccgo=no
fi
if [ "$_have_gccgo" = "yes" ]; then
@@ -162,18 +173,14 @@ if [ "$CROSS_BUILD" ]; then
fi
post_extract() {
- mv gcc-${version}/* gcc-${version}/.??* .
- rmdir gcc-${version}
- mv gmp-${_gmp_version} gmp
- mv mpfr-${_mpfr_version} mpfr
- mv mpc-${_mpc_version} mpc
- mv isl-${_isl_version} isl
+ vsrcextract -C gmp gmp-${_gmp_version}.tar.xz
+ vsrcextract -C mpfr mpfr-${_mpfr_version}.tar.xz
+ vsrcextract -C mpc mpc-${_mpc_version}.tar.gz
+ vsrcextract -C isl isl-${_isl_version}.tar.bz2
if [ "$build_option_gnatboot" ]; then
- local f="${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_gnat_tarball}"
msg_normal "Extracting ${_gnat_tarball} ...\n"
- mkdir -p ${wrksrc}/gnat-ins
- tar -x -f "$f" --strip-components=1 -C ${wrksrc}/gnat-ins
+ vsrcextract -C gnat-ins ${_gnat_tarball}
cd ${wrksrc}/gnat-ins
make ins-all prefix=${wrksrc}/gnat
cd ${wrksrc}
@@ -202,6 +209,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -307,6 +315,10 @@ do_configure() {
mkdir -p build
cd build
if [ "$build_option_gnatboot" ]; then
+ # file-prefix-map isn't supported in gcc6
+ export CFLAGS="${CFLAGS/-ffile-prefix-map=$wrksrc=./}"
+ export CXXFLAGS="${CXXFLAGS/-ffile-prefix-map=$wrksrc=./}"
+
_args+=" --enable-languages=${_langs},ada"
_args+=" --enable-libada"
CONFIG_SHELL=/bin/bash \
@@ -325,6 +337,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ # gcc will configure itself again throughout the build, so make sure CFLAGS/CXXFLAGS/etc
+ # are still set the same.
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +363,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +372,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
@@ -355,16 +380,16 @@ do_install() {
# Make version a symlink of major version to make all versions
# from the same series work automagically.
- mv ${DESTDIR}/usr/lib/gcc/${_triplet}/${version} \
+ mv ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver} \
${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver}
ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver} \
- ${DESTDIR}/usr/lib/gcc/${_triplet}/${version}
+ ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver}
# Ditto for c++ headers.
- mv ${DESTDIR}/usr/include/c++/${version} \
+ mv ${DESTDIR}/usr/include/c++/${_patchver} \
${DESTDIR}/usr/include/c++/${_minorver}
ln -sfr ${DESTDIR}/usr/include/c++/${_minorver} \
- ${DESTDIR}/usr/include/c++/${version}
+ ${DESTDIR}/usr/include/c++/${_patchver}
# cc symlink
ln -sfr ${DESTDIR}/usr/bin/gcc ${DESTDIR}/usr/bin/cc
@@ -373,7 +398,7 @@ do_install() {
# lto plugin symlink
vmkdir usr/lib/bfd-plugins
- ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${version}/liblto_plugin.so \
+ ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver}/liblto_plugin.so \
${DESTDIR}/usr/lib/bfd-plugins
# Remove "fixed" header
@@ -457,7 +482,7 @@ gcc-fortran_package() {
if [ "$CROSS_BUILD" ]; then
# A number of OMP modules are not built when cross
# compiling gcc. Copy them from the cross compiler.
- local src="/usr/lib/gcc/${_triplet}/${version}/finclude"
+ local src="/usr/lib/gcc/${_triplet}/${_patchver}/finclude"
local dst="usr/lib/gcc/${_triplet}/${_minorver}/finclude"
for f in omp_lib.f90 omp_lib.h omp_lib.mod omp_lib_kinds.mod \
openacc.f90 openacc.mod openacc_kinds.mod openacc_lib.h; do
@@ -714,7 +739,7 @@ libstdc++_package() {
short_desc+=" - Standard C++ Library"
pkg_install() {
vmove usr/share/gdb
- vmove usr/share/gcc-${version}/python
+ vmove usr/share/gcc-${_patchver}/python
vmove "usr/lib/libstdc++.so*"
vlicense COPYING.RUNTIME RUNTIME.LIBRARY.EXCEPTION
}
From 4645bb8ae0b1010ae88a1b9721866935d416c27e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 04/41] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
common/shlibs | 60 +-
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
7 files changed, 33 insertions(+), 1003 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/common/shlibs b/common/shlibs
index 26f9ead7a32c95..4bc3ce575e7784 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -17,36 +17,36 @@
# one (order top->bottom) is preferred over the next ones.
#
libc.so musl-1.1.24_7
-libc.so.6 glibc-2.39_1
-libm.so.6 glibc-2.39_1
-libpthread.so.0 glibc-2.39_1
-librt.so.1 glibc-2.39_1
-libdl.so.2 glibc-2.39_1
-ld-linux-x86-64.so.2 glibc-2.39_1 x86_64
-ld-linux.so.2 glibc-2.39_1 i686
-ld-linux.so.3 glibc-2.39_1 armv5tel
-ld-linux-aarch64.so.1 glibc-2.39_1 aarch64
-ld-linux-riscv64-lp64d.so.1 glibc-2.39_1 riscv64
-ld64.so.2 glibc-2.39_1 ppc64
-ld.so.1 glibc-2.39_1 mips
-ld.so.1 glibc-2.39_1 ppc
-ld-linux-armhf.so.3 glibc-2.39_1
-libresolv.so.2 glibc-2.39_1
-libanl.so.1 glibc-2.39_1
-libthread_db.so.1 glibc-2.39_1
-libutil.so.1 glibc-2.39_1
-libnsl.so.1 glibc-2.39_1
-libnss_db.so.2 glibc-2.39_1
-libnss_files.so.2 glibc-2.39_1
-libnss_compat.so.2 glibc-2.39_1
-libnss_dns.so.2 glibc-2.39_1
-libnss_hesiod.so.2 glibc-2.39_1
-libBrokenLocale.so.1 glibc-2.39_1
-libmemusage.so glibc-2.39_1
-libSegFault.so glibc-2.39_1
-libpcprofile.so glibc-2.39_1
-libcidn.so.1 glibc-2.39_1
-libmvec.so.1 glibc-2.39_1
+libc.so.6 glibc-2.41_1
+libm.so.6 glibc-2.41_1
+libpthread.so.0 glibc-2.41_1
+librt.so.1 glibc-2.41_1
+libdl.so.2 glibc-2.41_1
+ld-linux-x86-64.so.2 glibc-2.41_1 x86_64
+ld-linux.so.2 glibc-2.41_1 i686
+ld-linux.so.3 glibc-2.41_1 armv5tel
+ld-linux-aarch64.so.1 glibc-2.41_1 aarch64
+ld-linux-riscv64-lp64d.so.1 glibc-2.41_1 riscv64
+ld64.so.2 glibc-2.41_1 ppc64
+ld.so.1 glibc-2.41_1 mips
+ld.so.1 glibc-2.41_1 ppc
+ld-linux-armhf.so.3 glibc-2.41_1
+libresolv.so.2 glibc-2.41_1
+libanl.so.1 glibc-2.41_1
+libthread_db.so.1 glibc-2.41_1
+libutil.so.1 glibc-2.41_1
+libnsl.so.1 glibc-2.41_1
+libnss_db.so.2 glibc-2.41_1
+libnss_files.so.2 glibc-2.41_1
+libnss_compat.so.2 glibc-2.41_1
+libnss_dns.so.2 glibc-2.41_1
+libnss_hesiod.so.2 glibc-2.41_1
+libBrokenLocale.so.1 glibc-2.41_1
+libmemusage.so glibc-2.41_1
+libSegFault.so glibc-2.41_1
+libpcprofile.so glibc-2.41_1
+libcidn.so.1 glibc-2.41_1
+libmvec.so.1 glibc-2.41_1
libcrypt.so.2 libxcrypt-4.4.36_1
libcrypt.so.1 libxcrypt-compat-4.4.36_1
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From 62a82b2861fa0bafbda7a64bd001b1406fd66a5d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 05/41] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 04e22c4fb01166..922d009ad8c36e 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=23
+revision=24
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From e330781ba7455271b65745d906069a46a996990a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 06/41] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 5d3ba2a7a9feb4501e3f64d6a6f3c5c22b7b829a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 07/41] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 3a6883c5291021e2e16c6c37164daf10d61f6b64 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 08/41] gcc-multilib: update to 14.2.1+20250329.
---
.../patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 62 +++++++++++--------
2 files changed, 37 insertions(+), 27 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..a3f737567de2dd 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,32 +3,41 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.1+20250329
revision=1
-_majorver="${version%.*}"
+_patchver="${version%+*}"
+_minorver="${version%.*}"
+_majorver="${_minorver%.*}"
+hostmakedepends="perl flex tar"
+makedepends="zlib-devel libzstd-devel isl-devel libmpc-devel gmp-devel mpfr-devel
+ glibc-32bit glibc-devel-32bit"
+depends="
+ gcc>=${_minorver}
+ libgcc-32bit>=${_minorver}
+ libgomp-devel-32bit>=${_minorver}
+ libitm-devel-32bit>=${_minorver}
+ libsanitizer-devel-32bit>=${_minorver}
+ libatomic-devel-32bit>=${_minorver}
+ libvtv-devel-32bit>=${_minorver}
+ zlib-32bit glibc-devel-32bit"
short_desc="GNU Compiler Collection (multilib files)"
maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
-
-hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
- glibc-32bit glibc-devel-32bit"
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_majorver}-${version#*+}/gcc-${_majorver}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+checksum=973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
-depends="
- gcc>=${_majorver}
- libgcc-32bit>=${_majorver}
- libgomp-devel-32bit>=${_majorver}
- libitm-devel-32bit>=${_majorver}
- libsanitizer-devel-32bit>=${_majorver}
- libatomic-devel-32bit>=${_majorver}
- libvtv-devel-32bit>=${_majorver}
- zlib-32bit
- glibc-devel-32bit"
replaces="libmpx-devel-32bit>=0 libssp-32bit>=0 libssp-devel-32bit>=0"
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
+
do_configure() {
ldconfig &>/dev/null
@@ -69,6 +78,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
@@ -77,19 +87,19 @@ do_install() {
# Make version a symlink of major version to make all versions
# from the same series work automagically.
- vmkdir usr/include/c++/${_majorver}/${_triplet}
- vmkdir usr/lib/gcc/${_triplet}/${_majorver}
+ vmkdir usr/include/c++/${_minorver}/${_triplet}
+ vmkdir usr/lib/gcc/${_triplet}/${_minorver}
- cp -a ${wrksrc}/${pkgname}-build/usr/lib/gcc/${_pc_triplet}/${version}/32 \
- ${DESTDIR}/usr/lib/gcc/${_triplet}/${_majorver}/
- cp -a ${wrksrc}/${pkgname}-build/usr/include/c++/${version}/${_pc_triplet}/32 \
- ${DESTDIR}/usr/include/c++/${_majorver}/${_triplet}
+ cp -a ${wrksrc}/${pkgname}-build/usr/lib/gcc/${_pc_triplet}/${_patchver}/32 \
+ ${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver}/
+ cp -a ${wrksrc}/${pkgname}-build/usr/include/c++/${_patchver}/${_pc_triplet}/32 \
+ ${DESTDIR}/usr/include/c++/${_minorver}/${_triplet}
- vinstall ${wrksrc}/host-${_pc_triplet}/gcc/specs 644 usr/lib/gcc/${_triplet}/${_majorver}
+ vinstall ${wrksrc}/host-${_pc_triplet}/gcc/specs 644 usr/lib/gcc/${_triplet}/${_minorver}
}
gcc-objc-multilib_package() {
- depends="gcc-multilib>=${_majorver} gcc-objc>=${_majorver} libobjc-devel-32bit>=${_majorver}"
+ depends="gcc-multilib>=${_minorver} gcc-objc>=${_minorver} libobjc-devel-32bit>=${_minorver}"
short_desc="GNU Objective-C compiler (multilib files)"
build_style=meta
}
From 5bdb199aaba6cc276e5641628420df0651847d52 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 09/41] libgccjit: update to 14.2.1+20250329.
---
srcpkgs/libgccjit/template | 44 +++++++++++++-------------------------
1 file changed, 15 insertions(+), 29 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..78de3d222d4433 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,43 +3,29 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.1+20250329
revision=1
-_gmp_version=6.3.0
-_mpfr_version=4.2.0
-_mpc_version=1.3.1
-_isl_version=0.24
-create_wrksrc=yes
+hostmakedepends="tar texinfo perl flex"
+makedepends="zlib-devel libzstd-devel isl-devel libmpc-devel gmp-devel mpfr-devel"
+depends="gcc"
+checkdepends="dejagnu"
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
homepage="https://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-# *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
-distfiles="
- ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
- ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
- ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
- ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
- ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${version%%.*}-${version#*+}/gcc-${version%%.*}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+checksum=973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
nopie=yes
lib32disabled=yes
-makedepends="zlib-devel"
-hostmakedepends="tar texinfo perl flex"
-depends="gcc"
-checkdepends="dejagnu"
-post_extract() {
- mv gcc-*/* .
- mv gmp-${_gmp_version} gmp
- mv mpfr-${_mpfr_version} mpfr
- mv mpc-${_mpc_version} mpc
- mv isl-${_isl_version} isl
-}
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
pre_configure() {
if [ "$XBPS_TARGET_LIBC" = musl ]; then
From 464b7bd24160864be775e47497bc047820863f06 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 10/41] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From baea67d18ca0168d1eb94dc87be8ce8f66f27691 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 22:59:26 -0700
Subject: [PATCH 11/41] openjdk7-bootstrap: fix build with gcc14
---
srcpkgs/openjdk7-bootstrap/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index 03d91bebf4934a..a4e4ff46091b65 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -86,7 +86,7 @@ skip_extraction="
shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
nocross=yes
-CFLAGS="-fcommon"
+CFLAGS="-fcommon -fpermissive"
post_extract() {
mv icedtea-*/* .
From d242e8ef86581618e9a8bdf8aa8317fbcfc2676d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 23:00:00 -0700
Subject: [PATCH 12/41] openjdk8: fix build with gcc14
---
.../patches/105_implicit_declaration.patch | 25 +++++++++++++++++++
.../openjdk8/patches/106_int_conversion.patch | 16 ++++++++++++
srcpkgs/openjdk8/template | 2 ++
3 files changed, 43 insertions(+)
create mode 100644 srcpkgs/openjdk8/patches/105_implicit_declaration.patch
create mode 100644 srcpkgs/openjdk8/patches/106_int_conversion.patch
diff --git a/srcpkgs/openjdk8/patches/105_implicit_declaration.patch b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
new file mode 100644
index 00000000000000..7a04c21ec910c3
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
@@ -0,0 +1,25 @@
+The isnanf BSD extension was deprecated with the
+introduction of isnan in c99 and isn't implemented in musl.
+Use the isnan function instead.
+
+--- a/jdk/src/solaris/native/common/jdk_util_md.h
++++ b/jdk/src/solaris/native/common/jdk_util_md.h
+@@ -37,7 +37,7 @@
+ #define ISNAND(d) isnan(d)
+ #elif defined(__linux__) || defined(_ALLBSD_SOURCE)
+ #include <math.h>
+-#define ISNANF(f) isnanf(f)
++#define ISNANF(f) isnan(f)
+ #define ISNAND(d) isnan(d)
+ #elif defined(_AIX)
+ #include <math.h>
+--- a/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
++++ b/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
+@@ -29,6 +29,7 @@
+ #include "jlong.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <dlfcn.h>
+ #include <errno.h>
diff --git a/srcpkgs/openjdk8/patches/106_int_conversion.patch b/srcpkgs/openjdk8/patches/106_int_conversion.patch
new file mode 100644
index 00000000000000..2c57cb01353072
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/106_int_conversion.patch
@@ -0,0 +1,16 @@
+--- a/jdk/src/share/bin/splashscreen_stubs.c
++++ b/jdk/src/share/bin/splashscreen_stubs.c
+@@ -61,11 +61,11 @@
+ #define INVOKEV(name) _INVOKE(name, ,;)
+
+ int DoSplashLoadMemory(void* pdata, int size) {
+- INVOKE(SplashLoadMemory, NULL)(pdata, size);
++ INVOKE(SplashLoadMemory, 0)(pdata, size);
+ }
+
+ int DoSplashLoadFile(const char* filename) {
+- INVOKE(SplashLoadFile, NULL)(filename);
++ INVOKE(SplashLoadFile, 0)(filename);
+ }
+
+ void DoSplashInit(void) {
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 3f01bd949417d9..045f78ad363dab 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -78,6 +78,8 @@ fi
# enabling ccache segfaults gcc
export CCACHE_DISABLE=1
+CFLAGS="-Wno-incompatible-pointer-types"
+
post_extract() {
chmod +x configure
}
From d4f02be7a5cac4a00c389c929946212d39390912 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:37:27 -0700
Subject: [PATCH 13/41] common/environment/build-style/void-cross.sh: add
distfiles fallback
Try the distfiles mirror in case the gcc snapshot has expired.
---
common/environment/build-style/void-cross.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/common/environment/build-style/void-cross.sh b/common/environment/build-style/void-cross.sh
index 40df98e95e9026..26d586a6cb59a3 100644
--- a/common/environment/build-style/void-cross.sh
+++ b/common/environment/build-style/void-cross.sh
@@ -1,3 +1,9 @@
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
+
lib32disabled=yes
nopie=yes
From 412064097a0636aad470009ca8882448b6766d37 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 04:06:01 -0700
Subject: [PATCH 14/41] common/build-style/void-cross.sh: fix obtaining gcc
version
---
common/build-style/void-cross.sh | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/common/build-style/void-cross.sh b/common/build-style/void-cross.sh
index d94e90cbb133c4..53ae84ca3325b3 100644
--- a/common/build-style/void-cross.sh
+++ b/common/build-style/void-cross.sh
@@ -466,6 +466,28 @@ _void_cross_test_ver() {
fi
}
+_void_cross_test_gcc_ver() {
+ local proj="gcc"
+ local noerr=$2
+ local ver cver basever
+ for p in ${proj}-*; do
+ cver=${p#${proj}-}
+ if [ -z "$noerr" -a -n "$ver" ]; then
+ msg_error "multiple versions of ${proj} found: ${ver}, ${cver}"
+ fi
+ ver=${cver}
+ done
+ if [ -d "${proj}-${ver}" ]; then
+ basever=$(cat "${proj}-${ver}/gcc/BASE-VER")
+ mv "${proj}-${ver}" "${proj}-${basever}"
+ echo ${basever} > ${wrksrc}/.${proj}_version
+ return
+ fi
+ if [ -z "$noerr" ]; then
+ msg_error "project ${proj} not available for build\n"
+ fi
+}
+
do_build() {
# Verify toolchain versions
cd ${wrksrc}
@@ -483,7 +505,7 @@ do_build() {
_void_cross_test_ver binutils
_void_cross_test_ver linux
- _void_cross_test_ver gcc
+ _void_cross_test_gcc_ver
binutils_ver=$(cat .binutils_version)
linux_ver=$(cat .linux_version)
From 1a44217daf40e3073d608375e5d18067702591dd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 15/41] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From e25e1792b5ae85c3bddb0e6d966ad0ef626f571c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:54 -0700
Subject: [PATCH 16/41] cross-aarch64-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-aarch64-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..e454a971cda6b1 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,13 +16,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From bc5c87ec43eb69b9d304c94230877a57bdbf84dd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:54 -0700
Subject: [PATCH 17/41] cross-aarch64-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-aarch64-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..1ace2a2438d514 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -17,14 +17,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From af076a37959a5d12181265835974d1d61c26e2d3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:54 -0700
Subject: [PATCH 18/41] cross-arm-linux-gnueabi: update to gcc 14.2.1+20250329
---
srcpkgs/cross-arm-linux-gnueabi/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..47f7d9e54a79d2 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 138a6543c14e0359bc65d2f76b24fa6f4d3f943d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:54 -0700
Subject: [PATCH 19/41] cross-arm-linux-gnueabihf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-arm-linux-gnueabihf/template | 23 ++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..1f9b6583acc40c 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From cd70de3e12eb58d61ed05cdfdc5552596dddf8cf Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:54 -0700
Subject: [PATCH 20/41] cross-arm-linux-musleabi: update to gcc 14.2.1+20250329
---
srcpkgs/cross-arm-linux-musleabi/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..00d96ea0f8dc7d 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -18,14 +18,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 6a7b7a582beb488f0401d936d7c37592d8ca9363 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:54 -0700
Subject: [PATCH 21/41] cross-arm-linux-musleabihf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-arm-linux-musleabihf/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..4021da44d0a7ef 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -18,14 +18,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From f8f9e840e7311211d4459cad94f06ea9b4194334 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 22/41] cross-armv7l-linux-gnueabihf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 23 +++++++++++--------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..ec31ae23e9c493 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,13 +16,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From ca6435b66c3da570546b760cfc265696ade1c0ba Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 23/41] cross-armv7l-linux-musleabihf: update to gcc
14.2.1+20250329
---
.../cross-armv7l-linux-musleabihf/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..b13590b0ed8082 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -17,14 +17,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 05437750ec32182842999b685da4f25c9764e531 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 24/41] cross-i686-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-i686-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..5d9612b02e3180 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -16,14 +16,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From b92f4b7a9a43e4292c640e6486a28f1ba69690d2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 25/41] cross-i686-pc-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-i686-pc-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..2f833619f4e0ef 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -15,13 +15,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 6df625b82a7b6ebd158229bdfe4122b95db951c7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 26/41] cross-mips-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-mips-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..ad39078a14665d 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 8e0ddb289a2d94d45df2cc7d20f6800e38b516c0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 27/41] cross-mips-linux-muslhf: update to gcc 14.2.1+20250329
---
srcpkgs/cross-mips-linux-muslhf/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..9cc9daccfc8c96 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="hipperson0 <hipperson0@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 8640559e9316a3a29199979165fdab3bbc3b861e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 28/41] cross-mipsel-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-mipsel-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..13b2ea2d5f7fe2 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 2e394d04c0449500edbb40c4e55bb746360251e0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 29/41] cross-mipsel-linux-muslhf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-mipsel-linux-muslhf/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..f6b4612ae14503 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From bb3b91e2e82829346d6242521dc7b14c1f7ee37b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 30/41] cross-powerpc-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-powerpc-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..266a43581f9ff4 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Thomas Batten <stenstorpmc@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 33032426d712e5c004866f7f1a2a6ff396e5b0b2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 31/41] cross-powerpc-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-powerpc-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..149c2ddf6ef180 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Thomas Batten <stenstorpmc@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From f0c37e5b744093af9bc0c3c632593e852a539b15 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 32/41] cross-powerpc64-linux-gnu: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64-linux-gnu/template | 23 ++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..d9f79787ba51d3 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From d5b57a0d3fc8881f3c1bf7cbe876d49d93d65c47 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 33/41] cross-powerpc64-linux-musl: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..b9f5aa4733969f 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -19,14 +19,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 7c9217f44fceb36d7a1545318afc34fe73070587 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 34/41] cross-powerpc64le-linux-gnu: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 23 +++++++++++---------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..3d3d3c3a282852 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 15dc0de302c0c5230f938f03e8997a31eb149978 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 35/41] cross-powerpc64le-linux-musl: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64le-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..96a103c7cf5b3f 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -19,14 +19,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From d534d25260685f410b93b4483f7d8ce73fde26f7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 36/41] cross-powerpcle-linux-gnu: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpcle-linux-gnu/template | 25 ++++++++++++----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..0d370d098dcfbc 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -17,14 +17,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
@@ -37,7 +40,7 @@ if [ "$XBPS_TARGET_MACHINE" = "ppcle" ]; then
broken="Can't build crosstoolchain to itself"
fi
-broken="glibc uses big-endian specific instructions on 32-bit powerpc"
+broken="glibc uses big-endian specific instructions (stmw and lmw) in 32-bit powerpc clone.S"
cross-powerpcle-linux-gnu-libc_package() {
short_desc+=" - glibc files"
From b24e16076a81b81db71efe3c3506e2eed687661a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:57 -0700
Subject: [PATCH 37/41] cross-powerpcle-linux-musl: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpcle-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..80428654415ad2 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 4095b040da4162e354a3daa62ff291cbf7b31f13 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:57 -0700
Subject: [PATCH 38/41] cross-riscv64-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-riscv64-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..5b69408d812c0b 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,13 +16,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 15da0150299d8d6fc2566ead2fb8e733a1f9e577 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:57 -0700
Subject: [PATCH 39/41] cross-riscv64-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-riscv64-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..972cdd2cfa8a50 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -17,14 +17,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 4d0c7cb336d8eb1155b80a87ea0b5d155f041529 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:57 -0700
Subject: [PATCH 40/41] cross-x86_64-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-x86_64-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..325bf041e44f21 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -15,13 +15,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 531ed087c4372dd92f01516a0c59dc4b73077128 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:57 -0700
Subject: [PATCH 41/41] cross-x86_64-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-x86_64-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..afaa9258f7addf 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -16,14 +16,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.1+20250329.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (47 preceding siblings ...)
2025-04-06 11:06 ` oreo639
@ 2025-04-06 11:31 ` oreo639
2025-04-07 3:02 ` oreo639
` (14 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-04-06 11:31 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 7675 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.1+20250329.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
You can test the ISOs here: https://devspace.voidlinux.org/oreo639/live/gcc14/
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp https://github.com/void-linux/void-packages/commit/30e9e29bb5a348b2c6b7a9b3e29c13d2bc28cfae
- [x] libsasl https://github.com/void-linux/void-packages/commit/6f71c8889cc8a79411ddaca582250e19718f12da
- [x] nvi https://github.com/void-linux/void-packages/commit/a51ebf219534e5420ffc83d5a89b43dc992c9b81
- [x] xbps https://github.com/void-linux/void-packages/commit/73c8cdee1d9b05980cdc0763294cce9372612ba4
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
- [x] gtk+ https://github.com/void-linux/void-packages/commit/ac57a55a5fda78618aec2ec7bb3c27404834ed04
- [x] gtk+3 https://github.com/void-linux/void-packages/pull/54187
- [x] libaom https://github.com/void-linux/void-packages/commit/fcbb94217389f64fea4c536959983814ebaadae4
- [x] perl-Tk https://github.com/void-linux/void-packages/commit/67aeb9d9b2b077d9b7f25902bbf079c1569a2633
- [x] gnu-efi-libs https://github.com/void-linux/void-packages/commit/92b2642bc8d1871605f824064863149985419010
- [x] syslinux https://github.com/void-linux/void-packages/commit/49af74a1dfb32ba1de556f4491b3870179c80872
- [x] recode https://github.com/void-linux/void-packages/pull/54707
- [x] libcddb https://github.com/void-linux/void-packages/commit/eeae3026d1356e1ac5d0547e19e2742a335ae9ca
- [x] vim https://github.com/void-linux/void-packages/pull/54706
- [x] vmaf https://github.com/void-linux/void-packages/pull/54721
- [x] audit https://github.com/void-linux/void-packages/pull/54722
- [x] aalib https://github.com/void-linux/void-packages/commit/d7769fe6d757a62fbfc0998d5cbde5dec8a7db11
- [x] cppdap (outdated vendored gtest, patch merged upstream) https://github.com/void-linux/void-packages/commit/a2c9d8ac073e9f40d6b7b1bb3df108c0d46481bb
- [x] snappy (outdated vendored gtest, upstream rejected patch stating that downstreams running their tests is not supported and that downstreams should either ship their own tests/patches or just disable them) https://github.com/void-linux/void-packages/commit/4e73161431672d245a8d558f269a74f1ab363cc8
- [x] openjdk7-bootstrap
- [x] openjdk8
- [x] gimp https://github.com/void-linux/void-packages/commit/d173951120b07bc57171f6962c92c0877becd0d8
- [x] xf86-video-nouveau https://github.com/void-linux/void-packages/pull/54720
- [x] libao https://github.com/void-linux/void-packages/commit/b9c6b010a201211c0ffba8a821f0021b9bdaf376
- [x] accountsservice https://github.com/void-linux/void-packages/commit/a1ca8cef0b2e98ba22c4d632685f85c5d0cde4c1
- Done with base-syste/xfce
- [x] zeitgeist
- [x] libgee
- [x] cogl
- [x] clutter-gst3
- [x] telepathy-glib
- [x] xen https://github.com/void-linux/void-packages/pull/54751
- [x] vde2 https://github.com/void-linux/void-packages/pull/54750
- Sagemath Related
- [x] gf2x
- [x] linbox
- [x] givaro
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [x] elfutils https://github.com/void-linux/void-packages/pull/54566
- [x] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [x] sane https://github.com/void-linux/void-packages/pull/54614
- [x] mdadm https://github.com/void-linux/void-packages/commit/10694f08c471b2701b3c275540b0c665f67c8b9b
- [x] pulseaudio (broken due to configure checks detecting presence of open64, this is fixed in musl 1.2.x https://github.com/bminor/musl/commit/246f1c811448f37a44b41cd8df8d0ef9736d95f4 https://github.com/bminor/musl/commit/50ab830633134dac99011219f0210ee2759ffbde) https://github.com/void-linux/void-packages/commit/b87ec8f3ca216b6d9cfb4836f236fca13f45c2ab
- [x] gpm
- [x] linux-tools https://github.com/void-linux/void-packages/commit/8c670d7a13a3d6783e23624bda033ef898cafd72
- [x] v4l-utils (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg6 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] gst-plugins-good1 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] libcdio (fseek64, also broken on i686-glibc) https://github.com/void-linux/void-packages/pull/54724
- [x] gcr (getpass) https://github.com/void-linux/void-packages/commit/a40788b2db81ceba7e4a9f75e1c120efd7577600
- [x] libndp https://github.com/void-linux/void-packages/commit/580546374e10b6847a66bfb4d9f27579d5112902
- [x] samba https://github.com/void-linux/void-packages/commit/0900507d38bfc7963d7b6c1a7b04341ae987f2d2
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration instead of segfaulting later due to implicit pointer truncation. This is good, but ofc, packages need to be checked for this.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, please test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 187829 bytes --]
From 966e6a37cbaa962da5a02dabf3a0d5d03cd97602 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Tue, 28 May 2024 15:31:49 -0400
Subject: [PATCH 01/41] xbps-src: add option to use distfiles mirror as a
fallback
This adds an optional configuration to add a fallback distfiles mirror
The idea is that normally, distfiles should be fetched from the urls in
the template. However, occasionally the urls have rotted, or are simply
down temporairily, in which case the fetch will fail. A workaround to
this has been to use the $XBPS_DISTFILES_MIRROR option, however the
downside to this is that it is always tried first, and 99% of the time isn't
needed.
This adds the $XBPS_DISTFILES_FALLBACK option, which can be set to an
addiontional list of mirrors which will be attempted after both
$XBPS_DISTFILES_MIRROR, and the urls in the template have failed to
fetch the distfiles
Co-authored-by: oreo639 <oreo6391@gmail.com>
---
common/hooks/do-fetch/00-distfiles.sh | 15 +++++++++------
xbps-src | 10 +++++++---
2 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/common/hooks/do-fetch/00-distfiles.sh b/common/hooks/do-fetch/00-distfiles.sh
index 1adb86a5167823..2065d5442a3a12 100644
--- a/common/hooks/do-fetch/00-distfiles.sh
+++ b/common/hooks/do-fetch/00-distfiles.sh
@@ -128,11 +128,11 @@ link_cksum() {
}
try_mirrors() {
- local curfile="$1" distfile="$2" cksum="$3" f="$4"
+ local curfile="$1" distfile="$2" cksum="$3" f="$4" mirror_list="$5"
local filesum basefile mirror path scheme good
- [ -z "$XBPS_DISTFILES_MIRROR" ] && return 1
+ [ -z "$mirror_list" ] && return 1
basefile="${f##*/}"
- for mirror in $XBPS_DISTFILES_MIRROR; do
+ for mirror in $mirror_list; do
scheme="file"
if [[ $mirror == *://* ]]; then
scheme="${mirror%%:/*}"
@@ -148,8 +148,8 @@ try_mirrors() {
continue
fi
fi
- if [[ "$mirror" == *voidlinux* ]]; then
- # For distfiles.voidlinux.* append the subdirectory
+ if [[ "$mirror" == *sources.voidlinux.* ]]; then
+ # For sources.voidlinux.* append the subdirectory
mirror="$mirror/$pkgname-$version"
fi
msg_normal "$pkgver: fetching distfile '$curfile' from mirror '$mirror'...\n"
@@ -286,11 +286,14 @@ hook() {
fi
# If distfile does not exist, download it from a mirror location.
- if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}"; then
+ if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}" "$XBPS_DISTFILES_MIRROR"; then
continue
fi
if ! try_urls "$curfile"; then
+ if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}" "$XBPS_DISTFILES_FALLBACK"; then
+ continue
+ fi
msg_error "$pkgver: failed to fetch '$curfile'.\n"
fi
done
diff --git a/xbps-src b/xbps-src
index c17270b62ee4b5..1ce830c7bf9c18 100755
--- a/xbps-src
+++ b/xbps-src
@@ -343,10 +343,11 @@ read_pkg() {
}
setup_distfiles_mirror() {
+ local mirror_list="$1"
local mirror scheme path
# Scheme file:// mirror locations only work with uchroot
- for mirror in $XBPS_DISTFILES_MIRROR; do
+ for mirror in $mirror_list; do
scheme="file"
if [[ "$mirror" == *://* ]]; then
scheme="${mirror%%://*}"
@@ -696,7 +697,7 @@ export XBPS_SHUTILSDIR XBPS_CROSSPFDIR XBPS_TRIGGERSDIR \
XBPS_LIBEXECDIR XBPS_DISTDIR XBPS_DISTFILES_MIRROR XBPS_ALLOW_RESTRICTED \
XBPS_USE_GIT_COMMIT_DATE XBPS_PKG_COMPTYPE XBPS_REPO_COMPTYPE \
XBPS_BUILDHELPERDIR XBPS_USE_BUILD_MTIME XBPS_BUILD_ENVIRONMENT \
- XBPS_PRESERVE_PKGS XBPS_IGNORE_BROKENNESS
+ XBPS_PRESERVE_PKGS XBPS_IGNORE_BROKENNESS XBPS_DISTFILES_FALLBACK
for i in REPOSITORY DESTDIR BUILDDIR SRCDISTDIR; do
eval val="\$XBPS_$i"
@@ -760,7 +761,10 @@ done
if [ -z "$IN_CHROOT" ]; then
trap 'exit_func' INT TERM
if [ -n "$XBPS_DISTFILES_MIRROR" ]; then
- setup_distfiles_mirror
+ setup_distfiles_mirror "$XBPS_DISTFILES_MIRROR"
+ fi
+ if [ -n "$XBPS_DISTFILES_FALLBACK" ]; then
+ setup_distfiles_mirror "$XBPS_DISTFILES_FALLBACK"
fi
fi
From 91019a9ff783286ef82c3f00f8d91cc26267e03c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 02/41] binutils: update to 2.44.
---
srcpkgs/binutils/template | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..024f8e5c634dd7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
@@ -73,8 +73,7 @@ do_configure() {
esac
# target archs supported by Void
- # borked: riscv64 (gold doesn't support it)
- void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,x86_64"
+ void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,riscv64,x86_64"
conf+=" --enable-targets=$(echo "$void_targets" | sed -E -e 's/(,|$)/-linux-gnu\1/g'),${extra_targets}"
if [ "$build_option_all_targets" ]; then
@@ -107,7 +106,6 @@ do_configure() {
--enable-threads \
--enable-plugins \
--enable-relro \
- --enable-gold \
--enable-new-dtags \
--enable-deterministic-archives \
--enable-64-bit-bfd \
From 4d719866ed4757b7260b1766816c2d7d43d770aa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 03/41] gcc: update to 14.2.1+20250329.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ---------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 -----
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 --
.../patches/fix-pretty-printer-warnings.patch | 125 ----
.../gcc/patches/libstdcxx-tzdb-z-format.patch | 563 ------------------
srcpkgs/gcc/template | 109 ++--
7 files changed, 70 insertions(+), 1232 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
delete mode 100644 srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
diff --git a/common/shlibs b/common/shlibs
index a51d54d5472096..26f9ead7a32c95 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.40 perl-5.40.1_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch b/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
deleted file mode 100644
index 0deb99ac6a2df2..00000000000000
--- a/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
+++ /dev/null
@@ -1,563 +0,0 @@
-From 5ceea2ac106d6dd1aa8175670b15a801316cf1c9 Mon Sep 17 00:00:00 2001
-From: Jonathan Wakely <jwakely@redhat.com>
-Date: Tue, 30 Apr 2024 09:52:13 +0100
-Subject: [PATCH] libstdc++: Fix std::chrono::tzdb to work with vanguard format
-
-I found some issues in the std::chrono::tzdb parser by testing the
-tzdata "vanguard" format, which uses new features that aren't enabled in
-the "main" and "rearguard" data formats.
-
-Since 2024a the keyword "minimum" is no longer valid for the FROM and TO
-fields in a Rule line, which means that "m" is now a valid abbreviation
-for "maximum". Previously we expected either "mi" or "ma". For backwards
-compatibility, a FROM field beginning with "mi" is still supported and
-is treated as 1900. The "maximum" keyword is only allowed in TO now,
-because it makes no sense in FROM. To support these changes the
-minmax_year and minmax_year2 classes for parsing FROM and TO are
-replaced with a single years_from_to class that reads both fields.
-
-The vanguard format makes use of %z in Zone FORMAT fields, which caused
-an exception to be thrown from ZoneInfo::set_abbrev because no % or /
-characters were expected when a Zone doesn't use a named Rule. The
-ZoneInfo::to(sys_info&) function now uses format_abbrev_str to replace
-any %z with the current offset. Although format_abbrev_str also checks
-for %s and STD/DST formats, those only make sense when a named Rule is
-in effect, so won't occur when ZoneInfo::to(sys_info&) is used.
-
-Since making this change on trunk, the tzdata-2024b release started
-using %z in the main format, not just vanguard. This makes a backport to
-release branches necessary (see PR 116657).
-
-This change also implements a feature that has always been missing from
-time_zone::_M_get_sys_info: finding the Rule that is active before the
-specified time point, so that we can correctly handle %s in the FORMAT
-for the first new sys_info that gets created. This requires implementing
-a poorly documented feature of zic, to get the LETTERS field from a
-later transition, as described at
-https://mm.icann.org/pipermail/tz/2024-April/058891.html
-In order for this to work we need to be able to distinguish an empty
-letters field (as used by CE%sT where the variable part is either empty
-or "S") from "the letters field is not known for this transition". The
-tzdata file uses "-" for an empty letters field, which libstdc++ was
-previously replacing with "" when the Rule was parsed. Instead, we now
-preserve the "-" in the Rule object, so that "" can be used for the case
-where we don't know the letters (and so need to decide it).
-
-libstdc++-v3/ChangeLog:
-
- * src/c++20/tzdb.cc (minmax_year, minmax_year2): Remove.
- (years_from_to): New class replacing minmax_year and
- minmax_year2.
- (format_abbrev_str, select_std_or_dst_abbrev): Move earlier in
- the file. Handle "-" for letters.
- (ZoneInfo::to): Use format_abbrev_str to expand %z.
- (ZoneInfo::set_abbrev): Remove exception. Change parameter from
- reference to value.
- (operator>>(istream&, Rule&)): Do not clear letters when it
- contains "-".
- (time_zone::_M_get_sys_info): Add missing logic to find the Rule
- in effect before the time point.
- * testsuite/std/time/tzdb/1.cc: Adjust for vanguard format using
- "GMT" as the Zone name, not as a Link to "Etc/GMT".
- * testsuite/std/time/time_zone/sys_info_abbrev.cc: New test.
-
-(cherry picked from commit 0ca8d56f2085715f27ee536c6c344bc47af49cdd)
----
- libstdc++-v3/src/c++20/tzdb.cc | 265 +++++++++++-------
- .../std/time/time_zone/sys_info_abbrev.cc | 106 +++++++
- libstdc++-v3/testsuite/std/time/tzdb/1.cc | 6 +-
- 3 files changed, 274 insertions(+), 103 deletions(-)
- create mode 100644 libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-
-diff --git a/libstdc++-v3/src/c++20/tzdb.cc b/libstdc++-v3/src/c++20/tzdb.cc
-index e058caf27d89..034e72f02743 100644
---- a/libstdc++-v3/src/c++20/tzdb.cc
-+++ b/libstdc++-v3/src/c++20/tzdb.cc
-@@ -342,51 +342,103 @@ namespace std::chrono
- friend istream& operator>>(istream&, on_day&);
- };
-
-- // Wrapper for chrono::year that reads a year, or one of the keywords
-- // "minimum" or "maximum", or an unambiguous prefix of a keyword.
-- struct minmax_year
-+ // Wrapper for two chrono::year values, which reads the FROM and TO
-+ // fields of a Rule line. The FROM field is a year and TO is a year or
-+ // one of the keywords "maximum" or "only" (or an abbreviation of those).
-+ // For backwards compatibility, the keyword "minimum" is recognized
-+ // for FROM and interpreted as 1900.
-+ struct years_from_to
- {
-- year& y;
-+ year& from;
-+ year& to;
-
-- friend istream& operator>>(istream& in, minmax_year&& y)
-+ friend istream& operator>>(istream& in, years_from_to&& yy)
- {
-- if (ws(in).peek() == 'm') // keywords "minimum" or "maximum"
-+ string s;
-+ auto c = ws(in).peek();
-+ if (c == 'm') [[unlikely]] // keyword "minimum"
- {
-- string s;
-- in >> s; // extract the rest of the word, but only look at s[1]
-- if (s[1] == 'a')
-- y.y = year::max();
-- else if (s[1] == 'i')
-- y.y = year::min();
-- else
-- in.setstate(ios::failbit);
-+ in >> s; // extract the rest of the word
-+ yy.from = year(1900);
-+ }
-+ else if (int num = 0; in >> num) [[likely]]
-+ yy.from = year{num};
-+
-+ c = ws(in).peek();
-+ if (c == 'm') // keyword "maximum"
-+ {
-+ in >> s; // extract the rest of the word
-+ yy.to = year::max();
-+ }
-+ else if (c == 'o') // keyword "only"
-+ {
-+ in >> s; // extract the rest of the word
-+ yy.to = yy.from;
- }
- else if (int num = 0; in >> num)
-- y.y = year{num};
-+ yy.to = year{num};
-+
- return in;
- }
- };
-
-- // As above for minmax_year, but also supports the keyword "only",
-- // meaning that the TO year is the same as the FROM year.
-- struct minmax_year2
-+ bool
-+ select_std_or_dst_abbrev(string& abbrev, minutes save)
- {
-- minmax_year to;
-- year from;
-+ if (size_t pos = abbrev.find('/'); pos != string::npos)
-+ {
-+ // Select one of "STD/DST" for standard or daylight.
-+ if (save == 0min)
-+ abbrev.erase(pos);
-+ else
-+ abbrev.erase(0, pos + 1);
-+ return true;
-+ }
-+ return false;
-+ }
-
-- friend istream& operator>>(istream& in, minmax_year2&& y)
-- {
-- if (ws(in).peek() == 'o') // keyword "only"
-- {
-- string s;
-- in >> s; // extract the whole keyword
-- y.to.y = y.from;
-- }
-- else
-- in >> std::move(y.to);
-- return in;
-- }
-- };
-+ // Set the sys_info::abbrev string by expanding any placeholders.
-+ void
-+ format_abbrev_str(sys_info& info, string_view letters = {})
-+ {
-+ if (size_t pos = info.abbrev.find('%'); pos != string::npos)
-+ {
-+ if (info.abbrev[pos + 1] == 's')
-+ {
-+ // Expand "%s" to the variable part, given by Rule::letters.
-+ if (letters == "-")
-+ info.abbrev.erase(pos, 2);
-+ else
-+ info.abbrev.replace(pos, 2, letters);
-+ }
-+ else if (info.abbrev[pos + 1] == 'z')
-+ {
-+ // Expand "%z" to the UT offset as +/-hh, +/-hhmm, or +/-hhmmss.
-+ hh_mm_ss<seconds> t(info.offset);
-+ string z(1, "+-"[t.is_negative()]);
-+ long val = t.hours().count();
-+ int digits = 2;
-+ if (int m = t.minutes().count())
-+ {
-+ digits = 4;
-+ val *= 100;
-+ val += m;
-+ if (int s = t.seconds().count())
-+ {
-+ digits = 6;
-+ val *= 100;
-+ val += s;
-+ }
-+ }
-+ auto sval = std::to_string(val);
-+ z += string(digits - sval.size(), '0');
-+ z += sval;
-+ info.abbrev.replace(pos, 2, z);
-+ }
-+ }
-+ else
-+ select_std_or_dst_abbrev(info.abbrev, info.save);
-+ }
-
- // A time zone information record.
- // Zone NAME STDOFF RULES FORMAT [UNTIL]
-@@ -462,6 +514,7 @@ namespace std::chrono
- info.offset = offset();
- info.save = minutes(m_save);
- info.abbrev = format();
-+ format_abbrev_str(info); // expand %z
- return true;
- }
-
-@@ -469,12 +522,9 @@ namespace std::chrono
- friend class time_zone;
-
- void
-- set_abbrev(const string& abbrev)
-+ set_abbrev(string abbrev)
- {
-- // In practice, the FORMAT field never needs expanding here.
-- if (abbrev.find_first_of("/%") != abbrev.npos)
-- __throw_runtime_error("std::chrono::time_zone: invalid data");
-- m_buf = abbrev;
-+ m_buf = std::move(abbrev);
- m_pos = 0;
- m_expanded = true;
- }
-@@ -544,9 +594,7 @@ namespace std::chrono
-
- // Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
-
-- in >> quoted(rule.name)
-- >> minmax_year{rule.from}
-- >> minmax_year2{rule.to, rule.from};
-+ in >> quoted(rule.name) >> years_from_to{rule.from, rule.to};
-
- if (char type; in >> type && type != '-')
- in.setstate(ios::failbit);
-@@ -557,7 +605,7 @@ namespace std::chrono
- if (save_time.indicator != at_time::Wall)
- {
- // We don't actually store the save_time.indicator, because we
-- // assume that it's always deducable from the actual offset value.
-+ // assume that it's always deducible from the offset value.
- auto expected = save_time.time == 0s
- ? at_time::Standard
- : at_time::Daylight;
-@@ -567,8 +615,6 @@ namespace std::chrono
- rule.save = save_time.time;
-
- in >> rule.letters;
-- if (rule.letters == "-")
-- rule.letters.clear();
- return in;
- }
-
-@@ -714,58 +760,6 @@ namespace std::chrono
- #endif // TZDB_DISABLED
- };
-
--#ifndef TZDB_DISABLED
-- namespace
-- {
-- bool
-- select_std_or_dst_abbrev(string& abbrev, minutes save)
-- {
-- if (size_t pos = abbrev.find('/'); pos != string::npos)
-- {
-- // Select one of "STD/DST" for standard or daylight.
-- if (save == 0min)
-- abbrev.erase(pos);
-- else
-- abbrev.erase(0, pos + 1);
-- return true;
-- }
-- return false;
-- }
--
-- // Set the sys_info::abbrev string by expanding any placeholders.
-- void
-- format_abbrev_str(sys_info& info, string_view letters = {})
-- {
-- if (size_t pos = info.abbrev.find("%s"); pos != string::npos)
-- {
-- // Expand "%s" to the variable part, given by Rule::letters.
-- info.abbrev.replace(pos, 2, letters);
-- }
-- else if (size_t pos = info.abbrev.find("%z"); pos != string::npos)
-- {
-- // Expand "%z" to the UT offset as +/-hh, +/-hhmm, or +/-hhmmss.
-- hh_mm_ss<seconds> t(info.offset);
-- string z(1, "+-"[t.is_negative()]);
-- long val = t.hours().count();
-- if (minutes m = t.minutes(); m != m.zero())
-- {
-- val *= 100;
-- val += m.count();
-- if (seconds s = t.seconds(); s != s.zero())
-- {
-- val *= 100;
-- val += s.count();
-- }
-- }
-- z += std::to_string(val);
-- info.abbrev.replace(pos, 2, z);
-- }
-- else
-- select_std_or_dst_abbrev(info.abbrev, info.save);
-- }
-- }
--#endif // TZDB_DISABLED
--
- // Implementation of std::chrono::time_zone::get_info(const sys_time<D>&)
- sys_info
- time_zone::_M_get_sys_info(sys_seconds tp) const
-@@ -834,12 +828,72 @@ namespace std::chrono
- info.abbrev = ri.format();
-
- string_view letters;
-- if (i != infos.begin())
-+ if (i != infos.begin() && i[-1].expanded())
-+ letters = i[-1].next_letters();
-+
-+ if (letters.empty())
- {
-- if (i[-1].expanded())
-- letters = i[-1].next_letters();
-- // XXX else need to find Rule active before this time and use it
-- // to know the initial offset, save, and letters.
-+ sys_seconds t = info.begin - seconds(1);
-+ const year_month_day date(chrono::floor<days>(t));
-+
-+ // Try to find a Rule active before this time, to get initial
-+ // SAVE and LETTERS values. There may not be a Rule for the period
-+ // before the first DST transition, so find the earliest DST->STD
-+ // transition and use the LETTERS from that.
-+ const Rule* active_rule = nullptr;
-+ sys_seconds active_rule_start = sys_seconds::min();
-+ const Rule* first_std = nullptr;
-+ for (const auto& rule : rules)
-+ {
-+ if (rule.save == minutes(0))
-+ {
-+ if (!first_std)
-+ first_std = &rule;
-+ else if (rule.from < first_std->from)
-+ first_std = &rule;
-+ else if (rule.from == first_std->from)
-+ {
-+ if (rule.start_time(rule.from, {})
-+ < first_std->start_time(first_std->from, {}))
-+ first_std = &rule;
-+ }
-+ }
-+
-+ year y = date.year();
-+
-+ if (y > rule.to) // rule no longer applies at time t
-+ continue;
-+ if (y < rule.from) // rule doesn't apply yet at time t
-+ continue;
-+
-+ sys_seconds rule_start;
-+
-+ seconds offset{}; // appropriate for at_time::Universal
-+ if (rule.when.indicator == at_time::Wall)
-+ offset = info.offset;
-+ else if (rule.when.indicator == at_time::Standard)
-+ offset = ri.offset();
-+
-+ // Time the rule takes effect this year:
-+ rule_start = rule.start_time(y, offset);
-+
-+ if (rule_start >= t && rule.from < y)
-+ {
-+ // Try this rule in the previous year.
-+ rule_start = rule.start_time(--y, offset);
-+ }
-+
-+ if (active_rule_start < rule_start && rule_start < t)
-+ {
-+ active_rule_start = rule_start;
-+ active_rule = &rule;
-+ }
-+ }
-+
-+ if (active_rule)
-+ letters = active_rule->letters;
-+ else if (first_std)
-+ letters = first_std->letters;
- }
-
- const Rule* curr_rule = nullptr;
-@@ -2064,9 +2118,11 @@ namespace std::chrono
- istringstream in2(std::move(rules));
- in2 >> rules_time;
- inf.m_save = duration_cast<minutes>(rules_time.time);
-+ // If the FORMAT is "STD/DST" then we can choose the right one
-+ // now, so that we store a shorter string.
- select_std_or_dst_abbrev(fmt, inf.m_save);
- }
-- inf.set_abbrev(fmt);
-+ inf.set_abbrev(std::move(fmt));
- }
-
- // YEAR [MONTH [DAY [TIME]]]
-@@ -2077,7 +2133,12 @@ namespace std::chrono
- abbrev_month m{January};
- int d = 1;
- at_time t{};
-+ // XXX DAY should support ON format, e.g. lastSun or Sun>=8
- in >> m >> d >> t;
-+ // XXX UNTIL field should be interpreted
-+ // "using the rules in effect just before the transition"
-+ // so might need to store as year_month_day and hh_mm_ss and only
-+ // convert to a sys_time once we know the offset in effect.
- inf.m_until = sys_days(year(y)/m.m/day(d)) + seconds(t.time);
- }
- else
-diff --git a/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc b/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-new file mode 100644
-index 000000000000..f1a8fff02f58
---- /dev/null
-+++ b/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-@@ -0,0 +1,106 @@
-+// { dg-do run { target c++20 } }
-+// { dg-require-effective-target tzdb }
-+// { dg-require-effective-target cxx11_abi }
-+// { dg-xfail-run-if "no weak override on AIX" { powerpc-ibm-aix* } }
-+
-+#include <chrono>
-+#include <fstream>
-+#include <testsuite_hooks.h>
-+
-+static bool override_used = false;
-+
-+namespace __gnu_cxx
-+{
-+ const char* zoneinfo_dir_override() {
-+ override_used = true;
-+ return "./";
-+ }
-+}
-+
-+using namespace std::chrono;
-+
-+void
-+test_format()
-+{
-+ std::ofstream("tzdata.zi") << R"(# version test_1
-+Zone Africa/Bissau -1:2:20 - LMT 1912 Ja 1 1u
-+ -1 - %z 1975
-+ 0 - GMT
-+Zon Some/Zone 1:2:3 - %z 1900
-+ 1:23:45 - %z 1950
-+Zo Another/Zone 1:2:3 - AZ0 1901
-+ 1 Roolz A%sZ 2000
-+ 1 Roolz SAZ/DAZ 2005
-+ 1 Roolz %z
-+Rule Roolz 1950 max - April 1 2 1 D
-+Rul Roolz 1950 max - Oct 1 1 0 S
-+Z Strange/Zone 1 - X%sX 1980
-+ 1 - FOO/BAR 1990
-+ 2:00 - %zzz 1995
-+ 0:9 - %zzz 1996
-+ 0:8:7 - %zzz 1997
-+ 0:6:5.5 - %zzz 1998
-+)";
-+
-+ const auto& db = reload_tzdb();
-+ VERIFY( override_used ); // If this fails then XFAIL for the target.
-+ VERIFY( db.version == "test_1" );
-+
-+ // Test formatting %z as
-+ auto tz = locate_zone("Africa/Bissau");
-+ auto inf = tz->get_info(sys_days(1974y/1/1));
-+ VERIFY( inf.abbrev == "-01" );
-+
-+ tz = locate_zone("Some/Zone");
-+ inf = tz->get_info(sys_days(1899y/1/1));
-+ VERIFY( inf.abbrev == "+010203" );
-+ inf = tz->get_info(sys_days(1955y/1/1));
-+ VERIFY( inf.abbrev == "+012345" );
-+
-+ tz = locate_zone("Another/Zone");
-+ // Test formatting %s as the LETTER/S field from the active Rule.
-+ inf = tz->get_info(sys_days(1910y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1950y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1950y/June/1));
-+ VERIFY( inf.abbrev == "ADZ" );
-+ inf = tz->get_info(sys_days(1999y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1999y/July/1));
-+ VERIFY( inf.abbrev == "ADZ" );
-+ // Test formatting STD/DST according to the active Rule.
-+ inf = tz->get_info(sys_days(2000y/January/2));
-+ VERIFY( inf.abbrev == "SAZ" );
-+ inf = tz->get_info(sys_days(2001y/January/1));
-+ VERIFY( inf.abbrev == "SAZ" );
-+ inf = tz->get_info(sys_days(2001y/July/1));
-+ VERIFY( inf.abbrev == "DAZ" );
-+ // Test formatting %z as the offset determined by the active Rule.
-+ inf = tz->get_info(sys_days(2005y/January/2));
-+ VERIFY( inf.abbrev == "+01" );
-+ inf = tz->get_info(sys_days(2006y/January/1));
-+ VERIFY( inf.abbrev == "+01" );
-+ inf = tz->get_info(sys_days(2006y/July/1));
-+ VERIFY( inf.abbrev == "+02" );
-+
-+ // Test formatting %z, %s and S/D for a Zone with no associated Rules.
-+ tz = locate_zone("Strange/Zone");
-+ inf = tz->get_info(sys_days(1979y/January/1));
-+ VERIFY( inf.abbrev == "XX" ); // No Rule means nothing to use for %s.
-+ inf = tz->get_info(sys_days(1981y/July/1));
-+ VERIFY( inf.abbrev == "FOO" ); // Always standard time means first string.
-+ inf = tz->get_info(sys_days(1994y/July/1));
-+ VERIFY( inf.abbrev == "+02zz" );
-+ inf = tz->get_info(sys_days(1995y/July/1));
-+ VERIFY( inf.abbrev == "+0009zz" );
-+ inf = tz->get_info(sys_days(1996y/July/1));
-+ VERIFY( inf.abbrev == "+000807zz" );
-+ inf = tz->get_info(sys_days(1997y/July/1));
-+ VERIFY( inf.abbrev == "+000606zz" );
-+}
-+
-+int main()
-+{
-+ test_format();
-+}
-diff --git a/libstdc++-v3/testsuite/std/time/tzdb/1.cc b/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-index 5f69e182603d..73d316f55708 100644
---- a/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-+++ b/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-@@ -40,11 +40,15 @@ test_locate()
- const tzdb& db = get_tzdb();
- const time_zone* tz = db.locate_zone("GMT");
- VERIFY( tz != nullptr );
-- VERIFY( tz->name() == "Etc/GMT" );
- VERIFY( tz == std::chrono::locate_zone("GMT") );
- VERIFY( tz == db.locate_zone("Etc/GMT") );
- VERIFY( tz == db.locate_zone("Etc/GMT+0") );
-
-+ // Since 2022f GMT is now a Zone and Etc/GMT a link instead of vice versa,
-+ // but only when using the vanguard format. As of 2024a, the main and
-+ // rearguard formats still have Etc/GMT as a Zone and GMT as a link.
-+ VERIFY( tz->name() == "GMT" || tz->name() == "Etc/GMT" );
-+
- VERIFY( db.locate_zone(db.current_zone()->name()) == db.current_zone() );
- }
-
---
-2.43.5
-
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..938d446e5c61f1 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,57 +3,51 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.1+20250329
+revision=1
+bootstrap=yes
+_patchver="${version%+*}"
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
_mpfr_version=4.2.1
_mpc_version=1.3.1
_isl_version=0.26
-create_wrksrc=yes
short_desc="GNU Compiler Collection"
maintainer="Enno Boland <gottox@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-# *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
-distfiles="
- ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_majorver}-${version#*+}/gcc-${_majorver}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
+skip_extraction="gmp-${_gmp_version}.tar.xz mpfr-${_mpfr_version}.tar.xz
+ mpc-${_mpc_version}.tar.gz isl-${_isl_version}.tar.bz2"
+
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
nopie=yes
lib32disabled=yes
-bootstrap=yes
replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
libssp>=0 libssp-devel>=0"
-_have_gccgo=yes
-_have_libquadmath=no
-
-# MIPS is untested and does not have go in crosstoolchains
-# 32-bit PowerPC seems weirdly broken since the 10.x release
-# 32-bit little endian PowerPC has no support at all (no GOARCH)
-case "$XBPS_TARGET_MACHINE" in
- ppc64*) ;;
- mips*-musl|ppc*) _have_gccgo=no ;;
-esac
-
-case "$XBPS_TARGET_MACHINE" in
- i686*|x86_64*|ppc64le*) _have_libquadmath=yes ;;
-esac
-
if [ "$CHROOT_READY" ]; then
hostmakedepends="tar texinfo perl flex"
else
- _have_gccgo=no
# libzstd fails to link in bootstrap with glibc 2.36
# when zlib has been compiled with glibc 2.32.
LDFLAGS="-lzstd -pthread"
@@ -62,7 +56,6 @@ makedepends="zlib-devel libzstd-devel"
depends="binutils libgcc-devel-${version}_${revision}
libstdc++-devel-${version}_${revision} libatomic-devel-${version}_${revision}"
checkdepends="dejagnu"
-
subpackages="libgcc libgomp libgomp-devel libatomic libatomic-devel"
build_options="ada gnatboot"
@@ -70,18 +63,35 @@ build_options_default="ada"
desc_option_ada="Enable Ada build"
desc_option_gnatboot="Enable Ada bootstrap using adacore.com binaries"
+_have_gccgo=yes
+_have_libquadmath=no
+
+case "$XBPS_TARGET_MACHINE" in
+ i686*|x86_64*|ppc64le*) _have_libquadmath=yes ;;
+esac
+
+# MIPS is untested and does not have go in crosstoolchains
+# 32-bit PowerPC seems weirdly broken since the 10.x release
+# 32-bit little endian PowerPC has no support at all (no GOARCH)
+case "$XBPS_TARGET_MACHINE" in
+ ppc64*) ;;
+ mips*-musl|ppc*) _have_gccgo=no ;;
+esac
+
if [ "$build_option_gnatboot" ]; then
case "$XBPS_TARGET_MACHINE" in
x86_64)
_gnat_tarball="gnat-gpl-2017-x86_64-linux-bin.tar.gz"
distfiles+=" https://community.download.adacore.com/v1/9682e2e1f2f232ce03fe21d77b14c37a0de5649b?filename=$_gnat_tarball>$_gnat_tarball"
checksum+=" b942bcac20dea39748b39f8b624d9619f60a8dee2e8195dbe3829c835b0956e6"
+ skip_extraction+=" $_gnat_tarball"
build_options_default="gnatboot"
;;
i686)
_gnat_tarball="gnat-gpl-2014-x86-linux-bin.tar.gz"
distfiles+=" https://community.download.adacore.com/v1/c5e9e6fdff5cb77ed90cf8c62536653e27c0bed6?filename=$_gnat_tarball>$_gnat_tarball"
checksum+=" 3b693510f5d22a240abb3034934c1adbd80ccd6e4f61a4f491cc408fdfd9c042"
+ skip_extraction+=" $_gnat_tarball"
build_options_default="gnatboot"
;;
esac
@@ -90,10 +100,11 @@ fi
if [ "$CHROOT_READY" ]; then
subpackages+=" gcc-fortran libgfortran-devel libgfortran"
subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
-
if [ "$_have_libquadmath" = "yes" ]; then
subpackages+=" libquadmath libquadmath-devel"
fi
+else
+ _have_gccgo=no
fi
if [ "$_have_gccgo" = "yes" ]; then
@@ -162,18 +173,14 @@ if [ "$CROSS_BUILD" ]; then
fi
post_extract() {
- mv gcc-${version}/* gcc-${version}/.??* .
- rmdir gcc-${version}
- mv gmp-${_gmp_version} gmp
- mv mpfr-${_mpfr_version} mpfr
- mv mpc-${_mpc_version} mpc
- mv isl-${_isl_version} isl
+ vsrcextract -C gmp gmp-${_gmp_version}.tar.xz
+ vsrcextract -C mpfr mpfr-${_mpfr_version}.tar.xz
+ vsrcextract -C mpc mpc-${_mpc_version}.tar.gz
+ vsrcextract -C isl isl-${_isl_version}.tar.bz2
if [ "$build_option_gnatboot" ]; then
- local f="${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_gnat_tarball}"
msg_normal "Extracting ${_gnat_tarball} ...\n"
- mkdir -p ${wrksrc}/gnat-ins
- tar -x -f "$f" --strip-components=1 -C ${wrksrc}/gnat-ins
+ vsrcextract -C gnat-ins ${_gnat_tarball}
cd ${wrksrc}/gnat-ins
make ins-all prefix=${wrksrc}/gnat
cd ${wrksrc}
@@ -202,6 +209,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -307,6 +315,10 @@ do_configure() {
mkdir -p build
cd build
if [ "$build_option_gnatboot" ]; then
+ # file-prefix-map isn't supported in gcc6
+ export CFLAGS="${CFLAGS/-ffile-prefix-map=$wrksrc=./}"
+ export CXXFLAGS="${CXXFLAGS/-ffile-prefix-map=$wrksrc=./}"
+
_args+=" --enable-languages=${_langs},ada"
_args+=" --enable-libada"
CONFIG_SHELL=/bin/bash \
@@ -325,6 +337,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ # gcc will configure itself again throughout the build, so make sure CFLAGS/CXXFLAGS/etc
+ # are still set the same.
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +363,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +372,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
@@ -355,16 +380,16 @@ do_install() {
# Make version a symlink of major version to make all versions
# from the same series work automagically.
- mv ${DESTDIR}/usr/lib/gcc/${_triplet}/${version} \
+ mv ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver} \
${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver}
ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver} \
- ${DESTDIR}/usr/lib/gcc/${_triplet}/${version}
+ ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver}
# Ditto for c++ headers.
- mv ${DESTDIR}/usr/include/c++/${version} \
+ mv ${DESTDIR}/usr/include/c++/${_patchver} \
${DESTDIR}/usr/include/c++/${_minorver}
ln -sfr ${DESTDIR}/usr/include/c++/${_minorver} \
- ${DESTDIR}/usr/include/c++/${version}
+ ${DESTDIR}/usr/include/c++/${_patchver}
# cc symlink
ln -sfr ${DESTDIR}/usr/bin/gcc ${DESTDIR}/usr/bin/cc
@@ -373,7 +398,7 @@ do_install() {
# lto plugin symlink
vmkdir usr/lib/bfd-plugins
- ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${version}/liblto_plugin.so \
+ ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver}/liblto_plugin.so \
${DESTDIR}/usr/lib/bfd-plugins
# Remove "fixed" header
@@ -457,7 +482,7 @@ gcc-fortran_package() {
if [ "$CROSS_BUILD" ]; then
# A number of OMP modules are not built when cross
# compiling gcc. Copy them from the cross compiler.
- local src="/usr/lib/gcc/${_triplet}/${version}/finclude"
+ local src="/usr/lib/gcc/${_triplet}/${_patchver}/finclude"
local dst="usr/lib/gcc/${_triplet}/${_minorver}/finclude"
for f in omp_lib.f90 omp_lib.h omp_lib.mod omp_lib_kinds.mod \
openacc.f90 openacc.mod openacc_kinds.mod openacc_lib.h; do
@@ -714,7 +739,7 @@ libstdc++_package() {
short_desc+=" - Standard C++ Library"
pkg_install() {
vmove usr/share/gdb
- vmove usr/share/gcc-${version}/python
+ vmove usr/share/gcc-${_patchver}/python
vmove "usr/lib/libstdc++.so*"
vlicense COPYING.RUNTIME RUNTIME.LIBRARY.EXCEPTION
}
From 4645bb8ae0b1010ae88a1b9721866935d416c27e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 04/41] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
common/shlibs | 60 +-
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
7 files changed, 33 insertions(+), 1003 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/common/shlibs b/common/shlibs
index 26f9ead7a32c95..4bc3ce575e7784 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -17,36 +17,36 @@
# one (order top->bottom) is preferred over the next ones.
#
libc.so musl-1.1.24_7
-libc.so.6 glibc-2.39_1
-libm.so.6 glibc-2.39_1
-libpthread.so.0 glibc-2.39_1
-librt.so.1 glibc-2.39_1
-libdl.so.2 glibc-2.39_1
-ld-linux-x86-64.so.2 glibc-2.39_1 x86_64
-ld-linux.so.2 glibc-2.39_1 i686
-ld-linux.so.3 glibc-2.39_1 armv5tel
-ld-linux-aarch64.so.1 glibc-2.39_1 aarch64
-ld-linux-riscv64-lp64d.so.1 glibc-2.39_1 riscv64
-ld64.so.2 glibc-2.39_1 ppc64
-ld.so.1 glibc-2.39_1 mips
-ld.so.1 glibc-2.39_1 ppc
-ld-linux-armhf.so.3 glibc-2.39_1
-libresolv.so.2 glibc-2.39_1
-libanl.so.1 glibc-2.39_1
-libthread_db.so.1 glibc-2.39_1
-libutil.so.1 glibc-2.39_1
-libnsl.so.1 glibc-2.39_1
-libnss_db.so.2 glibc-2.39_1
-libnss_files.so.2 glibc-2.39_1
-libnss_compat.so.2 glibc-2.39_1
-libnss_dns.so.2 glibc-2.39_1
-libnss_hesiod.so.2 glibc-2.39_1
-libBrokenLocale.so.1 glibc-2.39_1
-libmemusage.so glibc-2.39_1
-libSegFault.so glibc-2.39_1
-libpcprofile.so glibc-2.39_1
-libcidn.so.1 glibc-2.39_1
-libmvec.so.1 glibc-2.39_1
+libc.so.6 glibc-2.41_1
+libm.so.6 glibc-2.41_1
+libpthread.so.0 glibc-2.41_1
+librt.so.1 glibc-2.41_1
+libdl.so.2 glibc-2.41_1
+ld-linux-x86-64.so.2 glibc-2.41_1 x86_64
+ld-linux.so.2 glibc-2.41_1 i686
+ld-linux.so.3 glibc-2.41_1 armv5tel
+ld-linux-aarch64.so.1 glibc-2.41_1 aarch64
+ld-linux-riscv64-lp64d.so.1 glibc-2.41_1 riscv64
+ld64.so.2 glibc-2.41_1 ppc64
+ld.so.1 glibc-2.41_1 mips
+ld.so.1 glibc-2.41_1 ppc
+ld-linux-armhf.so.3 glibc-2.41_1
+libresolv.so.2 glibc-2.41_1
+libanl.so.1 glibc-2.41_1
+libthread_db.so.1 glibc-2.41_1
+libutil.so.1 glibc-2.41_1
+libnsl.so.1 glibc-2.41_1
+libnss_db.so.2 glibc-2.41_1
+libnss_files.so.2 glibc-2.41_1
+libnss_compat.so.2 glibc-2.41_1
+libnss_dns.so.2 glibc-2.41_1
+libnss_hesiod.so.2 glibc-2.41_1
+libBrokenLocale.so.1 glibc-2.41_1
+libmemusage.so glibc-2.41_1
+libSegFault.so glibc-2.41_1
+libpcprofile.so glibc-2.41_1
+libcidn.so.1 glibc-2.41_1
+libmvec.so.1 glibc-2.41_1
libcrypt.so.2 libxcrypt-4.4.36_1
libcrypt.so.1 libxcrypt-compat-4.4.36_1
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From 62a82b2861fa0bafbda7a64bd001b1406fd66a5d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 05/41] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 04e22c4fb01166..922d009ad8c36e 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=23
+revision=24
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From e330781ba7455271b65745d906069a46a996990a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 06/41] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From 5d3ba2a7a9feb4501e3f64d6a6f3c5c22b7b829a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 07/41] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From 3a6883c5291021e2e16c6c37164daf10d61f6b64 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 08/41] gcc-multilib: update to 14.2.1+20250329.
---
.../patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 62 +++++++++++--------
2 files changed, 37 insertions(+), 27 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..a3f737567de2dd 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,32 +3,41 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.1+20250329
revision=1
-_majorver="${version%.*}"
+_patchver="${version%+*}"
+_minorver="${version%.*}"
+_majorver="${_minorver%.*}"
+hostmakedepends="perl flex tar"
+makedepends="zlib-devel libzstd-devel isl-devel libmpc-devel gmp-devel mpfr-devel
+ glibc-32bit glibc-devel-32bit"
+depends="
+ gcc>=${_minorver}
+ libgcc-32bit>=${_minorver}
+ libgomp-devel-32bit>=${_minorver}
+ libitm-devel-32bit>=${_minorver}
+ libsanitizer-devel-32bit>=${_minorver}
+ libatomic-devel-32bit>=${_minorver}
+ libvtv-devel-32bit>=${_minorver}
+ zlib-32bit glibc-devel-32bit"
short_desc="GNU Compiler Collection (multilib files)"
maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
-
-hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
- glibc-32bit glibc-devel-32bit"
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_majorver}-${version#*+}/gcc-${_majorver}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+checksum=973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
-depends="
- gcc>=${_majorver}
- libgcc-32bit>=${_majorver}
- libgomp-devel-32bit>=${_majorver}
- libitm-devel-32bit>=${_majorver}
- libsanitizer-devel-32bit>=${_majorver}
- libatomic-devel-32bit>=${_majorver}
- libvtv-devel-32bit>=${_majorver}
- zlib-32bit
- glibc-devel-32bit"
replaces="libmpx-devel-32bit>=0 libssp-32bit>=0 libssp-devel-32bit>=0"
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
+
do_configure() {
ldconfig &>/dev/null
@@ -69,6 +78,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
@@ -77,19 +87,19 @@ do_install() {
# Make version a symlink of major version to make all versions
# from the same series work automagically.
- vmkdir usr/include/c++/${_majorver}/${_triplet}
- vmkdir usr/lib/gcc/${_triplet}/${_majorver}
+ vmkdir usr/include/c++/${_minorver}/${_triplet}
+ vmkdir usr/lib/gcc/${_triplet}/${_minorver}
- cp -a ${wrksrc}/${pkgname}-build/usr/lib/gcc/${_pc_triplet}/${version}/32 \
- ${DESTDIR}/usr/lib/gcc/${_triplet}/${_majorver}/
- cp -a ${wrksrc}/${pkgname}-build/usr/include/c++/${version}/${_pc_triplet}/32 \
- ${DESTDIR}/usr/include/c++/${_majorver}/${_triplet}
+ cp -a ${wrksrc}/${pkgname}-build/usr/lib/gcc/${_pc_triplet}/${_patchver}/32 \
+ ${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver}/
+ cp -a ${wrksrc}/${pkgname}-build/usr/include/c++/${_patchver}/${_pc_triplet}/32 \
+ ${DESTDIR}/usr/include/c++/${_minorver}/${_triplet}
- vinstall ${wrksrc}/host-${_pc_triplet}/gcc/specs 644 usr/lib/gcc/${_triplet}/${_majorver}
+ vinstall ${wrksrc}/host-${_pc_triplet}/gcc/specs 644 usr/lib/gcc/${_triplet}/${_minorver}
}
gcc-objc-multilib_package() {
- depends="gcc-multilib>=${_majorver} gcc-objc>=${_majorver} libobjc-devel-32bit>=${_majorver}"
+ depends="gcc-multilib>=${_minorver} gcc-objc>=${_minorver} libobjc-devel-32bit>=${_minorver}"
short_desc="GNU Objective-C compiler (multilib files)"
build_style=meta
}
From 5bdb199aaba6cc276e5641628420df0651847d52 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 09/41] libgccjit: update to 14.2.1+20250329.
---
srcpkgs/libgccjit/template | 44 +++++++++++++-------------------------
1 file changed, 15 insertions(+), 29 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..78de3d222d4433 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,43 +3,29 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.1+20250329
revision=1
-_gmp_version=6.3.0
-_mpfr_version=4.2.0
-_mpc_version=1.3.1
-_isl_version=0.24
-create_wrksrc=yes
+hostmakedepends="tar texinfo perl flex"
+makedepends="zlib-devel libzstd-devel isl-devel libmpc-devel gmp-devel mpfr-devel"
+depends="gcc"
+checkdepends="dejagnu"
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
homepage="https://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-# *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
-distfiles="
- ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
- ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
- ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
- ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
- ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${version%%.*}-${version#*+}/gcc-${version%%.*}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+checksum=973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
nopie=yes
lib32disabled=yes
-makedepends="zlib-devel"
-hostmakedepends="tar texinfo perl flex"
-depends="gcc"
-checkdepends="dejagnu"
-post_extract() {
- mv gcc-*/* .
- mv gmp-${_gmp_version} gmp
- mv mpfr-${_mpfr_version} mpfr
- mv mpc-${_mpc_version} mpc
- mv isl-${_isl_version} isl
-}
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
pre_configure() {
if [ "$XBPS_TARGET_LIBC" = musl ]; then
From 464b7bd24160864be775e47497bc047820863f06 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 10/41] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From baea67d18ca0168d1eb94dc87be8ce8f66f27691 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 22:59:26 -0700
Subject: [PATCH 11/41] openjdk7-bootstrap: fix build with gcc14
---
srcpkgs/openjdk7-bootstrap/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index 03d91bebf4934a..a4e4ff46091b65 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -86,7 +86,7 @@ skip_extraction="
shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
nocross=yes
-CFLAGS="-fcommon"
+CFLAGS="-fcommon -fpermissive"
post_extract() {
mv icedtea-*/* .
From d242e8ef86581618e9a8bdf8aa8317fbcfc2676d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 23:00:00 -0700
Subject: [PATCH 12/41] openjdk8: fix build with gcc14
---
.../patches/105_implicit_declaration.patch | 25 +++++++++++++++++++
.../openjdk8/patches/106_int_conversion.patch | 16 ++++++++++++
srcpkgs/openjdk8/template | 2 ++
3 files changed, 43 insertions(+)
create mode 100644 srcpkgs/openjdk8/patches/105_implicit_declaration.patch
create mode 100644 srcpkgs/openjdk8/patches/106_int_conversion.patch
diff --git a/srcpkgs/openjdk8/patches/105_implicit_declaration.patch b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
new file mode 100644
index 00000000000000..7a04c21ec910c3
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
@@ -0,0 +1,25 @@
+The isnanf BSD extension was deprecated with the
+introduction of isnan in c99 and isn't implemented in musl.
+Use the isnan function instead.
+
+--- a/jdk/src/solaris/native/common/jdk_util_md.h
++++ b/jdk/src/solaris/native/common/jdk_util_md.h
+@@ -37,7 +37,7 @@
+ #define ISNAND(d) isnan(d)
+ #elif defined(__linux__) || defined(_ALLBSD_SOURCE)
+ #include <math.h>
+-#define ISNANF(f) isnanf(f)
++#define ISNANF(f) isnan(f)
+ #define ISNAND(d) isnan(d)
+ #elif defined(_AIX)
+ #include <math.h>
+--- a/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
++++ b/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
+@@ -29,6 +29,7 @@
+ #include "jlong.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <dlfcn.h>
+ #include <errno.h>
diff --git a/srcpkgs/openjdk8/patches/106_int_conversion.patch b/srcpkgs/openjdk8/patches/106_int_conversion.patch
new file mode 100644
index 00000000000000..2c57cb01353072
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/106_int_conversion.patch
@@ -0,0 +1,16 @@
+--- a/jdk/src/share/bin/splashscreen_stubs.c
++++ b/jdk/src/share/bin/splashscreen_stubs.c
+@@ -61,11 +61,11 @@
+ #define INVOKEV(name) _INVOKE(name, ,;)
+
+ int DoSplashLoadMemory(void* pdata, int size) {
+- INVOKE(SplashLoadMemory, NULL)(pdata, size);
++ INVOKE(SplashLoadMemory, 0)(pdata, size);
+ }
+
+ int DoSplashLoadFile(const char* filename) {
+- INVOKE(SplashLoadFile, NULL)(filename);
++ INVOKE(SplashLoadFile, 0)(filename);
+ }
+
+ void DoSplashInit(void) {
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 3f01bd949417d9..045f78ad363dab 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -78,6 +78,8 @@ fi
# enabling ccache segfaults gcc
export CCACHE_DISABLE=1
+CFLAGS="-Wno-incompatible-pointer-types"
+
post_extract() {
chmod +x configure
}
From d4f02be7a5cac4a00c389c929946212d39390912 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:37:27 -0700
Subject: [PATCH 13/41] common/environment/build-style/void-cross.sh: add
distfiles fallback
Try the distfiles mirror in case the gcc snapshot has expired.
---
common/environment/build-style/void-cross.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/common/environment/build-style/void-cross.sh b/common/environment/build-style/void-cross.sh
index 40df98e95e9026..26d586a6cb59a3 100644
--- a/common/environment/build-style/void-cross.sh
+++ b/common/environment/build-style/void-cross.sh
@@ -1,3 +1,9 @@
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
+
lib32disabled=yes
nopie=yes
From c6c4b4f31b410248727ce0679527845fa3ee3dd3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 04:06:01 -0700
Subject: [PATCH 14/41] common/build-style/void-cross.sh: fix obtaining gcc
version
---
common/build-style/void-cross.sh | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/common/build-style/void-cross.sh b/common/build-style/void-cross.sh
index d94e90cbb133c4..a92727fbe3c3b7 100644
--- a/common/build-style/void-cross.sh
+++ b/common/build-style/void-cross.sh
@@ -466,6 +466,19 @@ _void_cross_test_ver() {
fi
}
+_void_cross_test_gcc_ver() {
+ local ver basever
+ _void_cross_test_ver gcc
+ ver=$(cat .gcc_version)
+ if [ -d "gcc-${ver}" ] && [ -f "gcc-${ver}/gcc/BASE-VER" ] && [ -f "gcc-${ver}/gcc/DATESTAMP" ]; then
+ basever="$(cat "gcc-${ver}/gcc/BASE-VER")_$(cat "gcc-${ver}/gcc/DATESTAMP")"
+ mv "gcc-${ver}" "gcc-${basever}"
+ echo ${basever} > ${wrksrc}/.gcc_version
+ return
+ fi
+ msg_error "could not determine gcc base version\n"
+}
+
do_build() {
# Verify toolchain versions
cd ${wrksrc}
@@ -483,7 +496,7 @@ do_build() {
_void_cross_test_ver binutils
_void_cross_test_ver linux
- _void_cross_test_ver gcc
+ _void_cross_test_gcc_ver
binutils_ver=$(cat .binutils_version)
linux_ver=$(cat .linux_version)
From 5a36863b510c1e34b646891babcd0aaecf13161c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 15/41] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From d3287dbdb39f06e2b30b9b3de7a2caacdfd4946b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:54 -0700
Subject: [PATCH 16/41] cross-aarch64-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-aarch64-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..e454a971cda6b1 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,13 +16,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 6afe1c55a6b0c053688f9b6332f965cbe3c92c23 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:54 -0700
Subject: [PATCH 17/41] cross-aarch64-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-aarch64-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..1ace2a2438d514 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -17,14 +17,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From d7e2f6fdd405437e0cb6d68e22813f8a5a17b04b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:54 -0700
Subject: [PATCH 18/41] cross-arm-linux-gnueabi: update to gcc 14.2.1+20250329
---
srcpkgs/cross-arm-linux-gnueabi/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..47f7d9e54a79d2 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 5a289dfa8fc64061ff6d09fbb5413e045fc22a75 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:54 -0700
Subject: [PATCH 19/41] cross-arm-linux-gnueabihf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-arm-linux-gnueabihf/template | 23 ++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..1f9b6583acc40c 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From afd8fac72fcc2becba632c3a3180e89a8d394666 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:54 -0700
Subject: [PATCH 20/41] cross-arm-linux-musleabi: update to gcc 14.2.1+20250329
---
srcpkgs/cross-arm-linux-musleabi/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..00d96ea0f8dc7d 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -18,14 +18,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From a7c59125e652a1571ad381e5627eeaafee79d299 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:54 -0700
Subject: [PATCH 21/41] cross-arm-linux-musleabihf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-arm-linux-musleabihf/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..4021da44d0a7ef 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -18,14 +18,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 2c53f6a7393f113b56a65ab8c79abfa384fce3ed Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 22/41] cross-armv7l-linux-gnueabihf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 23 +++++++++++--------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..ec31ae23e9c493 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,13 +16,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From dd41a124fc53c9c46d72ad4c889a4f10431ff5d0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 23/41] cross-armv7l-linux-musleabihf: update to gcc
14.2.1+20250329
---
.../cross-armv7l-linux-musleabihf/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..b13590b0ed8082 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -17,14 +17,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 362b9d37d18e5e2c870e85c11c6ab29118938fac Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 24/41] cross-i686-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-i686-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..5d9612b02e3180 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -16,14 +16,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 712352d887da70aa5a0b5dae1602bbfa0ae5f705 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 25/41] cross-i686-pc-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-i686-pc-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..2f833619f4e0ef 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -15,13 +15,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From c09fcab8b2dc4f66531b1068b718cb8512a6962d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 26/41] cross-mips-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-mips-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..ad39078a14665d 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 5cab20efd55b3311cab65a5bed60f7b9eb87741b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 27/41] cross-mips-linux-muslhf: update to gcc 14.2.1+20250329
---
srcpkgs/cross-mips-linux-muslhf/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..9cc9daccfc8c96 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="hipperson0 <hipperson0@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From aaaffa757c65231d989010a64819788dbeb867ef Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 28/41] cross-mipsel-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-mipsel-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..13b2ea2d5f7fe2 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 2058a583c9314ccddc58a8fa72ffb1d1b3ab47dc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:55 -0700
Subject: [PATCH 29/41] cross-mipsel-linux-muslhf: update to gcc
14.2.1+20250329
---
srcpkgs/cross-mipsel-linux-muslhf/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..f6b4612ae14503 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From adeea28481fe60c44279e0d6c9e051b2cd01d491 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 30/41] cross-powerpc-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-powerpc-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..266a43581f9ff4 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Thomas Batten <stenstorpmc@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 98eeb81a2ca6d802d57a7b7408b2f1522069cdbe Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 31/41] cross-powerpc-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-powerpc-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..149c2ddf6ef180 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Thomas Batten <stenstorpmc@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 983df217bd5764e675f424565578f00261ab90b2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 32/41] cross-powerpc64-linux-gnu: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64-linux-gnu/template | 23 ++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..d9f79787ba51d3 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From d371539438d987389a8fbc60436da79894986af6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 33/41] cross-powerpc64-linux-musl: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..b9f5aa4733969f 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -19,14 +19,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 2bd8479f451058a26d60dcb5b98a74cabe767acc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 34/41] cross-powerpc64le-linux-gnu: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 23 +++++++++++---------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..3d3d3c3a282852 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 17a7157c140d4da858ca951a5d3c9a5119778f5b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 35/41] cross-powerpc64le-linux-musl: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpc64le-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..96a103c7cf5b3f 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -19,14 +19,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From 4666cd303f247ad99044bcecd66164585cf1a757 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:56 -0700
Subject: [PATCH 36/41] cross-powerpcle-linux-gnu: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpcle-linux-gnu/template | 25 ++++++++++++----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..0d370d098dcfbc 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -17,14 +17,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
@@ -37,7 +40,7 @@ if [ "$XBPS_TARGET_MACHINE" = "ppcle" ]; then
broken="Can't build crosstoolchain to itself"
fi
-broken="glibc uses big-endian specific instructions on 32-bit powerpc"
+broken="glibc uses big-endian specific instructions (stmw and lmw) in 32-bit powerpc clone.S"
cross-powerpcle-linux-gnu-libc_package() {
short_desc+=" - glibc files"
From e168cca30a3798835a540bb8bb3866c239bc3921 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:57 -0700
Subject: [PATCH 37/41] cross-powerpcle-linux-musl: update to gcc
14.2.1+20250329
---
srcpkgs/cross-powerpcle-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..80428654415ad2 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 78dbf918e2d74616a39a2cc22a18f2c91878c2ea Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:57 -0700
Subject: [PATCH 38/41] cross-riscv64-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-riscv64-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..5b69408d812c0b 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,13 +16,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From add45168daa6e2e42183d319b4eff295d94b980d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:57 -0700
Subject: [PATCH 39/41] cross-riscv64-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-riscv64-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..972cdd2cfa8a50 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -17,14 +17,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
From a7382beb054f0a9c3f1b1e178ba4fee355a6b529 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:57 -0700
Subject: [PATCH 40/41] cross-x86_64-linux-gnu: update to gcc 14.2.1+20250329
---
srcpkgs/cross-x86_64-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..325bf041e44f21 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -15,13 +15,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 01251df233b9c375340a4e1ab1ffcf969479d33f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:55:57 -0700
Subject: [PATCH 41/41] cross-x86_64-linux-musl: update to gcc 14.2.1+20250329
---
srcpkgs/cross-x86_64-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..afaa9258f7addf 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
_libucontext_version=1.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -16,14 +16,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.1+20250329.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (48 preceding siblings ...)
2025-04-06 11:31 ` oreo639
@ 2025-04-07 3:02 ` oreo639
2025-04-07 6:18 ` oreo639
` (13 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-04-07 3:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 7675 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.1+20250329.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
You can test the ISOs here: https://devspace.voidlinux.org/oreo639/live/gcc14/
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp https://github.com/void-linux/void-packages/commit/30e9e29bb5a348b2c6b7a9b3e29c13d2bc28cfae
- [x] libsasl https://github.com/void-linux/void-packages/commit/6f71c8889cc8a79411ddaca582250e19718f12da
- [x] nvi https://github.com/void-linux/void-packages/commit/a51ebf219534e5420ffc83d5a89b43dc992c9b81
- [x] xbps https://github.com/void-linux/void-packages/commit/73c8cdee1d9b05980cdc0763294cce9372612ba4
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
- [x] gtk+ https://github.com/void-linux/void-packages/commit/ac57a55a5fda78618aec2ec7bb3c27404834ed04
- [x] gtk+3 https://github.com/void-linux/void-packages/pull/54187
- [x] libaom https://github.com/void-linux/void-packages/commit/fcbb94217389f64fea4c536959983814ebaadae4
- [x] perl-Tk https://github.com/void-linux/void-packages/commit/67aeb9d9b2b077d9b7f25902bbf079c1569a2633
- [x] gnu-efi-libs https://github.com/void-linux/void-packages/commit/92b2642bc8d1871605f824064863149985419010
- [x] syslinux https://github.com/void-linux/void-packages/commit/49af74a1dfb32ba1de556f4491b3870179c80872
- [x] recode https://github.com/void-linux/void-packages/pull/54707
- [x] libcddb https://github.com/void-linux/void-packages/commit/eeae3026d1356e1ac5d0547e19e2742a335ae9ca
- [x] vim https://github.com/void-linux/void-packages/pull/54706
- [x] vmaf https://github.com/void-linux/void-packages/pull/54721
- [x] audit https://github.com/void-linux/void-packages/pull/54722
- [x] aalib https://github.com/void-linux/void-packages/commit/d7769fe6d757a62fbfc0998d5cbde5dec8a7db11
- [x] cppdap (outdated vendored gtest, patch merged upstream) https://github.com/void-linux/void-packages/commit/a2c9d8ac073e9f40d6b7b1bb3df108c0d46481bb
- [x] snappy (outdated vendored gtest, upstream rejected patch stating that downstreams running their tests is not supported and that downstreams should either ship their own tests/patches or just disable them) https://github.com/void-linux/void-packages/commit/4e73161431672d245a8d558f269a74f1ab363cc8
- [x] openjdk7-bootstrap
- [x] openjdk8
- [x] gimp https://github.com/void-linux/void-packages/commit/d173951120b07bc57171f6962c92c0877becd0d8
- [x] xf86-video-nouveau https://github.com/void-linux/void-packages/pull/54720
- [x] libao https://github.com/void-linux/void-packages/commit/b9c6b010a201211c0ffba8a821f0021b9bdaf376
- [x] accountsservice https://github.com/void-linux/void-packages/commit/a1ca8cef0b2e98ba22c4d632685f85c5d0cde4c1
- Done with base-syste/xfce
- [x] zeitgeist
- [x] libgee
- [x] cogl
- [x] clutter-gst3
- [x] telepathy-glib
- [x] xen https://github.com/void-linux/void-packages/pull/54751
- [x] vde2 https://github.com/void-linux/void-packages/pull/54750
- Sagemath Related
- [x] gf2x
- [x] linbox
- [x] givaro
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [x] elfutils https://github.com/void-linux/void-packages/pull/54566
- [x] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [x] sane https://github.com/void-linux/void-packages/pull/54614
- [x] mdadm https://github.com/void-linux/void-packages/commit/10694f08c471b2701b3c275540b0c665f67c8b9b
- [x] pulseaudio (broken due to configure checks detecting presence of open64, this is fixed in musl 1.2.x https://github.com/bminor/musl/commit/246f1c811448f37a44b41cd8df8d0ef9736d95f4 https://github.com/bminor/musl/commit/50ab830633134dac99011219f0210ee2759ffbde) https://github.com/void-linux/void-packages/commit/b87ec8f3ca216b6d9cfb4836f236fca13f45c2ab
- [x] gpm
- [x] linux-tools https://github.com/void-linux/void-packages/commit/8c670d7a13a3d6783e23624bda033ef898cafd72
- [x] v4l-utils (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg6 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] gst-plugins-good1 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] libcdio (fseek64, also broken on i686-glibc) https://github.com/void-linux/void-packages/pull/54724
- [x] gcr (getpass) https://github.com/void-linux/void-packages/commit/a40788b2db81ceba7e4a9f75e1c120efd7577600
- [x] libndp https://github.com/void-linux/void-packages/commit/580546374e10b6847a66bfb4d9f27579d5112902
- [x] samba https://github.com/void-linux/void-packages/commit/0900507d38bfc7963d7b6c1a7b04341ae987f2d2
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration instead of segfaulting later due to implicit pointer truncation. This is good, but ofc, packages need to be checked for this.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, please test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 189393 bytes --]
From a9f1e6f4d9ac77ece052161ad74f8722ccf26b9f Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Tue, 28 May 2024 15:31:49 -0400
Subject: [PATCH 01/41] xbps-src: add option to use distfiles mirror as a
fallback
This adds an optional configuration to add a fallback distfiles mirror
The idea is that normally, distfiles should be fetched from the urls in
the template. However, occasionally the urls have rotted, or are simply
down temporairily, in which case the fetch will fail. A workaround to
this has been to use the $XBPS_DISTFILES_MIRROR option, however the
downside to this is that it is always tried first, and 99% of the time isn't
needed.
This adds the $XBPS_DISTFILES_FALLBACK option, which can be set to an
addiontional list of mirrors which will be attempted after both
$XBPS_DISTFILES_MIRROR, and the urls in the template have failed to
fetch the distfiles
Co-authored-by: oreo639 <oreo6391@gmail.com>
---
common/hooks/do-fetch/00-distfiles.sh | 15 +++++++++------
xbps-src | 10 +++++++---
2 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/common/hooks/do-fetch/00-distfiles.sh b/common/hooks/do-fetch/00-distfiles.sh
index 1adb86a5167823..2065d5442a3a12 100644
--- a/common/hooks/do-fetch/00-distfiles.sh
+++ b/common/hooks/do-fetch/00-distfiles.sh
@@ -128,11 +128,11 @@ link_cksum() {
}
try_mirrors() {
- local curfile="$1" distfile="$2" cksum="$3" f="$4"
+ local curfile="$1" distfile="$2" cksum="$3" f="$4" mirror_list="$5"
local filesum basefile mirror path scheme good
- [ -z "$XBPS_DISTFILES_MIRROR" ] && return 1
+ [ -z "$mirror_list" ] && return 1
basefile="${f##*/}"
- for mirror in $XBPS_DISTFILES_MIRROR; do
+ for mirror in $mirror_list; do
scheme="file"
if [[ $mirror == *://* ]]; then
scheme="${mirror%%:/*}"
@@ -148,8 +148,8 @@ try_mirrors() {
continue
fi
fi
- if [[ "$mirror" == *voidlinux* ]]; then
- # For distfiles.voidlinux.* append the subdirectory
+ if [[ "$mirror" == *sources.voidlinux.* ]]; then
+ # For sources.voidlinux.* append the subdirectory
mirror="$mirror/$pkgname-$version"
fi
msg_normal "$pkgver: fetching distfile '$curfile' from mirror '$mirror'...\n"
@@ -286,11 +286,14 @@ hook() {
fi
# If distfile does not exist, download it from a mirror location.
- if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}"; then
+ if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}" "$XBPS_DISTFILES_MIRROR"; then
continue
fi
if ! try_urls "$curfile"; then
+ if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}" "$XBPS_DISTFILES_FALLBACK"; then
+ continue
+ fi
msg_error "$pkgver: failed to fetch '$curfile'.\n"
fi
done
diff --git a/xbps-src b/xbps-src
index c17270b62ee4b5..1ce830c7bf9c18 100755
--- a/xbps-src
+++ b/xbps-src
@@ -343,10 +343,11 @@ read_pkg() {
}
setup_distfiles_mirror() {
+ local mirror_list="$1"
local mirror scheme path
# Scheme file:// mirror locations only work with uchroot
- for mirror in $XBPS_DISTFILES_MIRROR; do
+ for mirror in $mirror_list; do
scheme="file"
if [[ "$mirror" == *://* ]]; then
scheme="${mirror%%://*}"
@@ -696,7 +697,7 @@ export XBPS_SHUTILSDIR XBPS_CROSSPFDIR XBPS_TRIGGERSDIR \
XBPS_LIBEXECDIR XBPS_DISTDIR XBPS_DISTFILES_MIRROR XBPS_ALLOW_RESTRICTED \
XBPS_USE_GIT_COMMIT_DATE XBPS_PKG_COMPTYPE XBPS_REPO_COMPTYPE \
XBPS_BUILDHELPERDIR XBPS_USE_BUILD_MTIME XBPS_BUILD_ENVIRONMENT \
- XBPS_PRESERVE_PKGS XBPS_IGNORE_BROKENNESS
+ XBPS_PRESERVE_PKGS XBPS_IGNORE_BROKENNESS XBPS_DISTFILES_FALLBACK
for i in REPOSITORY DESTDIR BUILDDIR SRCDISTDIR; do
eval val="\$XBPS_$i"
@@ -760,7 +761,10 @@ done
if [ -z "$IN_CHROOT" ]; then
trap 'exit_func' INT TERM
if [ -n "$XBPS_DISTFILES_MIRROR" ]; then
- setup_distfiles_mirror
+ setup_distfiles_mirror "$XBPS_DISTFILES_MIRROR"
+ fi
+ if [ -n "$XBPS_DISTFILES_FALLBACK" ]; then
+ setup_distfiles_mirror "$XBPS_DISTFILES_FALLBACK"
fi
fi
From 0e73a7bd4ead9674a88e9f53a066f4c328752220 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 02/41] binutils: update to 2.44.
---
srcpkgs/binutils/template | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..024f8e5c634dd7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
@@ -73,8 +73,7 @@ do_configure() {
esac
# target archs supported by Void
- # borked: riscv64 (gold doesn't support it)
- void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,x86_64"
+ void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,riscv64,x86_64"
conf+=" --enable-targets=$(echo "$void_targets" | sed -E -e 's/(,|$)/-linux-gnu\1/g'),${extra_targets}"
if [ "$build_option_all_targets" ]; then
@@ -107,7 +106,6 @@ do_configure() {
--enable-threads \
--enable-plugins \
--enable-relro \
- --enable-gold \
--enable-new-dtags \
--enable-deterministic-archives \
--enable-64-bit-bfd \
From 722ecf9441f7337fe71413ef1a0427c11aa007ad Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 03/41] gcc: update to 14.2.1+20250329.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ---------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 -----
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 --
.../patches/fix-pretty-printer-warnings.patch | 125 ----
.../gcc/patches/libstdcxx-tzdb-z-format.patch | 563 ------------------
srcpkgs/gcc/template | 109 ++--
7 files changed, 70 insertions(+), 1232 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
delete mode 100644 srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
diff --git a/common/shlibs b/common/shlibs
index bb9191eac42284..e434e6fc159e62 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.40 perl-5.40.1_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch b/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
deleted file mode 100644
index 0deb99ac6a2df2..00000000000000
--- a/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
+++ /dev/null
@@ -1,563 +0,0 @@
-From 5ceea2ac106d6dd1aa8175670b15a801316cf1c9 Mon Sep 17 00:00:00 2001
-From: Jonathan Wakely <jwakely@redhat.com>
-Date: Tue, 30 Apr 2024 09:52:13 +0100
-Subject: [PATCH] libstdc++: Fix std::chrono::tzdb to work with vanguard format
-
-I found some issues in the std::chrono::tzdb parser by testing the
-tzdata "vanguard" format, which uses new features that aren't enabled in
-the "main" and "rearguard" data formats.
-
-Since 2024a the keyword "minimum" is no longer valid for the FROM and TO
-fields in a Rule line, which means that "m" is now a valid abbreviation
-for "maximum". Previously we expected either "mi" or "ma". For backwards
-compatibility, a FROM field beginning with "mi" is still supported and
-is treated as 1900. The "maximum" keyword is only allowed in TO now,
-because it makes no sense in FROM. To support these changes the
-minmax_year and minmax_year2 classes for parsing FROM and TO are
-replaced with a single years_from_to class that reads both fields.
-
-The vanguard format makes use of %z in Zone FORMAT fields, which caused
-an exception to be thrown from ZoneInfo::set_abbrev because no % or /
-characters were expected when a Zone doesn't use a named Rule. The
-ZoneInfo::to(sys_info&) function now uses format_abbrev_str to replace
-any %z with the current offset. Although format_abbrev_str also checks
-for %s and STD/DST formats, those only make sense when a named Rule is
-in effect, so won't occur when ZoneInfo::to(sys_info&) is used.
-
-Since making this change on trunk, the tzdata-2024b release started
-using %z in the main format, not just vanguard. This makes a backport to
-release branches necessary (see PR 116657).
-
-This change also implements a feature that has always been missing from
-time_zone::_M_get_sys_info: finding the Rule that is active before the
-specified time point, so that we can correctly handle %s in the FORMAT
-for the first new sys_info that gets created. This requires implementing
-a poorly documented feature of zic, to get the LETTERS field from a
-later transition, as described at
-https://mm.icann.org/pipermail/tz/2024-April/058891.html
-In order for this to work we need to be able to distinguish an empty
-letters field (as used by CE%sT where the variable part is either empty
-or "S") from "the letters field is not known for this transition". The
-tzdata file uses "-" for an empty letters field, which libstdc++ was
-previously replacing with "" when the Rule was parsed. Instead, we now
-preserve the "-" in the Rule object, so that "" can be used for the case
-where we don't know the letters (and so need to decide it).
-
-libstdc++-v3/ChangeLog:
-
- * src/c++20/tzdb.cc (minmax_year, minmax_year2): Remove.
- (years_from_to): New class replacing minmax_year and
- minmax_year2.
- (format_abbrev_str, select_std_or_dst_abbrev): Move earlier in
- the file. Handle "-" for letters.
- (ZoneInfo::to): Use format_abbrev_str to expand %z.
- (ZoneInfo::set_abbrev): Remove exception. Change parameter from
- reference to value.
- (operator>>(istream&, Rule&)): Do not clear letters when it
- contains "-".
- (time_zone::_M_get_sys_info): Add missing logic to find the Rule
- in effect before the time point.
- * testsuite/std/time/tzdb/1.cc: Adjust for vanguard format using
- "GMT" as the Zone name, not as a Link to "Etc/GMT".
- * testsuite/std/time/time_zone/sys_info_abbrev.cc: New test.
-
-(cherry picked from commit 0ca8d56f2085715f27ee536c6c344bc47af49cdd)
----
- libstdc++-v3/src/c++20/tzdb.cc | 265 +++++++++++-------
- .../std/time/time_zone/sys_info_abbrev.cc | 106 +++++++
- libstdc++-v3/testsuite/std/time/tzdb/1.cc | 6 +-
- 3 files changed, 274 insertions(+), 103 deletions(-)
- create mode 100644 libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-
-diff --git a/libstdc++-v3/src/c++20/tzdb.cc b/libstdc++-v3/src/c++20/tzdb.cc
-index e058caf27d89..034e72f02743 100644
---- a/libstdc++-v3/src/c++20/tzdb.cc
-+++ b/libstdc++-v3/src/c++20/tzdb.cc
-@@ -342,51 +342,103 @@ namespace std::chrono
- friend istream& operator>>(istream&, on_day&);
- };
-
-- // Wrapper for chrono::year that reads a year, or one of the keywords
-- // "minimum" or "maximum", or an unambiguous prefix of a keyword.
-- struct minmax_year
-+ // Wrapper for two chrono::year values, which reads the FROM and TO
-+ // fields of a Rule line. The FROM field is a year and TO is a year or
-+ // one of the keywords "maximum" or "only" (or an abbreviation of those).
-+ // For backwards compatibility, the keyword "minimum" is recognized
-+ // for FROM and interpreted as 1900.
-+ struct years_from_to
- {
-- year& y;
-+ year& from;
-+ year& to;
-
-- friend istream& operator>>(istream& in, minmax_year&& y)
-+ friend istream& operator>>(istream& in, years_from_to&& yy)
- {
-- if (ws(in).peek() == 'm') // keywords "minimum" or "maximum"
-+ string s;
-+ auto c = ws(in).peek();
-+ if (c == 'm') [[unlikely]] // keyword "minimum"
- {
-- string s;
-- in >> s; // extract the rest of the word, but only look at s[1]
-- if (s[1] == 'a')
-- y.y = year::max();
-- else if (s[1] == 'i')
-- y.y = year::min();
-- else
-- in.setstate(ios::failbit);
-+ in >> s; // extract the rest of the word
-+ yy.from = year(1900);
-+ }
-+ else if (int num = 0; in >> num) [[likely]]
-+ yy.from = year{num};
-+
-+ c = ws(in).peek();
-+ if (c == 'm') // keyword "maximum"
-+ {
-+ in >> s; // extract the rest of the word
-+ yy.to = year::max();
-+ }
-+ else if (c == 'o') // keyword "only"
-+ {
-+ in >> s; // extract the rest of the word
-+ yy.to = yy.from;
- }
- else if (int num = 0; in >> num)
-- y.y = year{num};
-+ yy.to = year{num};
-+
- return in;
- }
- };
-
-- // As above for minmax_year, but also supports the keyword "only",
-- // meaning that the TO year is the same as the FROM year.
-- struct minmax_year2
-+ bool
-+ select_std_or_dst_abbrev(string& abbrev, minutes save)
- {
-- minmax_year to;
-- year from;
-+ if (size_t pos = abbrev.find('/'); pos != string::npos)
-+ {
-+ // Select one of "STD/DST" for standard or daylight.
-+ if (save == 0min)
-+ abbrev.erase(pos);
-+ else
-+ abbrev.erase(0, pos + 1);
-+ return true;
-+ }
-+ return false;
-+ }
-
-- friend istream& operator>>(istream& in, minmax_year2&& y)
-- {
-- if (ws(in).peek() == 'o') // keyword "only"
-- {
-- string s;
-- in >> s; // extract the whole keyword
-- y.to.y = y.from;
-- }
-- else
-- in >> std::move(y.to);
-- return in;
-- }
-- };
-+ // Set the sys_info::abbrev string by expanding any placeholders.
-+ void
-+ format_abbrev_str(sys_info& info, string_view letters = {})
-+ {
-+ if (size_t pos = info.abbrev.find('%'); pos != string::npos)
-+ {
-+ if (info.abbrev[pos + 1] == 's')
-+ {
-+ // Expand "%s" to the variable part, given by Rule::letters.
-+ if (letters == "-")
-+ info.abbrev.erase(pos, 2);
-+ else
-+ info.abbrev.replace(pos, 2, letters);
-+ }
-+ else if (info.abbrev[pos + 1] == 'z')
-+ {
-+ // Expand "%z" to the UT offset as +/-hh, +/-hhmm, or +/-hhmmss.
-+ hh_mm_ss<seconds> t(info.offset);
-+ string z(1, "+-"[t.is_negative()]);
-+ long val = t.hours().count();
-+ int digits = 2;
-+ if (int m = t.minutes().count())
-+ {
-+ digits = 4;
-+ val *= 100;
-+ val += m;
-+ if (int s = t.seconds().count())
-+ {
-+ digits = 6;
-+ val *= 100;
-+ val += s;
-+ }
-+ }
-+ auto sval = std::to_string(val);
-+ z += string(digits - sval.size(), '0');
-+ z += sval;
-+ info.abbrev.replace(pos, 2, z);
-+ }
-+ }
-+ else
-+ select_std_or_dst_abbrev(info.abbrev, info.save);
-+ }
-
- // A time zone information record.
- // Zone NAME STDOFF RULES FORMAT [UNTIL]
-@@ -462,6 +514,7 @@ namespace std::chrono
- info.offset = offset();
- info.save = minutes(m_save);
- info.abbrev = format();
-+ format_abbrev_str(info); // expand %z
- return true;
- }
-
-@@ -469,12 +522,9 @@ namespace std::chrono
- friend class time_zone;
-
- void
-- set_abbrev(const string& abbrev)
-+ set_abbrev(string abbrev)
- {
-- // In practice, the FORMAT field never needs expanding here.
-- if (abbrev.find_first_of("/%") != abbrev.npos)
-- __throw_runtime_error("std::chrono::time_zone: invalid data");
-- m_buf = abbrev;
-+ m_buf = std::move(abbrev);
- m_pos = 0;
- m_expanded = true;
- }
-@@ -544,9 +594,7 @@ namespace std::chrono
-
- // Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
-
-- in >> quoted(rule.name)
-- >> minmax_year{rule.from}
-- >> minmax_year2{rule.to, rule.from};
-+ in >> quoted(rule.name) >> years_from_to{rule.from, rule.to};
-
- if (char type; in >> type && type != '-')
- in.setstate(ios::failbit);
-@@ -557,7 +605,7 @@ namespace std::chrono
- if (save_time.indicator != at_time::Wall)
- {
- // We don't actually store the save_time.indicator, because we
-- // assume that it's always deducable from the actual offset value.
-+ // assume that it's always deducible from the offset value.
- auto expected = save_time.time == 0s
- ? at_time::Standard
- : at_time::Daylight;
-@@ -567,8 +615,6 @@ namespace std::chrono
- rule.save = save_time.time;
-
- in >> rule.letters;
-- if (rule.letters == "-")
-- rule.letters.clear();
- return in;
- }
-
-@@ -714,58 +760,6 @@ namespace std::chrono
- #endif // TZDB_DISABLED
- };
-
--#ifndef TZDB_DISABLED
-- namespace
-- {
-- bool
-- select_std_or_dst_abbrev(string& abbrev, minutes save)
-- {
-- if (size_t pos = abbrev.find('/'); pos != string::npos)
-- {
-- // Select one of "STD/DST" for standard or daylight.
-- if (save == 0min)
-- abbrev.erase(pos);
-- else
-- abbrev.erase(0, pos + 1);
-- return true;
-- }
-- return false;
-- }
--
-- // Set the sys_info::abbrev string by expanding any placeholders.
-- void
-- format_abbrev_str(sys_info& info, string_view letters = {})
-- {
-- if (size_t pos = info.abbrev.find("%s"); pos != string::npos)
-- {
-- // Expand "%s" to the variable part, given by Rule::letters.
-- info.abbrev.replace(pos, 2, letters);
-- }
-- else if (size_t pos = info.abbrev.find("%z"); pos != string::npos)
-- {
-- // Expand "%z" to the UT offset as +/-hh, +/-hhmm, or +/-hhmmss.
-- hh_mm_ss<seconds> t(info.offset);
-- string z(1, "+-"[t.is_negative()]);
-- long val = t.hours().count();
-- if (minutes m = t.minutes(); m != m.zero())
-- {
-- val *= 100;
-- val += m.count();
-- if (seconds s = t.seconds(); s != s.zero())
-- {
-- val *= 100;
-- val += s.count();
-- }
-- }
-- z += std::to_string(val);
-- info.abbrev.replace(pos, 2, z);
-- }
-- else
-- select_std_or_dst_abbrev(info.abbrev, info.save);
-- }
-- }
--#endif // TZDB_DISABLED
--
- // Implementation of std::chrono::time_zone::get_info(const sys_time<D>&)
- sys_info
- time_zone::_M_get_sys_info(sys_seconds tp) const
-@@ -834,12 +828,72 @@ namespace std::chrono
- info.abbrev = ri.format();
-
- string_view letters;
-- if (i != infos.begin())
-+ if (i != infos.begin() && i[-1].expanded())
-+ letters = i[-1].next_letters();
-+
-+ if (letters.empty())
- {
-- if (i[-1].expanded())
-- letters = i[-1].next_letters();
-- // XXX else need to find Rule active before this time and use it
-- // to know the initial offset, save, and letters.
-+ sys_seconds t = info.begin - seconds(1);
-+ const year_month_day date(chrono::floor<days>(t));
-+
-+ // Try to find a Rule active before this time, to get initial
-+ // SAVE and LETTERS values. There may not be a Rule for the period
-+ // before the first DST transition, so find the earliest DST->STD
-+ // transition and use the LETTERS from that.
-+ const Rule* active_rule = nullptr;
-+ sys_seconds active_rule_start = sys_seconds::min();
-+ const Rule* first_std = nullptr;
-+ for (const auto& rule : rules)
-+ {
-+ if (rule.save == minutes(0))
-+ {
-+ if (!first_std)
-+ first_std = &rule;
-+ else if (rule.from < first_std->from)
-+ first_std = &rule;
-+ else if (rule.from == first_std->from)
-+ {
-+ if (rule.start_time(rule.from, {})
-+ < first_std->start_time(first_std->from, {}))
-+ first_std = &rule;
-+ }
-+ }
-+
-+ year y = date.year();
-+
-+ if (y > rule.to) // rule no longer applies at time t
-+ continue;
-+ if (y < rule.from) // rule doesn't apply yet at time t
-+ continue;
-+
-+ sys_seconds rule_start;
-+
-+ seconds offset{}; // appropriate for at_time::Universal
-+ if (rule.when.indicator == at_time::Wall)
-+ offset = info.offset;
-+ else if (rule.when.indicator == at_time::Standard)
-+ offset = ri.offset();
-+
-+ // Time the rule takes effect this year:
-+ rule_start = rule.start_time(y, offset);
-+
-+ if (rule_start >= t && rule.from < y)
-+ {
-+ // Try this rule in the previous year.
-+ rule_start = rule.start_time(--y, offset);
-+ }
-+
-+ if (active_rule_start < rule_start && rule_start < t)
-+ {
-+ active_rule_start = rule_start;
-+ active_rule = &rule;
-+ }
-+ }
-+
-+ if (active_rule)
-+ letters = active_rule->letters;
-+ else if (first_std)
-+ letters = first_std->letters;
- }
-
- const Rule* curr_rule = nullptr;
-@@ -2064,9 +2118,11 @@ namespace std::chrono
- istringstream in2(std::move(rules));
- in2 >> rules_time;
- inf.m_save = duration_cast<minutes>(rules_time.time);
-+ // If the FORMAT is "STD/DST" then we can choose the right one
-+ // now, so that we store a shorter string.
- select_std_or_dst_abbrev(fmt, inf.m_save);
- }
-- inf.set_abbrev(fmt);
-+ inf.set_abbrev(std::move(fmt));
- }
-
- // YEAR [MONTH [DAY [TIME]]]
-@@ -2077,7 +2133,12 @@ namespace std::chrono
- abbrev_month m{January};
- int d = 1;
- at_time t{};
-+ // XXX DAY should support ON format, e.g. lastSun or Sun>=8
- in >> m >> d >> t;
-+ // XXX UNTIL field should be interpreted
-+ // "using the rules in effect just before the transition"
-+ // so might need to store as year_month_day and hh_mm_ss and only
-+ // convert to a sys_time once we know the offset in effect.
- inf.m_until = sys_days(year(y)/m.m/day(d)) + seconds(t.time);
- }
- else
-diff --git a/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc b/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-new file mode 100644
-index 000000000000..f1a8fff02f58
---- /dev/null
-+++ b/libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-@@ -0,0 +1,106 @@
-+// { dg-do run { target c++20 } }
-+// { dg-require-effective-target tzdb }
-+// { dg-require-effective-target cxx11_abi }
-+// { dg-xfail-run-if "no weak override on AIX" { powerpc-ibm-aix* } }
-+
-+#include <chrono>
-+#include <fstream>
-+#include <testsuite_hooks.h>
-+
-+static bool override_used = false;
-+
-+namespace __gnu_cxx
-+{
-+ const char* zoneinfo_dir_override() {
-+ override_used = true;
-+ return "./";
-+ }
-+}
-+
-+using namespace std::chrono;
-+
-+void
-+test_format()
-+{
-+ std::ofstream("tzdata.zi") << R"(# version test_1
-+Zone Africa/Bissau -1:2:20 - LMT 1912 Ja 1 1u
-+ -1 - %z 1975
-+ 0 - GMT
-+Zon Some/Zone 1:2:3 - %z 1900
-+ 1:23:45 - %z 1950
-+Zo Another/Zone 1:2:3 - AZ0 1901
-+ 1 Roolz A%sZ 2000
-+ 1 Roolz SAZ/DAZ 2005
-+ 1 Roolz %z
-+Rule Roolz 1950 max - April 1 2 1 D
-+Rul Roolz 1950 max - Oct 1 1 0 S
-+Z Strange/Zone 1 - X%sX 1980
-+ 1 - FOO/BAR 1990
-+ 2:00 - %zzz 1995
-+ 0:9 - %zzz 1996
-+ 0:8:7 - %zzz 1997
-+ 0:6:5.5 - %zzz 1998
-+)";
-+
-+ const auto& db = reload_tzdb();
-+ VERIFY( override_used ); // If this fails then XFAIL for the target.
-+ VERIFY( db.version == "test_1" );
-+
-+ // Test formatting %z as
-+ auto tz = locate_zone("Africa/Bissau");
-+ auto inf = tz->get_info(sys_days(1974y/1/1));
-+ VERIFY( inf.abbrev == "-01" );
-+
-+ tz = locate_zone("Some/Zone");
-+ inf = tz->get_info(sys_days(1899y/1/1));
-+ VERIFY( inf.abbrev == "+010203" );
-+ inf = tz->get_info(sys_days(1955y/1/1));
-+ VERIFY( inf.abbrev == "+012345" );
-+
-+ tz = locate_zone("Another/Zone");
-+ // Test formatting %s as the LETTER/S field from the active Rule.
-+ inf = tz->get_info(sys_days(1910y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1950y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1950y/June/1));
-+ VERIFY( inf.abbrev == "ADZ" );
-+ inf = tz->get_info(sys_days(1999y/January/1));
-+ VERIFY( inf.abbrev == "ASZ" );
-+ inf = tz->get_info(sys_days(1999y/July/1));
-+ VERIFY( inf.abbrev == "ADZ" );
-+ // Test formatting STD/DST according to the active Rule.
-+ inf = tz->get_info(sys_days(2000y/January/2));
-+ VERIFY( inf.abbrev == "SAZ" );
-+ inf = tz->get_info(sys_days(2001y/January/1));
-+ VERIFY( inf.abbrev == "SAZ" );
-+ inf = tz->get_info(sys_days(2001y/July/1));
-+ VERIFY( inf.abbrev == "DAZ" );
-+ // Test formatting %z as the offset determined by the active Rule.
-+ inf = tz->get_info(sys_days(2005y/January/2));
-+ VERIFY( inf.abbrev == "+01" );
-+ inf = tz->get_info(sys_days(2006y/January/1));
-+ VERIFY( inf.abbrev == "+01" );
-+ inf = tz->get_info(sys_days(2006y/July/1));
-+ VERIFY( inf.abbrev == "+02" );
-+
-+ // Test formatting %z, %s and S/D for a Zone with no associated Rules.
-+ tz = locate_zone("Strange/Zone");
-+ inf = tz->get_info(sys_days(1979y/January/1));
-+ VERIFY( inf.abbrev == "XX" ); // No Rule means nothing to use for %s.
-+ inf = tz->get_info(sys_days(1981y/July/1));
-+ VERIFY( inf.abbrev == "FOO" ); // Always standard time means first string.
-+ inf = tz->get_info(sys_days(1994y/July/1));
-+ VERIFY( inf.abbrev == "+02zz" );
-+ inf = tz->get_info(sys_days(1995y/July/1));
-+ VERIFY( inf.abbrev == "+0009zz" );
-+ inf = tz->get_info(sys_days(1996y/July/1));
-+ VERIFY( inf.abbrev == "+000807zz" );
-+ inf = tz->get_info(sys_days(1997y/July/1));
-+ VERIFY( inf.abbrev == "+000606zz" );
-+}
-+
-+int main()
-+{
-+ test_format();
-+}
-diff --git a/libstdc++-v3/testsuite/std/time/tzdb/1.cc b/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-index 5f69e182603d..73d316f55708 100644
---- a/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-+++ b/libstdc++-v3/testsuite/std/time/tzdb/1.cc
-@@ -40,11 +40,15 @@ test_locate()
- const tzdb& db = get_tzdb();
- const time_zone* tz = db.locate_zone("GMT");
- VERIFY( tz != nullptr );
-- VERIFY( tz->name() == "Etc/GMT" );
- VERIFY( tz == std::chrono::locate_zone("GMT") );
- VERIFY( tz == db.locate_zone("Etc/GMT") );
- VERIFY( tz == db.locate_zone("Etc/GMT+0") );
-
-+ // Since 2022f GMT is now a Zone and Etc/GMT a link instead of vice versa,
-+ // but only when using the vanguard format. As of 2024a, the main and
-+ // rearguard formats still have Etc/GMT as a Zone and GMT as a link.
-+ VERIFY( tz->name() == "GMT" || tz->name() == "Etc/GMT" );
-+
- VERIFY( db.locate_zone(db.current_zone()->name()) == db.current_zone() );
- }
-
---
-2.43.5
-
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 45901cec613901..938d446e5c61f1 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,57 +3,51 @@
# which use the version number.
pkgname=gcc
-version=13.2.0
-revision=3
+version=14.2.1+20250329
+revision=1
+bootstrap=yes
+_patchver="${version%+*}"
_minorver="${version%.*}"
_majorver="${_minorver%.*}"
_gmp_version=6.3.0
_mpfr_version=4.2.1
_mpc_version=1.3.1
_isl_version=0.26
-create_wrksrc=yes
short_desc="GNU Compiler Collection"
maintainer="Enno Boland <gottox@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-# *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
-distfiles="
- ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_majorver}-${version#*+}/gcc-${_majorver}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
+skip_extraction="gmp-${_gmp_version}.tar.xz mpfr-${_mpfr_version}.tar.xz
+ mpc-${_mpc_version}.tar.gz isl-${_isl_version}.tar.bz2"
+
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
nopie=yes
lib32disabled=yes
-bootstrap=yes
replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
libssp>=0 libssp-devel>=0"
-_have_gccgo=yes
-_have_libquadmath=no
-
-# MIPS is untested and does not have go in crosstoolchains
-# 32-bit PowerPC seems weirdly broken since the 10.x release
-# 32-bit little endian PowerPC has no support at all (no GOARCH)
-case "$XBPS_TARGET_MACHINE" in
- ppc64*) ;;
- mips*-musl|ppc*) _have_gccgo=no ;;
-esac
-
-case "$XBPS_TARGET_MACHINE" in
- i686*|x86_64*|ppc64le*) _have_libquadmath=yes ;;
-esac
-
if [ "$CHROOT_READY" ]; then
hostmakedepends="tar texinfo perl flex"
else
- _have_gccgo=no
# libzstd fails to link in bootstrap with glibc 2.36
# when zlib has been compiled with glibc 2.32.
LDFLAGS="-lzstd -pthread"
@@ -62,7 +56,6 @@ makedepends="zlib-devel libzstd-devel"
depends="binutils libgcc-devel-${version}_${revision}
libstdc++-devel-${version}_${revision} libatomic-devel-${version}_${revision}"
checkdepends="dejagnu"
-
subpackages="libgcc libgomp libgomp-devel libatomic libatomic-devel"
build_options="ada gnatboot"
@@ -70,18 +63,35 @@ build_options_default="ada"
desc_option_ada="Enable Ada build"
desc_option_gnatboot="Enable Ada bootstrap using adacore.com binaries"
+_have_gccgo=yes
+_have_libquadmath=no
+
+case "$XBPS_TARGET_MACHINE" in
+ i686*|x86_64*|ppc64le*) _have_libquadmath=yes ;;
+esac
+
+# MIPS is untested and does not have go in crosstoolchains
+# 32-bit PowerPC seems weirdly broken since the 10.x release
+# 32-bit little endian PowerPC has no support at all (no GOARCH)
+case "$XBPS_TARGET_MACHINE" in
+ ppc64*) ;;
+ mips*-musl|ppc*) _have_gccgo=no ;;
+esac
+
if [ "$build_option_gnatboot" ]; then
case "$XBPS_TARGET_MACHINE" in
x86_64)
_gnat_tarball="gnat-gpl-2017-x86_64-linux-bin.tar.gz"
distfiles+=" https://community.download.adacore.com/v1/9682e2e1f2f232ce03fe21d77b14c37a0de5649b?filename=$_gnat_tarball>$_gnat_tarball"
checksum+=" b942bcac20dea39748b39f8b624d9619f60a8dee2e8195dbe3829c835b0956e6"
+ skip_extraction+=" $_gnat_tarball"
build_options_default="gnatboot"
;;
i686)
_gnat_tarball="gnat-gpl-2014-x86-linux-bin.tar.gz"
distfiles+=" https://community.download.adacore.com/v1/c5e9e6fdff5cb77ed90cf8c62536653e27c0bed6?filename=$_gnat_tarball>$_gnat_tarball"
checksum+=" 3b693510f5d22a240abb3034934c1adbd80ccd6e4f61a4f491cc408fdfd9c042"
+ skip_extraction+=" $_gnat_tarball"
build_options_default="gnatboot"
;;
esac
@@ -90,10 +100,11 @@ fi
if [ "$CHROOT_READY" ]; then
subpackages+=" gcc-fortran libgfortran-devel libgfortran"
subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
-
if [ "$_have_libquadmath" = "yes" ]; then
subpackages+=" libquadmath libquadmath-devel"
fi
+else
+ _have_gccgo=no
fi
if [ "$_have_gccgo" = "yes" ]; then
@@ -162,18 +173,14 @@ if [ "$CROSS_BUILD" ]; then
fi
post_extract() {
- mv gcc-${version}/* gcc-${version}/.??* .
- rmdir gcc-${version}
- mv gmp-${_gmp_version} gmp
- mv mpfr-${_mpfr_version} mpfr
- mv mpc-${_mpc_version} mpc
- mv isl-${_isl_version} isl
+ vsrcextract -C gmp gmp-${_gmp_version}.tar.xz
+ vsrcextract -C mpfr mpfr-${_mpfr_version}.tar.xz
+ vsrcextract -C mpc mpc-${_mpc_version}.tar.gz
+ vsrcextract -C isl isl-${_isl_version}.tar.bz2
if [ "$build_option_gnatboot" ]; then
- local f="${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_gnat_tarball}"
msg_normal "Extracting ${_gnat_tarball} ...\n"
- mkdir -p ${wrksrc}/gnat-ins
- tar -x -f "$f" --strip-components=1 -C ${wrksrc}/gnat-ins
+ vsrcextract -C gnat-ins ${_gnat_tarball}
cd ${wrksrc}/gnat-ins
make ins-all prefix=${wrksrc}/gnat
cd ${wrksrc}
@@ -202,6 +209,7 @@ pre_configure() {
done
fi
}
+
do_configure() {
local _langs _args _hash
@@ -307,6 +315,10 @@ do_configure() {
mkdir -p build
cd build
if [ "$build_option_gnatboot" ]; then
+ # file-prefix-map isn't supported in gcc6
+ export CFLAGS="${CFLAGS/-ffile-prefix-map=$wrksrc=./}"
+ export CXXFLAGS="${CXXFLAGS/-ffile-prefix-map=$wrksrc=./}"
+
_args+=" --enable-languages=${_langs},ada"
_args+=" --enable-libada"
CONFIG_SHELL=/bin/bash \
@@ -325,6 +337,17 @@ do_configure() {
${wrksrc}/configure ${_args}
fi
}
+
+pre_build() {
+ # gcc will configure itself again throughout the build, so make sure CFLAGS/CXXFLAGS/etc
+ # are still set the same.
+ export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
+ export CFLAGS="${CFLAGS//-fno-PIE/}"
+ export CXXFLAGS="${CXXFLAGS//-fno-PIE/}"
+ export LDFLAGS="${LDFLAGS//-no-pie/}"
+}
+
do_build() {
if [ -z "$CHROOT_READY" ]; then
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib${XBPS_TARGET_WORDSIZE}"
@@ -340,6 +363,7 @@ do_build() {
make ${makejobs}
fi
}
+
pre_install() {
if [ "$CROSS_BUILD" ]; then
# XXX otherwise links to host libpthread
@@ -348,6 +372,7 @@ pre_install() {
done
fi
}
+
do_install() {
cd build
@@ -355,16 +380,16 @@ do_install() {
# Make version a symlink of major version to make all versions
# from the same series work automagically.
- mv ${DESTDIR}/usr/lib/gcc/${_triplet}/${version} \
+ mv ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver} \
${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver}
ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver} \
- ${DESTDIR}/usr/lib/gcc/${_triplet}/${version}
+ ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver}
# Ditto for c++ headers.
- mv ${DESTDIR}/usr/include/c++/${version} \
+ mv ${DESTDIR}/usr/include/c++/${_patchver} \
${DESTDIR}/usr/include/c++/${_minorver}
ln -sfr ${DESTDIR}/usr/include/c++/${_minorver} \
- ${DESTDIR}/usr/include/c++/${version}
+ ${DESTDIR}/usr/include/c++/${_patchver}
# cc symlink
ln -sfr ${DESTDIR}/usr/bin/gcc ${DESTDIR}/usr/bin/cc
@@ -373,7 +398,7 @@ do_install() {
# lto plugin symlink
vmkdir usr/lib/bfd-plugins
- ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${version}/liblto_plugin.so \
+ ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${_patchver}/liblto_plugin.so \
${DESTDIR}/usr/lib/bfd-plugins
# Remove "fixed" header
@@ -457,7 +482,7 @@ gcc-fortran_package() {
if [ "$CROSS_BUILD" ]; then
# A number of OMP modules are not built when cross
# compiling gcc. Copy them from the cross compiler.
- local src="/usr/lib/gcc/${_triplet}/${version}/finclude"
+ local src="/usr/lib/gcc/${_triplet}/${_patchver}/finclude"
local dst="usr/lib/gcc/${_triplet}/${_minorver}/finclude"
for f in omp_lib.f90 omp_lib.h omp_lib.mod omp_lib_kinds.mod \
openacc.f90 openacc.mod openacc_kinds.mod openacc_lib.h; do
@@ -714,7 +739,7 @@ libstdc++_package() {
short_desc+=" - Standard C++ Library"
pkg_install() {
vmove usr/share/gdb
- vmove usr/share/gcc-${version}/python
+ vmove usr/share/gcc-${_patchver}/python
vmove "usr/lib/libstdc++.so*"
vlicense COPYING.RUNTIME RUNTIME.LIBRARY.EXCEPTION
}
From 7e985d2d57b93be3c642100a1e24e3a5675beb50 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:10:55 -0800
Subject: [PATCH 04/41] glibc: update to 2.41.
https://lists.gnu.org/archive/html/info-gnu/2025-01/msg00014.html
---
common/shlibs | 60 +-
...1a0047fb26a65a9b2a7b8cd977243f7d353c.patch | 262 ---------
...159626b67fe11f39e83e222cf4348a3962f3.patch | 80 ---
...5e4fda1f6dab4bf7442706fe303bf283036c.patch | 37 --
srcpkgs/glibc/patches/CVE-2024-2961.patch | 56 --
srcpkgs/glibc/patches/CVE-2024-335XX.patch | 535 ------------------
srcpkgs/glibc/template | 6 +-
7 files changed, 33 insertions(+), 1003 deletions(-)
delete mode 100644 srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
delete mode 100644 srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
delete mode 100644 srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-2961.patch
delete mode 100644 srcpkgs/glibc/patches/CVE-2024-335XX.patch
diff --git a/common/shlibs b/common/shlibs
index e434e6fc159e62..eff3cfb5db852b 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -17,36 +17,36 @@
# one (order top->bottom) is preferred over the next ones.
#
libc.so musl-1.1.24_7
-libc.so.6 glibc-2.39_1
-libm.so.6 glibc-2.39_1
-libpthread.so.0 glibc-2.39_1
-librt.so.1 glibc-2.39_1
-libdl.so.2 glibc-2.39_1
-ld-linux-x86-64.so.2 glibc-2.39_1 x86_64
-ld-linux.so.2 glibc-2.39_1 i686
-ld-linux.so.3 glibc-2.39_1 armv5tel
-ld-linux-aarch64.so.1 glibc-2.39_1 aarch64
-ld-linux-riscv64-lp64d.so.1 glibc-2.39_1 riscv64
-ld64.so.2 glibc-2.39_1 ppc64
-ld.so.1 glibc-2.39_1 mips
-ld.so.1 glibc-2.39_1 ppc
-ld-linux-armhf.so.3 glibc-2.39_1
-libresolv.so.2 glibc-2.39_1
-libanl.so.1 glibc-2.39_1
-libthread_db.so.1 glibc-2.39_1
-libutil.so.1 glibc-2.39_1
-libnsl.so.1 glibc-2.39_1
-libnss_db.so.2 glibc-2.39_1
-libnss_files.so.2 glibc-2.39_1
-libnss_compat.so.2 glibc-2.39_1
-libnss_dns.so.2 glibc-2.39_1
-libnss_hesiod.so.2 glibc-2.39_1
-libBrokenLocale.so.1 glibc-2.39_1
-libmemusage.so glibc-2.39_1
-libSegFault.so glibc-2.39_1
-libpcprofile.so glibc-2.39_1
-libcidn.so.1 glibc-2.39_1
-libmvec.so.1 glibc-2.39_1
+libc.so.6 glibc-2.41_1
+libm.so.6 glibc-2.41_1
+libpthread.so.0 glibc-2.41_1
+librt.so.1 glibc-2.41_1
+libdl.so.2 glibc-2.41_1
+ld-linux-x86-64.so.2 glibc-2.41_1 x86_64
+ld-linux.so.2 glibc-2.41_1 i686
+ld-linux.so.3 glibc-2.41_1 armv5tel
+ld-linux-aarch64.so.1 glibc-2.41_1 aarch64
+ld-linux-riscv64-lp64d.so.1 glibc-2.41_1 riscv64
+ld64.so.2 glibc-2.41_1 ppc64
+ld.so.1 glibc-2.41_1 mips
+ld.so.1 glibc-2.41_1 ppc
+ld-linux-armhf.so.3 glibc-2.41_1
+libresolv.so.2 glibc-2.41_1
+libanl.so.1 glibc-2.41_1
+libthread_db.so.1 glibc-2.41_1
+libutil.so.1 glibc-2.41_1
+libnsl.so.1 glibc-2.41_1
+libnss_db.so.2 glibc-2.41_1
+libnss_files.so.2 glibc-2.41_1
+libnss_compat.so.2 glibc-2.41_1
+libnss_dns.so.2 glibc-2.41_1
+libnss_hesiod.so.2 glibc-2.41_1
+libBrokenLocale.so.1 glibc-2.41_1
+libmemusage.so glibc-2.41_1
+libSegFault.so glibc-2.41_1
+libpcprofile.so glibc-2.41_1
+libcidn.so.1 glibc-2.41_1
+libmvec.so.1 glibc-2.41_1
libcrypt.so.2 libxcrypt-4.4.36_1
libcrypt.so.1 libxcrypt-compat-4.4.36_1
libSimGearCore.so.2020.3.17 simgear-2020.3.17_1
diff --git a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch b/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
deleted file mode 100644
index f0a67b1939db11..00000000000000
--- a/srcpkgs/glibc/patches/1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c.patch
+++ /dev/null
@@ -1,262 +0,0 @@
-From 1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Wed, 31 Jan 2024 19:17:27 +0100
-Subject: [PATCH] Use gcc __builtin_stdc_* builtins in stdbit.h if possible
-
-The following patch uses the GCC 14 __builtin_stdc_* builtins in stdbit.h
-for the type-generic macros, so that when compiled with GCC 14 or later,
-it supports not just 8/16/32/64-bit unsigned integers, but also 128-bit
-(if target supports them) and unsigned _BitInt (any supported precision).
-And so that the macros don't expand arguments multiple times and can be
-evaluated in constant expressions.
-
-The new testcase is gcc's gcc/testsuite/gcc.dg/builtin-stdc-bit-1.c
-adjusted to test stdbit.h and the type-generic macros in there instead
-of the builtins and adjusted to use glibc test framework rather than
-gcc style tests with __builtin_abort ().
-
-Signed-off-by: Jakub Jelinek <jakub@redhat.com>
-Reviewed-by: Joseph Myers <josmyers@redhat.com>
-(cherry picked from commit da89496337b97e6a2aaf1e81d55cf998f6db1070)
----
- manual/stdbit.texi | 8 +-
- stdlib/Makefile | 1 +
- stdlib/stdbit.h | 84 +++-
- stdlib/tst-stdbit-builtins.c | 778 +++++++++++++++++++++++++++++++++++
- 4 files changed, 856 insertions(+), 15 deletions(-)
- create mode 100644 stdlib/tst-stdbit-builtins.c
-
-diff --git a/manual/stdbit.texi b/manual/stdbit.texi
-index fe41c671d8..6c75ed9a20 100644
---- a/manual/stdbit.texi
-+++ b/manual/stdbit.texi
-@@ -32,7 +32,13 @@ and @code{unsigned long long int}. In addition, there is a
- corresponding type-generic macro (not listed below), named the same as
- the functions but without any suffix such as @samp{_uc}. The
- type-generic macro can only be used with an argument of an unsigned
--integer type with a width of 8, 16, 32 or 64 bits.
-+integer type with a width of 8, 16, 32 or 64 bits, or when using
-+a compiler with support for
-+@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}},
-+etc.@:, built-in functions such as GCC 14.1 or later
-+any unsigned integer type those built-in functions support.
-+In GCC 14.1 that includes support for @code{unsigned __int128} and
-+@code{unsigned _BitInt(@var{n})} if supported by the target.
-
- @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x})
- @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x})
-diff --git a/stdlib/stdbit.h b/stdlib/stdbit.h
-index f334eb174d..2801590c63 100644
---- a/stdlib/stdbit.h
-+++ b/stdlib/stdbit.h
-@@ -64,9 +64,13 @@ extern unsigned int stdc_leading_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_zeros)
-+# define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros (x))
-+#else
-+# define stdc_leading_zeros(x) \
- (stdc_leading_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -116,9 +120,13 @@ extern unsigned int stdc_leading_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_leading_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_leading_ones(x) \
-+#if __glibc_has_builtin (__builtin_stdc_leading_ones)
-+# define stdc_leading_ones(x) (__builtin_stdc_leading_ones (x))
-+#else
-+# define stdc_leading_ones(x) \
- (stdc_leading_ones_ull ((unsigned long long int) (x) \
- << 8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -168,11 +176,15 @@ extern unsigned int stdc_trailing_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_trailing_zeros)
-+# define stdc_trailing_zeros(x) (__builtin_stdc_trailing_zeros (x))
-+#else
-+# define stdc_trailing_zeros(x) \
- (sizeof (x) == 8 ? stdc_trailing_zeros_ull (x) \
- : sizeof (x) == 4 ? stdc_trailing_zeros_ui (x) \
- : sizeof (x) == 2 ? stdc_trailing_zeros_us (__pacify_uint16 (x)) \
- : stdc_trailing_zeros_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -222,7 +234,11 @@ extern unsigned int stdc_trailing_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_trailing_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_trailing_ones)
-+# define stdc_trailing_ones(x) (__builtin_stdc_trailing_ones (x))
-+#else
-+# define stdc_trailing_ones(x) (stdc_trailing_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -272,11 +288,15 @@ extern unsigned int stdc_first_leading_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_zero)
-+# define stdc_first_leading_zero(x) (__builtin_stdc_first_leading_zero (x))
-+#else
-+# define stdc_first_leading_zero(x) \
- (sizeof (x) == 8 ? stdc_first_leading_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_zero_us (__pacify_uint16 (x)) \
- : stdc_first_leading_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -326,11 +346,15 @@ extern unsigned int stdc_first_leading_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_leading_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_leading_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_leading_one)
-+# define stdc_first_leading_one(x) (__builtin_stdc_first_leading_one (x))
-+#else
-+# define stdc_first_leading_one(x) \
- (sizeof (x) == 8 ? stdc_first_leading_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_leading_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_leading_one_us (__pacify_uint16 (x)) \
- : stdc_first_leading_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -380,11 +404,15 @@ extern unsigned int stdc_first_trailing_zero_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_zero_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_zero(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_zero)
-+# define stdc_first_trailing_zero(x) (__builtin_stdc_first_trailing_zero (x))
-+#else
-+# define stdc_first_trailing_zero(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_zero_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_zero_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_zero_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_zero_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -434,11 +462,15 @@ extern unsigned int stdc_first_trailing_one_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_first_trailing_one_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_first_trailing_one(x) \
-+#if __glibc_has_builtin (__builtin_stdc_first_trailing_one)
-+# define stdc_first_trailing_one(x) (__builtin_stdc_first_trailing_one (x))
-+#else
-+# define stdc_first_trailing_one(x) \
- (sizeof (x) == 8 ? stdc_first_trailing_one_ull (x) \
- : sizeof (x) == 4 ? stdc_first_trailing_one_ui (x) \
- : sizeof (x) == 2 ? stdc_first_trailing_one_us (__pacify_uint16 (x)) \
- : stdc_first_trailing_one_uc (__pacify_uint8 (x)))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_ctzll)
- static __always_inline unsigned int
-@@ -488,9 +520,13 @@ extern unsigned int stdc_count_zeros_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_zeros_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_zeros(x) \
-+#if __glibc_has_builtin (__builtin_stdc_count_zeros)
-+# define stdc_count_zeros(x) (__builtin_stdc_count_zeros (x))
-+#else
-+# define stdc_count_zeros(x) \
- (stdc_count_zeros_ull (x) \
- - (unsigned int) (8 * (sizeof (0ULL) - sizeof (x))))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -540,7 +576,11 @@ extern unsigned int stdc_count_ones_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_count_ones_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_count_ones)
-+# define stdc_count_ones(x) (__builtin_stdc_count_ones (x))
-+#else
-+# define stdc_count_ones(x) (stdc_count_ones_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_popcountll)
- static __always_inline unsigned int
-@@ -590,10 +630,14 @@ extern bool stdc_has_single_bit_ul (unsigned long int __x)
- __extension__
- extern bool stdc_has_single_bit_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_has_single_bit(x) \
-+#if __glibc_has_builtin (__builtin_stdc_has_single_bit)
-+# define stdc_has_single_bit(x) (__builtin_stdc_has_single_bit (x))
-+#else
-+# define stdc_has_single_bit(x) \
- ((bool) (sizeof (x) <= sizeof (unsigned int) \
- ? stdc_has_single_bit_ui (x) \
- : stdc_has_single_bit_ull (x)))
-+#endif
-
- static __always_inline bool
- __hsb64_inline (uint64_t __x)
-@@ -641,7 +685,11 @@ extern unsigned int stdc_bit_width_ul (unsigned long int __x)
- __extension__
- extern unsigned int stdc_bit_width_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_width)
-+# define stdc_bit_width(x) (__builtin_stdc_bit_width (x))
-+#else
-+# define stdc_bit_width(x) (stdc_bit_width_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline unsigned int
-@@ -691,7 +739,11 @@ extern unsigned long int stdc_bit_floor_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_floor_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_floor)
-+# define stdc_bit_floor(x) (__builtin_stdc_bit_floor (x))
-+#else
-+# define stdc_bit_floor(x) ((__typeof (x)) stdc_bit_floor_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
-@@ -743,7 +795,11 @@ extern unsigned long int stdc_bit_ceil_ul (unsigned long int __x)
- __extension__
- extern unsigned long long int stdc_bit_ceil_ull (unsigned long long int __x)
- __THROW __attribute_const__;
--#define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#if __glibc_has_builtin (__builtin_stdc_bit_ceil)
-+# define stdc_bit_ceil(x) (__builtin_stdc_bit_ceil (x))
-+#else
-+# define stdc_bit_ceil(x) ((__typeof (x)) stdc_bit_ceil_ull (x))
-+#endif
-
- #if __GNUC_PREREQ (3, 4) || __glibc_has_builtin (__builtin_clzll)
- static __always_inline uint64_t
diff --git a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch b/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
deleted file mode 100644
index 930d1fd9702c06..00000000000000
--- a/srcpkgs/glibc/patches/312e159626b67fe11f39e83e222cf4348a3962f3.patch
+++ /dev/null
@@ -1,80 +0,0 @@
-From 312e159626b67fe11f39e83e222cf4348a3962f3 Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Thu, 1 Feb 2024 14:29:53 -0300
-Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
-
-For o32 we need to setup a minimal stack frame to allow cprestore
-on __thread_start_clone3 (which instruct the linker to save the
-gp for PIC). Also, there is no guarantee by kABI that $8 will be
-preserved after syscall execution, so we need to save it on the
-provided stack.
-
-Checked on mipsel-linux-gnu.
-
-Reported-by: Khem Raj <raj.khem@gmail.com>
-Tested-by: Khem Raj <raj.khem@gmail.com>
-(cherry picked from commit bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7)
----
- sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
- 1 file changed, 27 insertions(+), 5 deletions(-)
-
-diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
-index e9fec2fa47..481b8ae963 100644
---- a/sysdeps/unix/sysv/linux/mips/clone3.S
-+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
-@@ -37,11 +37,6 @@
-
- .text
- .set nomips16
--#if _MIPS_SIM == _ABIO32
--# define EXTRA_LOCALS 1
--#else
--# define EXTRA_LOCALS 0
--#endif
- #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
- GPOFF= FRAMESZ-(1*SZREG)
- NESTED(__clone3, SZREG, sp)
-@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
- beqz a0, L(error) /* No NULL cl_args pointer. */
- beqz a2, L(error) /* No NULL function pointer. */
-
-+#if _MIPS_SIM == _ABIO32
-+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
-+ there is no need to handle values larger than to 32 bits for o32. */
-+# if __BYTE_ORDER == __BIG_ENDIAN
-+# define CL_STACKPOINTER_OFFSET 44
-+# define CL_STACKSIZE_OFFSET 52
-+# else
-+# define CL_STACKPOINTER_OFFSET 40
-+# define CL_STACKSIZE_OFFSET 48
-+# endif
-+
-+ /* For o32 we need to setup a minimal stack frame to allow cprestore
-+ on __thread_start_clone3. Also there is no guarantee by kABI that
-+ $8 will be preserved after syscall execution (so we need to save it
-+ on the provided stack). */
-+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
-+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
-+ addiu t1, -32 /* Update the stack size. */
-+ addu t2, t1, t0 /* Calculate the thread stack. */
-+ sw a3, 0(t2) /* Save argument pointer. */
-+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
-+#else
- move $8, a3 /* a3 is set to 0/1 for syscall success/error
- while a4/$8 is returned unmodified. */
-+#endif
-
- /* Do the system call, the kernel expects:
- v0: system call number
-@@ -125,7 +143,11 @@ L(thread_start_clone3):
-
- /* Restore the arg for user's function. */
- move t9, a2 /* Function pointer. */
-+#if _MIPS_SIM == _ABIO32
-+ PTR_L a0, 0(sp)
-+#else
- move a0, $8 /* Argument pointer. */
-+#endif
-
- /* Call the user's function. */
- jal t9
diff --git a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch b/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
deleted file mode 100644
index c92485ba4d5431..00000000000000
--- a/srcpkgs/glibc/patches/63295e4fda1f6dab4bf7442706fe303bf283036c.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 63295e4fda1f6dab4bf7442706fe303bf283036c Mon Sep 17 00:00:00 2001
-From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Date: Mon, 5 Feb 2024 16:10:24 +0000
-Subject: [PATCH] arm: Remove wrong ldr from _dl_start_user (BZ 31339)
-
-The commit 49d877a80b29d3002887b084eec6676d9f5fec18 (arm: Remove
-_dl_skip_args usage) removed the _SKIP_ARGS literal, which was
-previously loader to r4 on loader _start. However, the cleanup did not
-remove the following 'ldr r4, [sl, r4]' on _dl_start_user, used to check
-to skip the arguments after ld self-relocations.
-
-In my testing, the kernel initially set r4 to 0, which makes the
-ldr instruction just read the _GLOBAL_OFFSET_TABLE_. However, since r4
-is a callee-saved register; a different runtime might not zero
-initialize it and thus trigger an invalid memory access.
-
-Checked on arm-linux-gnu.
-
-Reported-by: Adrian Ratiu <adrian.ratiu@collabora.com>
-Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
-(cherry picked from commit 1e25112dc0cb2515d27d8d178b1ecce778a9d37a)
----
- sysdeps/arm/dl-machine.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
-index b857bbc868..dd1a0f6b6e 100644
---- a/sysdeps/arm/dl-machine.h
-+++ b/sysdeps/arm/dl-machine.h
-@@ -139,7 +139,6 @@ _start:\n\
- _dl_start_user:\n\
- adr r6, .L_GET_GOT\n\
- add sl, sl, r6\n\
-- ldr r4, [sl, r4]\n\
- @ save the entry point in another register\n\
- mov r6, r0\n\
- @ get the original arg count\n\
diff --git a/srcpkgs/glibc/patches/CVE-2024-2961.patch b/srcpkgs/glibc/patches/CVE-2024-2961.patch
deleted file mode 100644
index a2d909c0a5c839..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-2961.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
-From: Charles Fol <folcharles@gmail.com>
-Date: Thu, 28 Mar 2024 12:25:38 -0300
-Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
- escape sequence (CVE-2024-2961)
-
-ISO-2022-CN-EXT uses escape sequences to indicate character set changes
-(as specified by RFC 1922). While the SOdesignation has the expected
-bounds checks, neither SS2designation nor SS3designation have its;
-allowing a write overflow of 1, 2, or 3 bytes with fixed values:
-'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
-
-Checked on aarch64-linux-gnu.
-
-Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-Tested-by: Carlos O'Donell <carlos@redhat.com>
-
-(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
----
- iconvdata/Makefile | 5 +-
- iconvdata/iso-2022-cn-ext.c | 12 +++
- iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
- 3 files changed, 144 insertions(+), 1 deletion(-)
- create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
-
-diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
-index b34c8a36f4..cce29b1969 100644
---- a/iconvdata/iso-2022-cn-ext.c
-+++ b/iconvdata/iso-2022-cn-ext.c
-@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert (used == CNS11643_2_set); /* XXX */ \
- escseq = "*H"; \
- *outptr++ = ESC; \
-@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
- { \
- const char *escseq; \
- \
-+ if (outptr + 4 > outend) \
-+ { \
-+ result = __GCONV_FULL_OUTPUT; \
-+ break; \
-+ } \
-+ \
- assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
- escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
- *outptr++ = ESC; \
diff --git a/srcpkgs/glibc/patches/CVE-2024-335XX.patch b/srcpkgs/glibc/patches/CVE-2024-335XX.patch
deleted file mode 100644
index 042907f741fb53..00000000000000
--- a/srcpkgs/glibc/patches/CVE-2024-335XX.patch
+++ /dev/null
@@ -1,535 +0,0 @@
-From 1263d583d2e28afb8be53f8d6922f0842036f35d Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:00:45 +0200
-Subject: [PATCH] CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup
- cache (bug 31677)
-
-Using alloca matches what other caches do. The request length is
-bounded by MAXKEYLEN.
-
-Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-(cherry picked from commit 87801a8fd06db1d654eea3e4f7626ff476a9bdaa)
----
- nscd/netgroupcache.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index 0c6e46f15c..f227dc7fa2 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -502,12 +502,13 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- = (struct indataset *) mempool_alloc (db,
- sizeof (*dataset) + req->key_len,
- 1);
-- struct indataset dataset_mem;
- bool cacheable = true;
- if (__glibc_unlikely (dataset == NULL))
- {
- cacheable = false;
-- dataset = &dataset_mem;
-+ /* The alloca is safe because nscd_run_worker verfies that
-+ key_len is not larger than MAXKEYLEN. */
-+ dataset = alloca (sizeof (*dataset) + req->key_len);
- }
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
-From c99f886de54446cd4447db6b44be93dabbdc2f8b Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Avoid null pointer crashes after
- notfound response (bug 31678)
-
-The addgetnetgrentX call in addinnetgrX may have failed to produce
-a result, so the result variable in addinnetgrX can be NULL.
-Use db->negtimeout as the fallback value if there is no result data;
-the timeout is also overwritten below.
-
-Also avoid sending a second not-found response. (The client
-disconnects after receiving the first response, so the data stream did
-not go out of sync even without this fix.) It is still beneficial to
-add the negative response to the mapping, so that the client can get
-it from there in the future, instead of going through the socket.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit b048a482f088e53144d26a61c390bed0210f49f2)
----
- nscd/netgroupcache.c | 11 +++++++----
- 1 file changed, 7 insertions(+), 4 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index c18fe111f3..e22ffa5884 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -511,14 +511,15 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
-
- datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len,
- sizeof (innetgroup_response_header),
-- he == NULL ? 0 : dh->nreloads + 1, result->head.ttl);
-+ he == NULL ? 0 : dh->nreloads + 1,
-+ result == NULL ? db->negtimeout : result->head.ttl);
- /* Set the notfound status and timeout based on the result from
- getnetgrent. */
-- dataset->head.notfound = result->head.notfound;
-+ dataset->head.notfound = result == NULL || result->head.notfound;
- dataset->head.timeout = timeout;
-
- dataset->resp.version = NSCD_VERSION;
-- dataset->resp.found = result->resp.found;
-+ dataset->resp.found = result != NULL && result->resp.found;
- /* Until we find a matching entry the result is 0. */
- dataset->resp.result = 0;
-
-@@ -566,7 +567,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- goto out;
- }
-
-- if (he == NULL)
-+ /* addgetnetgrentX may have already sent a notfound response. Do
-+ not send another one. */
-+ if (he == NULL && dataset->resp.found)
- {
- /* We write the dataset before inserting it to the database
- since while inserting this thread might block and so would
-From 5a508e0b508c8ad53bd0d2fb48fd71b242626341 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33600: nscd: Do not send missing not-found response
- in addgetnetgrentX (bug 31678)
-
-If we failed to add a not-found response to the cache, the dataset
-point can be null, resulting in a null pointer dereference.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit 7835b00dbce53c3c87bbbb1754a95fb5e58187aa)
----
- nscd/netgroupcache.c | 14 ++++++--------
- 1 file changed, 6 insertions(+), 8 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index f227dc7fa2..c18fe111f3 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -147,7 +147,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- /* No such service. */
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- memset (&data, '\0', sizeof (data));
-@@ -348,7 +348,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- {
- cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout,
- &key_copy);
-- goto writeout;
-+ goto maybe_cache_add;
- }
-
- total = buffilled;
-@@ -410,14 +410,12 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- if (he == NULL && fd != -1)
-- {
-- /* We write the dataset before inserting it to the database
-- since while inserting this thread might block and so would
-- unnecessarily let the receiver wait. */
-- writeout:
-+ /* We write the dataset before inserting it to the database since
-+ while inserting this thread might block and so would
-+ unnecessarily let the receiver wait. */
- writeall (fd, &dataset->resp, dataset->head.recsize);
-- }
-
-+ maybe_cache_add:
- if (cacheable)
- {
- /* If necessary, we also propagate the data to disk. */
-From a9a8d3eebb145779a18d90e3966009a1daa63cd8 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-Date: Thu, 25 Apr 2024 15:01:07 +0200
-Subject: [PATCH] CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two
- buffers in addgetnetgrentX (bug 31680)
-
-This avoids potential memory corruption when the underlying NSS
-callback function does not use the buffer space to store all strings
-(e.g., for constant strings).
-
-Instead of custom buffer management, two scratch buffers are used.
-This increases stack usage somewhat.
-
-Scratch buffer allocation failure is handled by return -1
-(an invalid timeout value) instead of terminating the process.
-This fixes bug 31679.
-
-Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
-(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
----
- nscd/netgroupcache.c | 219 ++++++++++++++++++++++++-------------------
- 1 file changed, 121 insertions(+), 98 deletions(-)
-
-diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
-index e22ffa5884..e8fe041846 100644
---- a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -23,6 +23,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/mman.h>
-+#include <scratch_buffer.h>
-
- #include "../nss/netgroup.h"
- #include "nscd.h"
-@@ -65,6 +66,16 @@ struct dataset
- char strdata[0];
- };
-
-+/* Send a notfound response to FD. Always returns -1 to indicate an
-+ ephemeral error. */
-+static time_t
-+send_notfound (int fd)
-+{
-+ if (fd != -1)
-+ TEMP_FAILURE_RETRY (send (fd, ¬found, sizeof (notfound), MSG_NOSIGNAL));
-+ return -1;
-+}
-+
- /* Sends a notfound message and prepares a notfound dataset to write to the
- cache. Returns true if there was enough memory to allocate the dataset and
- returns the dataset in DATASETP, total bytes to write in TOTALP and the
-@@ -83,8 +94,7 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- total = sizeof (notfound);
- timeout = time (NULL) + db->negtimeout;
-
-- if (fd != -1)
-- TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL));
-+ send_notfound (fd);
-
- dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1);
- /* If we cannot permanently store the result, so be it. */
-@@ -109,11 +119,78 @@ do_notfound (struct database_dyn *db, int fd, request_header *req,
- return cacheable;
- }
-
-+struct addgetnetgrentX_scratch
-+{
-+ /* This is the result that the caller should use. It can be NULL,
-+ point into buffer, or it can be in the cache. */
-+ struct dataset *dataset;
-+
-+ struct scratch_buffer buffer;
-+
-+ /* Used internally in addgetnetgrentX as a staging area. */
-+ struct scratch_buffer tmp;
-+
-+ /* Number of bytes in buffer that are actually used. */
-+ size_t buffer_used;
-+};
-+
-+static void
-+addgetnetgrentX_scratch_init (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch->dataset = NULL;
-+ scratch_buffer_init (&scratch->buffer);
-+ scratch_buffer_init (&scratch->tmp);
-+
-+ /* Reserve space for the header. */
-+ scratch->buffer_used = sizeof (struct dataset);
-+ static_assert (sizeof (struct dataset) < sizeof (scratch->tmp.__space),
-+ "initial buffer space");
-+ memset (scratch->tmp.data, 0, sizeof (struct dataset));
-+}
-+
-+static void
-+addgetnetgrentX_scratch_free (struct addgetnetgrentX_scratch *scratch)
-+{
-+ scratch_buffer_free (&scratch->buffer);
-+ scratch_buffer_free (&scratch->tmp);
-+}
-+
-+/* Copy LENGTH bytes from S into SCRATCH. Returns NULL if SCRATCH
-+ could not be resized, otherwise a pointer to the copy. */
-+static char *
-+addgetnetgrentX_append_n (struct addgetnetgrentX_scratch *scratch,
-+ const char *s, size_t length)
-+{
-+ while (true)
-+ {
-+ size_t remaining = scratch->buffer.length - scratch->buffer_used;
-+ if (remaining >= length)
-+ break;
-+ if (!scratch_buffer_grow_preserve (&scratch->buffer))
-+ return NULL;
-+ }
-+ char *copy = scratch->buffer.data + scratch->buffer_used;
-+ memcpy (copy, s, length);
-+ scratch->buffer_used += length;
-+ return copy;
-+}
-+
-+/* Copy S into SCRATCH, including its null terminator. Returns false
-+ if SCRATCH could not be resized. */
-+static bool
-+addgetnetgrentX_append (struct addgetnetgrentX_scratch *scratch, const char *s)
-+{
-+ if (s == NULL)
-+ s = "";
-+ return addgetnetgrentX_append_n (scratch, s, strlen (s) + 1) != NULL;
-+}
-+
-+/* Caller must initialize and free *SCRATCH. If the return value is
-+ negative, this function has sent a notfound response. */
- static time_t
- addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
-- struct datahead *dh, struct dataset **resultp,
-- void **tofreep)
-+ struct datahead *dh, struct addgetnetgrentX_scratch *scratch)
- {
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -132,14 +209,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
-
- char *key_copy = NULL;
- struct __netgrent data;
-- size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len);
-- size_t buffilled = sizeof (*dataset);
-- char *buffer = NULL;
- size_t nentries = 0;
- size_t group_len = strlen (key) + 1;
- struct name_list *first_needed
- = alloca (sizeof (struct name_list) + group_len);
-- *tofreep = NULL;
-
- if (netgroup_database == NULL
- && !__nss_database_get (nss_database_netgroup, &netgroup_database))
-@@ -151,8 +224,6 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- memset (&data, '\0', sizeof (data));
-- buffer = xmalloc (buflen);
-- *tofreep = buffer;
- first_needed->next = first_needed;
- memcpy (first_needed->name, key, group_len);
- data.needed_groups = first_needed;
-@@ -195,8 +266,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- while (1)
- {
- int e;
-- status = getfct.f (&data, buffer + buffilled,
-- buflen - buffilled - req->key_len, &e);
-+ status = getfct.f (&data, scratch->tmp.data,
-+ scratch->tmp.length, &e);
- if (status == NSS_STATUS_SUCCESS)
- {
- if (data.type == triple_val)
-@@ -204,68 +275,10 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- const char *nhost = data.val.triple.host;
- const char *nuser = data.val.triple.user;
- const char *ndomain = data.val.triple.domain;
--
-- size_t hostlen = strlen (nhost ?: "") + 1;
-- size_t userlen = strlen (nuser ?: "") + 1;
-- size_t domainlen = strlen (ndomain ?: "") + 1;
--
-- if (nhost == NULL || nuser == NULL || ndomain == NULL
-- || nhost > nuser || nuser > ndomain)
-- {
-- const char *last = nhost;
-- if (last == NULL
-- || (nuser != NULL && nuser > last))
-- last = nuser;
-- if (last == NULL
-- || (ndomain != NULL && ndomain > last))
-- last = ndomain;
--
-- size_t bufused
-- = (last == NULL
-- ? buffilled
-- : last + strlen (last) + 1 - buffer);
--
-- /* We have to make temporary copies. */
-- size_t needed = hostlen + userlen + domainlen;
--
-- if (buflen - req->key_len - bufused < needed)
-- {
-- buflen += MAX (buflen, 2 * needed);
-- /* Save offset in the old buffer. We don't
-- bother with the NULL check here since
-- we'll do that later anyway. */
-- size_t nhostdiff = nhost - buffer;
-- size_t nuserdiff = nuser - buffer;
-- size_t ndomaindiff = ndomain - buffer;
--
-- char *newbuf = xrealloc (buffer, buflen);
-- /* Fix up the triplet pointers into the new
-- buffer. */
-- nhost = (nhost ? newbuf + nhostdiff
-- : NULL);
-- nuser = (nuser ? newbuf + nuserdiff
-- : NULL);
-- ndomain = (ndomain ? newbuf + ndomaindiff
-- : NULL);
-- *tofreep = buffer = newbuf;
-- }
--
-- nhost = memcpy (buffer + bufused,
-- nhost ?: "", hostlen);
-- nuser = memcpy ((char *) nhost + hostlen,
-- nuser ?: "", userlen);
-- ndomain = memcpy ((char *) nuser + userlen,
-- ndomain ?: "", domainlen);
-- }
--
-- char *wp = buffer + buffilled;
-- wp = memmove (wp, nhost ?: "", hostlen);
-- wp += hostlen;
-- wp = memmove (wp, nuser ?: "", userlen);
-- wp += userlen;
-- wp = memmove (wp, ndomain ?: "", domainlen);
-- wp += domainlen;
-- buffilled = wp - buffer;
-+ if (!(addgetnetgrentX_append (scratch, nhost)
-+ && addgetnetgrentX_append (scratch, nuser)
-+ && addgetnetgrentX_append (scratch, ndomain)))
-+ return send_notfound (fd);
- ++nentries;
- }
- else
-@@ -317,8 +330,8 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
- else if (status == NSS_STATUS_TRYAGAIN && e == ERANGE)
- {
-- buflen *= 2;
-- *tofreep = buffer = xrealloc (buffer, buflen);
-+ if (!scratch_buffer_grow (&scratch->tmp))
-+ return send_notfound (fd);
- }
- else if (status == NSS_STATUS_RETURN
- || status == NSS_STATUS_NOTFOUND
-@@ -351,10 +364,17 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- goto maybe_cache_add;
- }
-
-- total = buffilled;
-+ /* Capture the result size without the key appended. */
-+ total = scratch->buffer_used;
-+
-+ /* Make a copy of the key. The scratch buffer must not move after
-+ this point. */
-+ key_copy = addgetnetgrentX_append_n (scratch, key, req->key_len);
-+ if (key_copy == NULL)
-+ return send_notfound (fd);
-
- /* Fill in the dataset. */
-- dataset = (struct dataset *) buffer;
-+ dataset = scratch->buffer.data;
- timeout = datahead_init_pos (&dataset->head, total + req->key_len,
- total - offsetof (struct dataset, resp),
- he == NULL ? 0 : dh->nreloads + 1,
-@@ -363,11 +383,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- dataset->resp.version = NSCD_VERSION;
- dataset->resp.found = 1;
- dataset->resp.nresults = nentries;
-- dataset->resp.result_len = buffilled - sizeof (*dataset);
--
-- assert (buflen - buffilled >= req->key_len);
-- key_copy = memcpy (buffer + buffilled, key, req->key_len);
-- buffilled += req->key_len;
-+ dataset->resp.result_len = total - sizeof (*dataset);
-
- /* Now we can determine whether on refill we have to create a new
- record or not. */
-@@ -398,7 +414,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- if (__glibc_likely (newp != NULL))
- {
- /* Adjust pointer into the memory block. */
-- key_copy = (char *) newp + (key_copy - buffer);
-+ key_copy = (char *) newp + (key_copy - (char *) dataset);
-
- dataset = memcpy (newp, dataset, total + req->key_len);
- cacheable = true;
-@@ -439,7 +455,7 @@ addgetnetgrentX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- *resultp = dataset;
-+ scratch->dataset = dataset;
-
- return timeout;
- }
-@@ -460,6 +476,9 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- if (user != NULL)
- key = strchr (key, '\0') + 1;
- const char *domain = *key++ ? key : NULL;
-+ struct addgetnetgrentX_scratch scratch;
-+
-+ addgetnetgrentX_scratch_init (&scratch);
-
- if (__glibc_unlikely (debug_level > 0))
- {
-@@ -475,12 +494,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- group, group_len,
- db, uid);
- time_t timeout;
-- void *tofree;
- if (result != NULL)
-- {
-- timeout = result->head.timeout;
-- tofree = NULL;
-- }
-+ timeout = result->head.timeout;
- else
- {
- request_header req_get =
-@@ -489,7 +504,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- .key_len = group_len
- };
- timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL,
-- &result, &tofree);
-+ &scratch);
-+ result = scratch.dataset;
-+ if (timeout < 0)
-+ goto out;
- }
-
- struct indataset
-@@ -603,7 +621,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
- }
-
- out:
-- free (tofree);
-+ addgetnetgrentX_scratch_free (&scratch);
- return timeout;
- }
-
-@@ -613,11 +631,12 @@ addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req,
- const char *key, uid_t uid, struct hashentry *he,
- struct datahead *dh)
- {
-- struct dataset *ignore;
-- void *tofree;
-- time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh,
-- &ignore, &tofree);
-- free (tofree);
-+ struct addgetnetgrentX_scratch scratch;
-+ addgetnetgrentX_scratch_init (&scratch);
-+ time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, &scratch);
-+ addgetnetgrentX_scratch_free (&scratch);
-+ if (timeout < 0)
-+ timeout = 0;
- return timeout;
- }
-
-@@ -661,5 +680,9 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
- .key_len = he->len
- };
-
-- return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh);
-+ int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
-+ he, dh);
-+ if (timeout < 0)
-+ timeout = 0;
-+ return timeout;
- }
diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template
index 128704dcd1a85d..b0e35723cc72ac 100644
--- a/srcpkgs/glibc/template
+++ b/srcpkgs/glibc/template
@@ -1,14 +1,14 @@
# Template file for 'glibc'
pkgname=glibc
-version=2.39
-revision=4
+version=2.41
+revision=1
bootstrap=yes
short_desc="GNU C library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause"
homepage="http://www.gnu.org/software/libc"
distfiles="${GNU_SITE}/libc/glibc-${version}.tar.xz"
-checksum=f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
# Do not strip these files, objcopy errors out.
nostrip_files="
XBS5_ILP32_OFFBIG
From 9e298353c0885167c35147f273b3d4fd253e8150 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 11 Nov 2024 17:34:44 -0800
Subject: [PATCH 05/41] musl: add pthread_getname_np
---
.../musl/patches/add-pthread_getname.patch | 55 +++++++++++++++++++
srcpkgs/musl/template | 2 +-
2 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/musl/patches/add-pthread_getname.patch
diff --git a/srcpkgs/musl/patches/add-pthread_getname.patch b/srcpkgs/musl/patches/add-pthread_getname.patch
new file mode 100644
index 00000000000000..5853cfa5c348cd
--- /dev/null
+++ b/srcpkgs/musl/patches/add-pthread_getname.patch
@@ -0,0 +1,55 @@
+From bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=89rico=20Rolim?= <ericonr@disroot.org>
+Date: Tue, 20 Apr 2021 16:15:15 -0300
+Subject: [PATCH] add pthread_getname_np function
+
+based on the pthread_setname_np implementation
+---
+ include/pthread.h | 1 +
+ src/thread/pthread_getname_np.c | 25 +++++++++++++++++++++++++
+ 2 files changed, 26 insertions(+)
+ create mode 100644 src/thread/pthread_getname_np.c
+
+diff --git a/include/pthread.h b/include/pthread.h
+index 0492f26a6..89fd9ff7c 100644
+--- a/include/pthread.h
++++ b/include/pthread.h
+@@ -221,6 +221,7 @@ int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
+ int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
+ int pthread_getattr_np(pthread_t, pthread_attr_t *);
+ int pthread_setname_np(pthread_t, const char *);
++int pthread_getname_np(pthread_t, char *, size_t);
+ int pthread_getattr_default_np(pthread_attr_t *);
+ int pthread_setattr_default_np(const pthread_attr_t *);
+ int pthread_tryjoin_np(pthread_t, void **);
+diff --git a/src/thread/pthread_getname_np.c b/src/thread/pthread_getname_np.c
+new file mode 100644
+index 000000000..48d1a294f
+--- /dev/null
++++ b/src/thread/pthread_getname_np.c
+@@ -0,0 +1,25 @@
++#define _GNU_SOURCE
++#include <fcntl.h>
++#include <unistd.h>
++#include <sys/prctl.h>
++
++#include "pthread_impl.h"
++
++int pthread_getname_np(pthread_t thread, char *name, size_t len)
++{
++ int fd, cs, status = 0;
++ char f[sizeof "/proc/self/task//comm" + 3*sizeof(int)];
++
++ if (len < 16) return ERANGE;
++
++ if (thread == pthread_self())
++ return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0;
++
++ snprintf(f, sizeof f, "/proc/self/task/%d/comm", thread->tid);
++ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
++ if ((fd = open(f, O_RDONLY|O_CLOEXEC)) < 0 || (len = read(fd, name, len)) < 0) status = errno;
++ else name[len-1] = 0; /* remove trailing new line only if successful */
++ if (fd >= 0) close(fd);
++ pthread_setcancelstate(cs, 0);
++ return status;
++}
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 04e22c4fb01166..922d009ad8c36e 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
-revision=23
+revision=24
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
From 3863e8576856a4a61b263384010dc1dad0479be8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Oct 2024 05:05:56 -0700
Subject: [PATCH 06/41] libtool: rebuild for gcc14
---
srcpkgs/libtool/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 5ceea56afe3364..f982fca29130fa 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
# Template file for 'libtool'
pkgname=libtool
version=2.4.7
-revision=7
+revision=8
build_style=gnu-configure
hostmakedepends="texinfo perl automake help2man xz gnulib tar"
short_desc="Generic library support script"
From eeb7edafa5e83e242242547e392e5e27cd6a09c1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:49:18 -0700
Subject: [PATCH 07/41] mk-configure: rebuild for gcc14
---
srcpkgs/mk-configure/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index 70f22b913d56c0..926c2aa40463aa 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
# Template file for 'mk-configure'
pkgname=mk-configure
version=0.40.0
-revision=1
+revision=2
build_style=gnu-makefile
make_cmd=bmake
make_install_args="MANDIR=/usr/share/man"
From ec511246334948b624c7445e6410f125077579ac Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:37:33 -0700
Subject: [PATCH 08/41] gcc-multilib: update to 14.2.1+20250329.
---
.../patches/fix-libiberty_pic.patch | 2 +-
srcpkgs/gcc-multilib/template | 62 +++++++++++--------
2 files changed, 37 insertions(+), 27 deletions(-)
diff --git a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
index f43dd62f15d8d3..ad7173e5caaad9 100644
--- a/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
+++ b/srcpkgs/gcc-multilib/patches/fix-libiberty_pic.patch
@@ -8,5 +8,5 @@
- $(HDEFINES) @ac_libiberty_warn_cflags@ -D_GNU_SOURCE \
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -fPIC -I. -I$(INCDIR) \
+ $(HDEFINES) @ac_libiberty_warn_cflags@ -D_DEFAULT_SOURCE \
- @CET_HOST_FLAGS@
+ @CET_HOST_FLAGS@ @HWCAP_CFLAGS@
diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 6af5541e1db5cd..a3f737567de2dd 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,32 +3,41 @@ archs="x86_64"
_triplet="x86_64-unknown-linux-gnu"
pkgname=gcc-multilib
-version=13.2.0
+version=14.2.1+20250329
revision=1
-_majorver="${version%.*}"
+_patchver="${version%+*}"
+_minorver="${version%.*}"
+_majorver="${_minorver%.*}"
+hostmakedepends="perl flex tar"
+makedepends="zlib-devel libzstd-devel isl-devel libmpc-devel gmp-devel mpfr-devel
+ glibc-32bit glibc-devel-32bit"
+depends="
+ gcc>=${_minorver}
+ libgcc-32bit>=${_minorver}
+ libgomp-devel-32bit>=${_minorver}
+ libitm-devel-32bit>=${_minorver}
+ libsanitizer-devel-32bit>=${_minorver}
+ libatomic-devel-32bit>=${_minorver}
+ libvtv-devel-32bit>=${_minorver}
+ zlib-32bit glibc-devel-32bit"
short_desc="GNU Compiler Collection (multilib files)"
maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
-
-hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
- glibc-32bit glibc-devel-32bit"
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_majorver}-${version#*+}/gcc-${_majorver}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+checksum=973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
-depends="
- gcc>=${_majorver}
- libgcc-32bit>=${_majorver}
- libgomp-devel-32bit>=${_majorver}
- libitm-devel-32bit>=${_majorver}
- libsanitizer-devel-32bit>=${_majorver}
- libatomic-devel-32bit>=${_majorver}
- libvtv-devel-32bit>=${_majorver}
- zlib-32bit
- glibc-devel-32bit"
replaces="libmpx-devel-32bit>=0 libssp-32bit>=0 libssp-devel-32bit>=0"
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
+
do_configure() {
ldconfig &>/dev/null
@@ -69,6 +78,7 @@ do_configure() {
do_build() {
make ${makejobs}
}
+
do_install() {
local _pc_triplet=x86_64-pc-linux-gnu
# Install to a tempdir and then only copy relevant files.
@@ -77,19 +87,19 @@ do_install() {
# Make version a symlink of major version to make all versions
# from the same series work automagically.
- vmkdir usr/include/c++/${_majorver}/${_triplet}
- vmkdir usr/lib/gcc/${_triplet}/${_majorver}
+ vmkdir usr/include/c++/${_minorver}/${_triplet}
+ vmkdir usr/lib/gcc/${_triplet}/${_minorver}
- cp -a ${wrksrc}/${pkgname}-build/usr/lib/gcc/${_pc_triplet}/${version}/32 \
- ${DESTDIR}/usr/lib/gcc/${_triplet}/${_majorver}/
- cp -a ${wrksrc}/${pkgname}-build/usr/include/c++/${version}/${_pc_triplet}/32 \
- ${DESTDIR}/usr/include/c++/${_majorver}/${_triplet}
+ cp -a ${wrksrc}/${pkgname}-build/usr/lib/gcc/${_pc_triplet}/${_patchver}/32 \
+ ${DESTDIR}/usr/lib/gcc/${_triplet}/${_minorver}/
+ cp -a ${wrksrc}/${pkgname}-build/usr/include/c++/${_patchver}/${_pc_triplet}/32 \
+ ${DESTDIR}/usr/include/c++/${_minorver}/${_triplet}
- vinstall ${wrksrc}/host-${_pc_triplet}/gcc/specs 644 usr/lib/gcc/${_triplet}/${_majorver}
+ vinstall ${wrksrc}/host-${_pc_triplet}/gcc/specs 644 usr/lib/gcc/${_triplet}/${_minorver}
}
gcc-objc-multilib_package() {
- depends="gcc-multilib>=${_majorver} gcc-objc>=${_majorver} libobjc-devel-32bit>=${_majorver}"
+ depends="gcc-multilib>=${_minorver} gcc-objc>=${_minorver} libobjc-devel-32bit>=${_minorver}"
short_desc="GNU Objective-C compiler (multilib files)"
build_style=meta
}
From 7f3497988f9d5a9116f0f9ef127ecffee18dc8f0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 13:42:23 -0700
Subject: [PATCH 09/41] libgccjit: update to 14.2.1+20250329.
---
srcpkgs/libgccjit/template | 44 +++++++++++++-------------------------
1 file changed, 15 insertions(+), 29 deletions(-)
diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index e130b534614960..78de3d222d4433 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,43 +3,29 @@
# which use the version number.
pkgname=libgccjit
-version=13.2.0
+version=14.2.1+20250329
revision=1
-_gmp_version=6.3.0
-_mpfr_version=4.2.0
-_mpc_version=1.3.1
-_isl_version=0.24
-create_wrksrc=yes
+hostmakedepends="tar texinfo perl flex"
+makedepends="zlib-devel libzstd-devel isl-devel libmpc-devel gmp-devel mpfr-devel"
+depends="gcc"
+checkdepends="dejagnu"
short_desc="Just-In-Time Compilation library for GCC"
maintainer="Lane Biocini <lane@mailbox.org>"
homepage="https://gcc.gnu.org"
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
-# *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
-distfiles="
- ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
- ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
- ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
- ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
- 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
- ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+case "${version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${version%%.*}-${version#*+}/gcc-${version%%.*}-${version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${version}.tar.xz" ;;
+esac
+checksum=973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
nopie=yes
lib32disabled=yes
-makedepends="zlib-devel"
-hostmakedepends="tar texinfo perl flex"
-depends="gcc"
-checkdepends="dejagnu"
-post_extract() {
- mv gcc-*/* .
- mv gmp-${_gmp_version} gmp
- mv mpfr-${_mpfr_version} mpfr
- mv mpc-${_mpc_version} mpc
- mv isl-${_isl_version} isl
-}
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
pre_configure() {
if [ "$XBPS_TARGET_LIBC" = musl ]; then
From 398ac41348cea4d966a561e6d027ec5835b00fc0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 12 Nov 2024 00:24:18 -0800
Subject: [PATCH 10/41] db: fix build with gcc14
---
srcpkgs/db/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/db/template b/srcpkgs/db/template
index d8b139bbe99696..d3a2adc3309b38 100644
--- a/srcpkgs/db/template
+++ b/srcpkgs/db/template
@@ -14,6 +14,8 @@ homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.h
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
+CFLAGS="-fpermissive"
+
post_install() {
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
From 565381825352e45f2c9a30424d3cc9a4ffc07499 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 22:59:26 -0700
Subject: [PATCH 11/41] openjdk7-bootstrap: fix build with gcc14
---
srcpkgs/openjdk7-bootstrap/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/openjdk7-bootstrap/template b/srcpkgs/openjdk7-bootstrap/template
index 03d91bebf4934a..a4e4ff46091b65 100644
--- a/srcpkgs/openjdk7-bootstrap/template
+++ b/srcpkgs/openjdk7-bootstrap/template
@@ -86,7 +86,7 @@ skip_extraction="
shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
nocross=yes
-CFLAGS="-fcommon"
+CFLAGS="-fcommon -fpermissive"
post_extract() {
mv icedtea-*/* .
From e026bdc6ddc33c1ba3b5d754da7540e72a635f1f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 16 Mar 2025 23:00:00 -0700
Subject: [PATCH 12/41] openjdk8: fix build with gcc14
---
.../patches/105_implicit_declaration.patch | 25 +++++++++++++++++++
.../openjdk8/patches/106_int_conversion.patch | 16 ++++++++++++
srcpkgs/openjdk8/template | 2 ++
3 files changed, 43 insertions(+)
create mode 100644 srcpkgs/openjdk8/patches/105_implicit_declaration.patch
create mode 100644 srcpkgs/openjdk8/patches/106_int_conversion.patch
diff --git a/srcpkgs/openjdk8/patches/105_implicit_declaration.patch b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
new file mode 100644
index 00000000000000..7a04c21ec910c3
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/105_implicit_declaration.patch
@@ -0,0 +1,25 @@
+The isnanf BSD extension was deprecated with the
+introduction of isnan in c99 and isn't implemented in musl.
+Use the isnan function instead.
+
+--- a/jdk/src/solaris/native/common/jdk_util_md.h
++++ b/jdk/src/solaris/native/common/jdk_util_md.h
+@@ -37,7 +37,7 @@
+ #define ISNAND(d) isnan(d)
+ #elif defined(__linux__) || defined(_ALLBSD_SOURCE)
+ #include <math.h>
+-#define ISNANF(f) isnanf(f)
++#define ISNANF(f) isnan(f)
+ #define ISNAND(d) isnan(d)
+ #elif defined(_AIX)
+ #include <math.h>
+--- a/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
++++ b/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
+@@ -29,6 +29,7 @@
+ #include "jlong.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <dlfcn.h>
+ #include <errno.h>
diff --git a/srcpkgs/openjdk8/patches/106_int_conversion.patch b/srcpkgs/openjdk8/patches/106_int_conversion.patch
new file mode 100644
index 00000000000000..2c57cb01353072
--- /dev/null
+++ b/srcpkgs/openjdk8/patches/106_int_conversion.patch
@@ -0,0 +1,16 @@
+--- a/jdk/src/share/bin/splashscreen_stubs.c
++++ b/jdk/src/share/bin/splashscreen_stubs.c
+@@ -61,11 +61,11 @@
+ #define INVOKEV(name) _INVOKE(name, ,;)
+
+ int DoSplashLoadMemory(void* pdata, int size) {
+- INVOKE(SplashLoadMemory, NULL)(pdata, size);
++ INVOKE(SplashLoadMemory, 0)(pdata, size);
+ }
+
+ int DoSplashLoadFile(const char* filename) {
+- INVOKE(SplashLoadFile, NULL)(filename);
++ INVOKE(SplashLoadFile, 0)(filename);
+ }
+
+ void DoSplashInit(void) {
diff --git a/srcpkgs/openjdk8/template b/srcpkgs/openjdk8/template
index 3f01bd949417d9..045f78ad363dab 100644
--- a/srcpkgs/openjdk8/template
+++ b/srcpkgs/openjdk8/template
@@ -78,6 +78,8 @@ fi
# enabling ccache segfaults gcc
export CCACHE_DISABLE=1
+CFLAGS="-Wno-incompatible-pointer-types"
+
post_extract() {
chmod +x configure
}
From 576cae399a5d3345cc6b7cdfc869ce8a73872891 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 02:37:27 -0700
Subject: [PATCH 13/41] common/environment/build-style/void-cross.sh: add
distfiles fallback
Try the distfiles mirror in case the gcc snapshot has expired.
---
common/environment/build-style/void-cross.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/common/environment/build-style/void-cross.sh b/common/environment/build-style/void-cross.sh
index 40df98e95e9026..26d586a6cb59a3 100644
--- a/common/environment/build-style/void-cross.sh
+++ b/common/environment/build-style/void-cross.sh
@@ -1,3 +1,9 @@
+# Snapshot tarballs get removed after over a year, we can archive the ones we need in distfiles.
+case "$XBPS_DISTFILES_FALLBACK" in
+ *"repo-default.voidlinux.org/distfiles"*) ;;
+ *) XBPS_DISTFILES_FALLBACK+=" https://repo-default.voidlinux.org/distfiles" ;;
+esac
+
lib32disabled=yes
nopie=yes
From 1ab0d14b9a4e8eda18cdb086109032222d58c00f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 04:06:01 -0700
Subject: [PATCH 14/41] common/build-style/void-cross.sh: fix obtaining gcc
version
---
common/build-style/void-cross.sh | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/common/build-style/void-cross.sh b/common/build-style/void-cross.sh
index d94e90cbb133c4..a92727fbe3c3b7 100644
--- a/common/build-style/void-cross.sh
+++ b/common/build-style/void-cross.sh
@@ -466,6 +466,19 @@ _void_cross_test_ver() {
fi
}
+_void_cross_test_gcc_ver() {
+ local ver basever
+ _void_cross_test_ver gcc
+ ver=$(cat .gcc_version)
+ if [ -d "gcc-${ver}" ] && [ -f "gcc-${ver}/gcc/BASE-VER" ] && [ -f "gcc-${ver}/gcc/DATESTAMP" ]; then
+ basever="$(cat "gcc-${ver}/gcc/BASE-VER")_$(cat "gcc-${ver}/gcc/DATESTAMP")"
+ mv "gcc-${ver}" "gcc-${basever}"
+ echo ${basever} > ${wrksrc}/.gcc_version
+ return
+ fi
+ msg_error "could not determine gcc base version\n"
+}
+
do_build() {
# Verify toolchain versions
cd ${wrksrc}
@@ -483,7 +496,7 @@ do_build() {
_void_cross_test_ver binutils
_void_cross_test_ver linux
- _void_cross_test_ver gcc
+ _void_cross_test_gcc_ver
binutils_ver=$(cat .binutils_version)
linux_ver=$(cat .linux_version)
From dde35b8a74048f52d0bfde77a0bed967483e30f2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 14 Jun 2024 14:09:29 -0700
Subject: [PATCH 15/41] cross-vpkg-dummy: update to 0.41.
---
srcpkgs/cross-vpkg-dummy/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index de06aaa3502a8f..85a4a915c3b184 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,6 +1,6 @@
# Template file for 'cross-vpkg-dummy'
pkgname=cross-vpkg-dummy
-version=0.40
+version=0.41
revision=1
build_style=meta
depends="base-files>=0.126"
@@ -65,8 +65,8 @@ conflicts="
shlib_provides="
libatomic.so.1
libgcc_s.so.1
- libgnat-13.so
- libgnarl-13.so
+ libgnat-14.so
+ libgnarl-14.so
libstdc++.so.6
libgfortran.so.5
libquadmath.so.0"
From 30609161e936f1350f8d67e27a7c1edbea54cfeb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:07 -0700
Subject: [PATCH 16/41] cross-aarch64-linux-gnu: update to gcc 14.2.1+20250329.
---
srcpkgs/cross-aarch64-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 73adbee7e8533b..e454a971cda6b1 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-aarch64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,13 +16,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 5a0f2235d6b990568783b69650eed048d293185f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:07 -0700
Subject: [PATCH 17/41] cross-aarch64-linux-musl: update to gcc
14.2.1+20250329.
---
srcpkgs/cross-aarch64-linux-musl/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index d26cc526b7ebdd..842649abf619f3 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
-_libucontext_version=1.2
+_libucontext_version=1.3.2
pkgname=cross-aarch64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv8-a"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -17,17 +17,20 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
- 937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
+ 4faf1838a15d61efe27ddac24fded2c290929eb3a1fefc72f952ae96d5bda006"
nocross=yes
cross_musl_cflags="-O2 -march=armv8-a"
From 9b709c8635f466f31fd1350ba61651b68f99141c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:07 -0700
Subject: [PATCH 18/41] cross-arm-linux-gnueabi: update to gcc 14.2.1+20250329.
---
srcpkgs/cross-arm-linux-gnueabi/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index e3cc4a28a3dc5e..47f7d9e54a79d2 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabi
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 240ce9117d724efb7339e3d8448604d9a7d8ecc6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:07 -0700
Subject: [PATCH 19/41] cross-arm-linux-gnueabihf: update to gcc
14.2.1+20250329.
---
srcpkgs/cross-arm-linux-gnueabihf/template | 23 ++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 09de642208a2c8..1f9b6583acc40c 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-arm-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 13598445a591de0b3cc90a3caf314b5983a61c5d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:07 -0700
Subject: [PATCH 20/41] cross-arm-linux-musleabi: update to gcc
14.2.1+20250329.
---
srcpkgs/cross-arm-linux-musleabi/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 6a818a82ba8203..639ab9972b4d9b 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
-_libucontext_version=1.2
+_libucontext_version=1.3.2
pkgname=cross-arm-linux-musleabi
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv5te --with-float=soft
--enable-autolink-libatomic"
@@ -18,17 +18,20 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
- 937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
+ 4faf1838a15d61efe27ddac24fded2c290929eb3a1fefc72f952ae96d5bda006"
nocross=yes
cross_binutils_configure_args="--without-fp"
From bad98a6b41b125e0c04938a5e44c3e0cea0b39fd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:08 -0700
Subject: [PATCH 21/41] cross-arm-linux-musleabihf: update to gcc
14.2.1+20250329.
---
srcpkgs/cross-arm-linux-musleabihf/template | 23 ++++++++++++---------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index e0d949786c458d..8863e19871e809 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
-_libucontext_version=1.2
+_libucontext_version=1.3.2
pkgname=cross-arm-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-autolink-libatomic"
@@ -18,17 +18,20 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
- 937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
+ 4faf1838a15d61efe27ddac24fded2c290929eb3a1fefc72f952ae96d5bda006"
nocross=yes
cross_musl_cflags="-Os -march=armv6 -mfpu=vfp -mfloat-abi=hard"
From d45b15203e784be8db5ee9cf53d958e223e28ec3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:08 -0700
Subject: [PATCH 22/41] cross-armv7l-linux-gnueabihf: update to gcc
14.2.1+20250329.
---
srcpkgs/cross-armv7l-linux-gnueabihf/template | 23 +++++++++++--------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index ceae6971ee484c..ec31ae23e9c493 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-armv7l-linux-gnueabihf
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,13 +16,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 9fc03b79216321116058b75ed649f35cd0c569ad Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:08 -0700
Subject: [PATCH 23/41] cross-armv7l-linux-musleabihf: update to gcc
14.2.1+20250329.
---
.../cross-armv7l-linux-musleabihf/template | 23 +++++++++++--------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 8fe941bd70c24b..79ac4082073638 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
# Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
-_libucontext_version=1.2
+_libucontext_version=1.3.2
pkgname=cross-armv7l-linux-musleabihf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -17,17 +17,20 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
- 937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
+ 4faf1838a15d61efe27ddac24fded2c290929eb3a1fefc72f952ae96d5bda006"
nocross=yes
cross_musl_cflags="-O2 -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard"
From fa974f66aa023d53fb7727c6afb74cb74760ddfb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:08 -0700
Subject: [PATCH 24/41] cross-i686-linux-musl: update to gcc 14.2.1+20250329.
---
srcpkgs/cross-i686-linux-musl/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index cf9f30e7de2152..0b3b3634a5c9b1 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-i686-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
-_libucontext_version=1.2
+_libucontext_version=1.3.2
pkgname=cross-i686-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -16,17 +16,20 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
- 937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
+ 4faf1838a15d61efe27ddac24fded2c290929eb3a1fefc72f952ae96d5bda006"
nocross=yes
# explicitly enable for final gcc, as gfortran does not build without on x86
From 2d304a2390ade4357fa678f9e9c75fc1d0498eb0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:08 -0700
Subject: [PATCH 25/41] cross-i686-pc-linux-gnu: update to gcc 14.2.1+20250329.
---
srcpkgs/cross-i686-pc-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index 30321dad671f0f..2f833619f4e0ef 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-i686-pc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -15,13 +15,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 912c0e9aabf9a8d746ede67e6e32648b65ff699d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:08 -0700
Subject: [PATCH 26/41] cross-mips-linux-musl: update to gcc 14.2.1+20250329.
---
srcpkgs/cross-mips-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 474a27d4b9c8d5..ad39078a14665d 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 9ce8f66b870be9eaa795df034380a7ee5f0d917d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:08 -0700
Subject: [PATCH 27/41] cross-mips-linux-muslhf: update to gcc 14.2.1+20250329.
---
srcpkgs/cross-mips-linux-muslhf/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 35744d9da19b9e..9cc9daccfc8c96 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mips-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="hipperson0 <hipperson0@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 96897797d07733fbca06b2e9a5e2598af8e57d20 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:09 -0700
Subject: [PATCH 28/41] cross-mipsel-linux-musl: update to gcc 14.2.1+20250329.
---
srcpkgs/cross-mipsel-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index f97f246da97698..13b2ea2d5f7fe2 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=soft
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 577f69405855d925dda2cd9b026268dbf4b0a388 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:09 -0700
Subject: [PATCH 29/41] cross-mipsel-linux-muslhf: update to gcc
14.2.1+20250329.
---
srcpkgs/cross-mipsel-linux-muslhf/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index e28f2a2d9d6d49..f6b4612ae14503 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
# Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-mipsel-linux-muslhf
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=mips32r2 --with-float=hard
--with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 606e8fe76b8df7908bad2c695e26c6c46540774b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:09 -0700
Subject: [PATCH 30/41] cross-powerpc-linux-gnu: update to gcc 14.2.1+20250329.
---
srcpkgs/cross-powerpc-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index ec1753414cd5ad..266a43581f9ff4 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Thomas Batten <stenstorpmc@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From edfb60b98f291ef1bf3015406a2c0ec6f8d8396d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:09 -0700
Subject: [PATCH 31/41] cross-powerpc-linux-musl: update to gcc
14.2.1+20250329.
---
srcpkgs/cross-powerpc-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index 52dd7969072993..149c2ddf6ef180 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpc-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Thomas Batten <stenstorpmc@gmail.com>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 12e416d666b7082a4a8be1f1289acb7f515bee5f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:09 -0700
Subject: [PATCH 32/41] cross-powerpc64-linux-gnu: update to gcc
14.2.1+20250329.
---
srcpkgs/cross-powerpc64-linux-gnu/template | 23 ++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index 5ab4acec45fdb6..d9f79787ba51d3 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From b2da65d46ece5632b40fb5a27fc86307a6fff3b1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:09 -0700
Subject: [PATCH 33/41] cross-powerpc64-linux-musl: update to gcc
14.2.1+20250329.
---
srcpkgs/cross-powerpc64-linux-musl/template | 23 ++++++++++++---------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index b67684991e97d2..0f3325cf127a27 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
-_libucontext_version=1.2
+_libucontext_version=1.3.2
pkgname=cross-powerpc64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -19,17 +19,20 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
- 937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
+ 4faf1838a15d61efe27ddac24fded2c290929eb3a1fefc72f952ae96d5bda006"
nocross=yes
cross_binutils_configure_args="--enable-secureplt"
From caef144215228fd56d43aedc6fffeb4ac74b9c76 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:10 -0700
Subject: [PATCH 34/41] cross-powerpc64le-linux-gnu: update to gcc
14.2.1+20250329.
---
srcpkgs/cross-powerpc64le-linux-gnu/template | 23 +++++++++++---------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 1fe9ebf6d47fb6..3d3d3c3a282852 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpc64le-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
--enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From b29e50a96c1b49ce4c8f65ec1df09e583ec4e4b2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:10 -0700
Subject: [PATCH 35/41] cross-powerpc64le-linux-musl: update to gcc
14.2.1+20250329.
---
srcpkgs/cross-powerpc64le-linux-musl/template | 23 +++++++++++--------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index e5b1c54cd4330f..c4fa12a5bdc86f 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
-_libucontext_version=1.2
+_libucontext_version=1.3.2
pkgname=cross-powerpc64le-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -19,17 +19,20 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
- 937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
+ 4faf1838a15d61efe27ddac24fded2c290929eb3a1fefc72f952ae96d5bda006"
nocross=yes
cross_binutils_configure_args="--enable-secureplt"
From e60b84ab8375a90eb37e83ca42b4b014248ea04c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:10 -0700
Subject: [PATCH 36/41] cross-powerpcle-linux-gnu: update to gcc
14.2.1+20250329.
---
srcpkgs/cross-powerpcle-linux-gnu/template | 25 ++++++++++++----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 3a0cd0d6bb4b4d..0d370d098dcfbc 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-powerpcle-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--enable-autolink-libatomic"
@@ -17,14 +17,17 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
@@ -37,7 +40,7 @@ if [ "$XBPS_TARGET_MACHINE" = "ppcle" ]; then
broken="Can't build crosstoolchain to itself"
fi
-broken="glibc uses big-endian specific instructions on 32-bit powerpc"
+broken="glibc uses big-endian specific instructions (stmw and lmw) in 32-bit powerpc clone.S"
cross-powerpcle-linux-gnu-libc_package() {
short_desc+=" - glibc files"
From ee15d0f6bd7ac59468922f78dfee33d2921881dd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:10 -0700
Subject: [PATCH 37/41] cross-powerpcle-linux-musl: update to gcc
14.2.1+20250329.
---
srcpkgs/cross-powerpcle-linux-musl/template | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index bb1af3ab475d1e..80428654415ad2 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
# Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
pkgname=cross-powerpcle-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--enable-secureplt --disable-vtable-verify
--disable-decimal-float --enable-autolink-libatomic"
@@ -17,13 +17,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From 09eee16b2ab96c5f978209f010a52174c0f315c9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:10 -0700
Subject: [PATCH 38/41] cross-riscv64-linux-gnu: update to gcc 14.2.1+20250329.
---
srcpkgs/cross-riscv64-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5d56ce853d9606..5b69408d812c0b 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-riscv64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -16,13 +16,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From cefdda3796e6de6d3d12f819c72a264256d5f9e5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:10 -0700
Subject: [PATCH 39/41] cross-riscv64-linux-musl: update to gcc
14.2.1+20250329.
---
srcpkgs/cross-riscv64-linux-musl/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index 157e2eeb5e5b53..540207aed21781 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
-_libucontext_version=1.2
+_libucontext_version=1.3.2
pkgname=cross-riscv64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -17,17 +17,20 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
- 937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
+ 4faf1838a15d61efe27ddac24fded2c290929eb3a1fefc72f952ae96d5bda006"
nocross=yes
cross_musl_cflags="-O0"
From 51a4956130d1ae824e36db9a5e4763a21ffbb9cd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:10 -0700
Subject: [PATCH 40/41] cross-x86_64-linux-gnu: update to gcc 14.2.1+20250329.
---
srcpkgs/cross-x86_64-linux-gnu/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 8cca832896c4d4..325bf041e44f21 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
# Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.41
-_gcc_version=13.2.0
-_glibc_version=2.39
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
+_glibc_version=2.41
_linux_version=6.1
pkgname=cross-x86_64-linux-gnu
-version=0.36
-revision=2
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -15,13 +15,16 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://www.voidlinux.org/"
-distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
-distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
- f77bd47cf8170c57365ae7bf86696c118adb3b120d3259c64c502d3dc1e2d926
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
+ a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
nocross=yes
From d220858376ae00faf711c9be5d02fde4ce194e45 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sun, 6 Apr 2025 19:54:11 -0700
Subject: [PATCH 41/41] cross-x86_64-linux-musl: update to gcc 14.2.1+20250329.
---
srcpkgs/cross-x86_64-linux-musl/template | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 9f294f6dc78405..fb55c48cef3805 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
# Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.41
-_gcc_version=13.2.0
+_binutils_version=2.44
+_gcc_version=14.2.1+20250329
_musl_version=1.1.24
_linux_version=6.1
-_libucontext_version=1.2
+_libucontext_version=1.3.2
pkgname=cross-x86_64-linux-musl
-version=0.36
-revision=3
+version=0.37
+revision=1
build_style=void-cross
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -16,17 +16,20 @@ short_desc="Void cross toolchain for ${pkgname/cross-}"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later, MIT"
homepage="https://www.voidlinux.org/"
-distfiles="
+case "${_gcc_version}" in
+ *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
+ *) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}.tar.xz" ;;
+esac
+distfiles+="
${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
- ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
- e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+checksum="973ece084337bdcba829fca1ca0f6993e52a60e73ed000d568eae4c11cab6bd2
+ ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
- 937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3"
+ 4faf1838a15d61efe27ddac24fded2c290929eb3a1fefc72f952ae96d5bda006"
nocross=yes
# explicitly enable for final gcc, gfortran does not build without on x86
^ permalink raw reply [flat|nested] 65+ messages in thread
* Re: [PR PATCH] [Updated] gcc: update to 14.2.1+20250329.
2024-06-14 6:45 [PR PATCH] [WIP] gcc: update to 14.1.0 oreo639
` (49 preceding siblings ...)
2025-04-07 3:02 ` oreo639
@ 2025-04-07 6:18 ` oreo639
2025-04-07 21:00 ` oreo639
` (12 subsequent siblings)
63 siblings, 0 replies; 65+ messages in thread
From: oreo639 @ 2025-04-07 6:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 7675 bytes --]
There is an updated pull request by oreo639 against master on the void-packages repository
https://github.com/oreo639/void-packages gcc14
https://github.com/void-linux/void-packages/pull/50825
gcc: update to 14.2.1+20250329.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
[ci skip]
You can test the ISOs here: https://devspace.voidlinux.org/oreo639/live/gcc14/
Known packages that need to be updated/fixed for gcc 14:
- [x] python3-lxml https://github.com/void-linux/void-packages/pull/53011
- [x] xmlto https://github.com/void-linux/void-packages/pull/53013
- [x] runit https://github.com/void-linux/void-packages/pull/52408
- [x] ntp https://github.com/void-linux/void-packages/commit/30e9e29bb5a348b2c6b7a9b3e29c13d2bc28cfae
- [x] libsasl https://github.com/void-linux/void-packages/commit/6f71c8889cc8a79411ddaca582250e19718f12da
- [x] nvi https://github.com/void-linux/void-packages/commit/a51ebf219534e5420ffc83d5a89b43dc992c9b81
- [x] xbps https://github.com/void-linux/void-packages/commit/73c8cdee1d9b05980cdc0763294cce9372612ba4
- [x] db (done in this pr)
- [x] zsh https://github.com/void-linux/void-packages/commit/1f3cb3a8c07687a61c10870b4360c0ab12e17e9f
- [x] gtk+ https://github.com/void-linux/void-packages/commit/ac57a55a5fda78618aec2ec7bb3c27404834ed04
- [x] gtk+3 https://github.com/void-linux/void-packages/pull/54187
- [x] libaom https://github.com/void-linux/void-packages/commit/fcbb94217389f64fea4c536959983814ebaadae4
- [x] perl-Tk https://github.com/void-linux/void-packages/commit/67aeb9d9b2b077d9b7f25902bbf079c1569a2633
- [x] gnu-efi-libs https://github.com/void-linux/void-packages/commit/92b2642bc8d1871605f824064863149985419010
- [x] syslinux https://github.com/void-linux/void-packages/commit/49af74a1dfb32ba1de556f4491b3870179c80872
- [x] recode https://github.com/void-linux/void-packages/pull/54707
- [x] libcddb https://github.com/void-linux/void-packages/commit/eeae3026d1356e1ac5d0547e19e2742a335ae9ca
- [x] vim https://github.com/void-linux/void-packages/pull/54706
- [x] vmaf https://github.com/void-linux/void-packages/pull/54721
- [x] audit https://github.com/void-linux/void-packages/pull/54722
- [x] aalib https://github.com/void-linux/void-packages/commit/d7769fe6d757a62fbfc0998d5cbde5dec8a7db11
- [x] cppdap (outdated vendored gtest, patch merged upstream) https://github.com/void-linux/void-packages/commit/a2c9d8ac073e9f40d6b7b1bb3df108c0d46481bb
- [x] snappy (outdated vendored gtest, upstream rejected patch stating that downstreams running their tests is not supported and that downstreams should either ship their own tests/patches or just disable them) https://github.com/void-linux/void-packages/commit/4e73161431672d245a8d558f269a74f1ab363cc8
- [x] openjdk7-bootstrap
- [x] openjdk8
- [x] gimp https://github.com/void-linux/void-packages/commit/d173951120b07bc57171f6962c92c0877becd0d8
- [x] xf86-video-nouveau https://github.com/void-linux/void-packages/pull/54720
- [x] libao https://github.com/void-linux/void-packages/commit/b9c6b010a201211c0ffba8a821f0021b9bdaf376
- [x] accountsservice https://github.com/void-linux/void-packages/commit/a1ca8cef0b2e98ba22c4d632685f85c5d0cde4c1
- Done with base-syste/xfce
- [x] zeitgeist
- [x] libgee
- [x] cogl
- [x] clutter-gst3
- [x] telepathy-glib
- [x] xen https://github.com/void-linux/void-packages/pull/54751
- [x] vde2 https://github.com/void-linux/void-packages/pull/54750
- Sagemath Related
- [x] gf2x
- [x] linbox
- [x] givaro
Known packages that need to be updated for gcc 14 and musl (mostly basename):
- [x] elfutils https://github.com/void-linux/void-packages/pull/54566
- [x] iproute https://github.com/void-linux/void-packages/pull/54567
- [x] attr https://github.com/void-linux/void-packages/commit/fa60f8b037a561cbb76b44f04128d10fcbb0ceb0
- [x] kmod https://github.com/void-linux/void-packages/commit/54b0270d96cee0dc4366baefb7ad6d2a6d69aa66
- [x] sane https://github.com/void-linux/void-packages/pull/54614
- [x] mdadm https://github.com/void-linux/void-packages/commit/10694f08c471b2701b3c275540b0c665f67c8b9b
- [x] pulseaudio (broken due to configure checks detecting presence of open64, this is fixed in musl 1.2.x https://github.com/bminor/musl/commit/246f1c811448f37a44b41cd8df8d0ef9736d95f4 https://github.com/bminor/musl/commit/50ab830633134dac99011219f0210ee2759ffbde) https://github.com/void-linux/void-packages/commit/b87ec8f3ca216b6d9cfb4836f236fca13f45c2ab
- [x] gpm
- [x] linux-tools https://github.com/void-linux/void-packages/commit/8c670d7a13a3d6783e23624bda033ef898cafd72
- [x] v4l-utils (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg6 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] ffmpeg (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] gst-plugins-good1 (ioctl declaration) https://github.com/void-linux/void-packages/pull/54708
- [x] libcdio (fseek64, also broken on i686-glibc) https://github.com/void-linux/void-packages/pull/54724
- [x] gcr (getpass) https://github.com/void-linux/void-packages/commit/a40788b2db81ceba7e4a9f75e1c120efd7577600
- [x] libndp https://github.com/void-linux/void-packages/commit/580546374e10b6847a66bfb4d9f27579d5112902
- [x] samba https://github.com/void-linux/void-packages/commit/0900507d38bfc7963d7b6c1a7b04341ae987f2d2
gcc 14 introduces some breaking changes, the most notable of which is the introduction of new C99+ errors. This needs to be tested to catch breakages (note that `-fpermissive` was also added and can be added to packages as needed).
Note that this doesn't just affect applications but also configuration tests, so some test code that might have been considered conformant C99 with gcc 13 may now be be rejected as ill-formed causing misconfiguration.
On the other hand this also results in some packages, (e.g. on musl) now erroring during compile when built without including the correct basename declaration instead of segfaulting later due to implicit pointer truncation. This is good, but ofc, packages need to be checked for this.
https://gcc.gnu.org/gcc-14/changes.html
https://gcc.gnu.org/gcc-14/porting_to.html
Note that distros like Fedora, have already done a lot of work to audit packages for configuration changes and breakages: https://fedoraproject.org/wiki/Changes/PortingToModernC
If you are maintaining a package, feel free to check if there are patches related to gcc14 or the new C99 errors in [Fedora](https://src.fedoraproject.org/) or upstream.
If you are a package maintainer, and have the ability to, please test your packages with gcc 14 to verify no configuration changes occur.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/50825.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc14-50825.patch --]
[-- Type: text/x-diff, Size: 218570 bytes --]
From a9f1e6f4d9ac77ece052161ad74f8722ccf26b9f Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Tue, 28 May 2024 15:31:49 -0400
Subject: [PATCH 01/41] xbps-src: add option to use distfiles mirror as a
fallback
This adds an optional configuration to add a fallback distfiles mirror
The idea is that normally, distfiles should be fetched from the urls in
the template. However, occasionally the urls have rotted, or are simply
down temporairily, in which case the fetch will fail. A workaround to
this has been to use the $XBPS_DISTFILES_MIRROR option, however the
downside to this is that it is always tried first, and 99% of the time isn't
needed.
This adds the $XBPS_DISTFILES_FALLBACK option, which can be set to an
addiontional list of mirrors which will be attempted after both
$XBPS_DISTFILES_MIRROR, and the urls in the template have failed to
fetch the distfiles
Co-authored-by: oreo639 <oreo6391@gmail.com>
---
common/hooks/do-fetch/00-distfiles.sh | 15 +++++++++------
xbps-src | 10 +++++++---
2 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/common/hooks/do-fetch/00-distfiles.sh b/common/hooks/do-fetch/00-distfiles.sh
index 1adb86a5167823..2065d5442a3a12 100644
--- a/common/hooks/do-fetch/00-distfiles.sh
+++ b/common/hooks/do-fetch/00-distfiles.sh
@@ -128,11 +128,11 @@ link_cksum() {
}
try_mirrors() {
- local curfile="$1" distfile="$2" cksum="$3" f="$4"
+ local curfile="$1" distfile="$2" cksum="$3" f="$4" mirror_list="$5"
local filesum basefile mirror path scheme good
- [ -z "$XBPS_DISTFILES_MIRROR" ] && return 1
+ [ -z "$mirror_list" ] && return 1
basefile="${f##*/}"
- for mirror in $XBPS_DISTFILES_MIRROR; do
+ for mirror in $mirror_list; do
scheme="file"
if [[ $mirror == *://* ]]; then
scheme="${mirror%%:/*}"
@@ -148,8 +148,8 @@ try_mirrors() {
continue
fi
fi
- if [[ "$mirror" == *voidlinux* ]]; then
- # For distfiles.voidlinux.* append the subdirectory
+ if [[ "$mirror" == *sources.voidlinux.* ]]; then
+ # For sources.voidlinux.* append the subdirectory
mirror="$mirror/$pkgname-$version"
fi
msg_normal "$pkgver: fetching distfile '$curfile' from mirror '$mirror'...\n"
@@ -286,11 +286,14 @@ hook() {
fi
# If distfile does not exist, download it from a mirror location.
- if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}"; then
+ if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}" "$XBPS_DISTFILES_MIRROR"; then
continue
fi
if ! try_urls "$curfile"; then
+ if try_mirrors "$curfile" "$distfile" "${_checksums[$i]}" "${_distfiles[$i]}" "$XBPS_DISTFILES_FALLBACK"; then
+ continue
+ fi
msg_error "$pkgver: failed to fetch '$curfile'.\n"
fi
done
diff --git a/xbps-src b/xbps-src
index c17270b62ee4b5..1ce830c7bf9c18 100755
--- a/xbps-src
+++ b/xbps-src
@@ -343,10 +343,11 @@ read_pkg() {
}
setup_distfiles_mirror() {
+ local mirror_list="$1"
local mirror scheme path
# Scheme file:// mirror locations only work with uchroot
- for mirror in $XBPS_DISTFILES_MIRROR; do
+ for mirror in $mirror_list; do
scheme="file"
if [[ "$mirror" == *://* ]]; then
scheme="${mirror%%://*}"
@@ -696,7 +697,7 @@ export XBPS_SHUTILSDIR XBPS_CROSSPFDIR XBPS_TRIGGERSDIR \
XBPS_LIBEXECDIR XBPS_DISTDIR XBPS_DISTFILES_MIRROR XBPS_ALLOW_RESTRICTED \
XBPS_USE_GIT_COMMIT_DATE XBPS_PKG_COMPTYPE XBPS_REPO_COMPTYPE \
XBPS_BUILDHELPERDIR XBPS_USE_BUILD_MTIME XBPS_BUILD_ENVIRONMENT \
- XBPS_PRESERVE_PKGS XBPS_IGNORE_BROKENNESS
+ XBPS_PRESERVE_PKGS XBPS_IGNORE_BROKENNESS XBPS_DISTFILES_FALLBACK
for i in REPOSITORY DESTDIR BUILDDIR SRCDISTDIR; do
eval val="\$XBPS_$i"
@@ -760,7 +761,10 @@ done
if [ -z "$IN_CHROOT" ]; then
trap 'exit_func' INT TERM
if [ -n "$XBPS_DISTFILES_MIRROR" ]; then
- setup_distfiles_mirror
+ setup_distfiles_mirror "$XBPS_DISTFILES_MIRROR"
+ fi
+ if [ -n "$XBPS_DISTFILES_FALLBACK" ]; then
+ setup_distfiles_mirror "$XBPS_DISTFILES_FALLBACK"
fi
fi
From 0e73a7bd4ead9674a88e9f53a066f4c328752220 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:25:00 -0700
Subject: [PATCH 02/41] binutils: update to 2.44.
---
srcpkgs/binutils/template | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 43a457f864c8f0..024f8e5c634dd7 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
# Template file for 'binutils'
pkgname=binutils
-version=2.41
-revision=3
+version=2.44
+revision=1
bootstrap=yes
-hostmakedepends="pkgconf"
+hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
build_options="all_targets"
desc_option_all_targets="Enable all supported targets"
@@ -73,8 +73,7 @@ do_configure() {
esac
# target archs supported by Void
- # borked: riscv64 (gold doesn't support it)
- void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,x86_64"
+ void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,riscv64,x86_64"
conf+=" --enable-targets=$(echo "$void_targets" | sed -E -e 's/(,|$)/-linux-gnu\1/g'),${extra_targets}"
if [ "$build_option_all_targets" ]; then
@@ -107,7 +106,6 @@ do_configure() {
--enable-threads \
--enable-plugins \
--enable-relro \
- --enable-gold \
--enable-new-dtags \
--enable-deterministic-archives \
--enable-64-bit-bfd \
From 722ecf9441f7337fe71413ef1a0427c11aa007ad Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Thu, 13 Jun 2024 23:30:25 -0700
Subject: [PATCH 03/41] gcc: update to 14.2.1+20250329.
---
common/shlibs | 6 +-
...5980633c502f0486a2e40e96224f49134130.patch | 297 ---------
...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 -----
...9de35fb1b293a4fd586574b1b4b73ddf7880.patch | 60 --
.../patches/fix-pretty-printer-warnings.patch | 125 ----
.../gcc/patches/libstdcxx-tzdb-z-format.patch | 563 ------------------
srcpkgs/gcc/template | 109 ++--
7 files changed, 70 insertions(+), 1232 deletions(-)
delete mode 100644 srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
delete mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
delete mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
delete mode 100644 srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
diff --git a/common/shlibs b/common/shlibs
index bb9191eac42284..e434e6fc159e62 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
libitm.so.1 libitm-4.7.3_1
liblto_plugin.so.0 gcc-4.7.3_1
libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.22 libgo-13.2.0_1
+libgo.so.23 libgo-14.1.0_1
libgccjit.so.0 libgccjit-10.2.1pre1_1
libperl.so.5.40 perl-5.40.1_1
libgmp.so.10 gmp-5.0.1_1
@@ -861,8 +861,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
libquadmath.so.0 libquadmath-4.4.0_1
libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-13.so libada-13.2.0_1
-libgnat-13.so libada-13.2.0_1
+libgnarl-14.so libada-14.1.0_1
+libgnat-14.so libada-14.1.0_1
libsharpyuv.so.0 libsharpyuv-1.3.0_1
libwebp.so.7 libwebp-0.6.0_1
libwebpmux.so.3 libwebp-0.6.0_1
diff --git a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch b/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
deleted file mode 100644
index d64fabeaad1ec9..00000000000000
--- a/srcpkgs/gcc/patches/15345980633c502f0486a2e40e96224f49134130.patch
+++ /dev/null
@@ -1,297 +0,0 @@
-From 15345980633c502f0486a2e40e96224f49134130 Mon Sep 17 00:00:00 2001
-From: Jakub Jelinek <jakub@redhat.com>
-Date: Tue, 19 Sep 2023 09:26:35 +0200
-Subject: [PATCH] libgomp: Handle NULL environ like pointer to NULL pointer
- [PR111413]
-
-clearenv function just sets environ to NULL (after sometimes freeing it),
-rather than setting it to a pointer to NULL, and our code was assuming
-it is always non-NULL.
-
-Fixed thusly, the change seems to be large but actually is just
-+ if (environ)
- for (env = environ; *env != 0; env++)
-plus reindentation. I've also noticed the block after this for loop
-was badly indented (too much) and fixed that too.
-
-No testcase added, as it needs clearenv + dlopen.
-
-2023-09-19 Jakub Jelinek <jakub@redhat.com>
-
- PR libgomp/111413
- * env.c (initialize_env): Don't dereference environ if it is NULL.
- Reindent.
----
- libgomp/env.c | 251 +++++++++++++++++++++++++-------------------------
- 1 file changed, 126 insertions(+), 125 deletions(-)
-
-diff --git a/libgomp/env.c b/libgomp/env.c
-index f24484d7f7074..a21adb3fd4bdb 100644
---- a/libgomp/env.c
-+++ b/libgomp/env.c
-@@ -2224,139 +2224,140 @@ initialize_env (void)
- none = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_NO_SUFFIX);
- initialize_icvs (&none->icvs);
-
-- for (env = environ; *env != 0; env++)
-- {
-- if (!startswith (*env, "OMP_"))
-- continue;
--
-- /* Name of the environment variable without suffix "OMP_". */
-- char *name = *env + sizeof ("OMP_") - 1;
-- for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-- {
-- if (startswith (name, envvars[omp_var].name))
-- {
-- pos = envvars[omp_var].name_len;
-- if (name[pos] == '=')
-- {
-- pos++;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_ALL=")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-- {
-- pos += 5;
-- flag_var_addr
-- = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else if (startswith (&name[pos], "_DEV_")
-- && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-- {
-- pos += 5;
-- if (!get_device_num (*env, &name[pos], &dev_num,
-- &dev_num_len))
-- break;
--
-- pos += dev_num_len + 1;
-- flag_var_addr
-- = add_initial_icv_to_list (dev_num,
-- envvars[omp_var].flag_vars[0],
-- params);
-- }
-- else
-- {
-- gomp_error ("Invalid environment variable in %s", *env);
-- break;
-- }
-- env_val = &name[pos];
-+ if (environ)
-+ for (env = environ; *env != 0; env++)
-+ {
-+ if (!startswith (*env, "OMP_"))
-+ continue;
-
-- if (envvars[omp_var].parse_func (*env, env_val, params))
-- {
-- for (i = 0; i < 3; ++i)
-- if (envvars[omp_var].flag_vars[i])
-- gomp_set_icv_flag (flag_var_addr,
-- envvars[omp_var].flag_vars[i]);
-- else
-+ /* Name of the environment variable without suffix "OMP_". */
-+ char *name = *env + sizeof ("OMP_") - 1;
-+ for (omp_var = 0; omp_var < OMP_VAR_CNT; omp_var++)
-+ {
-+ if (startswith (name, envvars[omp_var].name))
-+ {
-+ pos = envvars[omp_var].name_len;
-+ if (name[pos] == '=')
-+ {
-+ pos++;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_NO_SUFFIX,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_DEV,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_ALL=")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_ALL)
-+ {
-+ pos += 5;
-+ flag_var_addr
-+ = add_initial_icv_to_list (GOMP_DEVICE_NUM_FOR_ALL,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else if (startswith (&name[pos], "_DEV_")
-+ && envvars[omp_var].flag & GOMP_ENV_SUFFIX_DEV_X)
-+ {
-+ pos += 5;
-+ if (!get_device_num (*env, &name[pos], &dev_num,
-+ &dev_num_len))
- break;
-- }
-
-- break;
-- }
-- }
-- }
-+ pos += dev_num_len + 1;
-+ flag_var_addr
-+ = add_initial_icv_to_list (dev_num,
-+ envvars[omp_var].flag_vars[0],
-+ params);
-+ }
-+ else
-+ {
-+ gomp_error ("Invalid environment variable in %s", *env);
-+ break;
-+ }
-+ env_val = &name[pos];
-
-- all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-- for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-- {
-- if (none != NULL
-- && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&none->icvs,
-- host_envvars[omp_var].flag_var, params);
-- else if (all != NULL
-- && gomp_get_icv_flag (all->flags,
-- host_envvars[omp_var].flag_var))
-- get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-- params);
-- else
-- continue;
-+ if (envvars[omp_var].parse_func (*env, env_val, params))
-+ {
-+ for (i = 0; i < 3; ++i)
-+ if (envvars[omp_var].flag_vars[i])
-+ gomp_set_icv_flag (flag_var_addr,
-+ envvars[omp_var].flag_vars[i]);
-+ else
-+ break;
-+ }
-
-- switch (host_envvars[omp_var].type_code)
-- {
-- case PARSE_INT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-- break;
-- case PARSE_BOOL:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-- break;
-- case PARSE_UINT:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned int *) (host_envvars[omp_var].dest[i])
-- = *(unsigned int *) params[i];
-- break;
-- case PARSE_ULONG:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned long *) (host_envvars[omp_var].dest[i])
-- = *(unsigned long *) params[i];
-- break;
-- case PARSE_UCHAR:
-- for (i = 0; i < 3; ++i)
-- if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-- *(unsigned char *) (host_envvars[omp_var].dest[i])
-- = *(unsigned char *) params[i];
-- break;
-- case PARSE_SCHEDULE:
-- *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-- = *(enum gomp_schedule_type *) params[0];
-- *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-- break;
-- case PARSE_BIND:
-- *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-- *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-- *(unsigned long *) (host_envvars[omp_var].dest[2])
-- = *(unsigned long *) params[2];
-- break;
-+ break;
-+ }
- }
- }
-
-+ all = gomp_get_initial_icv_item (GOMP_DEVICE_NUM_FOR_ALL);
-+ for (omp_var = 0; omp_var < OMP_HOST_VAR_CNT; omp_var++)
-+ {
-+ if (none != NULL
-+ && gomp_get_icv_flag (none->flags, host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&none->icvs,
-+ host_envvars[omp_var].flag_var, params);
-+ else if (all != NULL
-+ && gomp_get_icv_flag (all->flags,
-+ host_envvars[omp_var].flag_var))
-+ get_icv_member_addr (&all->icvs, host_envvars[omp_var].flag_var,
-+ params);
-+ else
-+ continue;
-+
-+ switch (host_envvars[omp_var].type_code)
-+ {
-+ case PARSE_INT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(int *) (host_envvars[omp_var].dest[i]) = *(int *) params[i];
-+ break;
-+ case PARSE_BOOL:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(bool *) (host_envvars[omp_var].dest[i]) = *(bool *) params[i];
-+ break;
-+ case PARSE_UINT:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned int *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned int *) params[i];
-+ break;
-+ case PARSE_ULONG:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned long *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned long *) params[i];
-+ break;
-+ case PARSE_UCHAR:
-+ for (i = 0; i < 3; ++i)
-+ if (host_envvars[omp_var].dest[i] != NULL && params[i] != NULL)
-+ *(unsigned char *) (host_envvars[omp_var].dest[i])
-+ = *(unsigned char *) params[i];
-+ break;
-+ case PARSE_SCHEDULE:
-+ *(enum gomp_schedule_type *) (host_envvars[omp_var].dest[0])
-+ = *(enum gomp_schedule_type *) params[0];
-+ *(int *) (host_envvars[omp_var].dest[1]) = *(int *) params[1];
-+ break;
-+ case PARSE_BIND:
-+ *(char *) (host_envvars[omp_var].dest[0]) = *(char *) params[0];
-+ *(char **) (host_envvars[omp_var].dest[1]) = *(char **) params[1];
-+ *(unsigned long *) (host_envvars[omp_var].dest[2])
-+ = *(unsigned long *) params[2];
-+ break;
-+ }
-+ }
-+
- if (((none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_BIND))
- || (all != NULL && gomp_get_icv_flag (all->flags, GOMP_ICV_BIND)))
- && gomp_global_icv.bind_var == omp_proc_bind_false)
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
deleted file mode 100644
index f9dfee06215537..00000000000000
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
-From: Fangrui Song <i@maskray.me>
-Date: Fri, 28 Apr 2023 09:59:17 -0700
-Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
-
-From Florian Weimer's D144073
-
-> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
->
-> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
-
-Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
-newer glibc.
-
-For older glibc, msan will not know that an uninstrumented crypt_r call
-initializes `data`, so there is a risk for false positives. However, with some
-codebase survey, I think crypt_r uses are very few and the call sites typically
-have a `memset(&data, 0, sizeof(data));` anyway.
-
-Fix https://github.com/google/sanitizers/issues/1365
-Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
-
-Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
-
-Differential Revision: https://reviews.llvm.org/D149403
----
- .../sanitizer_common_interceptors.inc | 37 -------------------
- .../sanitizer_platform_interceptors.h | 2 -
- .../sanitizer_platform_limits_posix.cpp | 8 ----
- .../sanitizer_platform_limits_posix.h | 1 -
- .../TestCases/Linux/crypt_r.cpp | 36 ------------------
- .../TestCases/Posix/crypt.cpp | 32 ----------------
- 6 files changed, 116 deletions(-)
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
- delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
-
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
-index b30c91f06cfeb0..490a8b12d8b17d 100644
---- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
-@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
- #define INIT_GETRANDOM
- #endif
-
--#if SANITIZER_INTERCEPT_CRYPT
--INTERCEPTOR(char *, crypt, char *key, char *salt) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt)(key, salt);
-- if (res != nullptr)
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- return res;
--}
--#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
--#else
--#define INIT_CRYPT
--#endif
--
--#if SANITIZER_INTERCEPT_CRYPT_R
--INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
-- void *ctx;
-- COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
-- COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
-- char *res = REAL(crypt_r)(key, salt, data);
-- if (res != nullptr) {
-- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
-- __sanitizer::struct_crypt_data_sz);
-- COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
-- }
-- return res;
--}
--#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
--#else
--#define INIT_CRYPT_R
--#endif
--
- #if SANITIZER_INTERCEPT_GETENTROPY
- INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
- void *ctx;
-@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
- INIT_GETUSERSHELL;
- INIT_SL_INIT;
- INIT_GETRANDOM;
-- INIT_CRYPT;
-- INIT_CRYPT_R;
- INIT_GETENTROPY;
- INIT_QSORT;
- INIT_QSORT_R;
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
-index eb39fabfd59839..c82ab5c2105621 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -569,8 +569,6 @@
- #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
- #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
- #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
--#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
--#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
-
- #define SANITIZER_INTERCEPT_GETRANDOM \
- ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index a04eed7aa5a6e3..6d61d276d77e35 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
- # include "sanitizer_platform_interceptors.h"
- # include "sanitizer_platform_limits_posix.h"
-
--#if SANITIZER_INTERCEPT_CRYPT_R
--#include <crypt.h>
--#endif
--
- namespace __sanitizer {
- unsigned struct_utsname_sz = sizeof(struct utsname);
- unsigned struct_stat_sz = sizeof(struct stat);
-@@ -300,10 +296,6 @@ namespace __sanitizer {
- unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
- #endif // SANITIZER_GLIBC
-
--#if SANITIZER_INTERCEPT_CRYPT_R
-- unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
--#endif
--
- #if SANITIZER_LINUX && !SANITIZER_ANDROID
- unsigned struct_timex_sz = sizeof(struct timex);
- unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
-diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
-index e6f298c26e1fb6..58244c9944a03a 100644
---- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
- extern unsigned struct_mq_attr_sz;
- extern unsigned struct_timex_sz;
- extern unsigned struct_statvfs_sz;
--extern unsigned struct_crypt_data_sz;
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
-
- struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
deleted file mode 100644
index 7338b3dd1ede37..00000000000000
--- a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
-From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
-Date: Wed, 26 Jul 2023 22:36:26 +0530
-Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
-
-gcc/ChangeLog:
- PR tree-optimization/110280
- * match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
- using build_vector_from_val with the element of input operand, and
- mask's type if operand and mask's types don't match.
-
-gcc/testsuite/ChangeLog:
- PR tree-optimization/110280
- * gcc.target/aarch64/sve/pr110280.c: New test.
-
-(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
----
- gcc/match.pd | 9 ++++++++-
- gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
- 2 files changed, 20 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-
-diff --git a/gcc/match.pd b/gcc/match.pd
-index 9118244825054..c3bb4fbc0a7a2 100644
---- a/gcc/match.pd
-+++ b/gcc/match.pd
-@@ -8292,7 +8292,14 @@ and,
-
- (simplify
- (vec_perm vec_same_elem_p@0 @0 @1)
-- @0)
-+ (if (types_match (type, TREE_TYPE (@0)))
-+ @0
-+ (with
-+ {
-+ tree elem = uniform_vector_p (@0);
-+ }
-+ (if (elem)
-+ { build_vector_from_val (type, elem); }))))
-
- /* Push VEC_PERM earlier if that may help FMA perception (PR101895). */
- (simplify
-diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-new file mode 100644
-index 0000000000000..d3279f383629f
---- /dev/null
-+++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
-@@ -0,0 +1,12 @@
-+/* { dg-do compile } */
-+/* { dg-options "-O3 -fdump-tree-optimized" } */
-+
-+#include "arm_sve.h"
-+
-+svuint32_t l()
-+{
-+ _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
-+ return svld1rq_u32(svptrue_b8(), lanes);
-+}
-+
-+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 4eeb69b69b1bbd..00000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
-
- def __init__ (self, typename, val):
- self.typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+ self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
- self.val = val
- self.contained_type = None
- contained_value = None
-@@ -1299,7 +1299,7 @@
- mgrtypes = []
- for s in strings:
- try:
-- x = re.sub("std::string(?!\w)", s, m.group(1))
-+ x = re.sub(r"std::string(?!\w)", s, m.group(1))
- # The following lookup might raise gdb.error if the
- # manager function was never instantiated for 's' in the
- # program, because there will be no such type.
-@@ -1246,7 +1246,7 @@
- def __init__ (self, typename, val):
- valtype = self._recognize (val.type.template_argument(0))
- typename = strip_versioned_namespace(typename)
-- self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+ self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
- payload = val['_M_payload']
- if self.typename.startswith('std::experimental'):
- engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py 2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
- def __call__(self, obj):
- impl_type = obj.dereference().type.fields()[0].type.tag
- # Check for new implementations first:
-- if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+ if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
- tuple_member = obj['_M_t']['_M_t']
-- elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+ elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
- tuple_member = obj['_M_t']
- else:
- return None
-@@ -651,7 +651,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
-
- def __call__(self, obj, index):
- # Check bounds if _elem_type is an array of known bound
-- m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+ m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
- if m and index >= int(m.group(1)):
- raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
- (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
- self.methods = [self._method_dict[m] for m in self._method_dict]
-
- def match(self, class_type, method_name):
-- if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+ if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
- return None
- method = self._method_dict.get(method_name)
- if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch b/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
deleted file mode 100644
index 0deb99ac6a2df2..00000000000000
--- a/srcpkgs/gcc/patches/libstdcxx-tzdb-z-format.patch
+++ /dev/null
@@ -1,563 +0,0 @@
-From 5ceea2ac106d6dd1aa8175670b15a801316cf1c9 Mon Sep 17 00:00:00 2001
-From: Jonathan Wakely <jwakely@redhat.com>
-Date: Tue, 30 Apr 2024 09:52:13 +0100
-Subject: [PATCH] libstdc++: Fix std::chrono::tzdb to work with vanguard format
-
-I found some issues in the std::chrono::tzdb parser by testing the
-tzdata "vanguard" format, which uses new features that aren't enabled in
-the "main" and "rearguard" data formats.
-
-Since 2024a the keyword "minimum" is no longer valid for the FROM and TO
-fields in a Rule line, which means that "m" is now a valid abbreviation
-for "maximum". Previously we expected either "mi" or "ma". For backwards
-compatibility, a FROM field beginning with "mi" is still supported and
-is treated as 1900. The "maximum" keyword is only allowed in TO now,
-because it makes no sense in FROM. To support these changes the
-minmax_year and minmax_year2 classes for parsing FROM and TO are
-replaced with a single years_from_to class that reads both fields.
-
-The vanguard format makes use of %z in Zone FORMAT fields, which caused
-an exception to be thrown from ZoneInfo::set_abbrev because no % or /
-characters were expected when a Zone doesn't use a named Rule. The
-ZoneInfo::to(sys_info&) function now uses format_abbrev_str to replace
-any %z with the current offset. Although format_abbrev_str also checks
-for %s and STD/DST formats, those only make sense when a named Rule is
-in effect, so won't occur when ZoneInfo::to(sys_info&) is used.
-
-Since making this change on trunk, the tzdata-2024b release started
-using %z in the main format, not just vanguard. This makes a backport to
-release branches necessary (see PR 116657).
-
-This change also implements a feature that has always been missing from
-time_zone::_M_get_sys_info: finding the Rule that is active before the
-specified time point, so that we can correctly handle %s in the FORMAT
-for the first new sys_info that gets created. This requires implementing
-a poorly documented feature of zic, to get the LETTERS field from a
-later transition, as described at
-https://mm.icann.org/pipermail/tz/2024-April/058891.html
-In order for this to work we need to be able to distinguish an empty
-letters field (as used by CE%sT where the variable part is either empty
-or "S") from "the letters field is not known for this transition". The
-tzdata file uses "-" for an empty letters field, which libstdc++ was
-previously replacing with "" when the Rule was parsed. Instead, we now
-preserve the "-" in the Rule object, so that "" can be used for the case
-where we don't know the letters (and so need to decide it).
-
-libstdc++-v3/ChangeLog:
-
- * src/c++20/tzdb.cc (minmax_year, minmax_year2): Remove.
- (years_from_to): New class replacing minmax_year and
- minmax_year2.
- (format_abbrev_str, select_std_or_dst_abbrev): Move earlier in
- the file. Handle "-" for letters.
- (ZoneInfo::to): Use format_abbrev_str to expand %z.
- (ZoneInfo::set_abbrev): Remove exception. Change parameter from
- reference to value.
- (operator>>(istream&, Rule&)): Do not clear letters when it
- contains "-".
- (time_zone::_M_get_sys_info): Add missing logic to find the Rule
- in effect before the time point.
- * testsuite/std/time/tzdb/1.cc: Adjust for vanguard format using
- "GMT" as the Zone name, not as a Link to "Etc/GMT".
- * testsuite/std/time/time_zone/sys_info_abbrev.cc: New test.
-
-(cherry picked from commit 0ca8d56f2085715f27ee536c6c344bc47af49cdd)
----
- libstdc++-v3/src/c++20/tzdb.cc | 265 +++++++++++-------
- .../std/time/time_zone/sys_info_abbrev.cc | 106 +++++++
- libstdc++-v3/testsuite/std/time/tzdb/1.cc | 6 +-
- 3 files changed, 274 insertions(+), 103 deletions(-)
- create mode 100644 libstdc++-v3/testsuite/std/time/time_zone/sys_info_abbrev.cc
-
-diff --git a/libstdc++-v3/src/c++20/tzdb.cc b/libstdc++-v3/src/c++20/tzdb.cc
-index e058caf27d89..034e72f02743 100644
---- a/libstdc++-v3/src/c++20/tzdb.cc
-+++ b/libstdc++-v3/src/c++20/tzdb.cc
-@@ -342,51 +342,103 @@ namespace std::chrono
- friend istream& operator>>(istream&, on_day&);
- };
-
-- // Wrapper for chrono::year that reads a year, or one of the keywords
-- // "minimum" or "maximum", or an unambiguous prefix of a keyword.
-- struct minmax_year
-+ // Wrapper for two chrono::year values, which reads the FROM and TO
-+ // fields of a Rule line. The FROM field is a year and TO is a year or
-+ // one of the keywords "maximum" or "only" (or an abbreviation of those).
-+ // For backwards compatibility, the keyword "minimum" is recognized
-+ // for FROM and interpreted as 1900.
-+ struct years_from_to
- {
-- year& y;
-+ year& from;
-+ year& to;
-
-- friend istream& operator>>(istream& in, minmax_year&& y)
-+ friend istream& operator>>(istream& in, years_from_to&& yy)
- {
-- if (ws(in).peek() == 'm') // keywords "minimum" or "maximum"
-+ string s;
-+ auto c = ws(in).peek();
-+ if (c == 'm') [[unlikely]] // keyword "minimum"
- {
-- string s;
-- in >> s; // extract the rest of the word, but only look at s[1]
-- if (s[1] == 'a')
-- y.y = year::max();
-- else if (s[1] == 'i')
-- y.y = year::min();
-- else
-- in.setstate(ios::failbit);
-+ in >> s; // extract the rest of the word
-+ yy.from = year(1900);
-+ }
-+ else if (int num = 0; in >> num) [[likely]]
-+ yy.from = year{num};
-+
-+ c = ws(in).peek();
-+ if (c == 'm') // keyword "maximum"
-+ {
-+ in >> s; // extract the rest of the word
-+ yy.to = year::max();
-+ }
-+ else if (c == 'o') // keyword "only"
-+ {
-+ in >> s; // extract the rest of the word
-+ yy.to = yy.from;
- }
- else if (int num = 0; in >> num)
-- y.y = year{num};
-+ yy.to = year{num};
-+
- return in;
- }
- };
-
-- // As above for minmax_year, but also supports the keyword "only",
-- // meaning that the TO year is the same as the FROM year.
-- struct minmax_year2
-+ bool
-+ select_std_or_dst_abbrev(string& abbrev, minutes save)
- {
-- minmax_year to;
-- year from;
-+ if (size_t pos = abbrev.find('/'); pos != string::npos)
-+ {
-+ // Select one of "STD/DST" for standard or daylight.
-+ if (save == 0min)
-+ abbrev.erase(pos);
-+ else
-+ abbrev.erase(0, pos + 1);
-+ return true;
-+ }
-+ return false;
-+ }
-
-- friend istream& operator>>(istream& in, minmax_year2&& y)
-- {
-- if (ws(in).peek() == 'o') // keyword "only"
-- {
-- string s;
-- in >> s; // extract the whole keyword
-- y.to.y = y.from;
-- }
-- else
-- in >> std::move(y.to);
-- return in;
-- }
-- };
-+ // Set the sys_info::abbrev string by expanding any placeholders.
-+ void
-+ format_abbrev_str(sys_info& info, string_view letters = {})
-+ {
-+ if (size_t pos = info.abbrev.find('%'); pos != string::npos)
-+ {
-+ if (info.abbrev[pos + 1] == 's')
-+ {
-+ // Expand "%s" to the variable part, given by Rule::letters.
-+ if (letters == "-")
-+ info.abbrev.erase(pos, 2);
-+ else
-+ info.abbrev.replace(pos, 2, letters);
-+ }
-+ else if (info.abbrev[pos + 1] == 'z')
-+ {
-+ // Expand "%z" to the UT offset as +/-hh, +/-hhmm, or +/-hhmmss.
-+ hh_mm_ss<seconds> t(info.offset);
-+ string z(1, "+-"[t.is_negative()]);
-+ long val = t.hours().count();
-+ int digits = 2;
-+ if (int m = t.minutes().count())
-+ {
-+ digits = 4;
-+ val *= 100;
-+ val += m;
-+ if (int s = t.seconds().count())
-+ {
-+ digits = 6;
-+ val *= 100;
-+ val += s;
-+ }
-+ }
-+ auto sval = std::to_string(val);
-+ z += string(digits - sval.size(), '0');
-+ z += sval;
-+ info.abbrev.replace(pos, 2, z);
-+ }
-+ }
-+ else
-+ select_std_or_dst_abbrev(info.abbrev, info.save);
-+ }
-
- // A time zone information record.
- // Zone NAME STDOFF RULES FORMAT [UNTIL]
-@@ -462,6 +514,7 @@ namespace std::chrono
- info.offset = offset();
- info.save = minutes(m_save);
- info.abbrev = format();
-+ format_abbrev_str(info); // expand %z
- return true;
- }
-
-@@ -469,12 +522,9 @@ namespace std::chrono
- friend class time_zone;
-
- void
-- set_abbrev(const string& abbrev)
-+ set_abbrev(string abbrev)
- {
-- // In practice, the FORMAT field never needs expanding here.
-- if (abbrev.find_first_of("/%") != abbrev.npos)
-- __throw_runtime_error("std::chrono::time_zone: invalid data");
-- m_buf = abbrev;
-+ m_buf = std::move(abbrev);
- m_pos = 0;
- m_expanded = true;
- }
-@@ -544,9 +594,7 @@ namespace std::chrono
-
- // Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
-
-- in >> quoted(rule.name)
-- >> minmax_year{rule.from}
-- >> minmax_year2{rule.to, rule.from};
-+ in >> quoted(rule.name) >> years_from_to{rule.from, rule.to};
-
- if (char type; in >> type && type != '-')
- in.setstate(ios::failbit);
-@@ -557,7 +605,7 @@ namespace std::chrono
- if (save_time.indicator != at_time::Wall)
- {
- // We don't actually store the save_time.indicator, because we
-- // assume that it's always deducable from the actual offset value.
-+ // assume that it's always deducible from the offset value.
- auto expected = save_time.time == 0s
- ? at_time::Standard
- : at_time::Daylight;
-@@ -567,8 +615,6 @@ namespace std::chrono
- rule.save = save_time.time;
-
- in >> rule.letters;
-- if (rule.letters == "-")
-- rule.letters.clear();
- return in;
- }
-
-@@ -714,58 +760,6 @@ namespace std::chrono
- #endif // TZDB_DISABLED
- };
-
--#ifndef TZDB_DISABLED
-- namespace
-- {
-- bool
-- select_std_or_dst_abbrev(string& abbrev, minutes save)
-- {
-- if (size_t pos = abbrev.find('/'); pos != string::npos)
-- {
-- // Select one of "STD/DST" for standard or daylight.
-- if (save == 0min)
-- abbrev.erase(pos);
-- else
-- abbrev.erase(0, pos + 1);
-- return true;
-- }
-- return false;
-- }
--
-- // Set the sys_info::abbrev string by expanding any placeholders.
-- void
-- format_abbrev_str(sys_info& info, string_view letters = {})
-- {
-- if (size_t pos = info.abbrev.find("%s"); pos != string::npos)
-- {
-- // Expand "%s" to the variable part, given by Rule::letters.
-- info.abbrev.replace(pos, 2, letters);
-- }
-- else if (size_t pos = info.abbrev.find("%z"); pos != string::npos)
-- {
-- // Expand "%z" to the UT offset as +/-hh, +/-hhmm, or +/-hhmmss.
-- hh_mm_ss<seconds> t(info.offset);
-- string z(1, "+-"[t.is_negative()]);
-- long val = t.hours().count();
-- if (minutes m = t.minutes(); m != m.zero())
-- {
-- val *= 100;
-- val += m.count();
-- if (seconds s = t.seconds(); s != s.zero())
-- {
-- val *= 100;
-- val += s.count();
-- }
-- }
-- z += std::to_string(val);
-- info.abbrev.replace(pos, 2, z);
-- }
-- else
-- select_std_or_dst_abbrev(info.abbrev, info.save);
-- }
-- }
--#endif // TZDB_DISABLED
--
- // Implementation of std::chrono::time_zone::get_info(const sys_time<D>&)
- sys_info
- time_zone::_M_get_sys_info(sys_seconds tp) const
-@@ -834,12 +828,72 @@ namespace std::chrono
- info.abbrev = ri.format();
-
- string_view letters;
-- if (i != infos.begin())
-+ if (i != infos.begin() && i[-1].expanded())
-+ letters = i[-1].next_letters();
-+
-+ if (letters.empty())
- {
-- if (i[-1].expanded())
-- letters = i[-1].next_letters();
-- // XXX else need to find Rule active before this time and use it
-- // to know the initial offset, save, and letters.
-+ sys_seconds t = info.begin - seconds(1);
-+ const year_month_day date(chrono::floor<days>(t));
-+
-+ // Try to find a Rule a