ports/125470: [patch] ports-mgmt/tinderbox fix OPTIONS handling
Alex Kozlov
spam at rm-rf.kiev.ua
Thu Jul 10 08:50:01 UTC 2008
>Number: 125470
>Category: ports
>Synopsis: [patch] ports-mgmt/tinderbox fix OPTIONS handling
>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: Thu Jul 10 08:50:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Alex Kozlov
>Release: FreeBSD 6.3
>Organization:
private
>Environment:
>Description:
Fix OPTIONS handling.
>How-To-Repeat:
$./tc configOptions
OPTIONS_DIR=/options
OPTIONS_ENABLED=1
$mount|grep options
/var/tinderbox/options/6S-FreeBSD on /var/tinderbox/6S-FreeBSD/var/db/ports
$sudo ./tinderbuild -nullfs -plistcheck -onceonly -b 6S-FreeBSD x11-wm/vtwm
[...]
$sudo ./enterbuild -b 6S-FreeBSD -d x11-wm/vtwm
[...]
#cat /var/db/ports/vtwm/options
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for vtwm-5.4.7_3
_OPTIONS_READ=vtwm-5.4.7_3
WITHOUT_SOUND=true
WITH_NLS=true
#cd /a/ports/x11-wm/vtwm/ && make -V WITHOUT_SOUND
#echo $PORT_DBDIR
/var/tinderbox/6S-FreeBSD/var/db/ports
>Fix:
Apply the patch.
Patch attached with submission follows:
Index: ports-mgmt/tinderbox/files/patch-portbuild
@@ -0,0 +1,10 @@
+Index: portbuild
+@@ -251,7 +251,7 @@
+ fi
+
+ if [ x"${OPTIONS_ENABLED}" = x"1" ]; then
+- export PORT_DBDIR=${chroot}/var/db/ports
++ export PORT_DBDIR=/var/db/ports
+ fi
+
+ echo "building $pkgname in $chroot"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list