Change in osmo-ci[master]: osmocom-nightly/latest: Build open5gs

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Mon Feb 24 09:08:50 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/17248 )


Change subject: osmocom-nightly/latest: Build open5gs
......................................................................

osmocom-nightly/latest: Build open5gs

Change-Id: I6752288868e5ee1378c0776b1be9f06750017c41
---
M scripts/osmocom-latest-packages.sh
M scripts/osmocom-nightly-packages.sh
2 files changed, 31 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/48/17248/1

diff --git a/scripts/osmocom-latest-packages.sh b/scripts/osmocom-latest-packages.sh
index 3770ee1..bcc3067 100755
--- a/scripts/osmocom-latest-packages.sh
+++ b/scripts/osmocom-latest-packages.sh
@@ -37,7 +37,7 @@
 
 get_last_tag() {
   project="$1"
-  if [ "$project" = "limesuite" ]; then
+  if [ "$project" = "limesuite" ] || [ "$project" = "open5gs" ]; then
     ver_regexp="^v[0-9]*.[0-9]*.[0-9]*$"
   else
     ver_regexp="^[0-9]*.[0-9]*.[0-9]*$"
@@ -54,6 +54,10 @@
   cd "$TOP"
   if [ "$project" = "limesuite" ]; then
      [ -d "$project" ] || git clone "https://github.com/myriadrf/LimeSuite" "$project"
+  elif [ "$project" = "open5gs" ]; then
+    if [ ! -d "$project" ]; then
+      git clone "https://github.com/open5gs/open5gs" "$project"
+    fi
   else
     [ -d "$project" ] || osmo_git_clone_date "$(osmo_git_clone_url "$project")"
   fi
@@ -61,6 +65,9 @@
   git fetch
   VER=$(get_last_tag "$project")
   git checkout -f -B "$VER" "refs/tags/$VER"
+  if [ "$project" = "open5gs" ]; then
+      meson subprojects download freeDiameter
+  fi
 }
 
 # Copy an already checked out repository dir and apply its debian 8 patch.
@@ -93,7 +100,12 @@
 
   osmo_obs_add_debian_dependency "./debian/control" "osmocom-latest"
 
-  if [ -x ./git-version-gen ]; then
+  if [ "$project" = "open5gs" ]; then
+    # we cannot control the output directory of the generated source :(
+    dpkg-buildpackage -S -uc -us -d
+    mkdir -p "$output"
+    mv "../$name"*.tar* "../$name"*.dsc "$output"
+  elif [ -x ./git-version-gen ]; then
     gbp buildpackage -S -uc -us -d --git-ignore-branch "--git-export-dir=$output" \
 		     "--git-debian-branch=$VER" --git-ignore-new $gitbpargs \
 		     --git-postexport='cp $GBP_GIT_DIR/../.tarball-version $GBP_TMP_DIR/'
@@ -159,6 +171,7 @@
   checkout libosmo-dsp
   checkout osmo-sysmon
   checkout osmo-remsim
+  checkout open5gs
 
   checkout_copy_debian8_jessie "osmo-gsm-manuals"
 
@@ -191,6 +204,7 @@
   build libosmo-dsp
   build osmo-sysmon
   build osmo-remsim
+  build open5gs
 
   cd "$TOP/$PROJ"
   osc ci -m "Latest Tagged versions of $DT"
diff --git a/scripts/osmocom-nightly-packages.sh b/scripts/osmocom-nightly-packages.sh
index d49d968..6094db2 100755
--- a/scripts/osmocom-nightly-packages.sh
+++ b/scripts/osmocom-nightly-packages.sh
@@ -108,8 +108,11 @@
   fi
 
   mkdir -p "$DATA/$name"
-  # source code build without dependency checks and unsigned source and unsigned change log
-  if [ -f .tarball-version ]; then
+  if [ "$name" = "open5gs" ]; then
+    # we cannot control the output directory of the generated source :(
+    dpkg-buildpackage -S -uc -us -d
+    mv "../$name"*.tar* "../$name"*.dsc "$DATA/$name/"
+  elif [ -f .tarball-version ]; then
     gbp buildpackage -S -uc -us -d --git-ignore-branch "--git-export-dir=$DATA/$name" \
 		     --git-ignore-new $gitbpargs \
 		     --git-postexport='cp $GBP_GIT_DIR/../.tarball-version $GBP_TMP_DIR/'
@@ -153,6 +156,14 @@
   git checkout "$TAG"
 }
 
+checkout_open5gs() {
+  cd "$REPO"
+  git clone https://github.com/open5gs/open5gs
+  cd open5gs
+  meson subprojects download freeDiameter
+}
+
+
 # Copy an already checked out repository dir and apply its debian 8 patch.
 # $1: Osmocom repository
 checkout_copy_debian8_jessie() {
@@ -207,6 +218,7 @@
   checkout libosmo-dsp
   checkout osmo-sysmon
   checkout osmo-remsim
+  checkout_open5gs
 
   checkout_copy_debian8_jessie "osmo-gsm-manuals"
   checkout_copy_debian8_jessie "osmo-trx"
@@ -244,6 +256,7 @@
   build libosmo-dsp
   build osmo-sysmon
   build osmo-remsim
+  build open5gs
 
   download_bumpversion
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/17248
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I6752288868e5ee1378c0776b1be9f06750017c41
Gerrit-Change-Number: 17248
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200224/bcab5724/attachment.htm>


More information about the gerrit-log mailing list