Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 415929

Summary: net-mail/queue-repair should depend on dev-lang/python:2.*
Product: Gentoo Linux Reporter: Wolfgang Dann <montar>
Component: [OLD] ServerAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bruce
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: queue-repair-0.9.0-python3.patch

Description Wolfgang Dann 2012-05-14 13:02:32 UTC
the script uses python3 interpreter instead of python2
so postinstall of mail-mta/netqmail fails.


>>> Installing (9 of 10) mail-mta/netqmail-1.06
 * >>> SetUID: [chmod go-r] /var/qmail/bin/qmail-queue ...                                          [ ok ]
 * Setting up the message queue hierarchy
  File "/usr/bin/queue-repair.py", line 69
    'queue' :           ('qmailq', 'qmail', 0750, 0),
                                               ^
SyntaxError: invalid token
Comment 1 William L. Thomson Jr. 2015-01-12 18:07:48 UTC
Almost 3 years later this bug still remains... qmail-repair needs to be modified for > python 2.x or set to only use that version of python and no other. Thanks!
Comment 2 Chris Lu 2015-08-04 12:06:07 UTC
The move to python 3 as the default makes this more of an issue.

https://www.gentoo.org/support/news-items/2015-07-25-python-targets.html
Comment 3 Bruce Guenter 2016-02-22 20:46:14 UTC
Created attachment 426266 [details, diff]
queue-repair-0.9.0-python3.patch

The attached patch fixes the Python 3 issues so the script is compatible with both Python 2 and 3.
Comment 4 Pacho Ramos gentoo-dev 2016-05-06 08:37:51 UTC

*** This bug has been marked as a duplicate of bug 405899 ***