need help with pkg - failed portupgrade

AN andy at
Wed Dec 12 04:25:37 UTC 2012

FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #5 r244122: Tue Dec 11 
15:24:02 EST 2012     root at FBSD10:/usr/obj/usr/src/sys/MYKERNEL  amd64

While running portupgrade due to (The pcre library has been updated to 
version 8.32.  Please rebuild all ports that depend on it.) I had the 
following failure:

The command I ran was :portupgrade -vfr devel/pcre

and it failed with:
===>  Cleaning for gnome-screensaver-2.30.2_3
--->  Removing temporary files and directories
--->  Removing old package'
--->  Installation of x11/gnome-screensaver ended at: Tue, 11 Dec 2012 
23:01:06 -0500 (consumed 00:00:15)
--->  Cleaning out obsolete shared libraries
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... USING PKGNG
- 798 packages found (-0 +1) . done]
--->  Reinstallation of x11/gnome-screensaver ended at: Tue, 11 Dec 2012 
23:01:08 -0500 (consumed 00:01:40)
--->  ** Upgrade tasks 278: 200 done, 0 ignored, 7 skipped and 2 failed
** No origin recorded: libreoffice-3.5.7
** Specify one with -o option, or run 'pkgdb -F' to interactively fix it.
--->  Session ended at: Tue, 11 Dec 2012 23:01:08 -0500 (consumed 
`initialize': ArgumentError (ArgumentError)
 	from /usr/local/sbin/portupgrade:1060:in `new'
 	from /usr/local/sbin/portupgrade:1060:in `do_upgrade'
 	from /usr/local/sbin/portupgrade:855:in `main'
 	from /usr/local/sbin/portupgrade:850:in `each'
 	from /usr/local/sbin/portupgrade:850:in `main'
 	from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize'
 	from /usr/local/sbin/portupgrade:237:in `new'
 	from /usr/local/sbin/portupgrade:237:in `main'
 	from /usr/local/sbin/portupgrade:2371

I deleted Libreoffice with:
pkg -d delete libreoffice-3.5.7

# pkgdb -vF
pkgdb -F not supported with PKGNG yet. Use 'pkg check' directly.
[root at FBSD10 ~]# pkg check
usage: pkg check [-Bdsr] [-vy] [-a | -gxX <pattern>]

For more information see 'pkg help check'.

Not sure how to proceed now, any help is appreciated.

Once I get this fixed, how can I restart portupgrade from where it ended 
and not recompile the ports that were already updated?

Thanks in advance.

More information about the freebsd-ports mailing list