Subject: Re: README.html: cannot find vulnerability list
To: David Lord <netbsd@lordynet.org>
From: Adrian Portelli <adrianp@stindustries.net>
List: pkgsrc-users
Date: 08/05/2007 19:21:38
David Lord wrote:
> On 4 Aug 2007, at 12:26, Adrian Portelli wrote:
> 
>> Gary Thorpe wrote:
>> ...
>>> I applied the patch but the result seems to be the same:
>>>
>> ...
>>
>> Hi,
>>
>> Could you please do a 'cvs update' and try again ?  I think I found the
>> problem and committed a fix for it.
> 
> Now get a different problem
>  
> I still have following line in both mk.conf (tried with/without) and 
> audit-packages.conf.
> 
> PKGVULNDIR="/var/db/audit-packages"

This line will be ignored in mk.conf with the version of pkg_install
tools that you're running.  If you want to use this setting placing it
in audit-packages.conf is the correct place.

> 
> 
> bash-3.2$ uname -v
> NetBSD 4.0_BETA2 (P4X2400C_0.37) #0: Thu Jul 12 15:28:34 GMT 2007  zardoz@p4x2400c.home.lordynet.org:/mnt_l/src_i/nbsd_4/src/sys/arch/i386/compile/obj/P4X2400C_0.37
> bash-3.2$ pkg_info -V
> 20070802
> bash-3.2$ cd /usr/pkgsrc/www/links
> bash-3.2$ make README.html
> ---->  Creating new database in /usr/pkgsrc/www/links/README.html.tmp1
> ---->  Depending in /usr/pkgsrc/www/links (pass #1)
> Complete dependency database left in /usr/pkgsrc/www/links/README.html.tmp1
> Reading database file
> /usr/bin/awk: can't open file option
>  source line number 62
> *** Error code 2
> 
> Stop.
> make: stopped in /usr/pkgsrc/www/links

This is a little strange, and by the looks of it, it occurs before the
pkg-vulnerability file processing and I can't replicate it.  Could you
please apply the following patch, run 'make README.html' and send me the
output offline ?  You may need to use script(1) as there will be a bit
of output.

thanks,

adrian.

Index: mk/bsd.pkg.readme.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.pkg.readme.mk,v
retrieving revision 1.8
diff -u -r1.8 bsd.pkg.readme.mk
--- mk/bsd.pkg.readme.mk        4 Aug 2007 11:23:56 -0000       1.8
+++ mk/bsd.pkg.readme.mk        5 Aug 2007 18:20:59 -0000
@@ -284,7 +284,7 @@
        else                                                            \
                _PVDIR=`audit-packages ${AUDIT_PACKAGES_FLAGS} -Q
PKGVULNDIR`; \
        fi; \
-       ${AWK} -f ../../mk/scripts/genreadme.awk \
+       ${AWK} -d1 -f ../../mk/scripts/genreadme.awk \
                builddependsfile=/dev/null \
                dependsfile=/dev/null \
                AWK=${AWK:Q} \