NetBSD Problem Report #32006
From www@netbsd.org Sat Nov 5 23:21:58 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
id 4AFBD63B8BE; Sat, 5 Nov 2005 23:21:58 +0000 (UTC)
Message-Id: <20051105232158.4AFBD63B8BE@narn.netbsd.org>
Date: Sat, 5 Nov 2005 23:21:58 +0000 (UTC)
From: bkelly@coastsystems.net
Reply-To: bkelly@coastsystems.net
To: gnats-bugs@netbsd.org
Subject: lintpkgsrc -i on interix -- hard coded /dev/fs/W/usr/pkgsrc
X-Send-Pr-Version: www-1.0
>Number: 32006
>Category: pkg
>Synopsis: lintpkgsrc should assume /usr/pkgsrc if it matches PKGSRCDIR
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: rillig
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Nov 05 23:22:00 +0000 2005
>Closed-Date: Thu Nov 10 16:25:35 +0000 2005
>Last-Modified: Thu Nov 10 16:28:01 +0000 2005
>Originator: Boyd Kelly
>Release: pkgsrc 200511
>Organization:
Coast One Consulting
>Environment:
Interix media 3.5 SP-8.0.1969.32 x86 Pentium III/Celeron (rev0x0803)
(Windows XP patched for Interix)
>Description:
When running lintpkgsrc -i on Interix, user immediately receives message:
bash-3.00$ lintpkgsrc -i
Unable to opendir(/dev/fs/W/usr/pkgsrc): No such file or directory at /usr/pkg/bin/lintpkgsrc line 589.
>How-To-Repeat:
run lintpkgsrc -i
>Fix:
Search for string '/W/usr' in /usr/pkg/bin/lintpkgsrc and replace with (in my case...) 'C/SFU/usr'
(This is only the junk-yard work-around...)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->interix-pkg-people
Responsible-Changed-By: reed@netbsd.org
Responsible-Changed-When: Mon, 07 Nov 2005 17:18:40 +0000
Responsible-Changed-Why:
Assigned to pkgsrc developers who can help with Interix.
(Is this a packaged version of pkglint?)
Responsible-Changed-From-To: interix-pkg-people->pkg-manager
Responsible-Changed-By: tv@netbsd.org
Responsible-Changed-When: Mon, 07 Nov 2005 17:56:45 +0000
Responsible-Changed-Why:
This is due to pkgtools/pkglint hardcoding the location of pkgsrc
directly into its scripts. I'll put in a workaround by defining
_PKGSRCDIR explicitly in my build environment and rebuild the pkglint
package for Interix.
I have changed the synopsis to reflect the actual cause of this pain.
The pkgsrc infrastructure (or just the packages that need to embed
PKGSRCDIR, if there are any beyond pkglint, pkg_chk, etc.) should accept
a symlinked /usr/pkgsrc properly -- by detecting if /usr/pkgsrc matches
the computed _PKGSRCDIR value. Personally, I believe all these scripts
should use the fixed location /usr/pkgsrc as a default regardless of
the build environment, and provide an option to point somewhere else.
Responsible-Changed-From-To: pkg-manager->rillig
Responsible-Changed-By: reed@netbsd.org
Responsible-Changed-When: Mon, 07 Nov 2005 17:59:29 +0000
Responsible-Changed-Why:
Assigned to maintainer for pkglint.
From: Todd Vierling <tv@duh.org>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org
Subject: Re: pkg/32006: lintpkgsrc should assume /usr/pkgsrc if it matches
PKGSRCDIR
Date: Mon, 7 Nov 2005 13:04:57 -0500 (EST)
Please do realize that this is not just a problem with pkglint. It seems
that quite a few tools in pkgtools/ embed PKGSRCDIR; I'm running a global
zgrep on my binary packages to see exactly all of what is affected.
--
-- Todd Vierling <tv@duh.org> <tv@pobox.com> <todd@vierling.name>
From: Todd Vierling <tv@duh.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/32006: lintpkgsrc should assume /usr/pkgsrc if it matches
PKGSRCDIR
Date: Mon, 7 Nov 2005 13:33:42 -0500 (EST)
The following pkgtools packages are impacted (they hardcode PKGSRCDIR
somewhere in the package:
pkg_notify
pkg_regress
pkgclean
pkgdepgraph
pkgfind
pkglint
--
-- Todd Vierling <tv@duh.org> <tv@pobox.com> <todd@vierling.name>
From: "Boyd Kelly (Coast Systems)" <bkelly@coastone.ca>
To: <reed@netbsd.org>, <interix-pkg-people@netbsd.org>,
<pkg-manager@netbsd.org>, <pkgsrc-bugs@netbsd.org>,
<gnats-admin@netbsd.org>, <reed@netbsd.org>
Cc:
Subject: RE: pkg/32006
Date: Mon, 7 Nov 2005 11:09:48 -0800
Thanks,
=20
I figured this one out. I'm not at the machine now, but with an =
environment variable set, PKG_??? this works fine. So false alert. =
Please close the ticket.
=20
Boyd
________________________________
From: reed@netbsd.org [mailto:reed@netbsd.org]
Sent: Mon 2005-11-07 9:18 AM
To: interix-pkg-people@netbsd.org; pkg-manager@netbsd.org; =
pkgsrc-bugs@netbsd.org; gnats-admin@netbsd.org; reed@netbsd.org; Boyd =
Kelly (Coast Systems)
Subject: Re: pkg/32006
Synopsis: lintpkgsrc -i on interix -- hard coded /dev/fs/W/usr/pkgsrc
Responsible-Changed-From-To: pkg-manager->interix-pkg-people
Responsible-Changed-By: reed@netbsd.org
Responsible-Changed-When: Mon, 07 Nov 2005 17:18:40 +0000
Responsible-Changed-Why:
Assigned to pkgsrc developers who can help with Interix.
(Is this a packaged version of pkglint?)
From: Todd Vierling <tv@duh.org>
To: "Boyd Kelly \\(Coast Systems\\)" <bkelly@coastone.ca>
Cc: reed@netbsd.org, interix-pkg-people@netbsd.org,
pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org,
gnats-admin@netbsd.org, reed@netbsd.org
Subject: RE: pkg/32006
Date: Mon, 7 Nov 2005 14:58:25 -0500 (EST)
On Mon, 7 Nov 2005, Boyd Kelly \(Coast Systems\) wrote:
> I figured this one out. I'm not at the machine now, but with an
> environment variable set, PKG_??? this works fine. So false alert. Please
> close the ticket.
It's a real problem, however, in that the pkglint tool *is* hardcoding my
bulk build path.
I am fixing this specific instance (by uploading a "fixed" pkglint binary
package), but it will pop up again unless fixed for real.
--
-- Todd Vierling <tv@duh.org> <tv@pobox.com> <todd@vierling.name>
From: Roland Illig <rillig@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/32006 CVS commit: pkgsrc/pkgtools/pkglint
Date: Tue, 8 Nov 2005 22:55:22 +0000 (UTC)
Module Name: pkgsrc
Committed By: rillig
Date: Tue Nov 8 22:55:22 UTC 2005
Modified Files:
pkgsrc/pkgtools/pkglint: Makefile
pkgsrc/pkgtools/pkglint/files: pkglint.pl
Log Message:
Updated pkglint to 4.38.2.
- pkglint(1) does not use the hard-coded PKGSRCDIR anymore.
This fix is related to PR 32006, but doesn't fix it, since the PR is
about lintpkgsrc(1), not pkglint(1).
To generate a diff of this commit:
cvs rdiff -r1.287 -r1.288 pkgsrc/pkgtools/pkglint/Makefile
cvs rdiff -r1.340 -r1.341 pkgsrc/pkgtools/pkglint/files/pkglint.pl
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Roland Illig <rillig@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/32006 CVS commit: pkgsrc/pkgtools/pkglint
Date: Thu, 10 Nov 2005 14:30:56 +0000 (UTC)
Module Name: pkgsrc
Committed By: rillig
Date: Thu Nov 10 14:30:56 UTC 2005
Modified Files:
pkgsrc/pkgtools/pkglint: Makefile
pkgsrc/pkgtools/pkglint/files: lintpkgsrc.pl pkglint.0 pkglint.1
plist-clash.pl
Log Message:
Updated pkglint to 4.40.
- Removed all references to the build-time pkgsrc directory, ${PKGSRCDIR}.
This makes the binary package independent of the build location.
Fixes PR 32006.
To generate a diff of this commit:
cvs rdiff -r1.291 -r1.292 pkgsrc/pkgtools/pkglint/Makefile
cvs rdiff -r1.104 -r1.105 pkgsrc/pkgtools/pkglint/files/lintpkgsrc.pl
cvs rdiff -r1.14 -r1.15 pkgsrc/pkgtools/pkglint/files/pkglint.0
cvs rdiff -r1.24 -r1.25 pkgsrc/pkgtools/pkglint/files/pkglint.1
cvs rdiff -r1.4 -r1.5 pkgsrc/pkgtools/pkglint/files/plist-clash.pl
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: rillig@netbsd.org
State-Changed-When: Thu, 10 Nov 2005 16:25:35 +0000
State-Changed-Why:
pkgtools/pkglint has been fixed.
From: Roland Illig <rillig@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/32006 CVS commit: pkgsrc/doc
Date: Thu, 10 Nov 2005 16:27:19 +0000 (UTC)
Module Name: pkgsrc
Committed By: rillig
Date: Thu Nov 10 16:27:18 UTC 2005
Modified Files:
pkgsrc/doc: CHANGES
Log Message:
Updated pkgtools/pkglint to 4.40.
- Removed references to ${PKGSRCDIR}, so that the binary packages are
independent from the directory they have been built in. Fixes PR 32006.
To generate a diff of this commit:
cvs rdiff -r1.11887 -r1.11888 pkgsrc/doc/CHANGES
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.