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