All of lore.kernel.org
 help / color / mirror / Atom feed
From: aduskett at gmail.com <aduskett@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 07/12] package/spidermonkey: add host variant
Date: Wed, 22 Jul 2020 18:08:05 -0700	[thread overview]
Message-ID: <20200723010810.3237608-8-aduskett@gmail.com> (raw)
In-Reply-To: <20200723010810.3237608-1-aduskett@gmail.com>

From: Adam Duskett <Aduskett@gmail.com>

New versions of udisks require an updated version of polkit to build the
udisks policy file. If a user builds on a distribution that does not include
polkit, or a distribution such as CentOS7 which provides a polkit version too
old to use spidermonkey, compiling fails.

Building a host variant of polkit is necessary to fix this issue, which
requires a host variant of spidermonkey.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
---
 package/spidermonkey/spidermonkey.mk | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/package/spidermonkey/spidermonkey.mk b/package/spidermonkey/spidermonkey.mk
index 50afdc1758..b65bd5ca9e 100644
--- a/package/spidermonkey/spidermonkey.mk
+++ b/package/spidermonkey/spidermonkey.mk
@@ -20,6 +20,11 @@ SPIDERMONKEY_DEPENDENCIES = \
 	libnspr \
 	zlib
 
+HOST_SPIDERMONKEY_DEPENDENCIES = \
+	host-python \
+	host-libnspr \
+	host-zlib
+
 SPIDERMONKEY_CONF_ENV = \
 	PYTHON="$(HOST_DIR)/bin/python2"
 
@@ -35,6 +40,17 @@ SPIDERMONKEY_CONF_OPTS = \
 	--with-system-nspr \
 	--with-nspr-exec-prefix="$(STAGING_DIR)/usr"
 
+# The only reason to build the host variant is to build the host variant of
+# polkit. As such, only the bare minimum is selected.
+HOST_SPIDERMONKEY_CONF_OPTS = \
+	--host=$(GNU_HOST_NAME) \
+	--target=$(GNU_HOST_NAME) \
+	--disable-jemalloc \
+	--enable-shared-js \
+	--with-system-zlib \
+	--with-system-nspr \
+	--with-nspr-exec-prefix="$(HOST_DIR)/usr"
+
 ifeq ($(BR2_PACKAGE_SPIDERMONKEY_JIT_ARCH_SUPPORTS),y)
 SPIDERMONKEY_CONF_OPTS += --enable-ion
 else
@@ -62,3 +78,4 @@ endef
 SPIDERMONKEY_POST_INSTALL_TARGET_HOOKS += SPIDERMONKEY_CLEANUP
 
 $(eval $(autotools-package))
+$(eval $(host-autotools-package))
-- 
2.26.2

  parent reply	other threads:[~2020-07-23  1:08 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-23  1:07 [Buildroot] [PATCH 00/12] package/udisks: bump version to 2.9.0 aduskett at gmail.com
2020-07-23  1:07 ` [Buildroot] [PATCH 01/12] package/gcr: fix gpg path aduskett at gmail.com
2020-07-23  7:44   ` Thomas Petazzoni
2020-07-23  1:08 ` [Buildroot] [PATCH 02/12] package/libbytesize: new package aduskett at gmail.com
2020-07-23  7:54   ` Thomas Petazzoni
2020-07-23  1:08 ` [Buildroot] [PATCH 03/12] package/volume-key: " aduskett at gmail.com
2020-07-23  8:58   ` Thomas Petazzoni
2020-07-23  1:08 ` [Buildroot] [PATCH 04/12] package/libblockdev: " aduskett at gmail.com
2020-07-23  8:57   ` Thomas Petazzoni
2020-07-23  1:08 ` [Buildroot] [PATCH 05/12] package/libblockdev: add cryptography support aduskett at gmail.com
2020-07-23 12:06   ` Thomas Petazzoni
2020-07-23  1:08 ` [Buildroot] [PATCH 06/12] package/libblockdev: add fs plugin support aduskett at gmail.com
2020-07-23  1:08 ` aduskett at gmail.com [this message]
2020-07-23  1:08 ` [Buildroot] [PATCH 08/12] package/polkit: add host variant aduskett at gmail.com
2020-07-23  1:08 ` [Buildroot] [PATCH 09/12] package/udisks/Config.in: alphabatize package selection aduskett at gmail.com
2020-07-23  1:08 ` [Buildroot] [PATCH 10/12] package/udisks: bump version to 2.9.0 aduskett at gmail.com
2020-07-23  1:08 ` [Buildroot] [PATCH 11/12] package/libblockdev: add gobject-introspection support aduskett at gmail.com
2020-07-23 12:08   ` Thomas Petazzoni
2020-07-23  1:08 ` [Buildroot] [PATCH 12/12] package/udisks: " aduskett at gmail.com
2020-07-23  7:47 ` [Buildroot] [PATCH 00/12] package/udisks: bump version to 2.9.0 Thomas Petazzoni
2020-07-23 14:31 ` Thomas Petazzoni
2020-07-23 16:54   ` Adam Duskett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200723010810.3237608-8-aduskett@gmail.com \
    --to=aduskett@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.