Unverified Commit 8c71dad3 authored by boklm's avatar boklm
Browse files

Bug 18331: add /usr/sbin:/sbin to the PATH

On Debian wheezy, dpkg -i fails when the PATH does not include /sbin
and /usr/sbin, so we add them. As a policy, Debian does not include them
by default in regular users PATH.

This change is not required when building using LXC as the commands are
run using sudo which overrides the PATH with the value in "secure_path"
which includes sbin directories.
parent 128bcfb6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -79,6 +79,8 @@ script: |
  mkdir -p $PTDIR/
  mkdir -p $OUTDIR/
  #
  # dpkg requires sbin directories in the PATH
  export PATH="/usr/sbin:/sbin:$PATH"
  sudo dpkg -i *.deb
  tar xaf multiarch-darwin*tar.xz
  export PATH="$PATH:$HOME/build/apple-osx/bin/"
+2 −0
Original line number Diff line number Diff line
@@ -43,6 +43,8 @@ script: |
  mkdir -p $TORCONFIGDIR/
  mkdir -p $OUTDIR/
  #
  # dpkg requires sbin directories in the PATH
  export PATH="/usr/sbin:/sbin:$PATH"
  sudo dpkg -i *.deb
  tar xaf multiarch-darwin*tar.xz
  export PATH="$PATH:$HOME/build/apple-osx/bin/"
+2 −0
Original line number Diff line number Diff line
@@ -71,6 +71,8 @@ script: |
    export FAKETIME=$REFERENCE_DATETIME
    cd ..

    # dpkg requires sbin directories in the PATH
    export PATH="/usr/sbin:/sbin:$PATH"
    sudo dpkg -i *.deb
    tar xaf multiarch-darwin*tar.xz
    export PATH="$PATH:$HOME/build/apple-osx/bin/"