Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/spidermonkey/
Date: Fri, 08 Apr 2022 10:14:34
Message-Id: 1649412865.f7c357dd2d6252daedde539beb3bba45792ca2a4.juippis@gentoo
1 commit: f7c357dd2d6252daedde539beb3bba45792ca2a4
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 8 10:14:06 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 8 10:14:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7c357dd
7
8 dev-lang/spidermonkey: drop 91.7.1
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 dev-lang/spidermonkey/Manifest | 2 -
13 dev-lang/spidermonkey/spidermonkey-91.7.1.ebuild | 410 -----------------------
14 2 files changed, 412 deletions(-)
15
16 diff --git a/dev-lang/spidermonkey/Manifest b/dev-lang/spidermonkey/Manifest
17 index ba6addedfcd4..370dc3f59737 100644
18 --- a/dev-lang/spidermonkey/Manifest
19 +++ b/dev-lang/spidermonkey/Manifest
20 @@ -2,7 +2,6 @@ DIST firefox-68.0-patches-15.tar.xz 16060 BLAKE2B f9e6cd58ea51bed1af90a9d30fd551
21 DIST firefox-68.12.0esr.source.tar.xz 313856956 BLAKE2B eeaa4acc9fabf15ec1b313170a30cee8e1fc10a8b08512b915b83b7d6a81c09b365733ed94638bd434864fd7b0cb8cbf1bc2e43441be69e31117e8e6a099234c SHA512 839b02422e4c87bdb12e0995cd35ca8c1996f3fba00bbb46b419e46b67df5ec48a264cb14632db777ce29166ee4fdcb06e2ee3ce847e64328c58c9a2f9129f4c
22 DIST firefox-78.15.0esr.source.tar.xz 330819568 BLAKE2B dc8785613c2f72c55d484642c89c2545765a9efbd609bc7c2cf57b4a3a06a2ea22e6959e42b5b8af867db782e8b2097a67dec858796b744e47008a8e575e2316 SHA512 ac3de735b246ce4f0e1619cd2664321ffa374240ce6843e785d79a350dc30c967996bbcc5e3b301cb3d822ca981cbea116758fc4122f1738d75ddfd1165b6378
23 DIST firefox-78esr-patches-19.tar.xz 88424 BLAKE2B fdc7bf8f28b3e799551a70f1cec7a695f52c4712f3b28733648fcd7dac5a599613f4c3d2cfa169266dc62b65619b7f28c0e06d32317adb8ec0056ca79c87e9f6 SHA512 3c81dadc9bf74207c4e361605127ef6141d77700c5c54f1f9cd5ad3be13df9f73c6eec2f51d779558e4bdad1e7395c6aa8943a93415bd1786d461042bc03550a
24 -DIST firefox-91.7.1esr.source.tar.xz 380937836 BLAKE2B 15995930be6b377c46e3932b56eb18b45c350c948f11afac4458c0ee3f2aa45e70244718872b101a560a155514dd479f38ed5ee58ff258c4e9f9f7070595f1e4 SHA512 c56aa38e9d706ff1f1838d2639dac82109dcffb54a7ea17326ae306604d78967ac32da13676756999bc1aa0bf50dc4e7072936ceb16e2e834bea48382ae4b48c
25 DIST firefox-91.8.0esr.source.tar.xz 380325092 BLAKE2B 9bc470d0e8c65517d67f4075be2aece6e82af7dc89c40018359d3dd53d45d67424db8ed4614dd3dde430e08ec6ffff29f4ecc81e1990e05abd05804c6a2b5891 SHA512 edea2c7d4d3d0322091b20b623019ef041090d9f89f33c8e3140f66a54624261f278257393db70d2038154de8ee02da0bee6ecf85c281f3558338da71fc173c3
26 DIST firefox-91esr-patches-05j.tar.xz 17116 BLAKE2B 5db6d2d3d5432369d2cfcda1a2b542d70ac18c1af7013d91984054c9658d7e3f989527c3a248de53f2e8dc51a852a46477f9ad75e98db28f50f8609fcafe547c SHA512 42080a8e28014d5f8de7ff45e0128ab71747faad7a92f0f7094686125835c168751794bd0229f77290f075502c271af0171ffae2863325d10cc6e8a853a90d3e
27 DIST js185-1.0.0.tar.gz 6164605 BLAKE2B 76a37f0ceae05d3475853875bd0ce4be6e525e4114816f8f281ea6fc6b60a71060975a0fa1cb843f57ad1e2f842dfb26b24244fa0fd6c20f6ae2ebbe430f70be SHA512 2af7122a7c7007fd7b6668776fe1222515a810b3e43bbf0f76b8f94e1ef406ffd3fb5ccec393021b00274c05b38a77235bc8d6886994c56762fcaf0aa7cf6718
28 @@ -10,6 +9,5 @@ DIST mozjs-60.5.2.tar.bz2 32816585 BLAKE2B 45ac4c9646e1275faf60eeedbf486f802cd10
29 DIST spidermonkey-60.0-patches-04.tar.xz 4428 BLAKE2B af78049cd9b3ee6a9b689e6253486c4670fd3b506faade7d745dafaa7af329c0bd15cd35e95528a4c96688230f4803130967fb09b97aae2bda0ce0f73acaaf3e SHA512 fb1326a81512146ba98773d4f7e0c4bc1bff0f076897c13f576fcf63b56f6965efeff633eea9160bca9f9bc4546505901084eabc33bc955de0b7ab3d6334387a
30 DIST spidermonkey-68.6.0-patches-04.tar.xz 5956 BLAKE2B b1250391a5173e676272d5926b710c06b0e9de1ff03b130a57fdac30f2deefbee3fa92250b37e28087572fe5cce73eb112ef4e1fb0c0401d6ecdb22ab9868998 SHA512 94575b11b4f006c6ee0c8d64b315734a173cecb68e9128ca61ba1a28177e3c149b8cf1f3b3c47a7a263fad8da6196fc0101df87392f016686a827e0cd24fdc74
31 DIST spidermonkey-78-patches-04.tar.xz 3408 BLAKE2B f2fdd4882e1e4de1908c458dc8dfedd5665ef7118f19704dabf2b2a80e2fae48813e9bc3d0c3410287e32c21e3f9d09233d8e5d15917f53aa2f60e6190cd9cdb SHA512 87ac83c0ccc05f482913b1fbf043db1878536f935f934362a47283809c0cbfdeff040206a9c18c687384b606ba8a7bd9a7c1fc3c0bcfdd620987990a33ca1fe2
32 -DIST spidermonkey-91-patches-03j.tar.xz 4980 BLAKE2B 633c5b145e5c6923ec59ae6e97ff7b1bd22297d5af5b2fba7d45b96cf4fb80f5e84ce513668569f648a8675b77f3622766cc226f2cca0e3b5c7311ffc32ce00f SHA512 8b180ee6e5732e44c8de992f0bb26ecf8afb3129150ada56a299d21c1ff429b36d9dcb0cb5af9e3332eb0b20297feb150b4acf636d1ac8b24fa5706f7ada46c6
33 DIST spidermonkey-91-patches-04j.tar.xz 4624 BLAKE2B d9cf47b39a165e8434d4f2f20ae3a9734c1bb81c32ddb75360e5edfa6817d6343be89aff0f8ec381485772cad80b00a069789decbc462129161afc3d4acfcb53 SHA512 bd574fee600cb4c6a262893b7d992d85c4059d512b829cd2f226aff86d8a6a83c2bdab466704e22f64bf6d29f90901037a34f9e90a42251952ba1cdbc0cab968
34 DIST spidermonkey-slot0-patches-02.tar.xz 10952 BLAKE2B fb7bf5cdac6c821a48d407ff172fe0ec7297e047d3b3bab952f226f413b83ea70325175b41c1680725ff588111b424efc97a0c66e392989da510c43d38528ff1 SHA512 cd62890c4b58658d99fc1b52f05ccb35c07da835b168bb9d5e6b219de5021122c199cc2255c5b0be01ef582f53dd51c9975921e6bde9f14e9b43536e2bee85f2
35
36 diff --git a/dev-lang/spidermonkey/spidermonkey-91.7.1.ebuild b/dev-lang/spidermonkey/spidermonkey-91.7.1.ebuild
37 deleted file mode 100644
38 index c65d2243cfa3..000000000000
39 --- a/dev-lang/spidermonkey/spidermonkey-91.7.1.ebuild
40 +++ /dev/null
41 @@ -1,410 +0,0 @@
42 -# Copyright 1999-2022 Gentoo Authors
43 -# Distributed under the terms of the GNU General Public License v2
44 -
45 -EAPI="7"
46 -
47 -# Patch version
48 -FIREFOX_PATCHSET="firefox-91esr-patches-05j.tar.xz"
49 -SPIDERMONKEY_PATCHSET="spidermonkey-91-patches-03j.tar.xz"
50 -
51 -LLVM_MAX_SLOT=13
52 -
53 -PYTHON_COMPAT=( python3_{8..10} )
54 -PYTHON_REQ_USE="ssl,xml(+)"
55 -
56 -WANT_AUTOCONF="2.1"
57 -
58 -inherit autotools check-reqs flag-o-matic llvm multiprocessing prefix python-any-r1 toolchain-funcs
59 -
60 -MY_PN="mozjs"
61 -MY_PV="${PV/_pre*}" # Handle Gentoo pre-releases
62 -
63 -MY_MAJOR=$(ver_cut 1)
64 -
65 -MOZ_ESR=yes
66 -
67 -MOZ_PV=${PV}
68 -MOZ_PV_SUFFIX=
69 -if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
70 - MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
71 -
72 - # Convert the ebuild version to the upstream Mozilla version
73 - MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
74 - MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
75 - MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
76 -fi
77 -
78 -if [[ -n ${MOZ_ESR} ]] ; then
79 - # ESR releases have slightly different version numbers
80 - MOZ_PV="${MOZ_PV}esr"
81 -fi
82 -
83 -MOZ_PN="firefox"
84 -MOZ_P="${MOZ_PN}-${MOZ_PV}"
85 -MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
86 -MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
87 -
88 -MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
89 -
90 -if [[ ${PV} == *_rc* ]] ; then
91 - MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
92 -fi
93 -
94 -PATCH_URIS=(
95 - https://dev.gentoo.org/~{juippis,polynomial-c,whissi}/mozilla/patchsets/${FIREFOX_PATCHSET}
96 - https://dev.gentoo.org/~{juippis,polynomial-c,whissi}/mozilla/patchsets/${SPIDERMONKEY_PATCHSET}
97 -)
98 -
99 -SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz
100 - ${PATCH_URIS[@]}"
101 -
102 -DESCRIPTION="SpiderMonkey is Mozilla's JavaScript engine written in C and C++"
103 -HOMEPAGE="https://spidermonkey.dev https://firefox-source-docs.mozilla.org/js/index.html "
104 -
105 -KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~x86"
106 -
107 -SLOT="91"
108 -LICENSE="MPL-2.0"
109 -IUSE="clang cpu_flags_arm_neon debug +jit lto test"
110 -
111 -#RESTRICT="test"
112 -RESTRICT="!test? ( test )"
113 -
114 -BDEPEND="${PYTHON_DEPS}
115 - >=virtual/rust-1.51.0
116 - virtual/pkgconfig
117 - test? (
118 - $(python_gen_any_dep 'dev-python/six[${PYTHON_USEDEP}]')
119 - )
120 - || (
121 - (
122 - sys-devel/llvm:13
123 - clang? (
124 - sys-devel/clang:13
125 - lto? ( =sys-devel/lld-13* )
126 - )
127 - )
128 - (
129 - sys-devel/llvm:12
130 - clang? (
131 - sys-devel/clang:12
132 - lto? ( =sys-devel/lld-12* )
133 - )
134 - )
135 - (
136 - sys-devel/llvm:11
137 - clang? (
138 - sys-devel/clang:11
139 - lto? ( =sys-devel/lld-11* )
140 - )
141 - )
142 - )"
143 -DEPEND=">=dev-libs/icu-69.1:=
144 - dev-libs/nspr
145 - sys-libs/readline:0=
146 - sys-libs/zlib"
147 -RDEPEND="${DEPEND}"
148 -
149 -S="${WORKDIR}/firefox-${MY_PV}/js/src"
150 -
151 -llvm_check_deps() {
152 - if ! has_version -b "sys-devel/llvm:${LLVM_SLOT}" ; then
153 - einfo "sys-devel/llvm:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
154 - return 1
155 - fi
156 -
157 - if use clang ; then
158 - if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
159 - einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
160 - return 1
161 - fi
162 -
163 - if use lto ; then
164 - if ! has_version -b "=sys-devel/lld-${LLVM_SLOT}*" ; then
165 - einfo "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
166 - return 1
167 - fi
168 - fi
169 - fi
170 -
171 - einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
172 -}
173 -
174 -python_check_deps() {
175 - if use test ; then
176 - has_version "dev-python/six[${PYTHON_USEDEP}]"
177 - fi
178 -}
179 -
180 -pkg_pretend() {
181 - if use test ; then
182 - CHECKREQS_DISK_BUILD="7600M"
183 - else
184 - CHECKREQS_DISK_BUILD="6400M"
185 - fi
186 -
187 - check-reqs_pkg_pretend
188 -}
189 -
190 -pkg_setup() {
191 - if [[ ${MERGE_TYPE} != binary ]] ; then
192 - if use test ; then
193 - CHECKREQS_DISK_BUILD="7600M"
194 - else
195 - CHECKREQS_DISK_BUILD="6400M"
196 - fi
197 -
198 - check-reqs_pkg_setup
199 -
200 - llvm_pkg_setup
201 -
202 - if use clang && use lto ; then
203 - local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }')
204 - [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}")
205 - [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!"
206 -
207 - local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }')
208 - [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}")
209 - [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!"
210 -
211 - if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then
212 - eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}."
213 - eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:"
214 - eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version"
215 - eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version"
216 - eerror " - Build ${CATEGORY}/${PN} without USE=lto"
217 - die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
218 - fi
219 - fi
220 -
221 - python-any-r1_pkg_setup
222 -
223 - # Build system is using /proc/self/oom_score_adj, bug #604394
224 - addpredict /proc/self/oom_score_adj
225 -
226 - if ! mountpoint -q /dev/shm ; then
227 - # If /dev/shm is not available, configure is known to fail with
228 - # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py
229 - ewarn "/dev/shm is not mounted -- expect build failures!"
230 - fi
231 -
232 - # Ensure we use C locale when building, bug #746215
233 - export LC_ALL=C
234 - fi
235 -}
236 -
237 -src_prepare() {
238 - pushd ../.. &>/dev/null || die
239 -
240 - use lto && rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch
241 -
242 - eapply "${WORKDIR}"/firefox-patches
243 - eapply "${WORKDIR}"/spidermonkey-patches
244 -
245 - default
246 -
247 - # Make cargo respect MAKEOPTS
248 - export CARGO_BUILD_JOBS="$(makeopts_jobs)"
249 -
250 - # sed-in toolchain prefix
251 - sed -i \
252 - -e "s/objdump/${CHOST}-objdump/" \
253 - python/mozbuild/mozbuild/configure/check_debug_ranges.py \
254 - || die "sed failed to set toolchain prefix"
255 -
256 - # use prefix shell in wrapper linker scripts, bug #789660
257 - hprefixify "${S}"/../../build/cargo-{,host-}linker
258 -
259 - einfo "Removing pre-built binaries ..."
260 - find third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die
261 -
262 - MOZJS_BUILDDIR="${WORKDIR}/build"
263 - mkdir "${MOZJS_BUILDDIR}" || die
264 -
265 - popd &>/dev/null || die
266 - eautoconf
267 -}
268 -
269 -src_configure() {
270 - # Show flags set at the beginning
271 - einfo "Current CFLAGS: ${CFLAGS}"
272 - einfo "Current CXXFLAGS: ${CXXFLAGS}"
273 - einfo "Current LDFLAGS: ${LDFLAGS}"
274 - einfo "Current RUSTFLAGS: ${RUSTFLAGS}"
275 -
276 - local have_switched_compiler=
277 - if use clang && ! tc-is-clang ; then
278 - # Force clang
279 - einfo "Enforcing the use of clang due to USE=clang ..."
280 - have_switched_compiler=yes
281 - AR=llvm-ar
282 - CC=${CHOST}-clang
283 - CXX=${CHOST}-clang++
284 - NM=llvm-nm
285 - RANLIB=llvm-ranlib
286 - elif ! use clang && ! tc-is-gcc ; then
287 - # Force gcc
288 - have_switched_compiler=yes
289 - einfo "Enforcing the use of gcc due to USE=-clang ..."
290 - AR=gcc-ar
291 - CC=${CHOST}-gcc
292 - CXX=${CHOST}-g++
293 - NM=gcc-nm
294 - RANLIB=gcc-ranlib
295 - fi
296 -
297 - if [[ -n "${have_switched_compiler}" ]] ; then
298 - # Because we switched active compiler we have to ensure
299 - # that no unsupported flags are set
300 - strip-unsupported-flags
301 - fi
302 -
303 - # Ensure we use correct toolchain
304 - export HOST_CC="$(tc-getBUILD_CC)"
305 - export HOST_CXX="$(tc-getBUILD_CXX)"
306 - tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
307 -
308 - cd "${MOZJS_BUILDDIR}" || die
309 -
310 - # ../python/mach/mach/mixin/process.py fails to detect SHELL
311 - export SHELL="${EPREFIX}/bin/bash"
312 -
313 - local -a myeconfargs=(
314 - --host="${CBUILD:-${CHOST}}"
315 - --target="${CHOST}"
316 - --disable-ctype
317 - --disable-jemalloc
318 - --disable-optimize
319 - --disable-smoosh
320 - --disable-strip
321 - --enable-readline
322 - --enable-release
323 - --enable-shared-js
324 - --with-intl-api
325 - --with-system-icu
326 - --with-system-nspr
327 - --with-system-zlib
328 - --with-toolchain-prefix="${CHOST}-"
329 - $(use_enable debug)
330 - $(use_enable jit)
331 - $(use_enable test tests)
332 - )
333 -
334 - if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
335 - myeconfargs+=( --enable-rust-simd )
336 - fi
337 -
338 - # Modifications to better support ARM, bug 717344
339 - if use cpu_flags_arm_neon ; then
340 - myeconfargs+=( --with-fpu=neon )
341 -
342 - if ! tc-is-clang ; then
343 - # thumb options aren't supported when using clang, bug 666966
344 - myeconfargs+=( --with-thumb=yes )
345 - myeconfargs+=( --with-thumb-interwork=no )
346 - fi
347 - fi
348 -
349 - # Tell build system that we want to use LTO
350 - if use lto ; then
351 - if use clang ; then
352 - myeconfargs+=( --enable-linker=lld )
353 - myeconfargs+=( --enable-lto=cross )
354 - else
355 - myeconfargs+=( --enable-linker=bfd )
356 - myeconfargs+=( --enable-lto )
357 - fi
358 - fi
359 -
360 - # LTO flag was handled via configure
361 - filter-flags '-flto*'
362 -
363 - if tc-is-gcc ; then
364 - if ver_test $(gcc-fullversion) -ge 10 ; then
365 - einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..."
366 - append-cxxflags -fno-tree-loop-vectorize
367 - fi
368 - fi
369 -
370 - export MACH_USE_SYSTEM_PYTHON=1
371 - export PIP_NO_CACHE_DIR=off
372 -
373 - # Show flags we will use
374 - einfo "Build CFLAGS: ${CFLAGS}"
375 - einfo "Build CXXFLAGS: ${CXXFLAGS}"
376 - einfo "Build LDFLAGS: ${LDFLAGS}"
377 - einfo "Build RUSTFLAGS: ${RUSTFLAGS}"
378 -
379 - # Forcing system-icu allows us to skip patching bundled ICU for PPC
380 - # and other minor arches
381 - ECONF_SOURCE="${S}" \
382 - econf \
383 - ${myeconfargs[@]} \
384 - XARGS="${EPREFIX}/usr/bin/xargs"
385 -}
386 -
387 -src_compile() {
388 - cd "${MOZJS_BUILDDIR}" || die
389 - default
390 -}
391 -
392 -src_test() {
393 - if "${MOZJS_BUILDDIR}/js/src/js" -e 'print("Hello world!")'; then
394 - einfo "Smoke-test successful, continuing with full test suite"
395 - else
396 - die "Smoke-test failed: did interpreter initialization fail?"
397 - fi
398 -
399 - cp "${FILESDIR}"/spidermonkey-91-known-test-failures.txt "${T}"/known_failures.list || die
400 -
401 - if use x86 ; then
402 - echo "non262/Date/timeclip.js" >> "${T}"/known_failures.list
403 - echo "test262/built-ins/Number/prototype/toPrecision/return-values.js" >> "${T}"/known_failures.list
404 - echo "test262/language/types/number/S8.5_A2.1.js" >> "${T}"/known_failures.list
405 - echo "test262/language/types/number/S8.5_A2.2.js" >> "${T}"/known_failures.list
406 - fi
407 -
408 - if [[ $(tc-endian) == "big" ]] ; then
409 - echo "non262/extensions/clone-errors.js" >> "${T}"/known_failures.list
410 - echo "test262/built-ins/Date/UTC/fp-evaluation-order.js" >> "${T}"/known_failures.list
411 - echo "test262/built-ins/TypedArray/prototype/set/typedarray-arg-set-values-same-buffer-other-type.js" >> "${T}"/known_failures.list
412 - fi
413 -
414 - ${EPYTHON} \
415 - "${S}"/tests/jstests.py -d -s -t 1800 --wpt=disabled --no-progress \
416 - --exclude-file="${T}"/known_failures.list \
417 - "${MOZJS_BUILDDIR}"/js/src/js \
418 - || die
419 -
420 - if use jit ; then
421 - ${EPYTHON} \
422 - "${S}"/tests/jstests.py -d -s -t 1800 --wpt=disabled --no-progress \
423 - --exclude-file="${T}"/known_failures.list \
424 - "${MOZJS_BUILDDIR}"/js/src/js basic \
425 - || die
426 - fi
427 -}
428 -
429 -src_install() {
430 - cd "${MOZJS_BUILDDIR}" || die
431 - default
432 -
433 - # fix soname links
434 - pushd "${ED}"/usr/$(get_libdir) &>/dev/null || die
435 - mv lib${MY_PN}-${MY_MAJOR}.so lib${MY_PN}-${MY_MAJOR}.so.0.0.0 || die
436 - ln -s lib${MY_PN}-${MY_MAJOR}.so.0.0.0 lib${MY_PN}-${MY_MAJOR}.so.0 || die
437 - ln -s lib${MY_PN}-${MY_MAJOR}.so.0 lib${MY_PN}-${MY_MAJOR}.so || die
438 - popd &>/dev/null || die
439 -
440 - # remove unneeded files
441 - rm \
442 - "${ED}"/usr/bin/js${MY_MAJOR}-config \
443 - "${ED}"/usr/$(get_libdir)/libjs_static.ajs \
444 - || die
445 -
446 - # fix permissions
447 - chmod -x \
448 - "${ED}"/usr/$(get_libdir)/pkgconfig/*.pc \
449 - "${ED}"/usr/include/mozjs-${MY_MAJOR}/js-config.h \
450 - || die
451 -}