[Python-modules-team] Bug#740159: Add missing cpp dependency

Martin Pitt martin.pitt at ubuntu.com
Wed Feb 26 13:04:10 UTC 2014


Package: python-pycparser
Version: 2.10+dfsg-1
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch trusty

Hello,

pycparser's autopkgtest currently fails [1]:

| Traceback (most recent call last):
|   File "/tmp/adt-run.KJzNVw/tree0t-unittests-testtmp/adttmp/tests/test_general.py", line 55, in test_no_real_content_after_cpp
|     cpp_path=CPPPATH)
|   File "/usr/lib/python2.7/dist-packages/pycparser/__init__.py", line 86, in parse_file
|     text = preprocess_file(filename, cpp_path, cpp_args)
|   File "/usr/lib/python2.7/dist-packages/pycparser/__init__.py", line 49, in preprocess_file
|     ('Original error: %s' % e))
| RuntimeError: Unable to invoke 'cpp'.  Make sure its path was passed correctly
| Original error: [Errno 2] No such file or directory

Simple fix attached which adds the missing cpp binary dependency. I tested that
it now succeeds in an LXC container. Yay tests :-)

Thanks for considering,

Martin

[1] http://ci.debian.net/#package/pycparser
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
diff -Nru pycparser-2.10+dfsg/debian/changelog pycparser-2.10+dfsg/debian/changelog
--- pycparser-2.10+dfsg/debian/changelog	2014-02-12 17:34:13.000000000 +0100
+++ pycparser-2.10+dfsg/debian/changelog	2014-02-26 14:01:16.000000000 +0100
@@ -1,3 +1,9 @@
+pycparser (2.10+dfsg-1ubuntu2) trusty; urgency=medium
+
+  * Add missing cpp dependency, spotted by autopkgtest.
+
+ -- Martin Pitt <martin.pitt at ubuntu.com>  Wed, 26 Feb 2014 14:01:07 +0100
+
 pycparser (2.10+dfsg-1ubuntu1) trusty; urgency=medium
 
   * Fix build failure with /usr/share/pyshared removed.
diff -Nru pycparser-2.10+dfsg/debian/control pycparser-2.10+dfsg/debian/control
--- pycparser-2.10+dfsg/debian/control	2013-08-08 11:54:43.000000000 +0200
+++ pycparser-2.10+dfsg/debian/control	2014-02-26 13:56:13.000000000 +0100
@@ -20,7 +20,7 @@
 
 Package: python-pycparser
 Architecture: all
-Depends: ${misc:Depends}, ${python-ply:Depends}, ${python:Depends}
+Depends: ${misc:Depends}, ${python-ply:Depends}, ${python:Depends}, cpp
 Description: C parser in Python
  pycparser is a complete parser of the C language, written in pure Python using
  the PLY parsing library. It parses C code into an AST and can serve as a
@@ -28,7 +28,7 @@
 
 Package: python3-pycparser
 Architecture: all
-Depends: ${misc:Depends}, ${python3-ply:Depends}, ${python3:Depends}
+Depends: ${misc:Depends}, ${python3-ply:Depends}, ${python3:Depends}, cpp
 Description: C parser in Python 3
  pycparser is a complete parser of the C language, written in pure Python using
  the PLY parsing library. It parses C code into an AST and can serve as a
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20140226/62477810/attachment.sig>


More information about the Python-modules-team mailing list