diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-10-11 17:34:24 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-10-11 17:34:24 +0200 |
commit | c2558601c7ce2b7fd7eaf7c2336fb78242781e50 (patch) | |
tree | 6dcf104260985f4dc2bf3d2a68e58474f4df46c0 /lib/agent/projects.go | |
parent | 135754a4b3ca915f717e79d8f3f4eb29c04195b3 (diff) |
Reset by default LD_LIBRARY_PATH in xds-project.conf
New environment-setup-*-agl-linux file, used to set environment
variables to use an SDK, now checks if LD_LIBRARY_PATH is set or not.
And not empty LD_LIBRARY_PATH is considered as misconfigured and
prevent to use SDK. Following is the error message displayed in that
case :
Your environment is misconfigured, you probably need to
'unset LD_LIBRARY_PATH' but please check why this was set in the
first place and that it's safe to unset.
The SDK will not operate correctly in most cases when LD_LIBRARY_PATH
is set.
For more references see:
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80
http://xahlee.info/UnixResource_dir/_/ldpath.html
Change-Id: I5f89f68d95a78e9b73f89e487ec74dd314bd5c48
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'lib/agent/projects.go')
-rw-r--r-- | lib/agent/projects.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/agent/projects.go b/lib/agent/projects.go index 0bd5315..d5f809f 100644 --- a/lib/agent/projects.go +++ b/lib/agent/projects.go @@ -169,6 +169,8 @@ func (p *Projects) Add(newP xaapiv1.ProjectConfig, fromSid, requestURL string) ( } else { fd.WriteString("#export XDS_SDK_ID=???\n") } + fd.WriteString("\n# Only disable reset of LD_LIBRARY_PATH if you are absolutely know what you are doing!\n") + fd.WriteString("export LD_LIBRARY_PATH=''\n") fd.Close() } |