ports/139539: [PATCH] mail/py-apolicy: fix broken mtree with custom PREFIX
Sahil Tandon
sahil at tandon.net
Mon Oct 12 02:10:06 UTC 2009
>Number: 139539
>Category: ports
>Synopsis: [PATCH] mail/py-apolicy: fix broken mtree with custom PREFIX
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Oct 12 02:10:02 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Sahil Tandon
>Release: 7.2-RELEASE
>Organization:
>Environment:
>Description:
The port does not respect custom PREFIX because 'usr/local' is hard-coded in a patch of the upstream setup.py.
For more, see QATty log:
http://qatty.tecnik93.com//errors/7-STABLE-FPT-CustDir/py26-apolicy-0.73.log
>How-To-Repeat:
Install port with a custom PREFIX.
>Fix:
- remove files/patch-setup.py
- replace the above with a ${REINPLACE_CMD} in the Makefile that uses the environment PREFIX
Patch attached.
Patch attached with submission follows:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/py-apolicy/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile 29 Nov 2008 21:02:39 -0000 1.1
+++ Makefile 12 Oct 2009 01:54:59 -0000
@@ -29,6 +29,9 @@
PYTHON_CMD=${PYTHON_CMD}
SUB_FILES= pkg-message
+post-patch:
+ @${REINPLACE_CMD} 's|/etc|${PREFIX}/etc|' ${WRKSRC}/setup.py
+
post-install:
@${CAT} ${PKGMESSAGE}
Index: files/patch-setup.py
===================================================================
RCS file: files/patch-setup.py
diff -N files/patch-setup.py
--- files/patch-setup.py 29 Nov 2008 21:02:39 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,8 +0,0 @@
---- setup.py.orig 2008-11-24 06:35:54.000000000 +0000
-+++ setup.py 2008-11-24 06:36:11.000000000 +0000
-@@ -28,4 +28,4 @@
- author_email="miguel.filho at gmail.com", packages=["apolicy"],
- package_dir={"apolicy": "src/apolicy"},
- url="http://www.apolicy.org",
-- data_files=[("/etc/apolicy", data_files)])
-+ data_files=[("/usr/local/etc/apolicy", data_files)])
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list