Diff glibc-2.43 with a glibc-9999

/usr/portage/sys-libs/glibc/glibc-9999.ebuild 2026-06-11 19:17:05.707800416 +0300
6 6
# Bumping notes: https://wiki.gentoo.org/wiki/Project:Toolchain/sys-libs/glibc
7 7
# Please read & adapt the page as necessary if obsolete.
8 8

  
9
PYTHON_COMPAT=( python3_{10..14} )
9
PYTHON_COMPAT=( python3_{11..14} )
10 10
TMPFILES_OPTIONAL=1
11 11

  
12 12
EMULTILIB_PKG="true"
13 13

  
14 14
# Gentoo patchset (ignored for live ebuilds)
15 15
PATCH_VER=1
16
PATCH_DEV=dilfridge
17 16

  
18 17
# gcc mulitilib bootstrap files version
19 18
GCC_BOOTSTRAP_VER=20201208
......
43 42
if [[ ${PV} == *9999 ]]; then
44 43
	inherit git-r3
45 44
else
46
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
45
	#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
47 46
	SRC_URI="mirror://gnu/glibc/${P}.tar.xz"
47
	SRC_URI+=" https://distfiles.gentoo.org/pub/proj/toolchain/glibc/patches/${P}-patches-${PATCH_VER}.tar.xz"
48 48
	SRC_URI+=" verify-sig? ( mirror://gnu/glibc/${P}.tar.xz.sig )"
49
	SRC_URI+=" https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${P}-patches-${PATCH_VER}.tar.xz"
50 49
fi
51 50

  
52 51
SRC_URI+=" multilib-bootstrap? ( https://dev.gentoo.org/~dilfridge/distfiles/gcc-multilib-bootstrap-${GCC_BOOTSTRAP_VER}.tar.xz )"
......
223 222
	tst-aarch64-pkey
224 223
	tst-bz21269
225 224
	tst-mlock2
225
	tst-mseal-pkey
226 226
	tst-ntp_gettime
227 227
	tst-ntp_gettime-time64
228 228
	tst-ntp_gettimex
......
387 387
					[[ ${t} == "x86_64" ]] && t="x86-64"
388 388
					filter-flags '-march=*'
389 389
					# ugly, ugly, ugly.  ugly.
390
					CFLAGS_x86=$(CFLAGS=${CFLAGS_x86}; filter-flags '-march=*'; echo "${CFLAGS}")
390
					CFLAGS_x86=$(
391
						CFLAGS=${CFLAGS_x86}
392
						filter-flags '-march=*'
393
						is-flagq '-mfpmath=sse' && append-cflags -msse
394
						echo "${CFLAGS}"
395
					)
391 396
					export CFLAGS_x86="${CFLAGS_x86} -march=${t}"
392 397
					einfo "Auto adding -march=${t} to CFLAGS_x86 #185404 (ABI=${ABI})"
393 398
				fi
......
846 851
			[[ ${I_ALLOW_TO_BREAK_MY_SYSTEM} = yes ]] || die "Aborting to save your system."
847 852
		fi
848 853

  
849
		if ! do_run_test '#include <unistd.h>\n#include <sys/syscall.h>\nint main(){return syscall(1000)!=-1;}\n' ; then
854
		if is_linux && ! do_run_test '#include <unistd.h>\n#include <sys/syscall.h>\nint main(){return syscall(1000)!=-1;}\n' ; then
850 855
			eerror "Your old kernel is broken. You need to update it to a newer"
851 856
			eerror "version as syscall(<bignum>) will break. See bug 279260."
852 857
			[[ ${I_ALLOW_TO_BREAK_MY_SYSTEM} = yes ]] || die "Old and broken kernel."
......
903 908
			die "Found directory (${ESYSROOT}/usr/lib/include) which will break build (bug #833620)!"
904 909
		fi
905 910

  
906
		if [[ ${CTARGET} == *-linux* ]] ; then
911
		if is_linux ; then
907 912
			local run_kv build_kv want_kv
908 913

  
909 914
			run_kv=$(g_get_running_KV)
......
1028 1033

  
1029 1034
		# Patches we should apply only for Hurd to be conservative
1030 1035
		if is_hurd ; then
1031
			eapply "${FILESDIR}"/glibc-2.43-hurd-link-helpers.patch
1032 1036
			eapply "${FILESDIR}"/glibc-2.43-hurd-CLOCK_MONOTONIC.patch
1033
			eapply "${FILESDIR}"/glibc-2.43-hurd-ldconfig.patch
1034 1037
		fi
1035 1038
	fi
1036 1039

  
......
1595 1598

  
1596 1599
	if is_hurd && has amd64 $(get_install_abis) ; then
1597 1600
		# First, let's check for sanity
1598
		if [[ -f "$(alt_prefix)/lib/ld-x86-64.so.1" ]] ; then
1601
		if [[ -f "${D}/$(alt_prefix)/lib/ld-x86-64.so.1" ]] ; then
1599 1602
			die "Somehow your amd64 hurd glibc installed /lib/ld-x86-64.so.1 ... this should not happen."
1600 1603
		fi
1601 1604

  
......
1605 1608

  
1606 1609
	if is_hurd && has x86 $(get_install_abis) ; then
1607 1610
		# First, let's check for sanity
1608
		if [[ -f "$(alt_prefix)/$(get_abi_LIBDIR x86)/ld.so" ]] ; then
1611
		if [[ -f "${D}/$(alt_prefix)/$(get_abi_LIBDIR x86)/ld.so" ]] ; then
1609 1612
			die "Somehow your x86 hurd glibc installed ld.so ... this should not happen."
1610 1613
		fi
1611 1614

  
Thank you!