diff --git a/common/shlibs b/common/shlibs index a0622f29776363..5341740dee7eca 100644 --- a/common/shlibs +++ b/common/shlibs @@ -19,36 +19,36 @@ libc.so musl1.1-1.1.24_8 armv6l-musl libc.so musl1.1-1.1.24_8 armv7l-musl libc.so musl-1.2.5_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 +libc.so.6 glibc-2.44_1 +libm.so.6 glibc-2.44_1 +libpthread.so.0 glibc-2.44_1 +librt.so.1 glibc-2.44_1 +libdl.so.2 glibc-2.44_1 +ld-linux-x86-64.so.2 glibc-2.44_1 x86_64 +ld-linux.so.2 glibc-2.44_1 i686 +ld-linux.so.3 glibc-2.44_1 armv5tel +ld-linux-aarch64.so.1 glibc-2.44_1 aarch64 +ld-linux-riscv64-lp64d.so.1 glibc-2.44_1 riscv64 +ld64.so.2 glibc-2.44_1 ppc64 +ld.so.1 glibc-2.44_1 mips +ld.so.1 glibc-2.44_1 ppc +ld-linux-armhf.so.3 glibc-2.44_1 +libresolv.so.2 glibc-2.44_1 +libanl.so.1 glibc-2.44_1 +libthread_db.so.1 glibc-2.44_1 +libutil.so.1 glibc-2.44_1 +libnsl.so.1 glibc-2.44_1 +libnss_db.so.2 glibc-2.44_1 +libnss_files.so.2 glibc-2.44_1 +libnss_compat.so.2 glibc-2.44_1 +libnss_dns.so.2 glibc-2.44_1 +libnss_hesiod.so.2 glibc-2.44_1 +libBrokenLocale.so.1 glibc-2.44_1 +libmemusage.so glibc-2.44_1 +libSegFault.so glibc-2.44_1 +libpcprofile.so glibc-2.44_1 +libcidn.so.1 glibc-2.44_1 +libmvec.so.1 glibc-2.44_1 libcrypt.so.2 libxcrypt-4.4.36_1 libcrypt.so.1 libxcrypt-compat-4.4.36_1 libSimGearCore.so.2024.1.3 simgear-2024.1.3_1 @@ -68,10 +68,10 @@ libitm.so.1 libitm-4.7.3_1 libivykis.so.0 ivykis-0.43.2_1 liblto_plugin.so.0 gcc-4.7.3_1 libgcc_s.so.1 libgcc-4.4.0_1 -libgo.so.23 libgo-14.1.0_1 libgccjit.so.0 libgccjit-10.2.1pre1_1 -libgphobos.so.5 libgphobos-14.2.1_1 -libgdruntime.so.5 libgdruntime-14.2.1_1 +libgo.so.25 libgo-16.1.0_1 +libgdruntime.so.7 libgdruntime-16.1.0_1 +libgphobos.so.7 libgphobos-16.1.0_1 libperl.so.5.42 perl-5.42.0_1 libgmp.so.10 gmp-5.0.1_1 libgmpxx.so.4 gmpxx-6.0.0_2 @@ -80,7 +80,7 @@ libmpfr.so.6 mpfr-4.0.0_1 libppl.so.14 ppl-1.2_1 libppl_c.so.4 ppl-0.11_1 libstdc++.so.6 libstdc++-4.4.0_1 -libsframe.so.1 binutils-libs-2.41_1 +libsframe.so.3 binutils-libs-2.46.0_1 libctf-nobfd.so.0 binutils-libs-2.41_1 libctf.so.0 binutils-libs-2.41_1 libncurses.so.6 ncurses-libs-6.0_1 ignore @@ -823,8 +823,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-14.so libada-14.1.0_1 -libgnat-14.so libada-14.1.0_1 +libgnarl-16.so libada-16.1.0_1 +libgnat-16.so libada-16.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 @@ -1379,7 +1379,7 @@ libsilcclient-1.1.so.4 silc-toolkit-1.1.11_1 libsilc-1.1.so.4 silc-toolkit-1.1.11_1 libphorward.so.0 libphorward-0.17_1 libusbip.so.0 libusbip-3.10_1 -libcpupower.so.0 libcpupower-3.10_1 +libcpupower.so.1 libcpupower-4.18_1 librsync.so.2 librsync-1.0.0_1 libserf-1.so.1 serf-1.3.9_13 libmpdclient.so.2 libmpdclient-0.28_1 diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template index aa49ce56c945b7..4ddde029ad0cc0 100644 --- a/srcpkgs/binutils/template +++ b/srcpkgs/binutils/template @@ -1,7 +1,7 @@ # Template file for 'binutils' pkgname=binutils -version=2.44 -revision=2 +version=2.47 +revision=1 bootstrap=yes hostmakedepends="pkgconf tar" makedepends="zlib-devel libzstd-devel" @@ -10,7 +10,7 @@ maintainer="Enno Boland " license="GPL-3.0-or-later" homepage="http://www.gnu.org/software/binutils/" distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz" -checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 +checksum=154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff build_options="all_targets" desc_option_all_targets="Enable all supported targets" @@ -177,7 +177,7 @@ binutils-devel_package() { binutils-libs_package() { short_desc+=" - shared libraries" pkg_install() { - vmove "usr/lib/lib*-${version}.so" + vmove "usr/lib/lib*-${version}.*.so" vmove "usr/lib/*.so.*" } } diff --git a/srcpkgs/bpftrace/template b/srcpkgs/bpftrace/template index db49a6514f2f58..94893ee2afe66c 100644 --- a/srcpkgs/bpftrace/template +++ b/srcpkgs/bpftrace/template @@ -1,7 +1,7 @@ # Template file for 'bpftrace' pkgname=bpftrace version=0.26.1 -revision=1 +revision=2 _llvmver=21 archs="x86_64* aarch64* ppc64*" build_style=cmake diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template index 5df0a5d4787979..ed38727ba13b6e 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.44 -_gcc_version=14.2.1+20250405 -_glibc_version=2.41 -_linux_version=6.14 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 +_glibc_version=2.44 +_linux_version=7.0 pkgname=cross-aarch64-linux-gnu -version=0.37 -revision=3 +version=0.38 +revision=1 build_style=void-cross configure_args="--with-arch=armv8-a" hostmakedepends="texinfo tar gcc-objc gcc-go gcc-gdc flex perl python3 pkg-config" @@ -23,10 +23,10 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 - a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670" +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff + 37f600f2bef3c5e8300147059568b2a2e40a7ad6ccc65ce942556d49429cc667 + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0" nocross=yes cross_glibc_cflags="-O2 -march=armv8-a" diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template index 598ff02070b374..2530c533831c3c 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.44 -_gcc_version=14.2.1+20250405 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 _musl_version=1.2.6 -_linux_version=6.14 -_libucontext_version=1.3.3 +_linux_version=7.0 +_libucontext_version=1.5 pkgname=cross-aarch64-linux-musl -version=0.37 -revision=7 +version=0.38 +revision=1 build_style=void-cross configure_args="--with-arch=armv8-a" hostmakedepends="texinfo tar gcc-objc gcc-go gcc-gdc flex perl python3 pkg-config" @@ -26,11 +26,11 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff d585fd3b613c66151fc3249e8ed44f77020cb5e6c1e635a616d3f9f82460512a - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670 - 06fca63bc00a236ea7e2ce4fe984d7203b1f9ea046f5c8c815d280da4ea281e3" + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0 + b3ca8d7d3e5c926a90ddb691f8a52ccb364069a745304a40c29f3b0d39b80c93" nocross=yes cross_musl_cflags="-O2 -march=armv8-a" diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template index ab82e90dd53f01..b7413762c60a5a 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.44 -_gcc_version=14.2.1+20250405 -_glibc_version=2.41 -_linux_version=6.14 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 +_glibc_version=2.44 +_linux_version=7.0 pkgname=cross-arm-linux-gnueabi -version=0.37 -revision=2 +version=0.38 +revision=1 build_style=void-cross configure_args="--with-arch=armv5te --with-float=soft --enable-autolink-libatomic" @@ -24,10 +24,10 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 - a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670" +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff + 37f600f2bef3c5e8300147059568b2a2e40a7ad6ccc65ce942556d49429cc667 + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0" nocross=yes cross_binutils_configure_args="--without-fp" diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template index a228fedfebb1bf..7469e8450313da 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.44 -_gcc_version=14.2.1+20250405 -_glibc_version=2.41 -_linux_version=6.14 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 +_glibc_version=2.44 +_linux_version=7.0 pkgname=cross-arm-linux-gnueabihf -version=0.37 -revision=2 +version=0.38 +revision=1 build_style=void-cross configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-autolink-libatomic" @@ -24,10 +24,10 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 - a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670" +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff + 37f600f2bef3c5e8300147059568b2a2e40a7ad6ccc65ce942556d49429cc667 + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0" nocross=yes cross_glibc_cflags="-Os -march=armv6 -mfpu=vfp -mfloat-abi=hard" diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template index 8fc9ee76fe7c11..0a32efea89a289 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.44 -_gcc_version=14.2.1+20250405 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 _musl_version=1.1.24 -_linux_version=6.14 -_libucontext_version=1.3.3 +_linux_version=7.0 +_libucontext_version=1.5 pkgname=cross-arm-linux-musleabi -version=0.37 -revision=4 +version=0.38 +revision=1 build_style=void-cross configure_args="--with-arch=armv5te --with-float=soft --enable-autolink-libatomic" @@ -27,11 +27,11 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff 1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670 - 06fca63bc00a236ea7e2ce4fe984d7203b1f9ea046f5c8c815d280da4ea281e3" + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0 + b3ca8d7d3e5c926a90ddb691f8a52ccb364069a745304a40c29f3b0d39b80c93" nocross=yes cross_binutils_configure_args="--without-fp" diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template index 0348a2cfc14a50..dbfef097528ea6 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.44 -_gcc_version=14.2.1+20250405 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 _musl_version=1.1.24 -_linux_version=6.14 -_libucontext_version=1.3.3 +_linux_version=7.0 +_libucontext_version=1.5 pkgname=cross-arm-linux-musleabihf -version=0.37 -revision=6 +version=0.38 +revision=1 build_style=void-cross configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-autolink-libatomic" @@ -27,11 +27,11 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff 1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670 - 06fca63bc00a236ea7e2ce4fe984d7203b1f9ea046f5c8c815d280da4ea281e3" + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0 + b3ca8d7d3e5c926a90ddb691f8a52ccb364069a745304a40c29f3b0d39b80c93" nocross=yes cross_musl_cflags="-Os -march=armv6 -mfpu=vfp -mfloat-abi=hard" diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template index c54e48f96db8a6..c55862f69bac50 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.44 -_gcc_version=14.2.1+20250405 -_glibc_version=2.41 -_linux_version=6.14 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 +_glibc_version=2.44 +_linux_version=7.0 pkgname=cross-armv7l-linux-gnueabihf -version=0.37 -revision=2 +version=0.38 +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 gcc-gdc flex perl python3 pkg-config" @@ -23,10 +23,10 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 - a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670" +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff + 37f600f2bef3c5e8300147059568b2a2e40a7ad6ccc65ce942556d49429cc667 + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0" nocross=yes cross_glibc_cflags="-O2 -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard" diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template index f1fa207e8675f6..58a61457c8177a 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.44 -_gcc_version=14.2.1+20250405 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 _musl_version=1.1.24 -_linux_version=6.14 -_libucontext_version=1.3.3 +_linux_version=7.0 +_libucontext_version=1.5 pkgname=cross-armv7l-linux-musleabihf -version=0.37 -revision=5 +version=0.38 +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 gcc-gdc flex perl python3 pkg-config" @@ -26,11 +26,11 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff 1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670 - 06fca63bc00a236ea7e2ce4fe984d7203b1f9ea046f5c8c815d280da4ea281e3" + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0 + b3ca8d7d3e5c926a90ddb691f8a52ccb364069a745304a40c29f3b0d39b80c93" nocross=yes cross_musl_cflags="-O2 -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard" diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template index e8dd455238fdc8..421a2dd65424e4 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.44 -_gcc_version=14.2.1+20250405 -_musl_version=1.1.24 -_linux_version=6.14 -_libucontext_version=1.3.3 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 +_musl_version=1.2.6 +_linux_version=7.0 +_libucontext_version=1.5 pkgname=cross-i686-linux-musl -version=0.37 -revision=4 +version=0.38 +revision=1 build_style=void-cross hostmakedepends="texinfo tar gcc-objc gcc-go gcc-gdc flex perl python3 pkg-config" makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel @@ -25,11 +25,11 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 - 1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670 - 06fca63bc00a236ea7e2ce4fe984d7203b1f9ea046f5c8c815d280da4ea281e3" +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff + d585fd3b613c66151fc3249e8ed44f77020cb5e6c1e635a616d3f9f82460512a + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0 + b3ca8d7d3e5c926a90ddb691f8a52ccb364069a745304a40c29f3b0d39b80c93" nocross=yes # explicitly enable for final gcc, as gfortran does not build without on x86 diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template index 082d12f4dcc9f8..ef8ad7983f8a1d 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.44 -_gcc_version=14.2.1+20250405 -_glibc_version=2.41 -_linux_version=6.14 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 +_glibc_version=2.44 +_linux_version=7.0 pkgname=cross-i686-pc-linux-gnu -version=0.37 -revision=2 +version=0.38 +revision=1 build_style=void-cross hostmakedepends="texinfo tar gcc-objc gcc-go gcc-gdc flex perl python3 pkg-config" makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel @@ -22,10 +22,10 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 - a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670" +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff + 37f600f2bef3c5e8300147059568b2a2e40a7ad6ccc65ce942556d49429cc667 + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0" nocross=yes # explicitly enable for final gcc, as gfortran does not build without on x86 diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template index 139725f7481081..9e7d34dd1b30f0 100644 --- a/srcpkgs/cross-mips-linux-musl/template +++ b/srcpkgs/cross-mips-linux-musl/template @@ -1,12 +1,12 @@ # Template file for 'cross-mips-linux-musl' -_binutils_version=2.44 -_gcc_version=14.2.1+20250405 -_musl_version=1.1.24 -_linux_version=6.14 -_libucontext_version=1.3.3 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 +_musl_version=1.2.6 +_linux_version=7.0 +_libucontext_version=1.5 pkgname=cross-mips-linux-musl -version=0.37 -revision=4 +version=0.38 +revision=1 build_style=void-cross configure_args="--with-arch=mips32r2 --with-float=soft --with-linker-hash-style=sysv --enable-autolink-libatomic" @@ -27,11 +27,11 @@ distfiles+=" https://musl.libc.org/releases/musl-${_musl_version}.tar.gz https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz" -checksum="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 - 1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3 - 06fca63bc00a236ea7e2ce4fe984d7203b1f9ea046f5c8c815d280da4ea281e3 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670" +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff + d585fd3b613c66151fc3249e8ed44f77020cb5e6c1e635a616d3f9f82460512a + b3ca8d7d3e5c926a90ddb691f8a52ccb364069a745304a40c29f3b0d39b80c93 + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0" nocross=yes cross_gcc_skip_go=yes diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template index 3cd931dffe137b..24e3c2a6802b00 100644 --- a/srcpkgs/cross-mips-linux-muslhf/template +++ b/srcpkgs/cross-mips-linux-muslhf/template @@ -1,12 +1,12 @@ # Template file for 'cross-mips-linux-muslhf' -_binutils_version=2.44 -_gcc_version=14.2.1+20250405 -_musl_version=1.1.24 -_linux_version=6.14 -_libucontext_version=1.3.3 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 +_musl_version=1.2.6 +_linux_version=7.0 +_libucontext_version=1.5 pkgname=cross-mips-linux-muslhf -version=0.37 -revision=4 +version=0.38 +revision=1 build_style=void-cross configure_args="--with-arch=mips32r2 --with-float=hard --with-linker-hash-style=sysv --enable-autolink-libatomic" @@ -27,11 +27,11 @@ distfiles+=" https://musl.libc.org/releases/musl-${_musl_version}.tar.gz https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz" -checksum="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 - 1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3 - 06fca63bc00a236ea7e2ce4fe984d7203b1f9ea046f5c8c815d280da4ea281e3 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670" +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff + d585fd3b613c66151fc3249e8ed44f77020cb5e6c1e635a616d3f9f82460512a + b3ca8d7d3e5c926a90ddb691f8a52ccb364069a745304a40c29f3b0d39b80c93 + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0" nocross=yes cross_gcc_skip_go=yes diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template index ee9d31b9640705..b85394724e5d1e 100644 --- a/srcpkgs/cross-mipsel-linux-musl/template +++ b/srcpkgs/cross-mipsel-linux-musl/template @@ -1,12 +1,12 @@ # Template file for 'cross-mipsel-linux-musl' -_binutils_version=2.44 -_gcc_version=14.2.1+20250405 -_musl_version=1.1.24 -_linux_version=6.14 -_libucontext_version=1.3.3 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 +_musl_version=1.2.6 +_linux_version=7.0 +_libucontext_version=1.5 pkgname=cross-mipsel-linux-musl -version=0.37 -revision=4 +version=0.38 +revision=1 build_style=void-cross configure_args="--with-arch=mips32r2 --with-float=soft --with-linker-hash-style=sysv --enable-autolink-libatomic" @@ -27,11 +27,11 @@ distfiles+=" https://musl.libc.org/releases/musl-${_musl_version}.tar.gz https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz" -checksum="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 - 1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3 - 06fca63bc00a236ea7e2ce4fe984d7203b1f9ea046f5c8c815d280da4ea281e3 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670" +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff + d585fd3b613c66151fc3249e8ed44f77020cb5e6c1e635a616d3f9f82460512a + b3ca8d7d3e5c926a90ddb691f8a52ccb364069a745304a40c29f3b0d39b80c93 + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0" nocross=yes cross_gcc_skip_go=yes diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template index f7c80c580aebb7..b38327d2e0dab8 100644 --- a/srcpkgs/cross-mipsel-linux-muslhf/template +++ b/srcpkgs/cross-mipsel-linux-muslhf/template @@ -1,12 +1,12 @@ # Template file for 'cross-mipsel-linux-muslhf' -_binutils_version=2.44 -_gcc_version=14.2.1+20250405 -_musl_version=1.1.24 -_linux_version=6.14 -_libucontext_version=1.3.3 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 +_musl_version=1.2.6 +_linux_version=7.0 +_libucontext_version=1.5 pkgname=cross-mipsel-linux-muslhf -version=0.37 -revision=4 +version=0.38 +revision=1 build_style=void-cross configure_args="--with-arch=mips32r2 --with-float=hard --with-linker-hash-style=sysv --enable-autolink-libatomic" @@ -27,11 +27,11 @@ distfiles+=" https://musl.libc.org/releases/musl-${_musl_version}.tar.gz https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz" -checksum="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 - 1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3 - 06fca63bc00a236ea7e2ce4fe984d7203b1f9ea046f5c8c815d280da4ea281e3 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670" +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff + d585fd3b613c66151fc3249e8ed44f77020cb5e6c1e635a616d3f9f82460512a + b3ca8d7d3e5c926a90ddb691f8a52ccb364069a745304a40c29f3b0d39b80c93 + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0" nocross=yes cross_gcc_skip_go=yes diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template index 1989f9d95f46f8..a1e48c891d46ec 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.44 -_gcc_version=14.2.1+20250405 -_glibc_version=2.41 -_linux_version=6.14 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 +_glibc_version=2.44 +_linux_version=7.0 pkgname=cross-powerpc-linux-gnu -version=0.37 -revision=2 +version=0.38 +revision=1 build_style=void-cross configure_args="--enable-secureplt --disable-vtable-verify --enable-autolink-libatomic" @@ -24,10 +24,10 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 - a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670" +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff + 37f600f2bef3c5e8300147059568b2a2e40a7ad6ccc65ce942556d49429cc667 + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0" nocross=yes cross_gcc_skip_go=yes diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template index 0289a1eecf4964..53cdbb878e1818 100644 --- a/srcpkgs/cross-powerpc-linux-musl/template +++ b/srcpkgs/cross-powerpc-linux-musl/template @@ -1,12 +1,12 @@ # Template file for 'cross-powerpc-linux-musl' -_binutils_version=2.44 -_gcc_version=14.2.1+20250405 -_musl_version=1.1.24 -_linux_version=6.14 -_libucontext_version=1.3.3 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 +_musl_version=1.2.6 +_linux_version=7.0 +_libucontext_version=1.5 pkgname=cross-powerpc-linux-musl -version=0.37 -revision=4 +version=0.38 +revision=1 build_style=void-cross configure_args="--enable-secureplt --disable-vtable-verify --disable-decimal-float --enable-autolink-libatomic" @@ -27,11 +27,11 @@ distfiles+=" https://musl.libc.org/releases/musl-${_musl_version}.tar.gz https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz" -checksum="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 - 1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3 - 06fca63bc00a236ea7e2ce4fe984d7203b1f9ea046f5c8c815d280da4ea281e3 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670" +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff + d585fd3b613c66151fc3249e8ed44f77020cb5e6c1e635a616d3f9f82460512a + b3ca8d7d3e5c926a90ddb691f8a52ccb364069a745304a40c29f3b0d39b80c93 + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0" nocross=yes cross_gcc_skip_go=yes diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template index 75da3ca29a55a6..a9ec434a5235d8 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.44 -_gcc_version=14.2.1+20250405 -_glibc_version=2.41 -_linux_version=6.14 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 +_glibc_version=2.44 +_linux_version=7.0 pkgname=cross-powerpc64-linux-gnu -version=0.37 -revision=2 +version=0.38 +revision=1 build_style=void-cross configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2 --enable-targets=powerpc-linux --enable-autolink-libatomic" @@ -24,10 +24,10 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 - a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670" +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff + 37f600f2bef3c5e8300147059568b2a2e40a7ad6ccc65ce942556d49429cc667 + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0" nocross=yes cross_binutils_configure_args="--enable-secureplt" diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template index da94ee67b33811..ffb8bfbbe8d466 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.44 -_gcc_version=14.2.1+20250405 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 _musl_version=1.2.6 -_linux_version=6.14 -_libucontext_version=1.3.3 +_linux_version=7.0 +_libucontext_version=1.5 pkgname=cross-powerpc64-linux-musl -version=0.37 -revision=6 +version=0.38 +revision=1 build_style=void-cross configure_args="--enable-secureplt --disable-vtable-verify --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux @@ -28,11 +28,11 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff d585fd3b613c66151fc3249e8ed44f77020cb5e6c1e635a616d3f9f82460512a - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670 - 06fca63bc00a236ea7e2ce4fe984d7203b1f9ea046f5c8c815d280da4ea281e3" + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0 + b3ca8d7d3e5c926a90ddb691f8a52ccb364069a745304a40c29f3b0d39b80c93" nocross=yes cross_binutils_configure_args="--enable-secureplt" diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template index b4b059701cc5d5..f371ab20f6820c 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.44 -_gcc_version=14.2.1+20250405 -_glibc_version=2.41 -_linux_version=6.14 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 +_glibc_version=2.44 +_linux_version=7.0 pkgname=cross-powerpc64le-linux-gnu -version=0.37 -revision=2 +version=0.38 +revision=1 build_style=void-cross configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2 --enable-targets=powerpcle-linux --enable-autolink-libatomic" @@ -24,10 +24,10 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 - a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670" +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff + 37f600f2bef3c5e8300147059568b2a2e40a7ad6ccc65ce942556d49429cc667 + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0" nocross=yes cross_binutils_configure_args="--enable-secureplt" diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template index c9e0cd25a8c95e..f90e9bc96266da 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.44 -_gcc_version=14.2.1+20250405 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 _musl_version=1.2.6 -_linux_version=6.14 -_libucontext_version=1.3.3 +_linux_version=7.0 +_libucontext_version=1.5 pkgname=cross-powerpc64le-linux-musl -version=0.37 -revision=6 +version=0.38 +revision=1 build_style=void-cross configure_args="--enable-secureplt --disable-vtable-verify --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux @@ -28,11 +28,11 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff d585fd3b613c66151fc3249e8ed44f77020cb5e6c1e635a616d3f9f82460512a - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670 - 06fca63bc00a236ea7e2ce4fe984d7203b1f9ea046f5c8c815d280da4ea281e3" + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0 + b3ca8d7d3e5c926a90ddb691f8a52ccb364069a745304a40c29f3b0d39b80c93" nocross=yes cross_binutils_configure_args="--enable-secureplt" diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template index 84e29d0f96541a..d081adf69adbc0 100644 --- a/srcpkgs/cross-powerpcle-linux-gnu/template +++ b/srcpkgs/cross-powerpcle-linux-gnu/template @@ -1,10 +1,10 @@ # Template file for 'cross-powerpcle-linux-gnu' -_binutils_version=2.44 -_gcc_version=14.2.1+20250405 -_glibc_version=2.41 -_linux_version=6.14 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 +_glibc_version=2.44 +_linux_version=7.0 pkgname=cross-powerpcle-linux-gnu -version=0.37 +version=0.38 revision=1 build_style=void-cross configure_args="--enable-secureplt --disable-vtable-verify @@ -25,10 +25,10 @@ distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz" -checksum="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 - a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670" +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff + 37f600f2bef3c5e8300147059568b2a2e40a7ad6ccc65ce942556d49429cc667 + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0" nocross=yes cross_gcc_skip_go=yes diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template index e704441a77e33b..59a29910c2be8e 100644 --- a/srcpkgs/cross-powerpcle-linux-musl/template +++ b/srcpkgs/cross-powerpcle-linux-musl/template @@ -1,12 +1,12 @@ # Template file for 'cross-powerpcle-linux-musl' -_binutils_version=2.44 -_gcc_version=14.2.1+20250405 -_musl_version=1.1.24 -_linux_version=6.14 -_libucontext_version=1.3.3 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 +_musl_version=1.2.6 +_linux_version=7.0 +_libucontext_version=1.5 pkgname=cross-powerpcle-linux-musl -version=0.37 -revision=4 +version=0.38 +revision=1 build_style=void-cross configure_args="--enable-secureplt --disable-vtable-verify --disable-decimal-float --enable-autolink-libatomic" @@ -27,11 +27,11 @@ distfiles+=" https://musl.libc.org/releases/musl-${_musl_version}.tar.gz https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz" -checksum="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 - 1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3 - 06fca63bc00a236ea7e2ce4fe984d7203b1f9ea046f5c8c815d280da4ea281e3 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670" +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff + d585fd3b613c66151fc3249e8ed44f77020cb5e6c1e635a616d3f9f82460512a + b3ca8d7d3e5c926a90ddb691f8a52ccb364069a745304a40c29f3b0d39b80c93 + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0" nocross=yes cross_gcc_skip_go=yes diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template index dc517c1236744a..5c579194628c40 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.44 -_gcc_version=14.2.1+20250405 -_glibc_version=2.41 -_linux_version=6.14 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 +_glibc_version=2.44 +_linux_version=7.0 pkgname=cross-riscv64-linux-gnu -version=0.37 -revision=2 +version=0.38 +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 gcc-gdc flex perl python3 pkg-config" @@ -23,10 +23,10 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 - a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670" +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff + 37f600f2bef3c5e8300147059568b2a2e40a7ad6ccc65ce942556d49429cc667 + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0" nocross=yes cross_glibc_cflags="-O2" diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template index 661358f44c5409..9349a0d6a7f6c5 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.44 -_gcc_version=14.2.1+20250405 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 _musl_version=1.2.6 -_linux_version=6.14 -_libucontext_version=1.3.3 +_linux_version=7.0 +_libucontext_version=1.5 pkgname=cross-riscv64-linux-musl -version=0.37 -revision=6 +version=0.38 +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 gcc-gdc flex perl python3 pkg-config" @@ -26,11 +26,11 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff d585fd3b613c66151fc3249e8ed44f77020cb5e6c1e635a616d3f9f82460512a - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670 - 06fca63bc00a236ea7e2ce4fe984d7203b1f9ea046f5c8c815d280da4ea281e3" + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0 + b3ca8d7d3e5c926a90ddb691f8a52ccb364069a745304a40c29f3b0d39b80c93" nocross=yes cross_musl_cflags="-O0" diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template index 3b128980661bf1..64c81a72258d68 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.43 +version=0.44 revision=1 metapackage=yes depends="base-files>=0.126" @@ -75,13 +75,13 @@ conflicts=" shlib_provides=" libatomic.so.1 libgcc_s.so.1 - libgnat-14.so - libgnarl-14.so + libgnat-16.so + libgnarl-16.so libstdc++.so.6 libgfortran.so.5 libobjc.so.4 - libgphobos.so.5 - libgdruntime.so.5 + libgphobos.so.7 + libgdruntime.so.7 libquadmath.so.0" repository=bootstrap diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template index 1787691874a1be..42feae3572b729 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.44 -_gcc_version=14.2.1+20250405 -_glibc_version=2.41 -_linux_version=6.14 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 +_glibc_version=2.44 +_linux_version=7.0 pkgname=cross-x86_64-linux-gnu -version=0.37 -revision=2 +version=0.38 +revision=1 build_style=void-cross hostmakedepends="texinfo tar gcc-objc gcc-go gcc-gdc flex perl python3 pkg-config" makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel @@ -22,10 +22,10 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 - a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901 - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670" +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff + 37f600f2bef3c5e8300147059568b2a2e40a7ad6ccc65ce942556d49429cc667 + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0" nocross=yes # explicitly enable for final gcc, gfortran does not build without on x86 diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template index 31827469841504..6eeebfbe7f6e48 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.44 -_gcc_version=14.2.1+20250405 +_binutils_version=2.47 +_gcc_version=16.2.1+20260905 _musl_version=1.2.6 -_linux_version=6.14 -_libucontext_version=1.3.3 +_linux_version=7.0 +_libucontext_version=1.5 pkgname=cross-x86_64-linux-musl -version=0.37 -revision=6 +version=0.38 +revision=1 build_style=void-cross hostmakedepends="texinfo tar gcc-objc gcc-go gcc-gdc flex perl python3 pkg-config" makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel @@ -25,11 +25,11 @@ 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="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 - ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237 +checksum="b67c48e720d2708087048881fc284b5836f2c84c0280598d26fe7607a802c7b1 + 154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff d585fd3b613c66151fc3249e8ed44f77020cb5e6c1e635a616d3f9f82460512a - a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670 - 06fca63bc00a236ea7e2ce4fe984d7203b1f9ea046f5c8c815d280da4ea281e3" + bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0 + b3ca8d7d3e5c926a90ddb691f8a52ccb364069a745304a40c29f3b0d39b80c93" nocross=yes # explicitly enable for final gcc, gfortran does not build without on x86 diff --git a/srcpkgs/dtrace-utils/template b/srcpkgs/dtrace-utils/template index 510489d4d7e54b..4819abe65ed62f 100644 --- a/srcpkgs/dtrace-utils/template +++ b/srcpkgs/dtrace-utils/template @@ -1,7 +1,7 @@ # Template file for 'dtrace-utils' pkgname=dtrace-utils version=2.0.7 -revision=1 +revision=2 archs="~*-musl" # ld.so internals, other glibc specifics build_style=gnu-configure hostmakedepends="cross-bpf-binutils cross-bpf-gcc flex libgomp-devel pkg-config diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template index b1c4784d523401..426f4c6538723d 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=14.2.1+20250405 +version=16.1.1+20260502 revision=1 _patchver="${version%+*}" _minorver="${version%.*}" @@ -28,7 +28,7 @@ case "${version}" in *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_majorver}-${version#*+}/gcc-${_majorver}-${version#*+}.tar.xz" ;; *) distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz" ;; esac -checksum=9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 +checksum=d78e2e56ee6f89e40dc742ae0c8a716ad4eb4637bc57bd49f9dec48ce9753283 replaces="libmpx-devel-32bit>=0 libssp-32bit>=0 libssp-devel-32bit>=0" @@ -46,7 +46,11 @@ do_configure() { # hack! some configure tests for header files using "$CPP $CPPFLAGS" sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure - ./configure --prefix=/usr \ + mkdir -p build + cd build + + CONFIG_SHELL=/bin/bash \ + ${wrksrc}/configure --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --libexecdir=/usr/lib \ @@ -76,14 +80,14 @@ do_configure() { } do_build() { - make ${makejobs} + make -C build ${makejobs} } do_install() { local _pc_triplet=x86_64-pc-linux-gnu # Install to a tempdir and then only copy relevant files. cd ${wrksrc} - make DESTDIR=${wrksrc}/${pkgname}-build install + make -C build DESTDIR=${wrksrc}/${pkgname}-build install # Make version a symlink of major version to make all versions # from the same series work automagically. @@ -95,7 +99,7 @@ do_install() { 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}/${_minorver} + vinstall ${wrksrc}/build/gcc/specs 644 usr/lib/gcc/${_triplet}/${_minorver} } gcc-objc-multilib_package() { diff --git a/srcpkgs/gcc/files/libgnarl-musl.patch b/srcpkgs/gcc/files/libgnarl-musl.patch index d8e45cd7105c0f..6acae10714a640 100644 --- a/srcpkgs/gcc/files/libgnarl-musl.patch +++ b/srcpkgs/gcc/files/libgnarl-musl.patch @@ -2,12 +2,32 @@ Source: Alpine Linux Upstream: Unknown Reason: Patch libgnarl to not use function missing from musl. +From 5adfe740c027fb8dc9931053f55f7eae222e6bb4 Mon Sep 17 00:00:00 2001 +From: Ariadne Conill +Date: Fri, 25 Jul 2025 02:09:02 -0700 +Subject: [PATCH] ada: libgnarl: remove use of glibc-specific + pthread_rwlockattr_setkind_np + +musl's thread library does not implement it + +Signed-off-by: Ariadne Conill +--- + gcc/ada/libgnarl/s-osinte__linux.ads | 10 ---------- + gcc/ada/libgnarl/s-taprop__linux.adb | 7 ------- + 2 files changed, 17 deletions(-) + +diff --git a/gcc/ada/libgnarl/s-osinte__linux.ads b/gcc/ada/libgnarl/s-osinte__linux.ads +index 7aeb15da523..5551b701e5a 100644 --- a/gcc/ada/libgnarl/s-osinte__linux.ads +++ b/gcc/ada/libgnarl/s-osinte__linux.ads -@@ -403,12 +403,6 @@ package System.OS_Interface is - PTHREAD_RWLOCK_PREFER_WRITER_NP : constant := 1; - PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP : constant := 2; +@@ -402,16 +402,6 @@ package System.OS_Interface is + (attr : access pthread_rwlockattr_t) return int; + pragma Import (C, pthread_rwlockattr_destroy, "pthread_rwlockattr_destroy"); +- PTHREAD_RWLOCK_PREFER_READER_NP : constant := 0; +- PTHREAD_RWLOCK_PREFER_WRITER_NP : constant := 1; +- PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP : constant := 2; +- - function pthread_rwlockattr_setkind_np - (attr : access pthread_rwlockattr_t; - pref : int) return int; @@ -17,98 +37,16 @@ Reason: Patch libgnarl to not use function missing from musl. function pthread_rwlock_init (mutex : access pthread_rwlock_t; attr : access pthread_rwlockattr_t) return int; -@@ -470,11 +464,6 @@ package System.OS_Interface is - protocol : int) return int; - pragma Import (C, pthread_mutexattr_setprotocol); - -- function pthread_mutexattr_setprioceiling -- (attr : access pthread_mutexattr_t; -- prioceiling : int) return int; -- pragma Import (C, pthread_mutexattr_setprioceiling); -- - type struct_sched_param is record - sched_priority : int; -- scheduling priority - end record; +diff --git a/gcc/ada/libgnarl/s-taprop__linux.adb b/gcc/ada/libgnarl/s-taprop__linux.adb +index 8f4c835baa7..6df36c7d8f4 100644 --- a/gcc/ada/libgnarl/s-taprop__linux.adb +++ b/gcc/ada/libgnarl/s-taprop__linux.adb -@@ -198,9 +198,6 @@ package body System.Task_Primitives.Oper - pragma Import - (C, GNAT_pthread_condattr_setup, "__gnat_pthread_condattr_setup"); - -- function GNAT_has_cap_sys_nice return C.int; -- pragma Import -- (C, GNAT_has_cap_sys_nice, "__gnat_has_cap_sys_nice"); - -- We do not have pragma Linker_Options ("-lcap"); here, because this - -- library is not present on many Linux systems. 'libcap' is the Linux - -- "capabilities" library, called by __gnat_has_cap_sys_nice. -@@ -210,38 +207,6 @@ package body System.Task_Primitives.Oper - -- Convert Ada priority to Linux priority. Priorities are 1 .. 99 on - -- GNU/Linux, so we map 0 .. 98 to 1 .. 99. +@@ -409,16 +409,9 @@ package body System.Task_Primitives.Operations is + Result : C.int; -- function Get_Ceiling_Support return Boolean; -- -- Get the value of the Ceiling_Support constant (see below). -- -- Note well: If this function or related code is modified, it should be -- -- tested by hand, because automated testing doesn't exercise it. -- -- ------------------------- -- -- Get_Ceiling_Support -- -- ------------------------- -- -- function Get_Ceiling_Support return Boolean is -- Ceiling_Support : Boolean := False; -- begin -- if Locking_Policy /= 'C' then -- return False; -- end if; -- -- declare -- function geteuid return Integer; -- pragma Import (C, geteuid, "geteuid"); -- Superuser : constant Boolean := geteuid = 0; -- Has_Cap : constant C.int := GNAT_has_cap_sys_nice; -- pragma Assert (Has_Cap in 0 | 1); -- begin -- Ceiling_Support := Superuser or else Has_Cap = 1; -- end; -- -- return Ceiling_Support; -- end Get_Ceiling_Support; -- -- pragma Warnings (Off, "non-preelaborable call not allowed*"); -- Ceiling_Support : constant Boolean := Get_Ceiling_Support; -- pragma Warnings (On, "non-preelaborable call not allowed*"); - -- True if the locking policy is Ceiling_Locking, and the current process - -- has permission to use this policy. The process has permission if it is - -- running as 'root', or if the capability was set by the setcap command, -@@ -344,7 +309,9 @@ package body System.Task_Primitives.Oper - -- Init_Mutex -- - ---------------- - -+ pragma Warnings (Off, "formal parameter * is not referenced"); - function Init_Mutex (L : RTS_Lock_Ptr; Prio : Any_Priority) return C.int is -+ pragma Warnings (On, "formal parameter * is not referenced"); - Mutex_Attr : aliased pthread_mutexattr_t; - Result, Result_2 : C.int; - -@@ -356,16 +323,7 @@ package body System.Task_Primitives.Oper - return Result; - end if; - -- if Ceiling_Support then -- Result := pthread_mutexattr_setprotocol -- (Mutex_Attr'Access, PTHREAD_PRIO_PROTECT); -- pragma Assert (Result = 0); -- -- Result := pthread_mutexattr_setprioceiling -- (Mutex_Attr'Access, Prio_To_Linux_Prio (Prio)); -- pragma Assert (Result = 0); + begin +- -- Set the rwlock to prefer writer to avoid writers starvation - -- elsif Locking_Policy = 'I' then -+ if Locking_Policy = 'I' then - Result := pthread_mutexattr_setprotocol - (Mutex_Attr'Access, PTHREAD_PRIO_INHERIT); - pragma Assert (Result = 0); -@@ -405,11 +363,6 @@ package body System.Task_Primitives.Oper Result := pthread_rwlockattr_init (RWlock_Attr'Access); pragma Assert (Result = 0); @@ -120,3 +58,5 @@ Reason: Patch libgnarl to not use function missing from musl. Result := pthread_rwlock_init (L.RW'Access, RWlock_Attr'Access); pragma Assert (Result in 0 | ENOMEM); +-- +2.50.1 diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch deleted file mode 100644 index da1f4889828947..00000000000000 --- a/srcpkgs/gcc/patches/libatomic-autolink.patch +++ /dev/null @@ -1,239 +0,0 @@ -Add --enable-autolink-libatomic, to make gcc link -latomic by default. - -Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch - -From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001 -From: Drew DeVault -Date: Wed, 9 Dec 2020 07:42:06 +0000 -Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in - LINK_GCC_C_SEQUENCE_SPEC [PR81358] - -This fixes issues with RISC-V. ---- - Makefile.in | 1 + - gcc/config.in | 6 ++++++ - gcc/config/gnu-user.h | 12 +++++++++++- - gcc/configure | 31 ++++++++++++++++++++++++++++++- - gcc/configure.ac | 21 +++++++++++++++++++++ - gcc/doc/install.texi | 8 ++++++++ - gcc/doc/tm.texi | 8 +++++++- - gcc/doc/tm.texi.in | 8 +++++++- - gcc/gcc.cc | 12 +++++++++++- - 9 files changed, 102 insertions(+), 5 deletions(-) - ---- a/Makefile.in -+++ b/Makefile.in -@@ -237,6 +237,7 @@ HOST_EXPORTS = \ - RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \ - READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \ - TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \ -+ TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS; \ - HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \ - GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \ - GMPINC="$(HOST_GMPINC)"; export GMPINC; \ ---- a/gcc/config.in -+++ b/gcc/config.in -@@ -131,6 +131,12 @@ - #endif - - -+/* Define if libatomic should always be linked. */ -+#ifndef USED_FOR_TARGET -+#undef ENABLE_AUTOLINK_LIBATOMIC -+#endif -+ -+ - /* Define to 1 to specify that we are using the BID decimal floating point - format instead of DPD */ - #ifndef USED_FOR_TARGET ---- a/gcc/config/gnu-user.h -+++ b/gcc/config/gnu-user.h -@@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTI - #define LINK_EH_SPEC "%{!static|static-pie:--eh-frame-hdr} " - #endif - -+#if !defined(LINK_LIBATOMIC_SPEC) && defined(ENABLE_AUTOLINK_LIBATOMIC) -+# ifdef LD_AS_NEEDED_OPTION -+# define LINK_LIBATOMIC_SPEC LD_AS_NEEDED_OPTION " -latomic " LD_NO_AS_NEEDED_OPTION -+# else -+# define LINK_LIBATOMIC_SPEC "-latomic" -+# endif -+#elif !defined(LINK_LIBATOMIC_SPEC) -+# define LINK_LIBATOMIC_SPEC "" -+#endif -+ - #define GNU_USER_TARGET_LINK_GCC_C_SEQUENCE_SPEC \ -- "%{static|static-pie:--start-group} %G %{!nolibc:%L} \ -+ "%{static|static-pie:--start-group} %G %{!nolibc:" LINK_LIBATOMIC_SPEC " %L} \ - %{static|static-pie:--end-group}%{!static:%{!static-pie:%G}}" - - #undef LINK_GCC_C_SEQUENCE_SPEC ---- a/gcc/configure -+++ b/gcc/configure -@@ -1002,6 +1002,7 @@ with_changes_root_url - enable_languages - with_multilib_list - with_multilib_generator -+enable_autolink_libatomic - with_zstd - with_zstd_include - with_zstd_lib -@@ -1738,6 +1739,9 @@ Optional Features: - --disable-shared don't provide a shared libgcc - --disable-gcov don't provide libgcov and related host tools - --enable-languages=LIST specify which front-ends to build -+ --enable-autolink-libatomic -+ enable automatic linking of libatomic (ignored if -+ not built) - --disable-rpath do not hardcode runtime library paths - --enable-sjlj-exceptions - arrange to use setjmp/longjmp exception handling -@@ -8377,7 +8381,6 @@ else - fi - - -- - # Check whether --with-multilib-generator was given. - if test "${with_multilib_generator+set}" = set; then : - withval=$with_multilib_generator; : -@@ -8385,6 +8388,32 @@ else - with_multilib_generator=default - fi - -+# If libatomic is available, whether it should be linked automatically -+# Check whether --enable-autolink-libatomic was given. -+if test "${enable_autolink_libatomic+set}" = set; then : -+ enableval=$enable_autolink_libatomic; -+ case $enable_autolink_libatomic in -+ yes | no) ;; -+ *) as_fn_error $? "'$enable_autolink_libatomic' is an invalid value for -+--enable-autolink-libatomic. Valid choices are 'yes' and 'no'." "$LINENO" 5 ;; -+ esac -+ -+else -+ enable_autolink_libatomic='' -+fi -+ -+ -+if test x$enable_autolink_libatomic = xyes; then -+ if echo " ${TARGET_CONFIGDIRS} " | grep " libatomic " > /dev/null 2>&1 ; then -+ -+$as_echo "#define ENABLE_AUTOLINK_LIBATOMIC 1" >>confdefs.h -+ -+ else -+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libatomic is not build for this target, --enable-autolink-libatomic ignored" >&5 -+$as_echo "$as_me: WARNING: libatomic is not build for this target, --enable-autolink-libatomic ignored" >&2;} -+ fi -+fi -+ - - # ------------------------- - # Checks for other programs ---- a/gcc/configure.ac -+++ b/gcc/configure.ac -@@ -1215,6 +1215,27 @@ AC_ARG_WITH(multilib-generator, - :, - with_multilib_generator=default) - -+# If libatomic is available, whether it should be linked automatically -+AC_ARG_ENABLE(autolink-libatomic, -+[AS_HELP_STRING([--enable-autolink-libatomic], -+ [enable automatic linking of libatomic (ignored if not built)])], -+[ -+ case $enable_autolink_libatomic in -+ yes | no) ;; -+ *) AC_MSG_ERROR(['$enable_autolink_libatomic' is an invalid value for -+--enable-autolink-libatomic. Valid choices are 'yes' and 'no'.]) ;; -+ esac -+], [enable_autolink_libatomic='']) -+ -+if test x$enable_autolink_libatomic = xyes; then -+ if echo " ${TARGET_CONFIGDIRS} " | grep " libatomic " > /dev/null 2>&1 ; then -+ AC_DEFINE(ENABLE_AUTOLINK_LIBATOMIC, 1, -+ [Define if libatomic should always be linked.]) -+ else -+ AC_MSG_WARN([libatomic is not build for this target, --enable-autolink-libatomic ignored]) -+ fi -+fi -+ - # ------------------------- - # Checks for other programs - # ------------------------- ---- a/gcc/doc/install.texi -+++ b/gcc/doc/install.texi -@@ -2525,6 +2525,14 @@ files, but these changed header paths ma - environments. Enabled by default, and may be disabled using - @option{--disable-canonical-system-headers}. - -+@item --enable-autolink-libatomic -+@itemx --disable-autolink-libatomic -+Tell GCC that it should automatically link libatomic; if supported by -+the linker, the file is only linked as needed. This flag is ignored -+when libatomic is not built. Note that this conigure flag is in particular -+useful when building an offloading-target compiler; as for those, a -+user had to specify @code{-foffload=target=-latomic} otherwise. -+ - @item --with-glibc-version=@var{major}.@var{minor} - Tell GCC that when the GNU C Library (glibc) is used on the target it - will be version @var{major}.@var{minor} or later. Normally this can ---- a/gcc/doc/tm.texi -+++ b/gcc/doc/tm.texi -@@ -390,7 +390,13 @@ the argument @option{-lgcc} to tell the - - @defmac LINK_GCC_C_SEQUENCE_SPEC - The sequence in which libgcc and libc are specified to the linker. --By default this is @code{%G %L %G}. -+By default this is @code{%G LINK_LIBATOMIC_SPEC %L %G}. -+@end defmac -+ -+@defmac LINK_LIBATOMIC_SPEC -+This macro is used in the default @code{LINK_GCC_C_SEQUENCE_SPEC} to link -+libatomic. By default, it is unset unless @code{ENABLE_AUTOLINK_LIBATOMIC} -+is set. - @end defmac - - @defmac POST_LINK_SPEC ---- a/gcc/doc/tm.texi.in -+++ b/gcc/doc/tm.texi.in -@@ -390,7 +390,13 @@ the argument @option{-lgcc} to tell the - - @defmac LINK_GCC_C_SEQUENCE_SPEC - The sequence in which libgcc and libc are specified to the linker. --By default this is @code{%G %L %G}. -+By default this is @code{%G LINK_LIBATOMIC_SPEC %L %G}. -+@end defmac -+ -+@defmac LINK_LIBATOMIC_SPEC -+This macro is used in the default @code{LINK_GCC_C_SEQUENCE_SPEC} to link -+libatomic. By default, it is unset unless @code{ENABLE_AUTOLINK_LIBATOMIC} -+is set. - @end defmac - - @defmac POST_LINK_SPEC ---- a/gcc/gcc.cc -+++ b/gcc/gcc.cc -@@ -976,13 +976,23 @@ proper position among the other output f - # define ASM_DEBUG_OPTION_SPEC "" - #endif - -+#if !defined(LINK_LIBATOMIC_SPEC) && defined(ENABLE_AUTOLINK_LIBATOMIC) -+# ifdef LD_AS_NEEDED_OPTION -+# define LINK_LIBATOMIC_SPEC LD_AS_NEEDED_OPTION " -latomic " LD_NO_AS_NEEDED_OPTION -+# else -+# define LINK_LIBATOMIC_SPEC "-latomic" -+# endif -+#elif !defined(LINK_LIBATOMIC_SPEC) -+# define LINK_LIBATOMIC_SPEC "" -+#endif -+ - /* Here is the spec for running the linker, after compiling all files. */ - - /* This is overridable by the target in case they need to specify the - -lgcc and -lc order specially, yet not require them to override all - of LINK_COMMAND_SPEC. */ - #ifndef LINK_GCC_C_SEQUENCE_SPEC --#define LINK_GCC_C_SEQUENCE_SPEC "%G %{!nolibc:%L %G}" -+#define LINK_GCC_C_SEQUENCE_SPEC "%G %{!nolibc:" LINK_LIBATOMIC_SPEC " %L %G}" - #endif - - #ifndef LINK_SSP_SPEC diff --git a/srcpkgs/gcc/patches/libatomic-configure.patch b/srcpkgs/gcc/patches/libatomic-configure.patch deleted file mode 100644 index 10e64b8f229720..00000000000000 --- a/srcpkgs/gcc/patches/libatomic-configure.patch +++ /dev/null @@ -1,56 +0,0 @@ -Fix gcc check to build libatomic properly with --enable-autolink-libatomic. - -Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0036-configure-fix-detection-of-atomic-builtins-in-libato.patch - -From 4baaeb9661fa4015d9701e3616ce1ad4e8a07fd8 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?S=C3=B6ren=20Tempel?= -Date: Sun, 29 Aug 2021 09:45:27 +0200 -Subject: [PATCH] configure: fix detection of atomic builtins in libatomic - configure script - -Alpine's --enable-autolink-libatomic (which is enabled for riscv64 by -default) causes the libatomic configure script to incorrectly detect -which builtins are available on riscv64. This then causes incorrect code -generation for libatomic since it assumes compiler builtins to be -available which are not actually available on riscv64. - -This commit fixes this issue by disabling linking of libatomic configure -test code entirely, thereby preventing linking against libatomic. - -See: - -* https://gitlab.alpinelinux.org/alpine/aports/-/issues/12948 -* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101996#c6 ---- - libatomic/configure.tgt | 20 ++++++++++++++++++++ - 1 file changed, 20 insertions(+) - ---- a/libatomic/configure.tgt -+++ b/libatomic/configure.tgt -@@ -30,6 +30,26 @@ - # on ${target_cpu}. For example to allow proper use of multilibs. - configure_tgt_pre_target_cpu_XCFLAGS="${XCFLAGS}" - -+# The libatomic configure script performs several checks to determine -+# whether builtins for atomic operations are available. When compiling -+# with --enable-autolink-libatomic the test code compiled by the -+# configure script is also linked against libatomic. This causes it -+# to think that builtins are available, even if there are not, since -+# the tested symbols are provided by libatomic. -+# -+# This is a hack to ensure that we don't link against libatomic by not -+# linking any configure test code at all when --enable-autolink-libatomic -+# is given. -+# -+# See: -+# -+# * https://gitlab.alpinelinux.org/alpine/aports/-/issues/12817 -+# * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101996#c4 -+# -+if test x$enable_autolink_libatomic = xyes; then -+ gcc_no_link=yes -+fi -+ - case "${target_cpu}" in - alpha*) - # fenv.c needs this option to generate inexact exceptions. diff --git a/srcpkgs/gcc/patches/libphobos-03-musl-off_t-64.patch b/srcpkgs/gcc/patches/libphobos-03-musl-off_t-64.patch deleted file mode 100644 index fb33cb04aa5ffb..00000000000000 --- a/srcpkgs/gcc/patches/libphobos-03-musl-off_t-64.patch +++ /dev/null @@ -1,114 +0,0 @@ ---- a/libphobos/libdruntime/core/sys/posix/dirent.d -+++ b/libphobos/libdruntime/core/sys/posix/dirent.d -@@ -368,6 +368,7 @@ else version (CRuntime_Bionic) - } - else version (CRuntime_Musl) - { -+ // NOTE: marker for diff - enum - { - DT_UNKNOWN = 0, -@@ -385,15 +386,7 @@ else version (CRuntime_Musl) - { - } - -- static if ( __USE_FILE_OFFSET64 ) -- { -- dirent* readdir64(DIR*); -- alias readdir64 readdir; -- } -- else -- { -- dirent* readdir(DIR*); -- } -+ dirent* readdir(DIR*); - } - else version (CRuntime_UClibc) - { ---- a/libphobos/libdruntime/core/sys/posix/sys/mman.d -+++ b/libphobos/libdruntime/core/sys/posix/sys/mman.d -@@ -293,11 +293,7 @@ else version (CRuntime_Bionic) - } - else version (CRuntime_Musl) - { -- static if (__USE_LARGEFILE64) void* mmap64(void*, size_t, int, int, int, off_t); -- static if (__USE_FILE_OFFSET64) -- alias mmap = mmap64; -- else -- void* mmap(void*, size_t, int, int, int, off_t); -+ void* mmap(void*, size_t, int, int, int, off_t); - int munmap(void*, size_t); - } - else version (CRuntime_UClibc) ---- a/libphobos/libdruntime/core/sys/posix/sys/types.d -+++ b/libphobos/libdruntime/core/sys/posix/sys/types.d -@@ -111,6 +111,7 @@ version (linux) - - version (CRuntime_Musl) - { -+ static assert(off_t.sizeof == 8); - /** - * Musl versions before v1.2.0 (up to v1.1.24) had different - * definitions for `time_t` for 32 bits. ---- a/libphobos/libdruntime/core/sys/posix/stdio.d -+++ b/libphobos/libdruntime/core/sys/posix/stdio.d -@@ -182,10 +182,9 @@ else version (CRuntime_UClibc) - } - else version (CRuntime_Musl) - { -- static if ( __USE_FILE_OFFSET64 ) -+ static if (false) - { - int fgetpos64(FILE*, fpos_t *); -- alias fgetpos64 fgetpos; - - FILE* fopen64(const scope char*, const scope char*); - alias fopen64 fopen; -@@ -320,26 +319,8 @@ else version (CRuntime_Musl) - { - enum L_ctermid = 20; - -- static if ( __USE_FILE_OFFSET64 ) -- { -- int fseeko64(FILE*, off_t, int); -- alias fseeko64 fseeko; -- } -- else -- { -- int fseeko(FILE*, off_t, int); -- } -- -- static if ( __USE_FILE_OFFSET64 ) -- { -- off_t ftello64(FILE*); -- alias ftello64 ftello; -- } -- else -- { -- off_t ftello(FILE*); -- } -- -+ int fseeko(FILE*, off_t, int); -+ off_t ftello(FILE*); - ssize_t getdelim(char**, size_t*, int, FILE*); - ssize_t getline(char**, size_t*, FILE*); - } ---- a/libphobos/libdruntime/core/sys/posix/stdlib.d -+++ b/libphobos/libdruntime/core/sys/posix/stdlib.d -@@ -604,16 +604,6 @@ else version (CRuntime_Musl) - void srandom(uint); - int unlockpt(int); - -- static if ( __USE_LARGEFILE64 ) -- { -- int mkstemp64(char*); -- alias mkstemp64 mkstemp; -- } -- else -- { -- int mkstemp(char*); -- } -- - } - else version (Solaris) - { diff --git a/srcpkgs/gcc/patches/libphobos-04-musl-time_t-64.patch b/srcpkgs/gcc/patches/libphobos-04-musl-time_t-64.patch deleted file mode 100644 index 4109bae01d5d95..00000000000000 --- a/srcpkgs/gcc/patches/libphobos-04-musl-time_t-64.patch +++ /dev/null @@ -1,87 +0,0 @@ -https://github.com/dlang/dmd/commit/4aa97119c2d7c81ce3ac8bf5027cd83db63dda0d -https://github.com/dlang/dmd/pull/21249/commits/0307cefd7c563aaaf86eccedd56b8b872f8566c3 - ---- a/gcc/config/linux-d.cc -+++ b/gcc/config/linux-d.cc -@@ -25,6 +25,7 @@ along with GCC; see the file COPYING3. - - /* Implement TARGET_D_OS_VERSIONS for Linux targets. */ - -+#define LIBDRUNTIME_MUSL_PRE_TIME64 0 - static void - linux_d_os_builtins (void) - { -@@ -42,8 +43,12 @@ linux_d_os_builtins (void) - d_add_builtin_version ("CRuntime_UClibc"); - else if (OPTION_BIONIC) - d_add_builtin_version ("CRuntime_Bionic"); -- else if (OPTION_MUSL) -+ else if (OPTION_MUSL) { - d_add_builtin_version ("CRuntime_Musl"); -+#if LIBDRUNTIME_MUSL_PRE_TIME64 -+ d_add_builtin_version ("CRuntime_Musl_Pre_Time64"); -+#endif -+ } - } - - /* Handle a call to `__traits(getTargetInfo, "objectFormat")'. */ ---- a/libphobos/libdruntime/core/sys/posix/time.d -+++ b/libphobos/libdruntime/core/sys/posix/time.d -@@ -198,11 +198,47 @@ int timer_settime(timer_t, int, const sc - - version (linux) - { -+ version (CRuntime_Musl) { -+ version (CRuntime_Musl_Pre_Time64) { -+ struct timespec -+ { -+ time_t tv_sec; -+ c_long tv_nsec; -+ } -+ } else version (BigEndian) { -+ struct timespec -+ { -+ time_t tv_sec; -+ static if (time_t.sizeof != c_long.sizeof) { -+ c_long __tv_nsec_pad; -+ } -+ c_long tv_nsec; -+ } -+ } else version (LittleEndian) { -+ struct timespec -+ { -+ time_t tv_sec; -+ c_long tv_nsec; -+ static if (time_t.sizeof != c_long.sizeof) { -+ c_long __tv_nsec_pad; -+ } -+ } -+ } else { -+ static assert(false, "Unsupported platform"); -+ } -+ static assert(timespec.sizeof == 2 * time_t.sizeof); -+ version (CRuntime_Musl_Pre_Time64) { -+ static assert(time_t.sizeof == c_long.sizeof); -+ } else { -+ static assert(time_t.sizeof == 8); -+ } -+ } else { - struct timespec - { - time_t tv_sec; - c_long tv_nsec; - } -+ } - } - else version (Darwin) - { ---- a/gcc/d/dmd/cond.d -+++ b/gcc/d/dmd/cond.d -@@ -669,6 +669,7 @@ extern (C++) final class VersionConditio - case "CRuntime_Glibc": - case "CRuntime_Microsoft": - case "CRuntime_Musl": -+ case "CRuntime_Musl_Pre_Time64": - case "CRuntime_Newlib": - case "CRuntime_UClibc": - case "CRuntime_WASI": diff --git a/srcpkgs/gcc/patches/libphobos-05-musl-stat_t-time64.patch b/srcpkgs/gcc/patches/libphobos-05-musl-stat_t-time64.patch deleted file mode 100644 index 6de1bd975b868f..00000000000000 --- a/srcpkgs/gcc/patches/libphobos-05-musl-stat_t-time64.patch +++ /dev/null @@ -1,192 +0,0 @@ ---- a/libphobos/libdruntime/core/sys/posix/sys/stat.d -+++ b/libphobos/libdruntime/core/sys/posix/sys/stat.d -@@ -67,6 +67,39 @@ version (linux) - { - version (X86) - { -+ version (CRuntime_Musl) -+ { -+ struct stat_t -+ { -+ dev_t st_dev; -+ int __st_dev_pad; -+ c_long __st_ino; -+ mode_t st_mode; -+ nlink_t st_nlink; -+ uid_t st_uid; -+ gid_t st_gid; -+ dev_t st_rdev; -+ int __st_rdev_pad; -+ off_t st_size; -+ blksize_t st_blksize; -+ blkcnt_t st_blocks; -+ timespec st_atim; -+ timespec st_mtim; -+ timespec st_ctim; -+ extern(D) @safe @property inout pure nothrow -+ { -+ ref inout(time_t) st_atime() return { return st_atim.tv_sec; } -+ ref inout(time_t) st_mtime() return { return st_mtim.tv_sec; } -+ ref inout(time_t) st_ctime() return { return st_ctim.tv_sec; } -+ } -+ ino_t st_ino; -+ } -+ version (CRuntime_Musl_Pre_Time64) { -+ static assert(stat_t.sizeof == 96); -+ } else { -+ static assert(stat_t.sizeof == 120); -+ } -+ } else { - struct stat_t - { - dev_t st_dev; -@@ -119,6 +152,7 @@ version (linux) - c_ulong __unused5; - } - } -+ } - } - else version (X86_64) - { -@@ -256,6 +290,39 @@ version (linux) - } - else version (MIPS_O32) - { -+ version (CRuntime_Musl) { -+ struct stat_t -+ { -+ dev_t st_dev; -+ c_long[2] __st_pad1; -+ ino_t st_ino; -+ mode_t st_mode; -+ nlink_t st_nlink; -+ uid_t st_uid; -+ gid_t st_gid; -+ dev_t st_rdev; -+ c_long[2] __st_pad2; -+ off_t st_size; -+ timespec st_atim; -+ timespec st_mtim; -+ timespec st_ctim; -+ extern(D) @safe @property inout pure nothrow -+ { -+ ref inout(time_t) st_atime() return { return st_atim.tv_sec; } -+ ref inout(time_t) st_mtime() return { return st_mtim.tv_sec; } -+ ref inout(time_t) st_ctime() return { return st_ctim.tv_sec; } -+ } -+ blksize_t st_blksize; -+ c_long __st_pad3; -+ blkcnt_t st_blocks; -+ c_long[14] __st_pad4; -+ } -+ version (CRuntime_Musl_Pre_Time64) { -+ static assert(stat_t.sizeof == 160); -+ } else { -+ static assert(stat_t.sizeof == 188); -+ } -+ } else { - struct stat_t - { - c_ulong st_dev; -@@ -314,6 +381,7 @@ version (linux) - static assert(stat_t.sizeof == 144); - else - static assert(stat_t.sizeof == 160); -+ } - } - else version (MIPS64) - { -@@ -385,6 +453,37 @@ version (linux) - } - else version (PPC) - { -+ version (CRuntime_Musl) { -+ struct stat_t -+ { -+ dev_t st_dev; -+ ino_t st_ino; -+ mode_t st_mode; -+ nlink_t st_nlink; -+ uid_t st_uid; -+ gid_t st_gid; -+ dev_t st_rdev; -+ ushort __st_rdev_pad; -+ off_t st_size; -+ blksize_t st_blksize; -+ blkcnt_t st_blocks; -+ timespec st_atim; -+ timespec st_mtim; -+ timespec st_ctim; -+ extern(D) @safe @property inout pure nothrow -+ { -+ ref inout(time_t) st_atime() return { return st_atim.tv_sec; } -+ ref inout(time_t) st_mtime() return { return st_mtim.tv_sec; } -+ ref inout(time_t) st_ctime() return { return st_ctim.tv_sec; } -+ } -+ uint[2] __unused; -+ } -+ version (CRuntime_Musl_Pre_Time64) { -+ static assert(stat_t.sizeof == 104); -+ } else { -+ static assert(stat_t.sizeof == 128); -+ } -+ } else { - struct stat_t - { - dev_t st_dev; -@@ -432,6 +531,7 @@ version (linux) - static assert(stat_t.sizeof == 104); - else - static assert(stat_t.sizeof == 88); -+ } - } - else version (PPC64) - { -@@ -559,6 +659,39 @@ version (linux) - } - else version (ARM) - { -+ version (CRuntime_Musl) -+ { -+ struct stat_t -+ { -+ dev_t st_dev; -+ int __st_dev_pad; -+ c_long __st_ino; -+ mode_t st_mode; -+ nlink_t st_nlink; -+ uid_t st_uid; -+ gid_t st_gid; -+ dev_t st_rdev; -+ int __st_rdev_pad; -+ off_t st_size; -+ blksize_t st_blksize; -+ blkcnt_t st_blocks; -+ timespec st_atim; -+ timespec st_mtim; -+ timespec st_ctim; -+ extern(D) @safe @property inout pure nothrow -+ { -+ ref inout(time_t) st_atime() return { return st_atim.tv_sec; } -+ ref inout(time_t) st_mtime() return { return st_mtim.tv_sec; } -+ ref inout(time_t) st_ctime() return { return st_ctim.tv_sec; } -+ } -+ ino_t st_ino; -+ } -+ version (CRuntime_Musl_Pre_Time64) { -+ static assert(stat_t.sizeof == 104); -+ } else { -+ static assert(stat_t.sizeof == 128); -+ } -+ } else { - private - { - alias __dev_t = ulong; -@@ -651,6 +784,7 @@ version (linux) - static assert(stat_t.sizeof == 104); - else - static assert(stat_t.sizeof == 88); -+ } - } - else version (AArch64) - { diff --git a/srcpkgs/gcc/patches/libphobos-06-musl-riscv64.patch b/srcpkgs/gcc/patches/libphobos-06-musl-riscv64.patch deleted file mode 100644 index 2a6080f3ad1649..00000000000000 --- a/srcpkgs/gcc/patches/libphobos-06-musl-riscv64.patch +++ /dev/null @@ -1,45 +0,0 @@ -https://git.musl-libc.org/cgit/musl/tree/arch/riscv32/bits?h=v1.2.5 -https://git.musl-libc.org/cgit/musl/tree/arch/riscv64/bits?h=v1.2.5 -https://git.musl-libc.org/cgit/musl/tree/arch/loongarch64/bits?h=v1.2.5 - ---- a/libphobos/libdruntime/core/stdc/fenv.d -+++ b/libphobos/libdruntime/core/stdc/fenv.d -@@ -443,6 +443,19 @@ else version (CRuntime_Musl) - } - alias ushort fexcept_t; - } -+ else version(LoongArch64) -+ { -+ struct fenv_t -+ { -+ uint __cw; -+ } -+ alias uint fexcept_t; -+ } -+ else version (RISCV_Any) -+ { -+ alias uint fenv_t; -+ alias uint fexcept_t; -+ } - else - { - static assert(false, "Architecture not supported."); ---- a/libphobos/libdruntime/core/sys/posix/signal.d -+++ b/libphobos/libdruntime/core/sys/posix/signal.d -@@ -2758,6 +2758,16 @@ else version (CRuntime_Musl) - enum MINSIGSTKSZ = 2048; - enum SIGSTKSZ = 8192; - } -+ else version (LoongArch64) -+ { -+ enum MINSIGSTKSZ = 4096; -+ enum SIGSTKSZ = 16384; -+ } -+ else version (RISCV_Any) -+ { -+ enum MINSIGSTKSZ = 2048; -+ enum SIGSTKSZ = 8192; -+ } - else - static assert(0, "unimplemented"); - diff --git a/srcpkgs/gcc/patches/libphobos-fix-riscv64-identifier.patch b/srcpkgs/gcc/patches/libphobos-fix-riscv64-identifier.patch new file mode 100644 index 00000000000000..69ef4835870e71 --- /dev/null +++ b/srcpkgs/gcc/patches/libphobos-fix-riscv64-identifier.patch @@ -0,0 +1,24 @@ +From 8f692ef7cd84d1f1848f0f09ba57226a906d0d2b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Matheus=20C=2E=20Fran=C3=A7a?= + +Date: Mon, 23 Mar 2026 17:30:18 -0300 +Subject: [PATCH] Fix version identifier for RISC-V architecture + +--- + druntime/src/core/stdc/fenv.d | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/druntime/src/core/stdc/fenv.d b/druntime/src/core/stdc/fenv.d +index 1c49d84906e6..8e1c4072e242 100644 +--- a/libphobos/libdruntime/core/stdc/fenv.d ++++ b/libphobos/libdruntime/core/stdc/fenv.d +@@ -440,7 +440,7 @@ else version (CRuntime_Musl) + } + alias fexcept_t = uint; + } +- else version (RICV64) ++ else version (RISCV64) + { + alias fenv_t = uint; + alias fexcept_t = uint; + diff --git a/srcpkgs/gcc/patches/musl-ada.patch b/srcpkgs/gcc/patches/musl-ada.patch index ed283c91559b90..fd6b456a303b75 100644 --- a/srcpkgs/gcc/patches/musl-ada.patch +++ b/srcpkgs/gcc/patches/musl-ada.patch @@ -15,114 +15,24 @@ @@ -3465,7 +3470,6 @@ __gnat_lwp_self (void) #endif - #if defined (__linux__) + #if defined (__linux__) || defined (__ANDROID__) -#include /* glibc versions earlier than 2.7 do not define the routines to handle dynamically allocated CPU sets. For these targets, we use the static -@@ -3475,7 +3479,7 @@ __gnat_lwp_self (void) - - /* Dynamic cpu sets */ - --cpu_set_t * -+void * - __gnat_cpu_alloc (size_t count) - { - return CPU_ALLOC (count); -@@ -3488,33 +3492,33 @@ __gnat_cpu_alloc_size (size_t count) - } - - void --__gnat_cpu_free (cpu_set_t *set) -+__gnat_cpu_free (void *set) - { -- CPU_FREE (set); -+ CPU_FREE ((cpu_set_t *) set); - } - - void --__gnat_cpu_zero (size_t count, cpu_set_t *set) -+__gnat_cpu_zero (size_t count, void *set) - { -- CPU_ZERO_S (count, set); -+ CPU_ZERO_S (count, (cpu_set_t *) set); - } - - void --__gnat_cpu_set (int cpu, size_t count, cpu_set_t *set) -+__gnat_cpu_set (int cpu, size_t count, void *set) - { - /* Ada handles CPU numbers starting from 1, while C identifies the first - CPU by a 0, so we need to adjust. */ -- CPU_SET_S (cpu - 1, count, set); -+ CPU_SET_S (cpu - 1, count, (cpu_set_t *) set); - } - - #else /* !CPU_ALLOC */ - - /* Static cpu sets */ - --cpu_set_t * -+void * - __gnat_cpu_alloc (size_t count ATTRIBUTE_UNUSED) - { -- return (cpu_set_t *) xmalloc (sizeof (cpu_set_t)); -+ return xmalloc (sizeof (cpu_set_t)); - } - - size_t -@@ -3524,23 +3528,23 @@ __gnat_cpu_alloc_size (size_t count ATTR - } - - void --__gnat_cpu_free (cpu_set_t *set) -+__gnat_cpu_free (void *set) - { - free (set); - } - - void --__gnat_cpu_zero (size_t count ATTRIBUTE_UNUSED, cpu_set_t *set) -+__gnat_cpu_zero (size_t count ATTRIBUTE_UNUSED, void *set) - { -- CPU_ZERO (set); -+ CPU_ZERO ((cpu_set_t *) set); - } - - void --__gnat_cpu_set (int cpu, size_t count ATTRIBUTE_UNUSED, cpu_set_t *set) -+__gnat_cpu_set (int cpu, size_t count ATTRIBUTE_UNUSED, void *set) - { - /* Ada handles CPU numbers starting from 1, while C identifies the first - CPU by a 0, so we need to adjust. */ -- CPU_SET (cpu - 1, set); -+ CPU_SET (cpu - 1, (cpu_set_t *) set); - } - #endif /* !CPU_ALLOC */ - #endif /* __linux__ */ --- a/gcc/ada/adaint.h +++ b/gcc/ada/adaint.h -@@ -319,13 +319,11 @@ extern void *__gnat_lwp_self (voi +@@ -319,6 +319,7 @@ extern void *__gnat_lwp_self (voi /* Routines for interface to required CPU set primitives */ --#include -- --extern cpu_set_t *__gnat_cpu_alloc (size_t); -+extern void * __gnat_cpu_alloc (size_t); - extern size_t __gnat_cpu_alloc_size (size_t); --extern void __gnat_cpu_free (cpu_set_t *); --extern void __gnat_cpu_zero (size_t, cpu_set_t *); --extern void __gnat_cpu_set (int, size_t, cpu_set_t *); -+extern void __gnat_cpu_free (void *); -+extern void __gnat_cpu_zero (size_t, void *); -+extern void __gnat_cpu_set (int, size_t, void *); - #endif ++#define _GNU_SOURCE 1 + #include - #if defined (_WIN32) + extern cpu_set_t *__gnat_cpu_alloc (size_t); --- a/gcc/ada/Makefile.rtl +++ b/gcc/ada/Makefile.rtl -@@ -1558,7 +1558,7 @@ ifeq ($(strip $(filter-out %86 linux%,$( +@@ -1641,7 +1641,7 @@ ifeq ($(strip $(filter-out %86 linux%,$( s-intman.adb -Date: Fri, 31 Jan 2025 10:27:39 -0300 -Subject: [PATCH] math: Fix log10p1f internal table value (BZ 32626) - -It was copied wrong from CORE-MATH. - -(cherry picked from commit c79277a16785c8ae96d821414f4d31d654a0177c) ---- - NEWS | 3 ++- - math/auto-libm-test-in | 2 ++ - math/auto-libm-test-out-log10p1 | 25 +++++++++++++++++++++++++ - sysdeps/ieee754/flt-32/s_log10p1f.c | 2 +- - 4 files changed, 30 insertions(+), 2 deletions(-) - -diff --git a/sysdeps/ieee754/flt-32/s_log10p1f.c b/sysdeps/ieee754/flt-32/s_log10p1f.c -index 64deb1eeda5..4e11d55d49a 100644 ---- a/sysdeps/ieee754/flt-32/s_log10p1f.c -+++ b/sysdeps/ieee754/flt-32/s_log10p1f.c -@@ -70,7 +70,7 @@ __log10p1f (float x) - }; - static const double tl[] = - { -- 0x1.562ec497ef351p-43, 0x1.b9476892ea99cp-8, 0x1.b5e909c959eecp-7, -+ -0x1.562ec497ef351p-43, 0x1.b9476892ea99cp-8, 0x1.b5e909c959eecp-7, - 0x1.45f4f59ec84fp-6, 0x1.af5f92cbcf2aap-6, 0x1.0ba01a6069052p-5, - 0x1.3ed119b99dd41p-5, 0x1.714834298a088p-5, 0x1.a30a9d98309c1p-5, - 0x1.d41d51266b9d9p-5, 0x1.02428c0f62dfcp-4, 0x1.1a23444eea521p-4, - -From d85a7719536f4892f2b53d4594e18f6d096c2882 Mon Sep 17 00:00:00 2001 -From: Adhemerval Zanella -Date: Fri, 31 Jan 2025 10:34:32 -0300 -Subject: [PATCH] math: Fix sinhf for some inputs (BZ 32627) - -The logic was copied wrong from CORE-MATH. ---- - math/auto-libm-test-in | 1 + - math/auto-libm-test-out-sinh | 25 +++++++++++++++++++++++++ - sysdeps/ieee754/flt-32/e_sinhf.c | 2 +- - 3 files changed, 27 insertions(+), 1 deletion(-) - -diff --git a/sysdeps/ieee754/flt-32/e_sinhf.c b/sysdeps/ieee754/flt-32/e_sinhf.c -index c007c7d1742..dee96fc7cbf 100644 ---- a/sysdeps/ieee754/flt-32/e_sinhf.c -+++ b/sysdeps/ieee754/flt-32/e_sinhf.c -@@ -83,7 +83,7 @@ __ieee754_sinhf (float x) - { /* |x| <= 0x1.250bfep-11 */ - if (__glibc_unlikely (ux < 0x66000000u)) /* |x| < 0x1p-24 */ - return fmaf (x, fabsf (x), x); -- if (__glibc_unlikely (st.uarg == asuint (ux))) -+ if (__glibc_unlikely (st.uarg == ux)) - { - float sgn = copysignf (1.0f, x); - return sgn * st.rh + sgn * st.rl; - - -From cf88351b685da86667e17d344414a70696ac82f1 Mon Sep 17 00:00:00 2001 -From: Adhemerval Zanella -Date: Sun, 2 Feb 2025 16:57:49 -0300 -Subject: [PATCH] math: Fix tanf for some inputs (BZ 32630) - -The logic was copied wrong from CORE-MATH. - -(cherry picked from commit 09e7f4d594b4308fbea18e3044148d67b59757c9) ---- - NEWS | 2 ++ - math/auto-libm-test-in | 1 + - math/auto-libm-test-out-tan | 25 +++++++++++++++++++++++++ - sysdeps/ieee754/flt-32/s_tanf.c | 2 +- - 4 files changed, 29 insertions(+), 1 deletion(-) - -diff --git a/sysdeps/ieee754/flt-32/s_tanf.c b/sysdeps/ieee754/flt-32/s_tanf.c -index dfe56fc2a0f..5ee1d6f35e7 100644 ---- a/sysdeps/ieee754/flt-32/s_tanf.c -+++ b/sysdeps/ieee754/flt-32/s_tanf.c -@@ -166,7 +166,7 @@ __tanf (float x) - uint32_t sgn = t >> 31; - for (int j = 0; j < array_length (st); j++) - { -- if (__glibc_unlikely (asfloat (st[j].arg) == ax)) -+ if (__glibc_unlikely (asuint (st[j].arg) == ax)) - { - if (sgn) - return -st[j].rh - st[j].rl; - -From 66fc3bd75871d7239245c767abf44fb96d772f66 Mon Sep 17 00:00:00 2001 -From: Aurelien Jarno -Date: Thu, 6 Mar 2025 19:34:15 +0100 -Subject: [PATCH] math: Remove an extra semicolon in math function declarations - -Commit 6bc301672bfbd ("math: Remove __XXX math functions from installed -math.h [BZ #32418]") left an extra semicolon after macro expansion. For -instance the ceil declaration after expansion is: - - extern double ceil (double __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));; - -This chokes very naive parsers like gauche c-wrapper. Fix that by -removing that extra semicolon in the macro. - -Reviewed-by: Adhemerval Zanella -(cherry picked from commit 443cb0b5f25129dd0f1e9f9101299d31c4700b7f) ---- - math/bits/mathcalls-macros.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/math/bits/mathcalls-macros.h b/math/bits/mathcalls-macros.h -index 1ef07f1f58..321ae00ec8 100644 ---- a/math/bits/mathcalls-macros.h -+++ b/math/bits/mathcalls-macros.h -@@ -34,7 +34,7 @@ - #define __MATHCALLX(function,suffix, args, attrib) \ - __MATHDECLX (_Mdouble_,function,suffix, args, attrib) - #define __MATHDECLX(type, function,suffix, args, attrib) \ -- __MATHDECL_1(type, function,suffix, args) __attribute__ (attrib); -+ __MATHDECL_1(type, function,suffix, args) __attribute__ (attrib) - #define __MATHDECL_1_IMPL(type, function, suffix, args) \ - extern type __MATH_PRECNAME(function,suffix) args __THROW - #define __MATHDECL_1(type, function, suffix, args) \ - -From 07288c7445bba747f65380066b1b5bdb2df5b630 Mon Sep 17 00:00:00 2001 -From: John David Anglin -Date: Tue, 25 Feb 2025 15:57:53 -0500 -Subject: [PATCH 11] math: Add optimization barrier to ensure a1 + u.d is - not reused [BZ #30664] - -A number of fma tests started to fail on hppa when gcc was changed to -use Ranger rather than EVRP. Eventually I found that the value of -a1 + u.d in this is block of code was being computed in FE_TOWARDZERO -mode and not the original rounding mode: - - if (TININESS_AFTER_ROUNDING) - { - w.d = a1 + u.d; - if (w.ieee.exponent == 109) - return w.d * 0x1p-108; - } - -This caused the exponent value to be wrong and the wrong return path -to be used. - -Here we add an optimization barrier after the rounding mode is reset -to ensure that the previous value of a1 + u.d is not reused. - -Signed-off-by: John David Anglin ---- - sysdeps/ieee754/dbl-64/s_fma.c | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/sysdeps/ieee754/dbl-64/s_fma.c b/sysdeps/ieee754/dbl-64/s_fma.c -index 20f617b996e..42351c6b343 100644 ---- a/sysdeps/ieee754/dbl-64/s_fma.c -+++ b/sysdeps/ieee754/dbl-64/s_fma.c -@@ -244,6 +244,9 @@ __fma (double x, double y, double z) - /* Reset rounding mode and test for inexact simultaneously. */ - int j = libc_feupdateenv_test (&env, FE_INEXACT) != 0; - -+ /* Ensure value of a1 + u.d is not reused. */ -+ a1 = math_opt_barrier (a1); -+ - if (__glibc_likely (adjust == 0)) - { - if ((u.ieee.mantissa1 & 1) == 0 && u.ieee.exponent != 0x7ff) - -From a900dbaf70f0a957f56b52caa69173592ad7596e Mon Sep 17 00:00:00 2001 -From: "H.J. Lu" -Date: Thu, 20 Feb 2025 07:08:26 +0800 -Subject: [PATCH 09] x86 (__HAVE_FLOAT128): Defined to 0 for Intel SYCL - compiler [BZ #32723] - -Intel compiler always defines __INTEL_LLVM_COMPILER. When SYCL is -enabled by -fsycl, it also defines SYCL_LANGUAGE_VERSION. Since Intel -SYCL compiler doesn't support _Float128: - -https://github.com/intel/llvm/issues/16903 - -define __HAVE_FLOAT128 to 0 for Intel SYCL compiler. - -This fixes BZ #32723. - -Signed-off-by: H.J. Lu -Reviewed-by: Sam James -(cherry picked from commit 5a4573be6f96ff49111bb6cae767676b5aafa7a8) ---- - sysdeps/x86/bits/floatn.h | 8 ++++++-- - 1 file changed, 6 insertions(+), 2 deletions(-) - -diff --git a/sysdeps/x86/bits/floatn.h b/sysdeps/x86/bits/floatn.h -index d197cb10dde..adc7ed2e9e8 100644 ---- a/sysdeps/x86/bits/floatn.h -+++ b/sysdeps/x86/bits/floatn.h -@@ -25,11 +25,15 @@ - floating-point type with the IEEE 754 binary128 format, and this - glibc includes corresponding *f128 interfaces for it. The required - libgcc support was added some time after the basic compiler -- support, for x86_64 and x86. */ -+ support, for x86_64 and x86. Intel SYCL compiler doesn't support -+ _Float128: https://github.com/intel/llvm/issues/16903 -+ */ - #if (defined __x86_64__ \ - ? __GNUC_PREREQ (4, 3) \ - : (defined __GNU__ ? __GNUC_PREREQ (4, 5) : __GNUC_PREREQ (4, 4))) \ -- || __glibc_clang_prereq (3, 4) -+ || (__glibc_clang_prereq (3, 4) \ -+ && (!defined __INTEL_LLVM_COMPILER \ -+ || !defined SYCL_LANGUAGE_VERSION)) - # define __HAVE_FLOAT128 1 - #else - # define __HAVE_FLOAT128 0 - -From 2cb04444b934e000a4e36c1876ef2bf03dd80d66 Mon Sep 17 00:00:00 2001 -From: koraynilay -Date: Sat, 22 Feb 2025 15:55:59 +0100 -Subject: [PATCH 10] math: Fix `unknown type name '__float128'` for clang - 3.4 to 3.8.1 (bug 32694) - -When compiling a program that includes using a clang version -between 3.4 (included) and 3.8.1 (included), clang will fail with `unknown type -name '__float128'; did you mean '__cfloat128'?`. This changes fixes the clang -prerequirements macro call in floatn.h to check for clang 3.9 instead of 3.4, -since support for __float128 was actually enabled in 3.9 by: - -commit 50f29e06a1b6a38f0bba9360cbff72c82d46cdd4 -Author: Nemanja Ivanovic -Date: Wed Apr 13 09:49:45 2016 +0000 - - Enable support for __float128 in Clang - -This fixes bug 32694. - -Signed-off-by: koraynilay -Reviewed-by: H.J. Lu -(cherry picked from commit 29803ed3ce420f01e7c567c97fc8945d5e5e5992) ---- - sysdeps/x86/bits/floatn.h | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/sysdeps/x86/bits/floatn.h b/sysdeps/x86/bits/floatn.h -index adc7ed2e9e8..4674165bd77 100644 ---- a/sysdeps/x86/bits/floatn.h -+++ b/sysdeps/x86/bits/floatn.h -@@ -31,7 +31,7 @@ - #if (defined __x86_64__ \ - ? __GNUC_PREREQ (4, 3) \ - : (defined __GNU__ ? __GNUC_PREREQ (4, 5) : __GNUC_PREREQ (4, 4))) \ -- || (__glibc_clang_prereq (3, 4) \ -+ || (__glibc_clang_prereq (3, 9) \ - && (!defined __INTEL_LLVM_COMPILER \ - || !defined SYCL_LANGUAGE_VERSION)) - # define __HAVE_FLOAT128 1 -@@ -93,7 +93,7 @@ typedef _Complex float __cfloat128 __attribute__ ((__mode__ (__TC__))); - /* The type _Float128 exists only since GCC 7.0. */ - # if !__GNUC_PREREQ (7, 0) \ - || (defined __cplusplus && !__GNUC_PREREQ (13, 0)) \ -- || __glibc_clang_prereq (3, 4) -+ || __glibc_clang_prereq (3, 9) - typedef __float128 _Float128; - # endif - - diff --git a/srcpkgs/glibc/patches/30992cb5e9d713ab0f4135dd8776a201f7a53f24.patch b/srcpkgs/glibc/patches/30992cb5e9d713ab0f4135dd8776a201f7a53f24.patch deleted file mode 100644 index 51fd0dd610ca77..00000000000000 --- a/srcpkgs/glibc/patches/30992cb5e9d713ab0f4135dd8776a201f7a53f24.patch +++ /dev/null @@ -1,81 +0,0 @@ -From 30992cb5e9d713ab0f4135dd8776a201f7a53f24 Mon Sep 17 00:00:00 2001 -From: Yangyu Chen -Date: Tue, 25 Feb 2025 01:12:19 +0800 -Subject: [PATCH] RISC-V: Fix IFUNC resolver cannot access gp pointer - -In some cases, an IFUNC resolver may need to access the gp pointer to -access global variables. Such an object may have l_relocated == 0 at -this time. In this case, an IFUNC resolver will fail to access a global -variable and cause a SIGSEGV. - -This patch fixes this issue by relaxing the check of l_relocated in -elf_machine_runtime_setup, but added a check for SHARED case to avoid -using this code in static-linked executables. Such object have already -set up the gp pointer in load_gp function and l->l_scope will be NULL if -it is a pie object. So if we use these code to set up the gp pointer -again for static-pie, it will causing a SIGSEGV in glibc as original bug -on BZ #31317. - -I have also reproduced and checked BZ #31317 using the mold commit -bed5b1731b ("illumos: Treat absolute symbols specially"), this patch can -fix the issue. - -Also, we used the wrong gp pointer previously because ref->st_value is -not the relocated address but just the offset from the base address of -ELF. An edge case may happen if we reference gp pointer in a IFUNC -resolver in a PIE object, but it will not happen in compiler-generated -codes since -pie will disable relax to gp. In this case, the GP will be -initialized incorrectly since the ref->st_value is not the address after -relocation. This patch fixes this issue by adding the l->l_addr to -ref->st_value to get the relocated address for the gp pointer. We don't -use SYMBOL_ADDRESS macro here because __global_pointer$ is a special -symbol that has SHN_ABS type, but it will use PC-relative addressing in -the load_gp function using lla. - -Closes: BZ #32269 -Fixes: 96d1b9ac23 ("RISC-V: Fix the static-PIE non-relocated object check") - -Co-authored-by: Vivian Wang -Signed-off-by: Yangyu Chen -(cherry picked from commit 3fd2ff7685e3ee85c8cd2896f28ad62f67d7c483) ---- - NEWS | 1 + - sysdeps/riscv/dl-machine.h | 17 +++++++++++------ - 2 files changed, 12 insertions(+), 6 deletions(-) - -diff --git a/sysdeps/riscv/dl-machine.h b/sysdeps/riscv/dl-machine.h -index a30892f080..dcc3e0883b 100644 ---- a/sysdeps/riscv/dl-machine.h -+++ b/sysdeps/riscv/dl-machine.h -@@ -348,7 +348,8 @@ elf_machine_runtime_setup (struct link_map *l, struct r_scope_elem *scope[], - gotplt[1] = (ElfW(Addr)) l; - } - -- if (l->l_type == lt_executable && l->l_relocated) -+#ifdef SHARED -+ if (l->l_type == lt_executable) - { - /* The __global_pointer$ may not be defined by the linker if the - $gp register does not be used to access the global variable -@@ -362,12 +363,16 @@ elf_machine_runtime_setup (struct link_map *l, struct r_scope_elem *scope[], - _dl_lookup_symbol_x ("__global_pointer$", l, &ref, - l->l_scope, NULL, 0, 0, NULL); - if (ref) -- asm ( -- "mv gp, %0\n" -- : -- : "r" (ref->st_value) -- ); -+ asm ( -+ "mv gp, %0\n" -+ : -+ : "r" (ref->st_value + l->l_addr) -+ /* Don't use SYMBOL_ADDRESS here since __global_pointer$ -+ can be SHN_ABS type, but we need the address relative to -+ PC, not the absolute address. */ -+ ); - } -+#endif - #endif - return lazy; - } diff --git a/srcpkgs/glibc/patches/33bfd9020fdad925297c9e133055bd8804028f32.patch b/srcpkgs/glibc/patches/33bfd9020fdad925297c9e133055bd8804028f32.patch deleted file mode 100644 index 726b245c595f04..00000000000000 --- a/srcpkgs/glibc/patches/33bfd9020fdad925297c9e133055bd8804028f32.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 33bfd9020fdad925297c9e133055bd8804028f32 Mon Sep 17 00:00:00 2001 -From: Florian Weimer -Date: Wed, 12 Mar 2025 10:23:47 +0100 -Subject: [PATCH] Linux: Remove attribute access from sched_getattr (bug 32781) - -The GCC attribute expects an element count, not bytes. - -(cherry picked from commit 74c68fa61b5ebf4c64605a3cc5e47154a66671ce) ---- - NEWS | 1 + - sysdeps/unix/sysv/linux/bits/sched.h | 2 +- - 2 files changed, 2 insertions(+), 1 deletion(-) - -diff --git a/sysdeps/unix/sysv/linux/bits/sched.h b/sysdeps/unix/sysv/linux/bits/sched.h -index 3656e98eda..39b0b3d19c 100644 ---- a/sysdeps/unix/sysv/linux/bits/sched.h -+++ b/sysdeps/unix/sysv/linux/bits/sched.h -@@ -152,7 +152,7 @@ int sched_setattr (pid_t tid, struct sched_attr *attr, unsigned int flags) - store it in *ATTR. */ - int sched_getattr (pid_t tid, struct sched_attr *attr, unsigned int size, - unsigned int flags) -- __THROW __nonnull ((2)) __attr_access ((__write_only__, 2, 3)); -+ __THROW __nonnull ((2)); - - #endif - diff --git a/srcpkgs/glibc/patches/746ef8e93964a99db3e3fa4b8a7aba179185ef0a.patch b/srcpkgs/glibc/patches/746ef8e93964a99db3e3fa4b8a7aba179185ef0a.patch deleted file mode 100644 index 40f6b05b9aad96..00000000000000 --- a/srcpkgs/glibc/patches/746ef8e93964a99db3e3fa4b8a7aba179185ef0a.patch +++ /dev/null @@ -1,61 +0,0 @@ -From 746ef8e93964a99db3e3fa4b8a7aba179185ef0a Mon Sep 17 00:00:00 2001 -From: "H.J. Lu" -Date: Wed, 5 Mar 2025 10:19:59 +0800 -Subject: [PATCH] static-pie: Skip the empty PT_LOAD segment at offset 0 [BZ - #32763] - -As shown in - -https://sourceware.org/bugzilla/show_bug.cgi?id=25237 - -linker may generate an empty PT_LOAD segments at offset 0: - -Elf file type is EXEC (Executable file) -Entry point 0x4000e8 -There are 3 program headers, starting at offset 64 - -Program Headers: - Type Offset VirtAddr PhysAddr - FileSiz MemSiz Flags Align - LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000 - 0x00000000000000f0 0x00000000000000f0 R E 0x1000 - LOAD 0x0000000000000000 0x0000000000410000 0x0000000000410000 - 0x0000000000000000 0x0000000000b5dce8 RW 0x10000 - GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000 - 0x0000000000000000 0x0000000000000000 RW 0x10 - - Section to Segment mapping: - Segment Sections... - 00 .text - 01 .bss - 02 - -Skip the empty PT_LOAD segment at offset 0 to support such binaries. -This fixes BZ #32763. - -Signed-off-by: H.J. Lu -Reviewed-by: Sam James -(cherry picked from commit 596130591ae4b058a529cc1318b95e624559054c) ---- - elf/Makefile | 5 +++++ - elf/dl-reloc-static-pie.c | 3 ++- - elf/tst-pie-bss-static.c | 19 +++++++++++++++++++ - elf/tst-pie-bss.c | 30 ++++++++++++++++++++++++++++++ - 4 files changed, 56 insertions(+), 1 deletion(-) - create mode 100644 elf/tst-pie-bss-static.c - create mode 100644 elf/tst-pie-bss.c - -diff --git a/elf/dl-reloc-static-pie.c b/elf/dl-reloc-static-pie.c -index e34bf5f7ce..758bf9893e 100644 ---- a/elf/dl-reloc-static-pie.c -+++ b/elf/dl-reloc-static-pie.c -@@ -51,7 +51,8 @@ _dl_relocate_static_pie (void) - switch (ph->p_type) - { - case PT_LOAD: -- if (ph->p_offset == 0) -+ /* Skip the empty PT_LOAD segment at offset 0. */ -+ if (ph->p_filesz != 0 && ph->p_offset == 0) - file_p_vaddr = ph->p_vaddr; - break; - case PT_DYNAMIC: diff --git a/srcpkgs/glibc/patches/98c712855d6606d078aaabaa7ef24b695c3f0349.patch b/srcpkgs/glibc/patches/98c712855d6606d078aaabaa7ef24b695c3f0349.patch deleted file mode 100644 index 0e67b8943f8476..00000000000000 --- a/srcpkgs/glibc/patches/98c712855d6606d078aaabaa7ef24b695c3f0349.patch +++ /dev/null @@ -1,46 +0,0 @@ -From 98c712855d6606d078aaabaa7ef24b695c3f0349 Mon Sep 17 00:00:00 2001 -From: Florian Weimer -Date: Thu, 13 Mar 2025 06:07:07 +0100 -Subject: [PATCH] nptl: PTHREAD_COND_INITIALIZER compatibility with pre-2.41 - versions (bug 32786) - -The new initializer and struct layout does not initialize the -__g_signals field in the old struct layout before the change in -commit c36fc50781995e6758cae2b6927839d0157f213c ("nptl: Remove -g_refs from condition variables"). Bring back fields at the end -of struct __pthread_cond_s, so that they are again zero-initialized. - -Reviewed-by: Sam James -(cherry picked from commit dbc5a50d12eff4cb3f782129029d04b8a76f58e7) ---- - NEWS | 1 + - sysdeps/nptl/bits/thread-shared-types.h | 2 ++ - sysdeps/nptl/pthread.h | 2 +- - 3 files changed, 4 insertions(+), 1 deletion(-) - -diff --git a/sysdeps/nptl/bits/thread-shared-types.h b/sysdeps/nptl/bits/thread-shared-types.h -index 7c24c0a6be..e614c7f3c9 100644 ---- a/sysdeps/nptl/bits/thread-shared-types.h -+++ b/sysdeps/nptl/bits/thread-shared-types.h -@@ -99,6 +99,8 @@ struct __pthread_cond_s - unsigned int __g1_orig_size; - unsigned int __wrefs; - unsigned int __g_signals[2]; -+ unsigned int __unused_initialized_1; -+ unsigned int __unused_initialized_2; - }; - - typedef unsigned int __tss_t; -diff --git a/sysdeps/nptl/pthread.h b/sysdeps/nptl/pthread.h -index 050b4ab8d1..9ad36cabe9 100644 ---- a/sysdeps/nptl/pthread.h -+++ b/sysdeps/nptl/pthread.h -@@ -152,7 +152,7 @@ enum - - - /* Conditional variable handling. */ --#define PTHREAD_COND_INITIALIZER { { {0}, {0}, {0, 0}, 0, 0, {0, 0} } } -+#define PTHREAD_COND_INITIALIZER { { {0}, {0}, {0, 0}, 0, 0, {0, 0}, 0, 0 } } - - - /* Cleanup buffers */ diff --git a/srcpkgs/glibc/patches/cb7f20653724029be89224ed3a35d627cc5b4163.patch b/srcpkgs/glibc/patches/cb7f20653724029be89224ed3a35d627cc5b4163.patch deleted file mode 100644 index 26456925a36266..00000000000000 --- a/srcpkgs/glibc/patches/cb7f20653724029be89224ed3a35d627cc5b4163.patch +++ /dev/null @@ -1,37 +0,0 @@ -From cb7f20653724029be89224ed3a35d627cc5b4163 Mon Sep 17 00:00:00 2001 -From: John David Anglin -Date: Wed, 29 Jan 2025 16:51:16 -0500 -Subject: [PATCH] nptl: Correct stack size attribute when stack grows up [BZ - #32574] - -Set stack size attribute to the size of the mmap'd region only -when the size of the remaining stack space is less than the size -of the mmap'd region. - -This was reversed. As a result, the initial stack size was only -135168 bytes. On architectures where the stack grows down, the -initial stack size is approximately 8384512 bytes with the default -rlimit settings. The small main stack size on hppa broke -applications like ruby that check for stack overflows. - -Signed-off-by: John David Anglin ---- - nptl/pthread_getattr_np.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/nptl/pthread_getattr_np.c b/nptl/pthread_getattr_np.c -index e98e2df152..43dd16d59c 100644 ---- a/nptl/pthread_getattr_np.c -+++ b/nptl/pthread_getattr_np.c -@@ -145,9 +145,9 @@ __pthread_getattr_np (pthread_t thread_id, pthread_attr_t *attr) - > (size_t) iattr->stackaddr - last_to) - iattr->stacksize = (size_t) iattr->stackaddr - last_to; - #else -- /* The limit might be too high. */ -+ /* The limit might be too low. */ - if ((size_t) iattr->stacksize -- > to - (size_t) iattr->stackaddr) -+ < to - (size_t) iattr->stackaddr) - iattr->stacksize = to - (size_t) iattr->stackaddr; - #endif - /* We succeed and no need to look further. */ diff --git a/srcpkgs/glibc/patches/ce9b765522f014daa0392099dd9ba1f7ddcc511d.patch b/srcpkgs/glibc/patches/ce9b765522f014daa0392099dd9ba1f7ddcc511d.patch deleted file mode 100644 index 8fcee8c1ef598a..00000000000000 --- a/srcpkgs/glibc/patches/ce9b765522f014daa0392099dd9ba1f7ddcc511d.patch +++ /dev/null @@ -1,53 +0,0 @@ -From ce9b765522f014daa0392099dd9ba1f7ddcc511d Mon Sep 17 00:00:00 2001 -From: Adhemerval Zanella -Date: Wed, 12 Mar 2025 10:59:17 -0300 -Subject: [PATCH] nptl: Check if thread is already terminated in - sigcancel_handler (BZ 32782) - -The SIGCANCEL signal handler should not issue __syscall_do_cancel, -which calls __do_cancel and __pthread_unwind, if the cancellation -is already in proces (and libgcc unwind is not reentrant). Any -cancellation signal received after is ignored. - -Checked on x86_64-linux-gnu and aarch64-linux-gnu. - -Tested-by: Aurelien Jarno -Reviewed-by: Florian Weimer - -(cherry picked from commit 360cce0b066f34e85e473c04cdc16e6fa426021b) ---- - NEWS | 1 + - nptl/pthread_cancel.c | 14 ++++--- - sysdeps/pthread/Makefile | 1 + - sysdeps/pthread/tst-cancel32.c | 73 ++++++++++++++++++++++++++++++++++ - 4 files changed, 83 insertions(+), 6 deletions(-) - create mode 100644 sysdeps/pthread/tst-cancel32.c - -diff --git a/nptl/pthread_cancel.c b/nptl/pthread_cancel.c -index f7ce3ec51b..b838273881 100644 ---- a/nptl/pthread_cancel.c -+++ b/nptl/pthread_cancel.c -@@ -41,15 +41,17 @@ sigcancel_handler (int sig, siginfo_t *si, void *ctx) - || si->si_code != SI_TKILL) - return; - -- /* Check if asynchronous cancellation mode is set or if interrupted -- instruction pointer falls within the cancellable syscall bridge. For -- interruptable syscalls with external side-effects (i.e. partial reads), -- the kernel will set the IP to after __syscall_cancel_arch_end, thus -- disabling the cancellation and allowing the process to handle such -+ /* Check if asynchronous cancellation mode is set and cancellation is not -+ already in progress, or if interrupted instruction pointer falls within -+ the cancellable syscall bridge. -+ For interruptable syscalls with external side-effects (i.e. partial -+ reads), the kernel will set the IP to after __syscall_cancel_arch_end, -+ thus disabling the cancellation and allowing the process to handle such - conditions. */ - struct pthread *self = THREAD_SELF; - int oldval = atomic_load_relaxed (&self->cancelhandling); -- if (cancel_async_enabled (oldval) || cancellation_pc_check (ctx)) -+ if (cancel_enabled_and_canceled_and_async (oldval) -+ || cancellation_pc_check (ctx)) - __syscall_do_cancel (); - } - diff --git a/srcpkgs/glibc/patches/e22c132484ea49be0478e4dcbd108d433d70f64c.patch b/srcpkgs/glibc/patches/e22c132484ea49be0478e4dcbd108d433d70f64c.patch deleted file mode 100644 index 67752a1d40e683..00000000000000 --- a/srcpkgs/glibc/patches/e22c132484ea49be0478e4dcbd108d433d70f64c.patch +++ /dev/null @@ -1,58 +0,0 @@ -From e22c132484ea49be0478e4dcbd108d433d70f64c Mon Sep 17 00:00:00 2001 -From: Michael Jeanson -Date: Fri, 14 Feb 2025 13:54:22 -0500 -Subject: [PATCH] nptl: clear the whole rseq area before registration - -Due to the extensible nature of the rseq area we can't explictly -initialize fields that are not part of the ABI yet. It was agreed with -upstream that all new fields will be documented as zero initialized by -userspace. Future kernels configured with CONFIG_DEBUG_RSEQ will -validate the content of all fields during registration. - -Replace the explicit field initialization with a memset of the whole -rseq area which will cover fields as they are added to future kernels. - -Signed-off-by: Michael Jeanson -Reviewed-by: Florian Weimer -(cherry picked from commit 689a62a4217fae78b9ce0db781dc2a421f2b1ab4) ---- - sysdeps/nptl/dl-tls_init_tp.c | 1 + - sysdeps/unix/sysv/linux/rseq-internal.h | 11 +++++------ - 2 files changed, 6 insertions(+), 6 deletions(-) - -diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c -index f487bfb66e7..8629b5d41b0 100644 ---- a/sysdeps/nptl/dl-tls_init_tp.c -+++ b/sysdeps/nptl/dl-tls_init_tp.c -@@ -23,6 +23,7 @@ - #include - #include - #include -+#include - - #define TUNABLE_NAMESPACE pthread - #include -diff --git a/sysdeps/unix/sysv/linux/rseq-internal.h b/sysdeps/unix/sysv/linux/rseq-internal.h -index f89e7842431..d2ab4cb829b 100644 ---- a/sysdeps/unix/sysv/linux/rseq-internal.h -+++ b/sysdeps/unix/sysv/linux/rseq-internal.h -@@ -108,13 +108,12 @@ rseq_register_current_thread (struct pthread *self, bool do_rseq) - if (size < RSEQ_AREA_SIZE_INITIAL) - size = RSEQ_AREA_SIZE_INITIAL; - -- /* Initialize the rseq fields that are read by the kernel on -- registration, there is no guarantee that struct pthread is -- cleared on all architectures. */ -+ /* Initialize the whole rseq area to zero prior to registration. */ -+ memset (RSEQ_SELF (), 0, size); -+ -+ /* Set the cpu_id field to RSEQ_CPU_ID_UNINITIALIZED, this is checked by -+ the kernel at registration when CONFIG_DEBUG_RSEQ is enabled. */ - RSEQ_SETMEM (cpu_id, RSEQ_CPU_ID_UNINITIALIZED); -- RSEQ_SETMEM (cpu_id_start, 0); -- RSEQ_SETMEM (rseq_cs, 0); -- RSEQ_SETMEM (flags, 0); - - int ret = INTERNAL_SYSCALL_CALL (rseq, RSEQ_SELF (), size, 0, RSEQ_SIG); - if (!INTERNAL_SYSCALL_ERROR_P (ret)) - diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template index b0e35723cc72ac..92b111ffdbaace 100644 --- a/srcpkgs/glibc/template +++ b/srcpkgs/glibc/template @@ -1,6 +1,6 @@ # Template file for 'glibc' pkgname=glibc -version=2.41 +version=2.44 revision=1 bootstrap=yes short_desc="GNU C library" @@ -8,7 +8,7 @@ maintainer="Enno Boland " 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=a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901 +checksum=37f600f2bef3c5e8300147059568b2a2e40a7ad6ccc65ce942556d49429cc667 # Do not strip these files, objcopy errors out. nostrip_files=" XBS5_ILP32_OFFBIG diff --git a/srcpkgs/kernel-libc-headers/template b/srcpkgs/kernel-libc-headers/template index 3aab3f49ddc7c4..232a5e01d3db12 100644 --- a/srcpkgs/kernel-libc-headers/template +++ b/srcpkgs/kernel-libc-headers/template @@ -1,6 +1,6 @@ # Template file for 'kernel-libc-headers' pkgname=kernel-libc-headers -version=6.14 +version=7.0 revision=1 bootstrap=yes short_desc="Linux API headers for userland development" @@ -8,7 +8,7 @@ maintainer="Érico Nogueira " license="GPL-2.0-only" homepage="http://www.kernel.org" distfiles="${KERNEL_SITE}/kernel/v${version%%.*}.x/linux-${version}.tar.xz" -checksum=a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670 +checksum=bb7f6d80b387c757b7d14bb93028fcb90f793c5c0d367736ee815a100b3891f0 if [ "$CHROOT_READY" ]; then hostmakedepends="perl" diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template index 2e649e6bd03aca..e835afec85e34a 100644 --- a/srcpkgs/libgccjit/template +++ b/srcpkgs/libgccjit/template @@ -3,7 +3,7 @@ # which use the version number. pkgname=libgccjit -version=14.2.1+20250405 +version=16.1.1+20260502 revision=1 hostmakedepends="tar texinfo perl flex" makedepends="zlib-devel libzstd-devel isl-devel libmpc-devel gmp-devel mpfr-devel" @@ -17,7 +17,7 @@ case "${version}" in *+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${version%%.*}-${version#*+}/gcc-${version%%.*}-${version#*+}.tar.xz" ;; *) distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz" ;; esac -checksum=9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3 +checksum=d78e2e56ee6f89e40dc742ae0c8a716ad4eb4637bc57bd49f9dec48ce9753283 nopie=yes lib32disabled=yes diff --git a/srcpkgs/libkdumpfile/template b/srcpkgs/libkdumpfile/template index 568ffd2e1580cb..2022acb40ef41b 100644 --- a/srcpkgs/libkdumpfile/template +++ b/srcpkgs/libkdumpfile/template @@ -1,7 +1,7 @@ # Template file for 'libkdumpfile' pkgname=libkdumpfile version=0.5.5 -revision=2 +revision=3 build_style=gnu-configure configure_args="PYTHON=python3" hostmakedepends="automake pkg-config libtool python3-setuptools python3-packaging-bootstrap" diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template index f982fca29130fa..cd9965dca59641 100644 --- a/srcpkgs/libtool/template +++ b/srcpkgs/libtool/template @@ -1,14 +1,14 @@ # Template file for 'libtool' pkgname=libtool version=2.4.7 -revision=8 +revision=9 build_style=gnu-configure hostmakedepends="texinfo perl automake help2man xz gnulib tar" short_desc="Generic library support script" maintainer="Enno Boland " license="GPL-2.0-or-later" homepage="http://www.gnu.org/software/libtool" -distfiles="${GNU_SITE}/libtool/$pkgname-$version.tar.xz" +distfiles="${GNU_SITE}/libtool/libtool-${version}.tar.xz" checksum=4f7f217f057ce655ff22559ad221a0fd8ef84ad1fc5fcb6990cecc333aa1635d if [ "$XBPS_TARGET_LIBC" = "musl" ]; then diff --git a/srcpkgs/linux-tools/patches/musl-basename.patch b/srcpkgs/linux-tools/patches/musl-basename.patch deleted file mode 100644 index 99f5093d65c7ec..00000000000000 --- a/srcpkgs/linux-tools/patches/musl-basename.patch +++ /dev/null @@ -1,99 +0,0 @@ -From 581037151910126a7934e369e4b6ac70eda9a703 Mon Sep 17 00:00:00 2001 -From: Arnaldo Carvalho de Melo -Date: Thu, 21 Mar 2024 11:13:30 -0300 -Subject: [PATCH] perf probe: Add missing libgen.h header needed for using - basename() - -This prototype is obtained indirectly, by luck, from some other header -in probe-event.c in most systems, but recently exploded on alpine:edge: - - 8 13.39 alpine:edge : FAIL gcc version 13.2.1 20240309 (Alpine 13.2.1_git20240309) - util/probe-event.c: In function 'convert_exec_to_group': - util/probe-event.c:225:16: error: implicit declaration of function 'basename' [-Werror=implicit-function-declaration] - 225 | ptr1 = basename(exec_copy); - | ^~~~~~~~ - util/probe-event.c:225:14: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] - 225 | ptr1 = basename(exec_copy); - | ^ - cc1: all warnings being treated as errors - make[3]: *** [/git/perf-6.8.0/tools/build/Makefile.build:158: util] Error 2 - -Fix it by adding the libgen.h header where basename() is prototyped. - -Fixes: fb7345bbf7fad9bf ("perf probe: Support basic dwarf-based operations on uprobe events") -Cc: Masami Hiramatsu -Cc: Adrian Hunter -Cc: Ian Rogers -Cc: Jiri Olsa -Cc: Namhyung Kim -Link: https://lore.kernel.org/lkml/ -Signed-off-by: Arnaldo Carvalho de Melo ---- - tools/perf/util/probe-event.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c -index 2a0ad9ecf0a20e..5c12459e9765f6 100644 ---- a/tools/perf/util/probe-event.c -+++ b/tools/perf/util/probe-event.c -@@ -11,6 +11,7 @@ - #include - #include - #include -+#include - #include - #include - #include -From 29788f39a4171dd48a6d19eb78cf2ab168c4349a Mon Sep 17 00:00:00 2001 -From: Arnaldo Carvalho de Melo -Date: Mon, 29 Jan 2024 11:33:26 -0300 -Subject: [PATCH] bpftool: Be more portable by using POSIX's basename() - -musl libc had the basename() prototype in string.h, but this is a -glibc-ism, now they removed the _GNU_SOURCE bits in their devel distro, -Alpine Linux edge: - - https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7 - -So lets use the POSIX version, the whole rationale is spelled out at: - - https://gitlab.alpinelinux.org/alpine/aports/-/issues/15643 - -Signed-off-by: Arnaldo Carvalho de Melo -Signed-off-by: Daniel Borkmann -Acked-by: Jiri Olsa -Acked-by: Quentin Monnet -Link: https://lore.kernel.org/lkml/ZZhsPs00TI75RdAr@kernel.org -Link: https://lore.kernel.org/bpf/Zbe3NuOgaupvUcpF@kernel.org ---- - tools/bpf/bpftool/gen.c | 9 ++++++--- - 1 file changed, 6 insertions(+), 3 deletions(-) - -diff --git a/tools/bpf/bpftool/gen.c b/tools/bpf/bpftool/gen.c -index ee3ce2b8000d75..a9334c57e85991 100644 ---- a/tools/bpf/bpftool/gen.c -+++ b/tools/bpf/bpftool/gen.c -@@ -7,6 +7,7 @@ - #include - #include - #include -+#include - #include - #include - #include -@@ -56,9 +57,11 @@ static bool str_has_suffix(const char *str, const char *suffix) - - static void get_obj_name(char *name, const char *file) - { -- /* Using basename() GNU version which doesn't modify arg. */ -- strncpy(name, basename(file), MAX_OBJ_NAME_LEN - 1); -- name[MAX_OBJ_NAME_LEN - 1] = '\0'; -+ char file_copy[PATH_MAX]; -+ -+ /* Using basename() POSIX version to be more portable. */ -+ strncpy(file_copy, file, PATH_MAX - 1)[PATH_MAX - 1] = '\0'; -+ strncpy(name, basename(file_copy), MAX_OBJ_NAME_LEN - 1)[MAX_OBJ_NAME_LEN - 1] = '\0'; - if (str_has_suffix(name, ".o")) - name[strlen(name) - 2] = '\0'; - sanitize_identifier(name); - diff --git a/srcpkgs/linux-tools/patches/perf.patch b/srcpkgs/linux-tools/patches/perf.patch deleted file mode 100644 index 87d96156241e9f..00000000000000 --- a/srcpkgs/linux-tools/patches/perf.patch +++ /dev/null @@ -1,15 +0,0 @@ -https://lore.kernel.org/linux-perf-users/3a8c66ec-537d-4e29-bf08-226dd41b08aa@linux.intel.com/ - ---- a/tools/perf/builtin-top.c -+++ b/tools/perf/builtin-top.c -@@ -1027,8 +1027,8 @@ - - evlist__for_each_entry(evlist, counter) { - try_again: -- if (evsel__open(counter, top->evlist->core.user_requested_cpus, -- top->evlist->core.threads) < 0) { -+ if (evsel__open(counter, counter->core.cpus, -+ counter->core.threads) < 0) { - - /* - * Specially handle overwrite fall back. diff --git a/srcpkgs/linux-tools/patches/ppc-bpf.patch b/srcpkgs/linux-tools/patches/ppc-bpf.patch deleted file mode 100644 index b5fb75084aa9c4..00000000000000 --- a/srcpkgs/linux-tools/patches/ppc-bpf.patch +++ /dev/null @@ -1,15 +0,0 @@ -https://www.mail-archive.com/netdev@vger.kernel.org/msg364272.html - ---- a/tools/include/uapi/linux/types.h -+++ b/tools/include/uapi/linux/types.h -@@ -20,4 +20,10 @@ typedef __u32 __bitwise __wsum; - #define __aligned_be64 __be64 __attribute__((aligned(8))) - #define __aligned_le64 __le64 __attribute__((aligned(8))) - -+#ifdef __powerpc__ -+typedef struct { -+ __u32 u[4]; -+} __attribute__((aligned(16))) __vector128; -+#endif -+ - #endif /* _UAPI_LINUX_TYPES_H */ diff --git a/srcpkgs/linux-tools/template b/srcpkgs/linux-tools/template index 2bad1c1516ec49..0faa647d47ca28 100644 --- a/srcpkgs/linux-tools/template +++ b/srcpkgs/linux-tools/template @@ -1,10 +1,10 @@ # Template file for 'linux-tools' pkgname=linux-tools -version=6.5 -revision=8 +version=6.18 +revision=1 metapackage=yes hostmakedepends="asciidoc automake flex gettext libtool perl - python3-setuptools python3-docutils xmlto pkg-config" + python3-setuptools python3-docutils xmlto pkg-config which" makedepends="babeltrace-devel binutils-devel elfutils-devel eudev-libudev-devel libcap-devel liblzma-devel openssl-devel libsysfs-devel libunwind-devel libzstd-devel ncurses-devel pciutils-devel python3-devel readline-devel @@ -15,7 +15,7 @@ maintainer="Enno Boland " license="GPL-2.0-only" homepage="https://www.kernel.org" distfiles="${KERNEL_SITE}/kernel/v${version%%.*}.x/linux-${version}.tar.xz" -checksum=7a574bbc20802ea76b52ca7faf07267f72045e861b18915c5272a98c27abf884 +checksum=9106a4605da9e31ff17659d958782b815f9591ab308d03b0ee21aad6c7dced4b python_version=3 subpackages="cpupower freefall libcpupower libcpupower-devel libusbip @@ -165,6 +165,9 @@ cpupower_package() { vmove usr/share/doc/cpupower vmove usr/share/locale vmove etc/cpufreq-bench.conf + vmove etc/cpupower-service.conf + vmove usr/libexec/cpupower + vmove usr/lib/systemd/system/cpupower.service } } libcpupower_package() { diff --git a/srcpkgs/mate-applets/template b/srcpkgs/mate-applets/template index 2a743e58a1f493..b402e07e8e1b5b 100644 --- a/srcpkgs/mate-applets/template +++ b/srcpkgs/mate-applets/template @@ -1,7 +1,7 @@ # Template file for 'mate-applets' pkgname=mate-applets version=1.28.1 -revision=1 +revision=2 build_style=gnu-configure configure_args="--disable-static --enable-ipv6 --libexecdir=/usr/libexec/mate" hostmakedepends="glib-devel itstool gettext pkg-config polkit libxml2" diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template index 926c2aa40463aa..539646233a5572 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=2 +revision=3 build_style=gnu-makefile make_cmd=bmake make_install_args="MANDIR=/usr/share/man" diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template index f2f3097276eed0..a02da59e177795 100644 --- a/srcpkgs/musl/template +++ b/srcpkgs/musl/template @@ -17,9 +17,10 @@ checksum=d585fd3b613c66151fc3249e8ed44f77020cb5e6c1e635a616d3f9f82460512a nostrip_files="libc.so" shlib_provides="libc.so" -if [ "$XBPS_TARGET_WORDSIZE" -eq 32 ]; then - broken="use musl1.1" -fi +case "$XBPS_TARGET_MACHINE" in + armv*) broken="use musl1.1" ;; + *) ;; +esac post_build() { $CC $CFLAGS $LDFLAGS -fpie ${FILESDIR}/getent.c -o getent diff --git a/srcpkgs/musl1.1/template b/srcpkgs/musl1.1/template index 4498eca839177f..9bc4e00f054b50 100644 --- a/srcpkgs/musl1.1/template +++ b/srcpkgs/musl1.1/template @@ -19,9 +19,10 @@ provides="musl-${version}_${revision}" nostrip_files="libc.so" shlib_provides="libc.so" -if [ "$XBPS_TARGET_WORDSIZE" -ne 32 ]; then - broken="use musl" -fi +case "$XBPS_TARGET_MACHINE" in + armv*) ;; + *) broken="use musl" ;; +esac post_build() { $CC $CFLAGS $LDFLAGS -fpie ${FILESDIR}/getent.c -o getent