From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A2160138359 for ; Sun, 20 Sep 2020 14:04:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CBE12E08FC; Sun, 20 Sep 2020 14:04:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A268DE08FC for ; Sun, 20 Sep 2020 14:04:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 929A5340F81 for ; Sun, 20 Sep 2020 14:04:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0616B342 for ; Sun, 20 Sep 2020 14:04:20 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1600610644.0ffddcc20f7ac8ce504a8937ffaa1f2942ce9715.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/spidermonkey/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/spidermonkey/spidermonkey-68.12.0.ebuild dev-lang/spidermonkey/spidermonkey-78.2.0.ebuild X-VCS-Directories: dev-lang/spidermonkey/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 0ffddcc20f7ac8ce504a8937ffaa1f2942ce9715 X-VCS-Branch: master Date: Sun, 20 Sep 2020 14:04:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: deeee7e2-00ab-43f8-ad9c-27f21d7c7a43 X-Archives-Hash: 09c19f373052ac201ac7619c090e3c23 commit: 0ffddcc20f7ac8ce504a8937ffaa1f2942ce9715 Author: Thomas Deutschmann gentoo org> AuthorDate: Sun Sep 20 13:36:33 2020 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sun Sep 20 14:04:04 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ffddcc2 dev-lang/spidermonkey: add CPU_FLAGS_ARM=neon Closes: https://bugs.gentoo.org/717344 Package-Manager: Portage-3.0.7, Repoman-3.0.1 Signed-off-by: Thomas Deutschmann gentoo.org> dev-lang/spidermonkey/spidermonkey-68.12.0.ebuild | 53 +++++++++++++++-------- dev-lang/spidermonkey/spidermonkey-78.2.0.ebuild | 53 +++++++++++++++-------- 2 files changed, 68 insertions(+), 38 deletions(-) diff --git a/dev-lang/spidermonkey/spidermonkey-68.12.0.ebuild b/dev-lang/spidermonkey/spidermonkey-68.12.0.ebuild index 33ac6b9447f..66fb961070c 100644 --- a/dev-lang/spidermonkey/spidermonkey-68.12.0.ebuild +++ b/dev-lang/spidermonkey/spidermonkey-68.12.0.ebuild @@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{6..9} ) WANT_AUTOCONF="2.1" -inherit autotools check-reqs python-any-r1 +inherit autotools check-reqs python-any-r1 toolchain-funcs MY_PN="mozjs" MY_PV="${PV/_pre*}" # Handle Gentoo pre-releases @@ -53,7 +53,7 @@ KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc x86" SLOT="68" LICENSE="MPL-2.0" -IUSE="debug +jit test" +IUSE="cpu_flags_arm_neon debug +jit test" RESTRICT="!test? ( test )" @@ -127,25 +127,40 @@ src_configure() { # ../python/mach/mach/mixin/process.py fails to detect SHELL export SHELL="${EPREFIX}/bin/bash" - # forcing system-icu allows us to skip patching bundled ICU for PPC + local -a myeconfargs=( + --host="${CBUILD:-${CHOST}}" + --target="${CHOST}" + --disable-jemalloc + --disable-optimize + --disable-strip + --enable-readline + --enable-shared-js + --with-intl-api + --with-system-icu + --with-system-nspr + --with-system-zlib + --with-toolchain-prefix="${CHOST}-" + $(use_enable debug) + $(use_enable jit ion) + $(use_enable test tests) + ) + + # Modifications to better support ARM, bug 717344 + if use cpu_flags_arm_neon ; then + myeconfargs+=( --with-fpu=neon ) + + if ! tc-is-clang ; then + # thumb options aren't supported when using clang, bug 666966 + myeconfargs+=( --with-thumb=yes ) + myeconfargs+=( --with-thumb-interwork=no ) + fi + fi + + # Forcing system-icu allows us to skip patching bundled ICU for PPC # and other minor arches ECONF_SOURCE="${S}" \ - econf \ - --host="${CBUILD:-${CHOST}}" \ - --target="${CHOST}" \ - --disable-jemalloc \ - --disable-optimize \ - --disable-strip \ - --enable-readline \ - --enable-shared-js \ - --with-intl-api \ - --with-system-icu \ - --with-system-nspr \ - --with-system-zlib \ - --with-toolchain-prefix="${CHOST}-" \ - $(use_enable debug) \ - $(use_enable jit ion) \ - $(use_enable test tests) \ + econf \ + ${myeconfargs[@]} \ XARGS="${EPREFIX}/usr/bin/xargs" # restore PYTHON diff --git a/dev-lang/spidermonkey/spidermonkey-78.2.0.ebuild b/dev-lang/spidermonkey/spidermonkey-78.2.0.ebuild index 20632cb0a25..372379f4e97 100644 --- a/dev-lang/spidermonkey/spidermonkey-78.2.0.ebuild +++ b/dev-lang/spidermonkey/spidermonkey-78.2.0.ebuild @@ -9,7 +9,7 @@ WANT_AUTOCONF="2.1" LLVM_MAX_SLOT=10 -inherit autotools check-reqs llvm multiprocessing python-any-r1 +inherit autotools check-reqs llvm multiprocessing python-any-r1 toolchain-funcs MY_PN="mozjs" MY_PV="${PV/_pre*}" # Handle Gentoo pre-releases @@ -55,7 +55,7 @@ KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc64 ~s390 ~x86" SLOT="78" LICENSE="MPL-2.0" -IUSE="debug +jit test" +IUSE="cpu_flags_arm_neon debug +jit test" RESTRICT="!test? ( test )" @@ -155,25 +155,40 @@ src_configure() { # ../python/mach/mach/mixin/process.py fails to detect SHELL export SHELL="${EPREFIX}/bin/bash" - # forcing system-icu allows us to skip patching bundled ICU for PPC + local -a myeconfargs=( + --host="${CBUILD:-${CHOST}}" + --target="${CHOST}" + --disable-jemalloc + --disable-optimize + --disable-strip + --enable-readline + --enable-shared-js + --with-intl-api + --with-system-icu + --with-system-nspr + --with-system-zlib + --with-toolchain-prefix="${CHOST}-" + $(use_enable debug) + $(use_enable jit) + $(use_enable test tests) + ) + + # Modifications to better support ARM, bug 717344 + if use cpu_flags_arm_neon ; then + myeconfargs+=( --with-fpu=neon ) + + if ! tc-is-clang ; then + # thumb options aren't supported when using clang, bug 666966 + myeconfargs+=( --with-thumb=yes ) + myeconfargs+=( --with-thumb-interwork=no ) + fi + fi + + # Forcing system-icu allows us to skip patching bundled ICU for PPC # and other minor arches ECONF_SOURCE="${S}" \ - econf \ - --host="${CBUILD:-${CHOST}}" \ - --target="${CHOST}" \ - --disable-jemalloc \ - --disable-optimize \ - --disable-strip \ - --enable-readline \ - --enable-shared-js \ - --with-intl-api \ - --with-system-icu \ - --with-system-nspr \ - --with-system-zlib \ - --with-toolchain-prefix="${CHOST}-" \ - $(use_enable debug) \ - $(use_enable jit) \ - $(use_enable test tests) \ + econf \ + ${myeconfargs[@]} \ XARGS="${EPREFIX}/usr/bin/xargs" }