NetBSD Problem Report #42172
From www@NetBSD.org Sun Oct 11 13:14:50 2009
Received: from mail.netbsd.org (mail.netbsd.org [22.214.171.124])
by www.NetBSD.org (Postfix) with ESMTP id 3A52663BA6C
for <email@example.com>; Sun, 11 Oct 2009 13:14:50 +0000 (UTC)
Date: Sun, 11 Oct 2009 13:14:50 +0000 (UTC)
Subject: pkgtools/lintpkgsrc contains incorrect path to pkg-vulnerabilities file (plus: no internal version check available)
>Synopsis: pkgtools/lintpkgsrc contains incorrect path to pkg-vulnerabilities file (plus: no internal version check available)
>Arrival-Date: Sun Oct 11 13:15:00 +0000 2009
>Originator: Bug Hunting
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.
$ lintpkgsrc -V
Unable to open '/usr/pkgsrc/distfiles/pkg-vulnerabilities': No such file or directory
"man lintpkgsrc | less -ppkg-vulnerabilities"
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')
$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.