Diff binutils-hppa64-2.38-r2 with a binutils-hppa64-2.39-r5

/usr/portage/sys-devel/binutils-hppa64/binutils-hppa64-2.39-r5.ebuild 2024-07-02 13:51:49.409851594 +0300
11 11
HOMEPAGE="https://sourceware.org/binutils/"
12 12

  
13 13
LICENSE="GPL-3+"
14
IUSE="cet default-gold doc +gold multitarget +nls pgo +plugins static-libs test vanilla"
14
IUSE="cet default-gold doc gold gprofng multitarget +nls pgo +plugins static-libs test vanilla"
15 15
REQUIRED_USE="default-gold? ( gold )"
16 16

  
17 17
# Variables that can be set here  (ignored for live ebuilds)
......
22 22
# PATCH_DEV          - Use download URI https://dev.gentoo.org/~{PATCH_DEV}/distfiles/...
23 23
#                      for the patchsets
24 24

  
25
PATCH_VER=4
25
PATCH_VER=6
26 26
PATCH_DEV=dilfridge
27 27

  
28 28
if [[ ${PV} == 9999* ]]; then
......
94 94
		local dir=${P%_p?}
95 95
		dir=${dir/-hppa64/}
96 96

  
97
		S="${WORKDIR}"/${dir}
97
		S=${WORKDIR}/${dir}
98 98
	fi
99 99

  
100 100
	cd "${WORKDIR}" || die
......
194 194

  
195 195
	myconf+=( --with-system-zlib )
196 196

  
197
	# For bi-arch systems, enable a 64bit bfd.  This matches the bi-arch
197
	# For bi-arch systems, enable a 64bit bfd. This matches the bi-arch
198 198
	# logic in toolchain.eclass. bug #446946
199 199
	#
200 200
	# We used to do it for everyone, but it's slow on 32bit arches. bug #438522
......
239 239
		--enable-install-libiberty
240 240
		# Available from 2.35 on
241 241
		--enable-textrel-check=warning
242
		# Works better than vapier's patch., bug #808787
242

  
243
		# These hardening options are available from 2.39+ but
244
		# they unconditionally enable the behaviour even on arches
245
		# where e.g. execstacks can't be avoided.
246
		# See https://sourceware.org/bugzilla/show_bug.cgi?id=29592.
247
		#--enable-warn-execstack
248
		#--enable-warn-rwx-segments
249
		#--disable-default-execstack (or is it --enable-default-execstack=no? docs are confusing)
250

  
251
		# Things to think about
252
		#--enable-deterministic-archives
253

  
254
		# Works better than vapier's patch, bug #808787
243 255
		--enable-new-dtags
256

  
257
		--disable-jansson
244 258
		--disable-werror
245 259
		--with-bugurl="$(toolchain-binutils_bugurl)"
246 260
		--with-pkgversion="$(toolchain-binutils_pkgversion)"
247 261
		$(use_enable static-libs static)
248
		# Disable modules that are in a combined binutils/gdb tree. bug #490566
262
		# Disable modules that are in a combined binutils/gdb tree, bug #490566
249 263
		--disable-{gdb,libdecnumber,readline,sim}
250 264
		# Strip out broken static link flags.
251 265
		# https://gcc.gnu.org/PR56750
......
254 268
		# {native,cross}/binutils, binutils-libs. bug #666100
255 269
		--with-extra-soversion-suffix=gentoo-${CATEGORY}-${PN}-$(usex multitarget mt st)
256 270

  
257
		# avoid automagic dependency on (currently prefix) systems
271
		# Avoid automagic dependency on (currently prefix) systems
258 272
		# systems with debuginfod library, bug #754753
259 273
		--without-debuginfod
260 274

  
275
		# Avoid automagic dev-libs/msgpack dep, bug #865875
276
		--without-msgpack
277

  
261 278
		# Allow user to opt into CET for host libraries.
262 279
		# Ideally we would like automagic-or-disabled here.
263 280
		# But the check does not quite work on i686: bug #760926.
264 281
		$(use_enable cet)
265 282

  
283
		# We can enable this by default in future, but it's brand new
284
		# in 2.39 with several bugs:
285
		# - Doesn't build on musl (https://sourceware.org/bugzilla/show_bug.cgi?id=29477)
286
		# - No man pages (https://sourceware.org/bugzilla/show_bug.cgi?id=29521)
287
		# - Broken at runtime without Java (https://sourceware.org/bugzilla/show_bug.cgi?id=29479)
288
		# - binutils-config (and this ebuild?) needs adaptation first (https://bugs.gentoo.org/865113)
289
		$(use_enable gprofng)
266 290
	)
267 291

  
268 292
	if ! is_cross ; then
Thank you!