ports/178242: bsd.python.mk injection of @exec easy_install to PLIST creates inappropriate post-install scripts for pkgng
Chris Dukes
chris.dukes.aix at gmail.com
Tue Apr 30 01:20:01 UTC 2013
The following reply was made to PR ports/178242; it has been noted by GNATS.
From: Chris Dukes <chris.dukes.aix at gmail.com>
To: bug-followup at FreeBSD.org, chris.dukes.aix at gmail.com
Cc:
Subject: Re: ports/178242: bsd.python.mk injection of @exec easy_install to
PLIST creates inappropriate post-install scripts for pkgng
Date: Mon, 29 Apr 2013 21:15:33 -0400
This is a multi-part message in MIME format.
--------------050204040401040600050102
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
And a patch that seems to fix the issue for pkgng.
For the old style packaging, it could probably stand to have the bit to
generate the @exec in the plist removed as well.
--------------050204040401040600050102
Content-Type: text/x-patch;
name="bsd.python.mk.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="bsd.python.mk.patch"
Index: Mk/bsd.python.mk
===================================================================
--- Mk/bsd.python.mk (revision 316838)
+++ Mk/bsd.python.mk (working copy)
@@ -498,6 +498,7 @@
pre-install-easyinstall:
@${MKDIR} ${PYEASYINSTALL_SITELIBDIR}
+.if !defined(WITH_PKGNG)
add-plist-post: add-plist-easyinstall
add-plist-easyinstall:
@# @unexec line must be located before any other line while @exec must not.
@@ -508,6 +509,7 @@
@${ECHO_CMD} "@exec ${SETENV} PYTHONPATH=${PYEASYINSTALL_SITELIBDIR} \
${PYEASYINSTALL_CMD} ${PYEASYINSTALL_INSTALLARGS}" \
>> ${TMPPLIST}
+.endif # !defined(WITH_PKGNG)
.endif # defined(USE_PYDISTUTILS) && ${USE_PYDISTUTILS} == "easy_install"
# distutils support
--------------050204040401040600050102--
More information about the freebsd-python
mailing list