missing shebang in pdfcrop (and other texlive-related scripts)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
texlive-extra (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
A while ago, I wrote a simple python script calling pdftk and pdfcrop to prepare figures for inclusion in latex files.
If I recall properly, I used it at least on the last two ubuntu versions (jaunty and karmic), but I just launched it again on lucid and it was broken, complaining about a bad exec format:
File "/usr/lib/
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/
errread, errwrite)
File "/usr/lib/
raise child_exception
OSError: [Errno 8] Exec format error
After some investigation, I realised it was just the the shebang was missing on top of the pdfcrop perl script, adding it solved my problem and everything works again!
On a jaunty install, the shebang is also missing, so I guess python became more strict (or less smart) somewhere between karmic and lucid.
According to this gentoo bug, I'm not the only one and debian is supposed to have patches to add the shebang, why ain't these patches in ubuntu?
http://
Note. this page has a broken link, has of today, I see the patch in sid and lenny versions:
http://
http://
BTW, the version in jaunty seems to be similar to the version in lenny (version number is 2007.dfsg.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: texlive-extra-utils 2009-7ubuntu3 [modified: usr/share/
ProcVersionSign
Uname: Linux 2.6.32-
Architecture: powerpc
Date: Tue May 25 15:03:34 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release powerpc (20091027.2)
PackageArchitec
ProcEnviron:
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: texlive-extra
Changed in texlive-extra (Ubuntu): | |
status: | New → Confirmed |