PATCH: Installation with DESTDIR leaves DESTDIR/ prefixes in .pyc files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Fix Released
|
Low
|
Mark Sapiro |
Bug Description
Packaging mailman 2.1.16 for FreeBSD's new STAGEDIR (think DESTDIR) support, the FreeBSD Q/A scripts complained that the .pyc files contain the DESTDIR prefix, and thus might misrepresent their own path in tracebacks.
I debugged this and figured that Makefile.in is the culprit,
$(PYTHON) -c 'from compileall import *; compile_
Read this in context with the Python reference, http://
I am offering a patch to remedy this problem, and ask that it be included in all future releases (2.1.17, for instance). Assume it is under the 2-clause BSD license.
Related branches
Changed in mailman: | |
status: | Confirmed → Fix Committed |
Changed in mailman: | |
status: | Fix Committed → Fix Released |
Is there some reason why your patch does
(cd "$(DESTDIR) $(prefix) " \ dir("Mailman" , ddir="$ (prefix) /Mailman" )')
&& $(PYTHON) -c 'from compileall import *; compile_
instead of just
$(PYTHON) -c 'from compileall import *; compile_ dir("$( DESTDIR) $(prefix) /Mailman" , ddir="$ (prefix) /Mailman" )'