Subject: bin/23310: DESTDIR suggestion
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jam@pobox.com>
List: netbsd-bugs
Date: 10/29/2003 14:55:18
>Number: 23310
>Category: bin
>Synopsis: DESTDIR for build.sh and pkgsrc should be differentiated
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Oct 29 20:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Kazushi (Jam) Marukawa
>Release: NetBSD 1.6ZC
>Organization:
none
>Environment:
System: NetBSD fs.nerv.org 1.6ZC NetBSD 1.6ZC (sou) #1: Fri Oct 10 09:00:25 CDT 2003 jam@fs.nerv.org:/usr/src/sys/arch/i386/compile/sou i386
Architecture: i386
Machine: i386
>Description:
The default values of DESTDIR for build.sh and pkgsrc are different.
Build.sh uses /usr/src/obj, but pkgsrc uses /. However, both use
the same "DESTDIR" name in /etc/mk.conf and this causes conflicts
when a user try to specify his/her own DESTDIR.
It is possible to solve this problem using BSD_PKG_MK makefile macro
in /etc/mk.conf, but this macro is for differentiating the environment
for pkgsrc on BSD from other OS, not for differentiating the
environment for pkgsrc from build.sh.
>How-To-Repeat:
>Fix:
I think we should use different name between build.sh and pkgsrc
DESTDIR or define new makefile macro to differentiate the environment
for pkgsrc from build.sh.
I got this idea from the Q&A on current-users ML at Oct 29. If
there are another solution for this problem and my above request
has no worth, please ignore this. Thanks in advance.
>Release-Note:
>Audit-Trail:
>Unformatted: