protobuf-compiler generates code that requires python2.4

Bug #348243 reported by dobey
6
Affects Status Importance Assigned to Milestone
protobuf (Ubuntu)
Low
Unassigned

Bug Description

The currently packaged versiion of protobuf (2.0.3) has an error in the python code generator, which is already fixed upstream, that embeds a line of "#!/usr/bin/python2.4" at the beginning of every python file it outputs. The upstream fix was simplty to remove the printing of this line, and the attached patch does this as well. It is not needed as the generated code is to be used as modules. Please update the packages in jaunty with the attached patch, as the default is 2.6 there, and having this output in the code causes package dependencies on python2.4 from pycentral.

Related branches

Revision history for this message
dobey (dobey) wrote :
Revision history for this message
dobey (dobey) wrote :

There is also a package with my patch, in my PPA, to test.

Revision history for this message
Brian Murray (brian-murray) wrote :

Looking at the attachments in this bug report, I noticed that "Patch to remove python2.4 dependency" was not flagged as a patch. A patch contains changes to an Ubuntu package that will resolve a bug and this attachment is one! Subsequently, I've checked the patch flag for it. In the future when submitting patches please use the patch checkbox as there are some Launchpad searches that use this feature. Thanks for your contribution Rodney Dawes!

Revision history for this message
Brian Murray (brian-murray) wrote :

Attached is a debdiff that will resolve this issue.

Changed in protobuf (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Daniel Holbach (dholbach) wrote :

Good work!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package protobuf - 2.0.3-0ubuntu2

---------------
protobuf (2.0.3-0ubuntu2) jaunty; urgency=low

  * src/google/protobuf/compiler/python/python_generator.cc:
    removed line in code generator that added "#!/usr/bin/python2.4"
    to every python file created, (LP: #348243) should be fixed in
    upstream revision 2.0.4.

 -- Brian Murray <email address hidden> Thu, 26 Mar 2009 15:47:31 -0700

Changed in protobuf:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers