From 83f4f25d7cae8bb1ccfa4478304c8c8480651d59 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Tue, 28 May 2019 15:21:50 +0200 Subject: [PATCH] OBS: build osmo-gsm-manuals-dev in latest Enable in osmocom-latest-packages.sh. Check it out and create the source package for the latest release as usually, but also create a second version for debian 8 with adjusted dependencies (like in nightly [1]). [1] Change-Id: I3570599ede51b974d350064f44f77e360fafd8b0 Related: OS#3899 Change-Id: Ib7251cca9116151e473798879375cd5eb48ff3ad --- scripts/osmocom-latest-packages.sh | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/scripts/osmocom-latest-packages.sh b/scripts/osmocom-latest-packages.sh index 58b4a9f8..543c43af 100755 --- a/scripts/osmocom-latest-packages.sh +++ b/scripts/osmocom-latest-packages.sh @@ -58,6 +58,22 @@ checkout() { git checkout -f -B "$VER" "refs/tags/$VER" } +# Copy an already checked out repository dir and apply its debian 8 patch. +# $1: Osmocom repository +checkout_copy_debian8_jessie() { + echo + echo "====> Checking out $1-debian8-jessie" + cd "$TOP" + if [ -d "$1-debian8-jessie" ]; then + rm -rf "$1-debian8-jessie" + fi + cp -a "$1" "$1-debian8-jessie" + cd "$1-debian8-jessie" + patch -p1 < debian/patches/build-for-debian8.patch + git commit --amend --no-edit debian/ + cd .. +} + build() { project=$1 gitbpargs="$2" @@ -101,12 +117,12 @@ build() { # add those once they have tagged any versions that include the 'debian' sub-dir: #rtl-sdr #osmo-fl2k -#osmo-gsm-manuals build_osmocom() { prepare checkout limesuite + checkout osmo-gsm-manuals checkout libosmocore checkout libosmo-sccp checkout libosmo-abis @@ -134,7 +150,11 @@ build_osmocom() { # TODO: enable once libosmo-abis > 0.6.0 is available (IPA keepalive FSM) # checkout osmo-remsim + checkout_copy_debian8_jessie "osmo-gsm-manuals" + build limesuite --git-upstream-tree="$(get_last_tag limesuite)" + build osmo-gsm-manuals + build osmo-gsm-manuals-debian8-jessie build libosmocore build libosmo-sccp build libosmo-abis