Change in mncc-python[master]: Fix regen-mncc-py.sh script to work on Debian8 (jessie)

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
Fri Mar 6 17:54:21 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/mncc-python/+/17397 )

Change subject: Fix regen-mncc-py.sh script to work on Debian8 (jessie)
......................................................................

Fix regen-mncc-py.sh script to work on Debian8 (jessie)

As python-ctypeslib is long unmaintained, it is not packaged
for anything more recent than Debian 8 (jessie).  Let's print
that at start and check for availability of the reqquired
executable programs (part of python-ctypeslib).

Change-Id: Ied6333016e2eb357bda08499742f1ed8c56ba762
---
M regen-mncc-py.sh
1 file changed, 14 insertions(+), 3 deletions(-)

Approvals:
  laforge: Looks good to me, approved; Verified



diff --git a/regen-mncc-py.sh b/regen-mncc-py.sh
index 30bdd34..f1c85db 100755
--- a/regen-mncc-py.sh
+++ b/regen-mncc-py.sh
@@ -1,5 +1,16 @@
 #/bin/sh
-echo on Debian, codegen/cparser.py must call gccxml.real instead of gccxml!
+echo This script requires that python-ctypeslib is installed on the system
+echo Unfortunately, this package is long unmaintained and only available on Debian8
+echo
+
+if [ ! -x `which h2xml` ]; then
+	echo No h2xml executable found - python-ctypeslib not installed?
+fi
+
+if [ ! -x `which xml2py` ]; then
+	echo No xml2py executable found - python-ctypeslib not installed?
+fi
+
 cp ./mncc.h /tmp/mncc.h
-h2xml.py ./mncc.h -c -o mncc.xml
-xml2py.py mncc.xml -k dest -v -o mncc.py
+h2xml ./mncc.h -c -o mncc.xml
+xml2py mncc.xml -k dest -v -o mncc.py

-- 
To view, visit https://gerrit.osmocom.org/c/mncc-python/+/17397
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: mncc-python
Gerrit-Branch: master
Gerrit-Change-Id: Ied6333016e2eb357bda08499742f1ed8c56ba762
Gerrit-Change-Number: 17397
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200306/3e3b2556/attachment.htm>


More information about the gerrit-log mailing list