ports/183104: [PATCH] ports-mgmt/portconf: work with bmake
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sat Oct 19 16:50:03 UTC 2013
>Number: 183104
>Category: ports
>Synopsis: [PATCH] ports-mgmt/portconf: work with bmake
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Oct 19 16:50:02 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Sunpoet Po-Chuan Hsieh
>Release: FreeBSD 10.0-BETA1 amd64
>Organization:
The FreeBSD Project
>Environment:
System: FreeBSD bonjour.sunpoet.net 10.0-BETA1 FreeBSD 10.0-BETA1 #0 r256445: Tue Oct 15 04:48:04 CST
>Description:
It's a dirty hack for portconf to work with bmake which is default make on FreeBSD 10 and above.
Patch is also available at http://people.freebsd.org/~sunpoet/portconf.patch
Port maintainer (ale at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: SVN)
>How-To-Repeat:
>Fix:
--- portconf-1.6_1.patch begins here ---
Index: Makefile
===================================================================
--- Makefile (revision 330908)
+++ Makefile (working copy)
@@ -3,6 +3,7 @@
PORTNAME= portconf
PORTVERSION= 1.6
+PORTREVISION= 1
CATEGORIES= ports-mgmt
MASTER_SITES= # none
DISTFILES= # none
Index: files/portconf.sh.in
===================================================================
--- files/portconf.sh.in (revision 330908)
+++ files/portconf.sh.in (working copy)
@@ -29,6 +29,7 @@
#
_conf=%%PREFIX%%/etc/ports.conf
+echo -n "|"
if [ ! -r "${_conf}" ]; then
exit
fi
Index: pkg-install
===================================================================
--- pkg-install (revision 330908)
+++ pkg-install (working copy)
@@ -10,10 +10,12 @@
# Do not touch these lines
.if !empty(.CURDIR:M${PORTS_DIR}*) && exists(${PKG_PREFIX}/libexec/portconf)
_PORTCONF!=${PKG_PREFIX}/libexec/portconf
-.for i in \${_PORTCONF:S/|/ /g}
-\${i:S/%/ /g}
+.if \${_PORTCONF} != "|"
+.for i in \${_PORTCONF:S/^|//:S/|/ /g}
+\${i:C/^([^=]*)=.*/\1/}=\${i:C/^[^=]*=//:S/%/ /g}
.endfor
.endif
+.endif
# End portconf settings
EOF
echo " Done."
--- portconf-1.6_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list