<p>Pau Espin Pedrol has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/11945">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">contrib/jenkins.sh: Update script to fix several issues and use recent<br>osmo-ci utils<br><br>Previous script didn't clean workspace and git repositories were<br>allegedly not being updated, hiding build failures against newer deps.<br><br>Currently cellmgr-ng is not being maintained and fails to build against<br>recent libosmo-sccp. For that dep repo, tag "old_sua" is used since<br>after that tag, APIs changed considerably and it is known that<br>cellmgr-ng cannot build starting from there.<br><br>It's up to whoever wants to maintain it to make changes in cellmgr-ng to<br>support newer libosmo-sccp.<br><br>While building with new jenkins.sh script and "old_sua" tag, still there<br>are some build issues (mostly related to build system), like some<br>Makefile.am files missing some LDFLAGS. Some of them are fixed in<br>follow-up patches. Some other are left as an exercise for whover wants<br>to revive this repo.<br><br>Change-Id: Ic597664198547ec367d7926d4e401b9734c8cfa9<br>---<br>M contrib/jenkins.sh<br>1 file changed, 43 insertions(+), 34 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/cellmgr-ng refs/changes/45/11945/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh</span><br><span>index 679df6a..17f182c 100755</span><br><span>--- a/contrib/jenkins.sh</span><br><span>+++ b/contrib/jenkins.sh</span><br><span>@@ -1,41 +1,50 @@</span><br><span> #!/usr/bin/env bash</span><br><span style="color: hsl(120, 100%, 40%);">+# jenkins build helper script for openbsc.  This is how we build on jenkins.osmocom.org</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if ! [ -x "$(command -v osmo-build-dep.sh)" ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+ echo "Error: We need to have scripts/osmo-deps.sh from http://git.osmocom.org/osmo-ci/ in PATH !"</span><br><span style="color: hsl(120, 100%, 40%);">+   exit 2</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span> </span><br><span> set -ex</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-rm -rf deps/install</span><br><span style="color: hsl(0, 100%, 40%);">-mkdir deps || true</span><br><span style="color: hsl(0, 100%, 40%);">-cd deps</span><br><span style="color: hsl(0, 100%, 40%);">-osmo-deps.sh libosmocore</span><br><span style="color: hsl(120, 100%, 40%);">+base="$PWD"</span><br><span style="color: hsl(120, 100%, 40%);">+deps="$base/deps"</span><br><span style="color: hsl(120, 100%, 40%);">+inst="$deps/install"</span><br><span style="color: hsl(120, 100%, 40%);">+export deps inst</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-cd libosmocore</span><br><span style="color: hsl(120, 100%, 40%);">+osmo-clean-workspace.sh</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+mkdir "$deps" || true</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+osmo-build-dep.sh libosmocore "" "--disable-doxygen"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]")</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"</span><br><span style="color: hsl(120, 100%, 40%);">+export LD_LIBRARY_PATH="$inst/lib"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+osmo-build-dep.sh libosmo-abis</span><br><span style="color: hsl(120, 100%, 40%);">+osmo-build-dep.sh libosmo-netif</span><br><span style="color: hsl(120, 100%, 40%);">+osmo-build-dep.sh libosmo-sccp old_sua</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+set +x</span><br><span style="color: hsl(120, 100%, 40%);">+echo</span><br><span style="color: hsl(120, 100%, 40%);">+echo</span><br><span style="color: hsl(120, 100%, 40%);">+echo</span><br><span style="color: hsl(120, 100%, 40%);">+echo " =============================== cellmgr-ng ==============================="</span><br><span style="color: hsl(120, 100%, 40%);">+echo</span><br><span style="color: hsl(120, 100%, 40%);">+set -x</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+cd "$base"</span><br><span> autoreconf --install --force</span><br><span style="color: hsl(0, 100%, 40%);">-./configure --prefix=$PWD/../install ac_cv_path_DOXYGEN=false</span><br><span style="color: hsl(0, 100%, 40%);">-$MAKE $PARALLEL_MAKE install</span><br><span style="color: hsl(120, 100%, 40%);">+./configure --enable-external-tests</span><br><span style="color: hsl(120, 100%, 40%);">+$MAKE $PARALLEL_MAKE</span><br><span style="color: hsl(120, 100%, 40%);">+LD_LIBRARY_PATH="$inst/lib" $MAKE check \</span><br><span style="color: hsl(120, 100%, 40%);">+  || cat-testlogs.sh</span><br><span style="color: hsl(120, 100%, 40%);">+LD_LIBRARY_PATH="$inst/lib" \</span><br><span style="color: hsl(120, 100%, 40%);">+  DISTCHECK_CONFIGURE_FLAGS="--enable-external-tests" \</span><br><span style="color: hsl(120, 100%, 40%);">+  $MAKE distcheck \</span><br><span style="color: hsl(120, 100%, 40%);">+  || cat-testlogs.sh</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-cd ../</span><br><span style="color: hsl(0, 100%, 40%);">-osmo-deps.sh libosmo-abis</span><br><span style="color: hsl(0, 100%, 40%);">-cd libosmo-abis</span><br><span style="color: hsl(0, 100%, 40%);">-autoreconf --install --force</span><br><span style="color: hsl(0, 100%, 40%);">-PKG_CONFIG_PATH=$PWD/../install/lib/pkgconfig:$PKG_CONFIG_PATH ./configure --prefix=$PWD/../install  </span><br><span style="color: hsl(0, 100%, 40%);">-PKG_CONFIG_PATH=$PWD/..//install/lib/pkgconfig:$PKG_CONFIG_PATH $MAKE $PARALLEL_MAKE install</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-cd ../</span><br><span style="color: hsl(0, 100%, 40%);">-osmo-deps.sh libosmo-netif</span><br><span style="color: hsl(0, 100%, 40%);">-cd libosmo-netif</span><br><span style="color: hsl(0, 100%, 40%);">-autoreconf --install --force</span><br><span style="color: hsl(0, 100%, 40%);">-PKG_CONFIG_PATH=$PWD/../install/lib/pkgconfig:$PKG_CONFIG_PATH ./configure --prefix=$PWD/../install  </span><br><span style="color: hsl(0, 100%, 40%);">-PKG_CONFIG_PATH=$PWD/..//install/lib/pkgconfig:$PKG_CONFIG_PATH $MAKE $PARALLEL_MAKE install</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-cd ../</span><br><span style="color: hsl(0, 100%, 40%);">-osmo-deps.sh libosmo-sccp</span><br><span style="color: hsl(0, 100%, 40%);">-cd libosmo-sccp</span><br><span style="color: hsl(0, 100%, 40%);">-autoreconf --install --force</span><br><span style="color: hsl(0, 100%, 40%);">-PKG_CONFIG_PATH=$PWD/../install/lib/pkgconfig ./configure --prefix=$PWD/../install  </span><br><span style="color: hsl(0, 100%, 40%);">-PKG_CONFIG_PATH=$PWD/..//install/lib/pkgconfig $MAKE $PARALLEL_MAKE install</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-cd ../../</span><br><span style="color: hsl(0, 100%, 40%);">-autoreconf --install --force</span><br><span style="color: hsl(0, 100%, 40%);">-PKG_CONFIG_PATH=$PWD/deps/install/lib/pkgconfig ./configure --enable-external-tests</span><br><span style="color: hsl(0, 100%, 40%);">-PKG_CONFIG_PATH=$PWD/deps/install/lib/pkgconfig $MAKE $PARALLEL_MAKE</span><br><span style="color: hsl(0, 100%, 40%);">-PKG_CONFIG_PATH=$PWD/deps/install/lib/pkgconfig LD_LIBRARY_PATH=$PWD/deps/install/lib $MAKE distcheck</span><br><span style="color: hsl(120, 100%, 40%);">+osmo-clean-workspace.sh</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/11945">change 11945</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/11945"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: cellmgr-ng </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ic597664198547ec367d7926d4e401b9734c8cfa9 </div>
<div style="display:none"> Gerrit-Change-Number: 11945 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>