Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix: #609 -- populate the shlibs_{provided,required} tables when converting the system to use pkg(8)
Matthew Seaman committed 12 years ago
commit 7aca0189851c7b9391c7fb62f60df5ab73f9653f
parent 60e3a17
1 file changed +11 -2
modified scripts/sbin/pkg2ng.in
@@ -1,6 +1,7 @@
#!/bin/sh

: "${PORTSDIR:=/usr/ports}"
+
: "${PKG_DBDIR:=/var/db/pkg}"

if [ -f ${PORTSDIR}/Mk/bsd.pkgng.mk ]; then
	FORCE_POST=$(make _POSTMKINCLUDED=1 UID=$(id -u) -f ${PORTSDIR}/Mk/bsd.pkgng.mk -V _FORCE_POST_PATTERNS)
@@ -10,5 +11,13 @@ fi

FORCE_PORT=$FORCE_POST __PREFIX__/sbin/pkg convert

-
# Delete the portupgrade pkgdb to avoid discrepencies. It will be auto recreated.
-
rm -f /var/db/pkg/pkgdb.db > /dev/null 2>&1
+
# Delete the portupgrade pkgdb to avoid discrepencies. It will be auto
+
# recreated.
+

+
rm -f ${PKG_DBDIR}/pkgdb.db > /dev/null 2>&1
+

+
# Build the shlibs_{provided,required} tables in the pkg database
+

+
__PREFIX__/sbin/pkg check -Ba
+

+