Daily backups of pkgdb failure

Hans Ottevanger fbsdstable at beasties.demon.nl
Thu May 5 06:57:04 UTC 2011


On 05/05/11 04:43, Doug Barton wrote:
> On 05/04/2011 04:49, Hans Ottevanger wrote:
>> make -f/usr/share/mk/bsd.port.mk -V PKG_DBDIR
>> "/usr/share/mk/bsd.port.mk", line 11: Could not find
>> /usr/ports/Mk/bsd.port.mk
>> make: fatal errors encountered -- cannot continue
>
> I fixed this in HEAD by setting the default if pulling it from make
> fails. I will MFC ASAP.
>
>

Of course this will solve my "problem" 8-)

But if you use something like

pkg_dbdir=${PKG_DBDIR-/var/db/pkg}

you will also cover the (infrequent) case where people redefine 
PKG_DBDIR while running pkg_add et al (and actually remember to set 
PKG_DBDIR in /etc/crontab !).

Kind regards,

Hans Ottevanger


More information about the freebsd-stable mailing list