<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/mncc-python/+/17397">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, approved; Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Fix regen-mncc-py.sh script to work on Debian8 (jessie)<br><br>As python-ctypeslib is long unmaintained, it is not packaged<br>for anything more recent than Debian 8 (jessie).  Let's print<br>that at start and check for availability of the reqquired<br>executable programs (part of python-ctypeslib).<br><br>Change-Id: Ied6333016e2eb357bda08499742f1ed8c56ba762<br>---<br>M regen-mncc-py.sh<br>1 file changed, 14 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/regen-mncc-py.sh b/regen-mncc-py.sh</span><br><span>index 30bdd34..f1c85db 100755</span><br><span>--- a/regen-mncc-py.sh</span><br><span>+++ b/regen-mncc-py.sh</span><br><span>@@ -1,5 +1,16 @@</span><br><span> #/bin/sh</span><br><span style="color: hsl(0, 100%, 40%);">-echo on Debian, codegen/cparser.py must call gccxml.real instead of gccxml!</span><br><span style="color: hsl(120, 100%, 40%);">+echo This script requires that python-ctypeslib is installed on the system</span><br><span style="color: hsl(120, 100%, 40%);">+echo Unfortunately, this package is long unmaintained and only available on Debian8</span><br><span style="color: hsl(120, 100%, 40%);">+echo</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if [ ! -x `which h2xml` ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+   echo No h2xml executable found - python-ctypeslib not installed?</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if [ ! -x `which xml2py` ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+      echo No xml2py executable found - python-ctypeslib not installed?</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> cp ./mncc.h /tmp/mncc.h</span><br><span style="color: hsl(0, 100%, 40%);">-h2xml.py ./mncc.h -c -o mncc.xml</span><br><span style="color: hsl(0, 100%, 40%);">-xml2py.py mncc.xml -k dest -v -o mncc.py</span><br><span style="color: hsl(120, 100%, 40%);">+h2xml ./mncc.h -c -o mncc.xml</span><br><span style="color: hsl(120, 100%, 40%);">+xml2py mncc.xml -k dest -v -o mncc.py</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/mncc-python/+/17397">change 17397</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/c/mncc-python/+/17397"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: mncc-python </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ied6333016e2eb357bda08499742f1ed8c56ba762 </div>
<div style="display:none"> Gerrit-Change-Number: 17397 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>