OSDN Git Service

docker: Fix PATH for ccache
authorFam Zheng <famz@redhat.com>
Wed, 18 Oct 2017 07:38:41 +0000 (15:38 +0800)
committerFam Zheng <famz@redhat.com>
Fri, 20 Oct 2017 06:28:50 +0000 (14:28 +0800)
Before bcd7f06f57fb6f780a3e2f7a46c22b6f6c8238aa we source /etc/profile
so the PATH included the right paths to ccache binaries. Now we need to
update $PATH explicitly from run script.

Keep the old /usr/lib around just so that in the future, ccache from 32
bit images will just work.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20171018073841.30062-1-famz@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
tests/docker/run

index 642084b..9dd362b 100755 (executable)
@@ -18,7 +18,7 @@ fi
 BASE="$(dirname $(readlink -e $0))"
 
 # Prepare the environment
-export PATH=/usr/lib/ccache:$PATH
+export PATH=/usr/lib/ccache:/usr/lib64/ccache:$PATH
 
 if test -n "$J"; then
     export MAKEFLAGS="$MAKEFLAGS -j$J"