Subject: toolchain/25125: targets set DESTDIR inconsistently
To: None <>
From: None <>
List: netbsd-bugs
Date: 04/10/2004 10:19:08
>Number:         25125
>Category:       toolchain
>Synopsis: targets set DESTDIR inconsistently
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 10 14:20:00 UTC 2004
>Originator:     Louis Guillaume
>Release:        NetBSD 2.0C
Berklee College of Music
System: NetBSD 2.0C NetBSD 2.0C (ASTER) #0: Fri Apr 9 20:16:39 EDT 2004 i386
Architecture: i386
Machine: i386
The "release" target defaults DESTDIR and RELEASEDIR to /usr/src/destdir.i386 and /usr/src/releasedir respectively.

The "install" target defaults DESTDIR and RELEASEDIR to /usr/src/obj/destdir.i386 and /usr/src/obj/releasedir respsectively.

These defaults are inconsistent.
/etc/mk.conf contains the following lines...


... On a clean checkout of /usr/src, do the following...

$ cd /usr/src
$ ./ -U -T /usr/obj/TOOLDIR.i386 tools
$ ./ -U -T /usr/obj/TOOLDIR.i386 kernel=ASTER # my kernel.
$ cd /usr/src
$ ./ -x -U -T /usr/obj/TOOLDIR.i386 release
$ su -
# ./ -u -U -T /usr/obj/TOOLDIR.i386 install=/

The install will fail beacuse it's looking for DESTDIR in /usr/src/obj/destdir.i386 instead of /usr/src/destdir.i386 as created by the release target.

I suspect that the release target is the one that's misbehaving.