[MacPorts] #51417: mailman @2.1.22_0: ImportError: cannot import name C_
MacPorts
noreply at macports.org
Sun Jul 3 13:24:37 PDT 2016
#51417: mailman @2.1.22_0: ImportError: cannot import name C_
----------------------+-------------------
Reporter: gotow@… | Owner: mps@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Resolution: | Keywords:
Port: mailman |
----------------------+-------------------
Comment (by macports-bug-report-yf@…):
> (1) It checks files/dirs permission of installed environment, including
/etc, working directories, archive directories, etc., with absolute paths
(i.e. not checking under staging root dir).[[BR]]
I'm very sorry this is not correct, because files/patch-Defaults.py.in
modifies Mailman/Defaults.py.in,
which allows to check under ${DESTDIR} specified by environment variable.
However, on bin/check_perms (or other scripts) execution, bin/paths.py is
imported before mm_cfg.py and Defaults.py,
so ${sharedir} is inserted to the top of module search path, so mm_cfg.py,
Defaults.py and other Mailman modules are
imported from ${sharedir} if old installation exists.
To avoid this, you can modify misc/paths.py.in to refer DESTDIR
environment variable in the same way as Mailman/Defaults.py.in ,
which is modified by ports file patch-Defaults.py.in .
(This will change not only bin/paths.py, but also cron/paths.py,
scripts/paths.py, and tests/paths.py, though)
--
Ticket URL: <https://trac.macports.org/ticket/51417#comment:13>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list