After a fresh install of FreeBSD 1.0 i386, I could not use make install anymore. For all packages, it was ending with a message about vulnerability, even showing 0 vulnerabilities. After a short debug, the problem seems to be with the following code
The only solution was to remove the audit.xlm file.
Example
Code:
if [ -f "/var/db/pkg/vuln.xml" ]; then
if [ -n "yes" ]; then
if [ -x "/usr/local/sbin/pkg-static" ]; then
vlist=`/usr/local/sbin/pkg-static audit "kde-4.10.5_1"`;
elif [ "kde" = "pkg" ]; then
vlist="";
else
echo "===> Unable to check vuln database as pkg(8) is missing";
exit 1;
fi;
elif [ -x "/usr/local/sbin/portaudit" ]; then
vlist=`/usr/local/sbin/portaudit -X 14 "kde-4.10.5_1" 2>&1 | grep -vE '^[0-9]+ problem\(s\) found.' || true`;
else
echo "===> portaudit database exists, however, portaudit is not installed!";
fi;
if [ -n "$vlist" ]; then
echo "===> kde-4.10.5_1 has known vulnerabilities:";
echo "$vlist";
echo "=> Please update your ports tree and try again.";
exit 1;
fi;
fi
Example
Code:
root@h0000003:/usr/ports/shells/osh # make install
===> osh-20120604 has known vulnerabilities:
0 problem(s) in the installed packages found.
=> Please update your ports tree and try again.
*** Error code 1
Stop.
make: stopped in /usr/ports/shells/osh
root@h0000003:/usr/ports/shells/osh # ls -lad /usr/local/sbin/pkg-static
-rwxr-xr-x 1 root wheel 4342976 Aug 27 11:37 /usr/local/sbin/pkg-static