Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415929 - net-mail/queue-repair should depend on dev-lang/python:2.*
Summary: net-mail/queue-repair should depend on dev-lang/python:2.*
Status: RESOLVED DUPLICATE of bug 405899
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-14 13:02 UTC by Wolfgang Dann
Modified: 2016-05-06 08:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
queue-repair-0.9.0-python3.patch (queue-repair-0.9.0-python3.patch,6.87 KB, patch)
2016-02-22 20:46 UTC, Bruce Guenter
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***