Diff glibc-2.40-r7 with a glibc-9999

/usr/portage/sys-libs/glibc/glibc-9999.ebuild 2025-02-03 17:39:35.942678037 +0300
12 12
EMULTILIB_PKG="true"
13 13

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

  
18 18
# gcc mulitilib bootstrap files version
......
41 41
if [[ ${PV} == 9999* ]]; then
42 42
	inherit git-r3
43 43
else
44
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
44
	#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
45 45
	SRC_URI="mirror://gnu/glibc/${P}.tar.xz"
46 46
	SRC_URI+=" https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${P}-patches-${PATCH_VER}.tar.xz"
47 47
fi
......
118 118
	test? (
119 119
		dev-lang/perl
120 120
		>=net-dns/libidn2-2.3.0
121
		sys-apps/gawk[mpfr]
121 122
	)
122 123
"
123 124
COMMON_DEPEND="
......
178 179

  
179 180
	# Fails with certain PORTAGE_NICENESS/PORTAGE_SCHEDULING_POLICY
180 181
	tst-sched1
182
	tst-sched_setattr
181 183

  
182 184
	# Fails regularly, unreliable
183 185
	tst-valgrind-smoke
......
191 193
	# upstream, as systemd-nspawn's default seccomp whitelist is too strict.
192 194
	# https://sourceware.org/PR30603
193 195
	test-errno-linux
196
	tst-aarch64-pkey
194 197
	tst-bz21269
195 198
	tst-mlock2
196 199
	tst-ntp_gettime
......
289 292
		# ignore build failures when installing a binary package #324685
290 293
		do_compile_test "" "$@" 2>/dev/null || return 0
291 294
	else
295
		ebegin "Performing simple compile test for ABI=${ABI}"
292 296
		if ! do_compile_test "" "$@" ; then
293 297
			ewarn "Simple build failed ... assuming this is desired #324685"
298
			eend 1
294 299
			return 0
300
		else
301
			eend 0
295 302
		fi
296 303
	fi
297 304

  
......
485 492
	# https://sourceware.org/glibc/wiki/FAQ#Why_do_I_get:.60.23error_.22glibc_cannot_be_compiled_without_optimization.22.27.2C_when_trying_to_compile_GNU_libc_with_GNU_CC.3F
486 493
	replace-flags -O0 -O1
487 494

  
488
	# glibc handles this internally already where it's appropriate;
489
	# can't always have SSP when we're the ones setting it up, etc
490
	filter-flags '-fstack-protector*'
491

  
492 495
	# Similar issues as with SSP. Can't inject yourself that early.
493 496
	filter-flags '-fsanitize=*'
494 497

  
......
933 936
	use multilib-bootstrap && unpack gcc-multilib-bootstrap-${GCC_BOOTSTRAP_VER}.tar.xz
934 937

  
935 938
	if [[ ${PV} == 9999* ]] ; then
936
		EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/toolchain/glibc-patches.git"
939
		EGIT_REPO_URI="
940
			https://anongit.gentoo.org/git/proj/toolchain/glibc-patches.git
941
			https://github.com/gentoo/glibc-patches.git
942
		"
937 943
		EGIT_CHECKOUT_DIR=${WORKDIR}/patches-git
938 944
		git-r3_src_unpack
939 945
		mv patches-git/9999 patches || die
940

  
941
		EGIT_REPO_URI="https://sourceware.org/git/glibc.git"
946
		EGIT_REPO_URI="
947
			https://sourceware.org/git/glibc.git
948
			https://git.sr.ht/~sourceware/glibc
949
			https://gitlab.com/x86-glibc/glibc.git
950
		"
942 951
		EGIT_CHECKOUT_DIR=${S}
943 952
		git-r3_src_unpack
944 953
	else
Thank you!