aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2023-02-08 13:36:55 +0100
committerOliver Smith <osmith@sysmocom.de>2023-02-08 14:16:02 +0100
commit2ef19d24d25066e8cba53188c082842bb6d7176d (patch)
tree1eecf18d821325955179cc70ec3914ffa610a88b
parentc801b72336d744ede233d5be991d5bfb7b1ceabc (diff)
release-tarball: fix osmo-trx 1.5.0
Run configure with the --with-mstrx argument, so LIBTRXCON_DIR is not pointing at an empty directory. Fix for: make[2]: Entering directory '/build/_temp/repos/osmo-trx/osmocom-bb' make[2]: *** No rule to make target 'distdir'. Stop. Change-Id: I2f067409f98119d4e35cf86cc2c816fc3c19e3f5
-rw-r--r--release-tarball-build-dist/osmocom-release-tarballs.sh19
1 files changed, 18 insertions, 1 deletions
diff --git a/release-tarball-build-dist/osmocom-release-tarballs.sh b/release-tarball-build-dist/osmocom-release-tarballs.sh
index f2bc599..6ab905f 100644
--- a/release-tarball-build-dist/osmocom-release-tarballs.sh
+++ b/release-tarball-build-dist/osmocom-release-tarballs.sh
@@ -156,6 +156,23 @@ prepare_depends() {
esac
}
+# Run ./configure, with arguments if needed.
+# $1: Osmocom repository
+run_configure() {
+ case "$1" in
+ osmo-trx)
+ # Avoid pointing LIBTRXCON_DIR to an empty directory:
+ # https://gerrit.osmocom.org/c/osmo-trx/+/30792
+ if grep -q with_mstrx configure.ac; then
+ ./configure --with-mstrx
+ fi
+ ;;
+ *)
+ ./configure
+ ;;
+ esac
+}
+
# Apply workarounds for bugs that break too many releases. This function runs between ./configure and make dist-bzip2.
# $1: Osmocom repository
fix_repo() {
@@ -243,7 +260,7 @@ create_tarball() {
cd "$TEMP/repos/$repo"
autoreconf -fi
- ./configure
+ run_configure "$repo"
fix_repo "$repo"
make dist-bzip2