[arch-commits] Commit in js52/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Mon Jul 30 13:51:56 UTC 2018
Date: Monday, July 30, 2018 @ 13:51:55
Author: heftig
Revision: 329672
Update from js60 prep
Modified:
js52/trunk/PKGBUILD
----------+
PKGBUILD | 67 ++++++++++++++++++++++++++++++++++++++-----------------------
1 file changed, 42 insertions(+), 25 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-07-30 10:21:36 UTC (rev 329671)
+++ PKGBUILD 2018-07-30 13:51:55 UTC (rev 329672)
@@ -1,5 +1,5 @@
# $Id$
-# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
pkgname=js52
pkgver=52.9.0
@@ -25,8 +25,9 @@
prepare() {
cd mozilla-unified
+ mkdir obj
- # https://anonscm.debian.org/git/pkg-gnome/mozjs52.git/tree/debian/patches
+ # https://salsa.debian.org/gnome-team/mozjs52/tree/debian/master/debian/patches
patch -Np1 -i ../mozjs52-fix-soname.patch
patch -Np1 -i ../mozjs52-copy-headers.patch
patch -Np1 -i ../mozjs52-disable-mozglue.patch
@@ -34,39 +35,55 @@
}
build() {
+ local configure_args=(
+ --prefix=/usr
+ --disable-debug
+ --disable-debug-symbols
+ --disable-strip
+ --enable-gold
+ --enable-optimize="-O2"
+ --enable-pie
+ --enable-posix-nspr-emulation
+ --enable-readline
+ --enable-release
+ --enable-shared-js
+ --enable-tests
+ --with-intl-api
+ --with-system-zlib
+ --without-system-icu
+ )
+
+ cd mozilla-unified/obj
+
unset CPPFLAGS
- CFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp -flto=3'
- CXXFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp -flto=3'
+ CFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp'
+ CXXFLAGS+=' -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp'
export CC=gcc CXX=g++ PYTHON=/usr/bin/python2
- cd mozilla-unified/js/src
- sh configure \
- --prefix=/usr \
- --disable-debug \
- --disable-debug-symbols \
- --disable-strip \
- --enable-gold \
- --enable-optimize="-O2" \
- --enable-pie \
- --enable-posix-nspr-emulation \
- --enable-readline \
- --enable-release \
- --enable-shared-js \
- --enable-tests \
- --with-intl-api \
- --with-system-zlib \
- --without-system-icu
+ sh ../js/src/configure "${configure_args[@]}"
make
}
check() {
- cd mozilla-unified/js/src
- python2 tests/jstests.py -d -s -t 300 --no-progress ../../js/src/js/src/shell/js
- python2 jit-test/jit_test.py -s -t 300 --no-progress ../../js/src/js/src/shell/js basic
+ local jstests_extra_args=(
+ --format=none
+ --exclude-random
+ ) jittest_extra_args=(
+ --format=none
+ --timeout 300
+ ) jittest_test_args=(
+ basic
+ )
+
+ cd mozilla-unified/obj
+ make -C js/src check-jstests check-jit-test \
+ JSTESTS_EXTRA_ARGS="${jstests_extra_args[*]}" \
+ JITTEST_EXTRA_ARGS="${jittest_extra_args[*]}" \
+ JITTEST_TEST_ARGS="${jittest_test_args[*]}"
}
package() {
- cd mozilla-unified/js/src
+ cd mozilla-unified/obj
make DESTDIR="$pkgdir" install
rm "$pkgdir"/usr/lib/*.ajs
find "$pkgdir"/usr/{lib/pkgconfig,include} -type f -exec chmod -c a-x {} +
More information about the arch-commits
mailing list