Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#35505 - [python2-rst2pdf] 0.93-3 - sed command in PKGBUILD makes unintended changes

Attached to Project: Community Packages
Opened by Tobias Patzl (tharugrim) - Monday, 27 May 2013, 18:56 GMT
Last edited by Alexander F. Rødseth (xyproto) - Sunday, 02 June 2013, 18:24 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No


The sed command [1] used in the PKGBUILD to change the shebang-lines of the python-modules from '#!/usr/bin/env python' to '#!/usr/bin/env python2'
makes unintended changes when there is no shebang-line. So this command should be changed to be more specific.

[1] Line 26: find . -name "*.py" -exec sed -i '0,/on/s//on2/' {} \;

In the file '/usr/lib/python2.7/site-packages/rst2pdf/':
it changes line 7 from 'logging.basicConfig(' to 'logging.basicCon2fig('.

Additional info:
* python2-rst2pdf 0.93-3
* error:

Traceback (most recent call last):
File "/usr/bin/rst2pdf", line 9, in <module>
load_entry_point('', 'console_scripts', 'rst2pdf')()
File "/usr/lib/python2.7/site-packages/", line 343, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/", line 2325, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/", line 2031, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.7/site-packages/rst2pdf/", line 45, in <module>
from opt_imports import psyco
File "/usr/lib/python2.7/site-packages/rst2pdf/", line 17, in <module>
from log import log
File "/usr/lib/python2.7/site-packages/rst2pdf/", line 7, in <module>
AttributeError: 'module' object has no attribute 'basicCon2fig'

Steps to reproduce:
* try to convert a reST-file to PDF
   PKGBUILD (1.3 KiB)
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Sunday, 02 June 2013, 18:24 GMT
Reason for closing:  Fixed
Comment by Alexander F. Rødseth (xyproto) - Sunday, 02 June 2013, 18:24 GMT
Thanks for reporting. The updated package should appear in [community] shortly.