Skip to content

Commit 97d5733

Browse files
Remove the collision when compilation vms are reused
This will ensure that even if compilation vms are re-used the binaries used for compilation are the ones from this release
1 parent dfe9eef commit 97d5733

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

packages/map-fs-fuse/packaging

+10-15
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,18 @@ for f in $(find . -name "*tar.gz"); do
99
done
1010

1111
# first build ninja, it's required to install fuse
12-
if [[ ! -f /usr/bin/ninja ]]; then
13-
echo "building ninja"
14-
pushd ninja-*/
15-
python3 configure.py --bootstrap
16-
ln -s $(pwd)/ninja /usr/bin/ninja
17-
popd
18-
fi
12+
pushd ninja-*/
13+
python3 configure.py --bootstrap
14+
export NINJA_BINARY="$(pwd)/ninja"
15+
export PATH="$PATH:$PWD"
16+
popd
1917

2018
# symlink meson, it's required to build fuse
2119
# there are newer version but these require newer python3.x which isn't available on xenial stemcell.
2220
# it will also never leave the compilation vm, same as ninja
23-
if [[ ! -f /usr/bin/meson ]]; then
24-
echo "building meson"
25-
pushd meson-*/
26-
ln -s $(pwd)/meson.py /usr/bin/meson
27-
popd
28-
fi
21+
pushd meson-*/
22+
export MESON_BINARY="$(pwd)/meson.py"
23+
popd
2924

3025
# build libfuse
3126
pushd fuse-*/
@@ -34,7 +29,7 @@ pushd fuse-*/
3429
mkdir build
3530
cd build
3631

37-
meson setup --prefix=${BOSH_INSTALL_TARGET} --buildtype=release ..
38-
ninja install
32+
$MESON_BINARY setup --prefix=${BOSH_INSTALL_TARGET} --buildtype=release ..
33+
$NINJA_BINARY install
3934
popd
4035

0 commit comments

Comments
 (0)