Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix PATH being stomped by generated environment script #6

Open
wants to merge 1 commit into from

2 participants

@dlazzari

Use the PATH variable in the generated environment script, rather than the current value of the PATH variable. This prevents later changes to a user's PATH from being stomped by the generated environment script.

This was tested using bash to run oebb.sh

@dlazzari dlazzari Use the PATH variable in the generated environment script, rather tha…
…n the current value of the PATH variable. This prevents later changes to a user's PATH from being stomped by the generated environment script.
2d0c208
@kraj
Owner

can you please resubmit the pull request against 'next' branch please ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 21, 2012
  1. @dlazzari

    Use the PATH variable in the generated environment script, rather tha…

    dlazzari authored
    …n the current value of the PATH variable. This prevents later changes to a user's PATH from being stomped by the generated environment script.
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 2 deletions.
  1. +3 −2 oebb.sh
View
5 oebb.sh
@@ -153,9 +153,10 @@ else
#--------------------------------------------------------------------------
# Include up-to-date bitbake in our PATH.
#--------------------------------------------------------------------------
- export PATH=${OE_SOURCE_DIR}/openembedded-core/scripts:${OE_SOURCE_DIR}/bitbake/bin:${PATH}
+ OE_EXEC_PATH=${OE_SOURCE_DIR}/openembedded-core/scripts:${OE_SOURCE_DIR}/bitbake/bin
+ export PATH=${OE_EXEC_PATH}:${PATH}
- echo "export PATH=\"${PATH}\"" >> ${OE_ENV_FILE}
+ echo "export PATH=${OE_EXEC_PATH}:\${PATH}" >> ${OE_ENV_FILE}
#--------------------------------------------------------------------------
# Make sure Bitbake doesn't filter out the following variables from our
Something went wrong with that request. Please try again.