NetBSD Problem Report #35255

From martti.kuparinen@piuha.net  Thu Dec 14 11:00:31 2006
Return-Path: <martti.kuparinen@piuha.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id CDDC563BA6D
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 14 Dec 2006 11:00:30 +0000 (UTC)
Message-Id: <20061214110023.5D7258988B@p130.piuha.net>
Date: Thu, 14 Dec 2006 13:00:23 +0200 (EET)
From: martti.kuparinen@iki.fi
Reply-To: martti.kuparinen@iki.fi
To: gnats-bugs@NetBSD.org
Subject: Hardcoded references to DESTDIR found in some files
X-Send-Pr-Version: 3.95

>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
>Last-Modified:  Thu May 28 05:25:00 +0000 2009
>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 built 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 one 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:

>Release-Note:

>Audit-Trail:

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: bin/35255: Hardcoded references to DESTDIR found in some files
Date: Thu, 28 May 2009 05:21:33 +0000

 Problem still exists in -current and is caused by

 CPPFLAGS+=-DLIBDIR=\"${DESTDIR}/usr/share\"
 CPPFLAGS+=-DGETTEXTJAR=\"${DESTDIR}/usr/share/gettext/gettext.jar\"
 CPPFLAGS+=-DGETTEXTDATADIR=\"${DESTDIR}/usr/share/gettext\"

 in src/gnu/usr.bin/gettext/libnlspr/Makefile.

 Probably removing ${DESTDIR} from those paths will DTRT, but I don't
 feel up to chasing through the source tonight.

 -- 
 David A. Holland
 dholland@netbsd.org

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.