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:    lukem
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 14 11:05:01 +0000 2006
>Closed-Date:    Thu May 18 08:22:45 +0000 2023
>Last-Modified:  Sat May 20 08:34:38 +0000 2023
>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

State-Changed-From-To: open->closed
State-Changed-By: lukem@NetBSD.org
State-Changed-When: Thu, 18 May 2023 08:22:45 +0000
State-Changed-Why:
apb removed the DESTDIR from that Makefile in 2014-01-20.
christos deleted that Makefile in 2016-01-13.


Responsible-Changed-From-To: bin-bug-people->lukem
Responsible-Changed-By: lukem@NetBSD.org
Responsible-Changed-When: Sat, 20 May 2023 08:34:38 +0000
Responsible-Changed-Why:


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.