FreeBSD 9.1 – portupgrade error

Doing some day to day updates on a FreeBSD box today, and suddenly when trying to upgrade the portupgrade pkg it kind of went wrong. Checked all dependencies and everything seems to be correct. The “portupgrade-devel-*” is not installed, so after googling for an hour I gave up. But one last absurd check, let’s create the file that the build is complaing about… a quick #touch /usr/local/libdata/ldconfig/portupgrade and a `make install from the /usr/ports/ports-mgmt/portupgrade directory, and it worked as a charm… not sure why, but everything is now back to normal…btw, if you get a warning that says something like this “pkg_add: package ‘portupgrade-,2’ or its older version already installed” you have do deinstall portupgrade, touch the file and install it again.

Build error:

===> Building package for portupgrade-,2
Creating package /usr/ports/ports-mgmt/portupgrade/portupgrade-,2.tbz
Registering depends: ruby18-bdb-0.6.6_1 db41-4.1.25_4 ruby-,1 libexecinfo-1.1_3 libffi-3.0.13 ruby-,1 libyaml-0.1.4_2.
Registering conflicts: portupgrade-devel-*.
Creating bzip’d tar ball in ‘/usr/ports/ports-mgmt/portupgrade/portupgrade-,2.tbz’
tar: libdata/ldconfig/portupgrade: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256
*** [do-package] Error code 1

Stop in /usr/ports/ports-mgmt/portupgrade.
*** [install] Error code 1

Stop in /usr/ports/ports-mgmt/portupgrade.

Leave a Comments