[kde-freebsd] [SVN Commit] area51/KDE/x11/kdelibs4/files
Raphael Kubo da Costa
rakuco at FreeBSD.org
Fri Dec 18 22:22:50 UTC 2015
SVN commit 11703 by rakuco:
kdelibs4: Apply all required upstream patches for PR 200018.
Bug 200018 is caused by the .pyc/.pyo files installed by devel/py-pykde4
containing references to the stage directory in them. When
editors/kate-plugin-pate is built by a user with write-access to those
PyKDE4 .pyc/.pyo files, they are rewritten automatically by Python to point
to their current location, which most of the times is different from the
staging location of where devel/py-pykde4 was built. This at the very least
leads to a filesystem violation in Poudriere.
The fix I landed upstream involves making kdelibs's PythonCompile.py accept
a --destination-dir parameter with the directory we want to register in the
.pyc/.pyo files, just like several ports do in their build or post-install
targets by calling Python's compileall.py module with -d.
The patches in files/ look somewhat confusing because we already patch
PythonMacros.cmake to build .pyo files and had to integrate the other
patches into it. At least I have added some context to
patch-cmake_modules_PythonMacros.cmake to reduce the confusion.
In the ports tree, this change must be landed with a PORTREVISION bump in
ports that use either the PYKDE4_INSTALL_PYTHON_FILES() or the
PYTHON_INSTALL() macros, namely:
- devel/py-pykde4
- games/kajongg (the .pyo files must be included in the plist)
- x11/plasma-scriptengine-python
PR: 200018
M +31 -12 patch-cmake_modules_PythonMacros.cmake
AM patch-git_016841a
AM patch-git_94f1d2f
More information about the kde-freebsd
mailing list