Diff gmp-6.2.1-r5 with a gmp-6.3.0

/usr/portage/dev-libs/gmp/gmp-6.3.0.ebuild 2023-10-09 14:52:29.500368350 +0300
20 20
	mirror://gnu/${PN}/${MY_P}.tar.xz
21 21
	doc? ( https://gmplib.org/${PN}-man-${MANUAL_PV}.pdf )
22 22
"
23
SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-arm64-darwin.patch.bz2"
24 23
S="${WORKDIR}"/${MY_P%a}
25 24

  
26 25
LICENSE="|| ( LGPL-3+ GPL-2+ )"
......
44 43
PATCHES=(
45 44
	"${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
46 45
	"${FILESDIR}"/${PN}-6.2.1-no-zarch.patch
47
	"${WORKDIR}"/${P}-arm64-darwin.patch
48
	"${FILESDIR}"/${P}-CVE-2021-43618.patch
49 46
)
50 47

  
51 48
pkg_pretend() {
......
96 93
	# Generally a very fragile package
97 94
	strip-flags
98 95
	# Miscompiled with LTO at least on arm64, bug #889948
96
	# 6.3.0 says it now supports LTO, but needs retesting on a variety
97
	# of platforms. Fix was maybe https://gmplib.org/repo/gmp-6.3/rev/9c324044f4b5.
99 98
	filter-lto
100 99

  
101 100
	# Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
......
140 139
		# --with-pic forces static libraries to be built as PIC
141 140
		# and without TEXTRELs. musl does not support TEXTRELs: bug #707332
142 141
		$(use pic && echo --with-pic)
142

  
143
		# XXX: In the past, we had PGO support with upstream's 'tuneup' script
144
		# per https://gmplib.org/manual/Performance-optimization, but we had
145
		# a variety of issues with it: bug #454912, bug #650558, and bug #658688.
143 146
	)
144 147

  
145 148
	# Move the wrappers from GMP back into place (may have been destroyed by previous econf run)
Thank you!