Updating bootstrap packages in NetBSD pkgsrc

From Wikistix
Jump to: navigation, search

There are two packages that can't be updated normally on non-NetBSD systems. If attempted, they will generate an error similar to:

$ bmake update
...
===> deinstall [bmake-20081111] ===> Deinstalling for bmake-20081111
=> Becoming ``root'' to make su-deinstall (sudo)
Running /usr/pkg/sbin/pkg_delete -K /usr/pkg/db -r bmake-20051105nb4
Package `bmake-20051105nb4' is marked as not for deletion
...

The fix is fairly easy:

$ cd $PKGSRC/pkgtools/bootstrap-mk-files
$ bmake USE_DESTDIR=yes package
$ sudo pkg_add -uu /usr/pkgsrc/packages/All/bootstrap-mk-files...tgz
$ cd ../../devel/bmake
$ bmake USE_DESTDIR=yes package
$ sudo pkg_add -uu /usr/pkgsrc/packages/All/bmake...tgz

Misinformation found herein copyright Paul Ripke (aka “stix”) stixpjr@gmail.com.