Change in osmo-gsm-tester[master]: contrib: build amarisoft: Set trx_zmq.so RPATH to point to copied dep...

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/.

pespin gerrit-no-reply at lists.osmocom.org
Mon Apr 6 14:55:05 UTC 2020


pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17736 )

Change subject: contrib: build amarisoft: Set trx_zmq.so RPATH to point to copied dependency libsrslte_rf.so
......................................................................

contrib: build amarisoft: Set trx_zmq.so RPATH to point to copied dependency libsrslte_rf.so

In the ENB case it's not really required since osmo-gsm-tester makes use
of LD_LIBRARY_PATH. However, since the UE is potentially run with
capabilitites to create tunnels and alike, LD_LIBRARY_PATH cannot be
used and lteue will fail to load trx_zmq.so (because it cannot find its
dependency libsrslte_rf.so).

Change-Id: Ifcbc6ed1c4c465b4cfab4c5689cde44624095f29
---
M contrib/jenkins-build-amarisoft.sh
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, approved



diff --git a/contrib/jenkins-build-amarisoft.sh b/contrib/jenkins-build-amarisoft.sh
index f971578..e4b37cc 100755
--- a/contrib/jenkins-build-amarisoft.sh
+++ b/contrib/jenkins-build-amarisoft.sh
@@ -47,6 +47,7 @@
 if [ "x${BUILD_AMARISOFT_TRX_ZMQ}" = "x1" ]; then
         cp ${base}/${project_name_srslte}/build/lib/src/phy/rf/libsrslte_rf.so inst-amarisoftenb/
         cp ${base}/${project_name_zmq}/build/libtrx_zmq-linux-2018-10-18.so inst-amarisoftenb/trx_zmq.so
+        patchelf --set-rpath '$ORIGIN/' inst-amarisoftenb/trx_zmq.so
 fi
 cp ${base}/inst-tmp/trx_uhd-linux*/trx_uhd.so inst-amarisoftenb/
 this="amarisoftenb.build-${BUILD_NUMBER-$(date +%Y-%m-%d_%H_%M_%S)}"
@@ -60,6 +61,7 @@
 if [ "x${BUILD_AMARISOFT_TRX_ZMQ}" = "x1" ]; then
         cp ${base}/${project_name_srslte}/build/lib/src/phy/rf/libsrslte_rf.so inst-amarisoftue/
         cp ${base}/${project_name_zmq}/build/libtrx_zmq-linux-2018-10-18.so inst-amarisoftue/trx_zmq.so
+        patchelf --set-rpath '$ORIGIN/' inst-amarisoftue/trx_zmq.so
 fi
 cp ${base}/inst-tmp/trx_uhd-linux*/trx_uhd.so inst-amarisoftue/
 this="amarisoftue.build-${BUILD_NUMBER-$(date +%Y-%m-%d_%H_%M_%S)}"

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

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: Ifcbc6ed1c4c465b4cfab4c5689cde44624095f29
Gerrit-Change-Number: 17736
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200406/51b7e404/attachment.htm>


More information about the gerrit-log mailing list