summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2018-12-29 08:40:09 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-12-30 11:20:34 -0800
commit20c40ea6b4a711c4db423bab8ab44b90177cd1c1 (patch)
tree220cc4c4dd8e64704af0c57939034d90909218f6 /packaging
parent6fb135eb463b91e61dba3b0cc5a572ebc6941af2 (diff)
downloadsubsurface-20c40ea6b4a711c4db423bab8ab44b90177cd1c1.tar.gz
Android build: always reconfigure libdivecomputer
This fix makes no difference from usage of this script in Travis context, as every build starts from a clean VM, but the very few developers that build for Android locally, and that want to use the new style docker container builds as well, things are broken. libdivecomputer has build artifacts in its source tree (and that source tree is shared between local and docker run). So it happens that libdivecomputer is configured locally, and afterwards fails to build in docker build as its already configured, but not for the docker image its now running in. The fix is simple. Always reconfigure libdivecomputer when using this script. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/android/android-build-wrapper.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/packaging/android/android-build-wrapper.sh b/packaging/android/android-build-wrapper.sh
index 91bb2b7a8..5da08b533 100755
--- a/packaging/android/android-build-wrapper.sh
+++ b/packaging/android/android-build-wrapper.sh
@@ -126,12 +126,12 @@ if [ ! -d subsurface/libdivecomputer/src ] ; then
popd
fi
-if [ ! -f subsurface/libdivecomputer/configure ] ; then
- pushd subsurface/libdivecomputer
- autoreconf --install
- autoreconf --install
- popd
-fi
+# always reconfigure here
+rm -f subsurface/libdivecomputer/configure
+pushd subsurface/libdivecomputer
+autoreconf --install --force
+autoreconf --install --force
+popd
# and now we need a monotonic build number...
if [ ! -f ./buildnr.dat ] ; then