Commit f6d2ec54 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼 Committed by Rafael Monnerat

OBS: fix package for Fedora

Fedora distribution refuses shebang with unknown python version:
ERROR: ambiguous python shebang in /opt/slapos/tmp-networkcached/bin/networkcache-download: #!/usr/bin/python. Change it to python3 (or python2) explicitly.
ERROR: ambiguous python shebang in /opt/slapos/tmp-networkcached/bin/networkcache-upload: #!/usr/bin/python. Change it to python3 (or python2) explicitly.
ERROR: ambiguous python shebang in /opt/slapos/tmp-networkcached/bin/buildout: #!/usr/bin/python. Change it to python3 (or python2) explicitly.
ERROR: ambiguous python shebang in /opt/slapos/tmp-networkcached/bin/generate-signature-key: #!/usr/bin/python. Change it to python3 (or python2) explicitly.

Using python2.7 explicitely will make the shebang /usr/bin/python2.7
parent 4e8acaf7
...@@ -27,9 +27,9 @@ sed "s/\%RECIPE_VERSION\%/$RECIPE_VERSION/g;s|\%PATCHES_DIRECTORY\%|$PATCHES_DI ...@@ -27,9 +27,9 @@ sed "s/\%RECIPE_VERSION\%/$RECIPE_VERSION/g;s|\%PATCHES_DIRECTORY\%|$PATCHES_DI
cd $NETWORKCACHED_DIRECTORY cd $NETWORKCACHED_DIRECTORY
# Download bootstrap file # Download bootstrap file
wget https://bootstrap.pypa.io/bootstrap-buildout.py -O bootstrap.py wget https://bootstrap.pypa.io/bootstrap-buildout.py -O bootstrap.py
(python -S bootstrap.py --buildout-version $BUILDOUT_VERSION \ (python2.7 -S bootstrap.py --buildout-version $BUILDOUT_VERSION \
--setuptools-to-dir eggs \ --setuptools-to-dir eggs \
-f http://www.nexedi.org/static/packages/source/slapos.buildout/ && \ -f http://www.nexedi.org/static/packages/source/slapos.buildout/ && \
./bin/buildout -v) ./bin/buildout -v)
# build locally everything with gcc # build locally everything with gcc
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment