All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] erlang: set ERL_TOP to avoid using user's version
@ 2017-02-18 21:01 Frank Hunleth
  2017-02-19 22:20 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Hunleth @ 2017-02-18 21:01 UTC (permalink / raw)
  To: buildroot

Explicitly set the ERL_TOP environment variable to override values set
on a user's system. This prevents Erlang's configure scripts from
using source files outside of the ones that Buildroot downloaded.

Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
---
 package/erlang/erlang.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/erlang/erlang.mk b/package/erlang/erlang.mk
index 3200c38..364085c 100644
--- a/package/erlang/erlang.mk
+++ b/package/erlang/erlang.mk
@@ -30,6 +30,12 @@ ERLANG_CONF_ENV += erl_xcomp_sysroot=$(STAGING_DIR)
 
 ERLANG_CONF_OPTS = --without-javac
 
+# Force ERL_TOP to the downloaded source directory. This prevents
+# Erlang's configure script from inadvertantly using files from
+# a version of Erlang installed on the host.
+ERLANG_CONF_ENV += ERL_TOP=$(@D)
+HOST_ERLANG_CONF_ENV += ERL_TOP=$(@D)
+
 # erlang uses openssl for all things crypto. Since the host tools (such as
 # rebar) uses crypto, we need to build host-erlang with support for openssl.
 HOST_ERLANG_DEPENDENCIES = host-openssl
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] erlang: set ERL_TOP to avoid using user's version
  2017-02-18 21:01 [Buildroot] [PATCH] erlang: set ERL_TOP to avoid using user's version Frank Hunleth
@ 2017-02-19 22:20 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2017-02-19 22:20 UTC (permalink / raw)
  To: buildroot

>>>>> "Frank" == Frank Hunleth <fhunleth@troodon-software.com> writes:

 > Explicitly set the ERL_TOP environment variable to override values set
 > on a user's system. This prevents Erlang's configure scripts from
 > using source files outside of the ones that Buildroot downloaded.

 > Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-19 22:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-18 21:01 [Buildroot] [PATCH] erlang: set ERL_TOP to avoid using user's version Frank Hunleth
2017-02-19 22:20 ` Peter Korsgaard

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.