-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
Describe the bug
I'm using antlr4 as a tool_requires
self.tool_requires("antlr4/4.13.1")
It's package_info sets CLASSPATH
def package_info(self):
...
self.runenv_info.prepend_path("CLASSPATH", jar)
conan makes conanbuildenv-debug-x86_64.sh where it unconditionally joins paths
export CLASSPATH="/home/gareth/.conan2/p/antlr15795d040a28f/p/res/antlr-complete.jar:$CLASSPATH"
Which leads to error when sourced in hardened script environments
.../build/generators/conanbuildenv-debug-x86_64.sh: line 15: CLASSPATH: unbound variable
Example hardened script environment
$ bash -c 'set -eu; echo $UNKNOWN_VAR'
bash: line 1: UNKNOWN_VAR: unbound variable
$ echo $?
1
${CLASSPATH:+:$CLASSPATH} should work
How to reproduce it
No response
Reactions are currently unavailable