NetBSD Problem Report #50444
From dholland@macaran.eecs.harvard.edu Wed Nov 18 01:45:41 2015
Return-Path: <dholland@macaran.eecs.harvard.edu>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id B586BA654B
for <gnats-bugs@gnats.NetBSD.org>; Wed, 18 Nov 2015 01:45:41 +0000 (UTC)
Message-Id: <20151118014512.4CD1B6E247@macaran.eecs.harvard.edu>
Date: Tue, 17 Nov 2015 20:45:12 -0500 (EST)
From: dholland@eecs.harvard.edu
Reply-To: dholland@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: lintpkgsrc is not robust about paths
X-Send-Pr-Version: 3.95
>Number: 50444
>Category: pkg
>Synopsis: lintpkgsrc is not robust about paths
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: leot
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 18 01:50:00 +0000 2015
>Closed-Date: Wed Nov 25 20:49:05 +0000 2015
>Last-Modified: Wed Nov 25 20:50:00 +0000 2015
>Originator: David A. Holland
>Release: NetBSD 7.99.20 (pkgsrc 20151110)
>Organization:
>Environment:
System: NetBSD macaran 7.99.20 NetBSD 7.99.20 (MACARAN) #30: Mon Jul 27 20:25:15 EDT 2015 dholland@macaran:/usr/src/sys/arch/amd64/compile/MACARAN amd64
Architecture: x86_64
Machine: amd64
lintpkgsrc version: 4.90
>Description:
I came across an ancient directory of distfiles that I'd been
forgotten about. So I did this:
% lintpkgsrc -o -M . -P /usr/pkgsrc -o
and it printed nothing. I didn't quite believe that, so I tried a few
other things; anyway the upshot is as follows:
% lintpkgsrc -o -M . -P /usr/pkgsrc -o |& wc -l
1
% lintpkgsrc -o -M ./ -P /usr/pkgsrc -o |& wc -l
3389
This is dumb.
>How-To-Repeat:
As above.
>Fix:
don't ask me, it's perl. :-|
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->leot
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Wed, 25 Nov 2015 20:25:14 +0000
Responsible-Changed-Why:
Take the PR.
State-Changed-From-To: open->analyzed
State-Changed-By: leot@NetBSD.org
State-Changed-When: Wed, 25 Nov 2015 20:25:14 +0000
State-Changed-Why:
Analyzed... ...a fix will be committed soon.
State-Changed-From-To: analyzed->closed
State-Changed-By: leot@NetBSD.org
State-Changed-When: Wed, 25 Nov 2015 20:49:05 +0000
State-Changed-Why:
Fixed in lintpkgsrc-4.91.
Thank you David for the PR!
From: "Leonardo Taccari" <leot@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/50444 CVS commit: pkgsrc/pkgtools/lintpkgsrc
Date: Wed, 25 Nov 2015 20:46:28 +0000
Module Name: pkgsrc
Committed By: leot
Date: Wed Nov 25 20:46:28 UTC 2015
Modified Files:
pkgsrc/pkgtools/lintpkgsrc: Makefile
pkgsrc/pkgtools/lintpkgsrc/files: lintpkgsrc.pl
Log Message:
Use Cwd::realpath() for the -[KMP] flags.
Fixes PR pkg/50444 reported by dholland@ and also fixes various possible
problems when relative paths are used.
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 pkgsrc/pkgtools/lintpkgsrc/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl
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.