NetBSD Problem Report #42172
From www@NetBSD.org Sun Oct 11 13:14:50 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 3A52663BA6C
for <gnats-bugs@gnats.netbsd.org>; Sun, 11 Oct 2009 13:14:50 +0000 (UTC)
Message-Id: <20091011131450.0645D63B8B6@www.NetBSD.org>
Date: Sun, 11 Oct 2009 13:14:50 +0000 (UTC)
From: bughunting@xs4all.nl
Reply-To: bughunting@xs4all.nl
To: gnats-bugs@NetBSD.org
Subject: pkgtools/lintpkgsrc contains incorrect path to pkg-vulnerabilities file (plus: no internal version check available)
X-Send-Pr-Version: www-1.0
>Number: 42172
>Category: pkg
>Synopsis: pkgtools/lintpkgsrc contains incorrect path to pkg-vulnerabilities file (plus: no internal version check available)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 11 13:15:00 +0000 2009
>Originator: Bug Hunting
>Release:
>Organization:
>Environment:
>Description:
pkgtools/lintpkgsrc (version 4.82, from pkgsrc-current) uses an incorrect (outdated) path to the pkg-vulnerabilities file, which is also mentioned in its manpage.
On a sidenote, the program has no ability to check its own version number, the way pkgtools/pkglint has (`-V' or `--version'). Perhaps this has been left out purposely though, and `-V' is in use already as well. However, for example, `-v' or `--version' (being the first option with two dashes, though) could optionally be used for this. To add this functionality, the `-V|--version' code from pkgtools/pkglint could be used as a base.
>How-To-Repeat:
$ lintpkgsrc -V
Unable to open '/usr/pkgsrc/distfiles/pkg-vulnerabilities': No such file or directory
Also:
"man lintpkgsrc | less -ppkg-vulnerabilities"
>Fix:
No complete fix provided, but the following files should be altered / regenerated:
pkgtools/pkglint/files/lintpkgsrc.pl (line 135, at the least)
pkgtools/pkglint/files/lintpkgsrc.1 (line 163)
pkgtools/pkglint/files/lintpkgsrc.0 (should be regenerated)
pkgtools/pkglint/files/makevars.map (unsure, but mentions `PKGVULNDIR')
(Contact us)
$NetBSD: query-full-pr,v 1.36 2007/11/24 03:27:39 kano 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.