From bebef3b34831d794765e651a21d8588ec7fb7bc3 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Fri, 14 Sep 2018 07:19:34 -0300 Subject: [PATCH] mozjs60: fix x86_64-musl miscompilation and enable tests --- srcpkgs/mozjs60/template | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/srcpkgs/mozjs60/template b/srcpkgs/mozjs60/template index 9f3bfadc2ad..f340d38b233 100644 --- a/srcpkgs/mozjs60/template +++ b/srcpkgs/mozjs60/template @@ -1,7 +1,7 @@ # Template file for 'mozjs60' pkgname=mozjs60 version=60.0.2 -revision=2 +revision=3 wrksrc="firefox-${version}" build_wrksrc=js/src build_style=gnu-configure @@ -28,18 +28,21 @@ do_configure() { _args+=" --target=$XBPS_CROSS_TRIPLET --enable-linker=bfd" fi + autoconf-2.13 old-configure.in > old-configure + touch ${wrksrc}/js/src/configure + touch ${wrksrc}/js/src/old-configure SHELL=/bin/bash PYTHON=/usr/bin/python2 ./configure --prefix=/usr \ --disable-jemalloc --disable-optimize --enable-ctypes --enable-pie \ --enable-readline --enable-shared-js --enable-system-ffi \ - --disable-tests --with-intl-api --with-system-icu \ - --with-system-nspr --with-system-zlib \ + --enable-tests --with-intl-api --with-system-icu \ + --with-system-nspr --with-system-zlib --target=${XBPS_TRIPLET} \ + --host=${XBPS_TRIPLET} \ ${_args} } do_check() { - # Needs VCS checkout type, which isn't present in release tarballs - : + dist/bin/jsapi-tests } post_install() {