Сравнение spidermonkey-91.13.0-r1 с spidermonkey-102.6.0

/usr/portage/dev-lang/spidermonkey/spidermonkey-102.6.0.ebuild 2023-10-09 14:52:29.480368350 +0300
4 4
EAPI="8"
5 5

  
6 6
# Patch version
7
FIREFOX_PATCHSET="firefox-91esr-patches-10j.tar.xz"
8
SPIDERMONKEY_PATCHSET="spidermonkey-91-patches-05j.tar.xz"
7
FIREFOX_PATCHSET="firefox-102esr-patches-07j.tar.xz"
8
SPIDERMONKEY_PATCHSET="spidermonkey-102-patches-04j.tar.xz"
9 9

  
10 10
LLVM_MAX_SLOT=15
11 11

  
......
51 51
fi
52 52

  
53 53
PATCH_URIS=(
54
	https://dev.gentoo.org/~{juippis,polynomial-c,whissi}/mozilla/patchsets/${FIREFOX_PATCHSET}
55
	https://dev.gentoo.org/~{juippis,polynomial-c,whissi}/mozilla/patchsets/${SPIDERMONKEY_PATCHSET}
54
	https://dev.gentoo.org/~{juippis,whissi}/mozilla/patchsets/${FIREFOX_PATCHSET}
55
	https://dev.gentoo.org/~{juippis,whissi}/mozilla/patchsets/${SPIDERMONKEY_PATCHSET}
56 56
)
57 57

  
58 58
SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz
......
63 63

  
64 64
KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 ~riscv sparc x86"
65 65

  
66
SLOT="91"
66
SLOT="$(ver_cut 1)"
67 67
LICENSE="MPL-2.0"
68 68
IUSE="clang cpu_flags_arm_neon debug +jit lto test"
69 69

  
70
#RESTRICT="test"
70 71
RESTRICT="!test? ( test )"
71 72

  
72 73
BDEPEND="${PYTHON_DEPS}
......
93 94
	test? (
94 95
		$(python_gen_any_dep 'dev-python/six[${PYTHON_USEDEP}]')
95 96
	)"
96
DEPEND=">=dev-libs/icu-69.1:=
97
DEPEND=">=dev-libs/icu-71.1:=
97 98
	dev-libs/nspr
98 99
	sys-libs/readline:0=
99 100
	sys-libs/zlib"
......
137 138

  
138 139
pkg_pretend() {
139 140
	if use test ; then
140
		CHECKREQS_DISK_BUILD="7600M"
141
		CHECKREQS_DISK_BUILD="7000M"
141 142
	else
142
		CHECKREQS_DISK_BUILD="6400M"
143
		CHECKREQS_DISK_BUILD="6000M"
143 144
	fi
144 145

  
145 146
	check-reqs_pkg_pretend
......
148 149
pkg_setup() {
149 150
	if [[ ${MERGE_TYPE} != binary ]] ; then
150 151
		if use test ; then
151
			CHECKREQS_DISK_BUILD="7600M"
152
			CHECKREQS_DISK_BUILD="7000M"
152 153
		else
153
			CHECKREQS_DISK_BUILD="6400M"
154
			CHECKREQS_DISK_BUILD="6000M"
154 155
		fi
155 156

  
156 157
		check-reqs_pkg_setup
......
265 266
	# Ensure we use correct toolchain
266 267
	export HOST_CC="$(tc-getBUILD_CC)"
267 268
	export HOST_CXX="$(tc-getBUILD_CXX)"
268
	tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
269
	export AS="$(tc-getCC) -c"
270
	tc-export CC CXX LD AR AS NM OBJDUMP RANLIB PKG_CONFIG
269 271

  
270 272
	cd "${MOZJS_BUILDDIR}" || die
271 273

  
......
275 277
	local -a myeconfargs=(
276 278
		--host="${CBUILD:-${CHOST}}"
277 279
		--target="${CHOST}"
280

  
278 281
		--disable-ctype
279 282
		--disable-jemalloc
280 283
		--disable-optimize
281 284
		--disable-smoosh
282 285
		--disable-strip
286

  
283 287
		--enable-readline
284 288
		--enable-release
285 289
		--enable-shared-js
290

  
286 291
		--with-intl-api
287 292
		--with-system-icu
288 293
		--with-system-nspr
289 294
		--with-system-zlib
290 295
		--with-toolchain-prefix="${CHOST}-"
296

  
291 297
		$(use_enable debug)
292 298
		$(use_enable jit)
293 299
		$(use_enable test tests)
294 300
	)
295 301

  
296
	# Temporary fix with rust-1.63, bgo#870193
297
	# if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
298
	#	myeconfargs+=( --enable-rust-simd )
299
	# fi
300
	myeconfargs+=( --disable-rust-simd )
302
	if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
303
		myeconfargs+=( --enable-rust-simd )
304
	fi
301 305

  
302 306
	# Modifications to better support ARM, bug 717344
303 307
	if use cpu_flags_arm_neon ; then
......
317 321
			myeconfargs+=( --enable-lto=cross )
318 322
		else
319 323
			myeconfargs+=( --enable-linker=bfd )
320
			myeconfargs+=( --enable-lto )
324
			myeconfargs+=( --enable-lto=full )
321 325
		fi
322 326
	fi
323 327

  
......
331 335
		fi
332 336
	fi
333 337

  
334
	export MACH_USE_SYSTEM_PYTHON=1
335
	export PIP_NO_CACHE_DIR=off
338
	# Use system's Python environment
339
	export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
340
	export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
336 341

  
337 342
	# Show flags we will use
338 343
	einfo "Build CFLAGS:    ${CFLAGS}"
......
360 365
		die "Smoke-test failed: did interpreter initialization fail?"
361 366
	fi
362 367

  
363
	cp "${FILESDIR}"/spidermonkey-91-known-test-failures.txt "${T}"/known_failures.list || die
364

  
365
	# bgo #827960
366
	if use ppc; then
367
		echo "non262/TypedArray/map-and-filter.js" >> "${T}"/known_failures.list
368
		echo "test262/built-ins/Atomics/load/bigint/good-views.js" >> "${T}"/known_failures.list
369
		echo "test262/built-ins/Atomics/load/bigint/non-shared-bufferdata.js" >> "${T}"/known_failures.list
370
		echo "test262/built-ins/Atomics/add/bigint/good-views.js" >> "${T}"/known_failures.list
371
		echo "test262/built-ins/Atomics/add/bigint/non-shared-bufferdata.js" >> "${T}"/known_failures.list
372
		echo "test262/built-ins/Atomics/exchange/bigint/good-views.js" >> "${T}"/known_failures.list
373
		echo "test262/built-ins/Atomics/exchange/bigint/non-shared-bufferdata.js" >> "${T}"/known_failures.list
374
		echo "test262/built-ins/Atomics/store/bigint/good-views.js" >> "${T}"/known_failures.list
375
		echo "test262/built-ins/Atomics/store/bigint/non-shared-bufferdata.js" >> "${T}"/known_failures.list
376
		echo "test262/built-ins/Atomics/xor/bigint/good-views.js" >> "${T}"/known_failures.list
377
		echo "test262/built-ins/Atomics/xor/bigint/non-shared-bufferdata.js" >> "${T}"/known_failures.list
378
		echo "test262/built-ins/Atomics/sub/bigint/good-views.js" >> "${T}"/known_failures.list
379
		echo "test262/built-ins/Atomics/sub/bigint/non-shared-bufferdata.js" >> "${T}"/known_failures.list
380
		echo "test262/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-exchange.js" >> "${T}"/known_failures.list
381
		echo "test262/built-ins/Atomics/and/bigint/good-views.js" >> "${T}"/known_failures.list
382
		echo "test262/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-or.js" >> "${T}"/known_failures.list
383
		echo "test262/built-ins/Atomics/wait/bigint/false-for-timeout-agent.js" >> "${T}"/known_failures.list
384
		echo "test262/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-add.js" >> "${T}"/known_failures.list
385
		echo "test262/built-ins/Atomics/or/bigint/non-shared-bufferdata.js" >> "${T}"/known_failures.list
386
		echo "test262/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-sub.js" >> "${T}"/known_failures.list
387
		echo "test262/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-compareExchange.js" >> "${T}"/known_failures.list
388
		echo "test262/built-ins/Atomics/wait/bigint/negative-timeout-agent.js" >> "${T}"/known_failures.list
389
		echo "test262/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-xor.js" >> "${T}"/known_failures.list
390
		echo "test262/built-ins/Atomics/wait/bigint/value-not-equal.js" >> "${T}"/known_failures.list
391
		echo "test262/built-ins/Atomics/wait/bigint/no-spurious-wakeup-no-operation.js" >> "${T}"/known_failures.list
392
		echo "test262/built-ins/Atomics/wait/bigint/waiterlist-block-indexedposition-wake.js" >> "${T}"/known_failures.list
393
		echo "test262/built-ins/Atomics/wait/bigint/nan-for-timeout.js" >> "${T}"/known_failures.list
394
		echo "test262/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-and.js" >> "${T}"/known_failures.list
395
		echo "test262/built-ins/Atomics/wait/bigint/was-woken-before-timeout.js" >> "${T}"/known_failures.list
396
		echo "test262/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-store.js" >> "${T}"/known_failures.list
397
		echo "test262/built-ins/Atomics/wait/bigint/waiterlist-order-of-operations-is-fifo.js" >> "${T}"/known_failures.list
398
		echo "test262/built-ins/Atomics/compareExchange/bigint/non-shared-bufferdata.js" >> "${T}"/known_failures.list
399
		echo "test262/built-ins/Atomics/compareExchange/bigint/good-views.js" >> "${T}"/known_failures.list
400
		echo "test262/built-ins/Atomics/and/bigint/non-shared-bufferdata.js" >> "${T}"/known_failures.list
401
		echo "test262/built-ins/Atomics/or/bigint/good-views.js" >> "${T}"/known_failures.list
402
		echo "test262/built-ins/Atomics/notify/bigint/notify-all-on-loc.js" >> "${T}"/known_failures.list
403
	fi
404

  
405
	if use x86 ; then
406
		echo "non262/Date/timeclip.js" >> "${T}"/known_failures.list
407
		echo "test262/built-ins/Number/prototype/toPrecision/return-values.js" >> "${T}"/known_failures.list
408
		echo "test262/language/types/number/S8.5_A2.1.js" >> "${T}"/known_failures.list
409
		echo "test262/language/types/number/S8.5_A2.2.js" >> "${T}"/known_failures.list
410
	fi
368
	cp "${FILESDIR}"/spidermonkey-${SLOT}-known-test-failures.txt "${T}"/known_failures.list || die
411 369

  
412 370
	if [[ $(tc-endian) == "big" ]] ; then
413 371
		echo "non262/extensions/clone-errors.js" >> "${T}"/known_failures.list
Спасибо!