Skip to content

Commit dfe9eef

Browse files
Check to see if ninja and meson
is already installed
1 parent 810dafb commit dfe9eef

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

packages/map-fs-fuse/packaging

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,23 @@ for f in $(find . -name "*tar.gz"); do
99
done
1010

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

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

2430
# build libfuse
2531
pushd fuse-*/

0 commit comments

Comments
 (0)