Subject: pkg/33061: pkgtools/pkg_comp: pkg_comp does not add PKG_SYSCONFBASE to default.conf
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Yoshito Komatsu <ykomatsu@akaumigame.org>
List: pkgsrc-bugs
Date: 03/12/2006 04:05:00
>Number:         33061
>Category:       pkg
>Synopsis:       pkgtools/pkg_comp: pkg_comp does not add PKG_SYSCONFBASE to default.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 12 04:05:00 +0000 2006
>Originator:     Yoshito Komatsu <ykomatsu@akaumigame.org>
>Release:        NetBSD 3.99.16
>Organization:
>Environment:
System: NetBSD c10.ln.akaumigame.org 3.99.16 NetBSD 3.99.16 (XENU) #0: Sat Mar 4 03:11:48 UTC 2006 ykomatsu@sv9.ln.akaumigame.org:/usr/obj/sys/arch/i386/compile/XENU i386
Architecture: i386
Machine: i386
>Description:
	Because pkg_comp does not add PKG_SYSCONFBASE to default.conf,
	it cannot build a package that use PKG_SYSCONFDIR.
>How-To-Repeat:
	Please build a package that use PKG_SYSCONFDIR
	(like security/pam-ldap) with pkg_comp.

	# pkg_comp maketemplate
	# pkg_comp makeroot
	# pkg_comp build security/pam-ldap
>Fix:
	pkg_maketemplate() tries to add PKG_SYSCONFBASE to default.conf,
	but env_setdefault() sets PKG_SYSCONFDIR instead of PKG_SYSCONFBASE.

	Please apply the following patch:

	--- pkg_comp.sh.orig	2006-03-12 12:22:45.000000000 +0900
	+++ pkg_comp.sh	2006-03-12 12:23:08.000000000 +0900
	@@ -90,7 +90,7 @@
	     : ${PKG_DEVELOPER:=yes}
	     : ${CLEANDEPENDS:=yes}
	     : ${LOCALBASE:=/usr/pkg}
	-    : ${PKG_SYSCONFDIR:=/usr/pkg/etc}
	+    : ${PKG_SYSCONFBASE:=/usr/pkg/etc}
	     : ${CFLAGS:=}
	     : ${CPPFLAGS:=}
	     : ${CXXFLAGS:=}