Diff glibc-2.43 with a glibc-9999

/usr/portage/sys-libs/glibc/glibc-9999.ebuild 2026-05-14 19:17:06.272194340 +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 )"
......
845 844
			[[ ${I_ALLOW_TO_BREAK_MY_SYSTEM} = yes ]] || die "Aborting to save your system."
846 845
		fi
847 846

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

  
905
		if [[ ${CTARGET} == *-linux* ]] ; then
904
		if is_linux ; then
906 905
			local run_kv build_kv want_kv
907 906

  
908 907
			run_kv=$(g_get_running_KV)
......
1027 1026

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

  
......
1594 1591

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

  
......
1604 1601

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

  
Thank you!