Subject: bin/35255: Hardcoded references to DESTDIR found in some files
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <martti.kuparinen@iki.fi>
List: netbsd-bugs
Date: 12/14/2006 11:05:01
>Number:         35255
>Category:       bin
>Synopsis:       Hardcoded references to DESTDIR found in some files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 14 11:05:01 +0000 2006
>Originator:     Martti Kuparinen
>Release:        NetBSD 4.99.6
>Organization:
>Environment:
System: NetBSD n117 4.99.6 NetBSD 4.99.6 (LIFEBOOK) #4: Tue Dec 12 09:23:10 UTC 2006  root@n117:/usr/src/sys/arch/i386/compile/LIFEBOOK i386
Architecture: i386
Machine: i386
>Description:

I have build a release (./build.sh -ux -D /var/tmp/d -R /var/tmp/r release)
and then installed those release sets on my laptop.

Now it seems like some files have hardcoded references to the $DESTDIR (in
my case it was /var/tmp/d).

At least on of the trouble makers is msginit (built from
src/gnu/usr.bin/gettext/msginit) as I see these errors when using pkgsrc:

msginit --no-translator -i proftpd.pot -o en_US.po -l en_US
/bin/sh: Can't open /var/tmp/d/usr/share/gettext/project-id
msginit: /var/tmp/d/usr/share/gettext/project-id subprocess I/O error
/bin/sh: Can't open /var/tmp/d/usr/share/gettext/project-id
msginit: /var/tmp/d/usr/share/gettext/project-id subprocess I/O error

>How-To-Repeat:

cd /usr/bin
strings * | grep /var/tmp/d

>Fix: