Package: python-pycparser
Version: 2.10+dfsg-1
Tags: patch
User: [email protected]
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)
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 <[email protected]>  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

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to