Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jun 2006 07:29:38 -0500
From:      "Matt Sealey" <matt@genesi-usa.com>
To:        <freebsd-ports@freebsd.org>
Subject:   Portupgrade broke?
Message-ID:  <02a301c6939c$0b8b2f10$99dfdfdf@bakuhatsu.net>

next in thread | raw e-mail | index | archive | help

Something broke somewhere and I am wondering what.

Any hints from you guys? I can't update or upgrade any packages because =
it says
operation not permitted on the pkgdb..

--=20
Matt Sealey <matt@genesi-usa.com>
Manager, Genesi, Developer Relations



root@mithrandir:/usr/ports$ portupgrade -r portupgrade
--->  Upgrading 'portupgrade-2.1.3,1' to 'portupgrade-2.1.4_5,1' =
(sysutils/portupgrade)
--->  Building '/usr/ports/sysutils/portupgrade'
=3D=3D=3D>  Cleaning for ruby-1.8.4_8,1
=3D=3D=3D>  Cleaning for pkg_install-20060113
=3D=3D=3D>  Cleaning for ldconfig_compat-1.0_7
=3D=3D=3D>  Cleaning for ruby18-bdb42-0.5.9
=3D=3D=3D>  Cleaning for perl-5.8.8
=3D=3D=3D>  Cleaning for openssl-stable-0.9.7j
=3D=3D=3D>  Cleaning for rc_subr-1.31_1
=3D=3D=3D>  Cleaning for db42-4.2.52_4
=3D=3D=3D>  Cleaning for libtool-1.5.22_2
=3D=3D=3D>  Cleaning for portupgrade-2.1.4_5,1
=3D=3D=3D>  Found saved configuration for portupgrade-20041226_7
=3D> pkgtools-2.1.4.tar.bz2 doesn't seem to exist in =
/usr/ports/distfiles/.
=3D> Attempting to fetch from =
http://heanet.dl.sourceforge.net/sourceforge/portupgrade/.
Receiving pkgtools-2.1.4.tar.bz2 (110722 bytes): 100%
110722 bytes transferred in 0.8 seconds (127.83 kBps)
=3D=3D=3D>  Extracting for portupgrade-2.1.4_5,1
=3D> MD5 Checksum OK for pkgtools-2.1.4.tar.bz2.
=3D=3D=3D>   portupgrade-2.1.4_5,1 depends on file: =
/usr/local/bin/ruby18 - found
=3D=3D=3D>   portupgrade-2.1.4_5,1 depends on file: =
/usr/local/sbin/pkg_info - found
=3D=3D=3D>  Patching for portupgrade-2.1.4_5,1
=3D=3D=3D>   portupgrade-2.1.4_5,1 depends on file: =
/usr/local/bin/ruby18 - found
=3D=3D=3D>  Applying FreeBSD patches for portupgrade-2.1.4_5,1
=3D=3D=3D>   portupgrade-2.1.4_5,1 depends on file: =
/usr/local/bin/ruby18 - found
=3D=3D=3D>  Configuring for portupgrade-2.1.4_5,1
=3D=3D=3D>  Building for portupgrade-2.1.4_5,1
=3D=3D=3D> bin
Warning: Object directory not changed from original =
/usr/ports/sysutils/portupgrade/work/pkgtools-2.1.4/bin
/usr/local/bin/ruby18 -wc pkg_fetch
Syntax OK
/usr/local/bin/ruby18 -pe '  if $. =3D=3D 1;  if /^#!/;  sub =
/^#!\s*\S*(\benv\s+)?\bruby/, "#!/usr/local/bin/ruby18";  else;  $_ =3D =
"#!/usr/local/bin/ruby18\n" + $_;  e
nd;  end'  pkg_fetch > .build/pkg_fetch
/usr/local/bin/ruby18 -wc pkg_glob
Syntax OK
/usr/local/bin/ruby18 -pe '  if $. =3D=3D 1;  if /^#!/;  sub =
/^#!\s*\S*(\benv\s+)?\bruby/, "#!/usr/local/bin/ruby18";  else;  $_ =3D =
"#!/usr/local/bin/ruby18\n" + $_;  e
nd;  end'  pkg_glob > .build/pkg_glob
/usr/local/bin/ruby18 -wc pkg_sort
Syntax OK
/usr/local/bin/ruby18 -pe '  if $. =3D=3D 1;  if /^#!/;  sub =
/^#!\s*\S*(\benv\s+)?\bruby/, "#!/usr/local/bin/ruby18";  else;  $_ =3D =
"#!/usr/local/bin/ruby18\n" + $_;  e
nd;  end'  pkg_sort > .build/pkg_sort
/usr/local/bin/ruby18 -wc pkgdb
Syntax OK
/usr/local/bin/ruby18 -pe '  if $. =3D=3D 1;  if /^#!/;  sub =
/^#!\s*\S*(\benv\s+)?\bruby/, "#!/usr/local/bin/ruby18";  else;  $_ =3D =
"#!/usr/local/bin/ruby18\n" + $_;  e
nd;  end'  pkgdb > .build/pkgdb
/usr/local/bin/ruby18 -wc portcvsweb
Syntax OK
/usr/local/bin/ruby18 -pe '  if $. =3D=3D 1;  if /^#!/;  sub =
/^#!\s*\S*(\benv\s+)?\bruby/, "#!/usr/local/bin/ruby18";  else;  $_ =3D =
"#!/usr/local/bin/ruby18\n" + $_;  e
nd;  end'  portcvsweb > .build/portcvsweb
/usr/local/bin/ruby18 -wc portsclean
Syntax OK
/usr/local/bin/ruby18 -pe '  if $. =3D=3D 1;  if /^#!/;  sub =
/^#!\s*\S*(\benv\s+)?\bruby/, "#!/usr/local/bin/ruby18";  else;  $_ =3D =
"#!/usr/local/bin/ruby18\n" + $_;  e
nd;  end'  portsclean > .build/portsclean
/usr/local/bin/ruby18 -wc portsdb
Syntax OK
/usr/local/bin/ruby18 -pe '  if $. =3D=3D 1;  if /^#!/;  sub =
/^#!\s*\S*(\benv\s+)?\bruby/, "#!/usr/local/bin/ruby18";  else;  $_ =3D =
"#!/usr/local/bin/ruby18\n" + $_;  e
nd;  end'  portsdb > .build/portsdb
/usr/local/bin/ruby18 -wc portupgrade
Syntax OK
/usr/local/bin/ruby18 -pe '  if $. =3D=3D 1;  if /^#!/;  sub =
/^#!\s*\S*(\benv\s+)?\bruby/, "#!/usr/local/bin/ruby18";  else;  $_ =3D =
"#!/usr/local/bin/ruby18\n" + $_;  e
nd;  end'  portupgrade > .build/portupgrade
/usr/local/bin/ruby18 -wc portversion
Syntax OK
/usr/local/bin/ruby18 -pe '  if $. =3D=3D 1;  if /^#!/;  sub =
/^#!\s*\S*(\benv\s+)?\bruby/, "#!/usr/local/bin/ruby18";  else;  $_ =3D =
"#!/usr/local/bin/ruby18\n" + $_;  e
nd;  end'  portversion > .build/portversion
gzip -cn pkg_deinstall.1 > pkg_deinstall.1.gz
gzip -cn pkg_fetch.1 > pkg_fetch.1.gz
gzip -cn pkg_glob.1 > pkg_glob.1.gz
gzip -cn pkg_sort.1 > pkg_sort.1.gz
gzip -cn pkgdb.1 > pkgdb.1.gz
gzip -cn portcvsweb.1 > portcvsweb.1.gz
gzip -cn portsclean.1 > portsclean.1.gz
gzip -cn portsdb.1 > portsdb.1.gz
gzip -cn portupgrade.1 > portupgrade.1.gz
gzip -cn portversion.1 > portversion.1.gz
=3D=3D=3D> etc
Warning: Object directory not changed from original =
/usr/ports/sysutils/portupgrade/work/pkgtools-2.1.4/etc
/usr/local/bin/ruby18 -p  -e 'sub(%r:/usr/local:, "/usr/local")'  -e =
'sub(%r:(/etc/rc\.subr):, "/usr/local\\1") if =
!File.exist?("/etc/rc.subr")'  status-pkg.sh > .
build/status-pkg.sh
gzip -cn pkgtools.conf.5 > pkgtools.conf.5.gz
=3D=3D=3D> lib
Warning: Object directory not changed from original =
/usr/ports/sysutils/portupgrade/work/pkgtools-2.1.4/lib
/usr/local/bin/ruby18 -wc pkg.rb
Syntax OK
/usr/local/bin/ruby18 -p  -e 'sub %r:/usr/local:, "/usr/local"'  pkg.rb =
> .build/pkg.rb
/usr/local/bin/ruby18 -wc pkgdb.rb
Syntax OK
/usr/local/bin/ruby18 -p  -e 'sub %r:/usr/local:, "/usr/local"'  =
pkgdb.rb > .build/pkgdb.rb
/usr/local/bin/ruby18 -wc pkginfo.rb
Syntax OK
/usr/local/bin/ruby18 -p  -e 'sub %r:/usr/local:, "/usr/local"'  =
pkginfo.rb > .build/pkginfo.rb
/usr/local/bin/ruby18 -wc pkgmisc.rb
Syntax OK
/usr/local/bin/ruby18 -p  -e 'sub %r:/usr/local:, "/usr/local"'  =
pkgmisc.rb > .build/pkgmisc.rb
/usr/local/bin/ruby18 -wc pkgtools.rb
Syntax OK
/usr/local/bin/ruby18 -p  -e 'sub %r:/usr/local:, "/usr/local"'  =
pkgtools.rb > .build/pkgtools.rb
/usr/local/bin/ruby18 -wc pkgtsort.rb
Syntax OK
/usr/local/bin/ruby18 -p  -e 'sub %r:/usr/local:, "/usr/local"'  =
pkgtsort.rb > .build/pkgtsort.rb
/usr/local/bin/ruby18 -wc pkgversion.rb
Syntax OK
/usr/local/bin/ruby18 -p  -e 'sub %r:/usr/local:, "/usr/local"'  =
pkgversion.rb > .build/pkgversion.rb
/usr/local/bin/ruby18 -wc portinfo.rb
Syntax OK
/usr/local/bin/ruby18 -p  -e 'sub %r:/usr/local:, "/usr/local"'  =
portinfo.rb > .build/portinfo.rb
/usr/local/bin/ruby18 -wc ports.rb
Syntax OK
/usr/local/bin/ruby18 -p  -e 'sub %r:/usr/local:, "/usr/local"'  =
ports.rb > .build/ports.rb
/usr/local/bin/ruby18 -wc portsdb.rb
Syntax OK
/usr/local/bin/ruby18 -p  -e 'sub %r:/usr/local:, "/usr/local"'  =
portsdb.rb > .build/portsdb.rb
=3D=3D=3D> misc
=3D=3D=3D> misc/bash
Warning: Object directory not changed from original =
/usr/ports/sysutils/portupgrade/work/pkgtools-2.1.4/misc/bash
=3D=3D=3D> misc/tcsh
Warning: Object directory not changed from original =
/usr/ports/sysutils/portupgrade/work/pkgtools-2.1.4/misc/tcsh
=3D=3D=3D> misc/zsh
Warning: Object directory not changed from original =
/usr/ports/sysutils/portupgrade/work/pkgtools-2.1.4/misc/zsh
--->  Backing up the old version
--->  Uninstalling the old version
--->  Deinstalling 'portupgrade-2.1.3,1'
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 220 =
packages found (-1 +0) (...) done]
--->  Installing the new version via the port
=3D=3D=3D>  Installing for portupgrade-2.1.4_5,1
=3D=3D=3D>   portupgrade-2.1.4_5,1 depends on file: =
/usr/local/bin/ruby18 - found
=3D=3D=3D>   portupgrade-2.1.4_5,1 depends on file: =
/usr/local/libdata/ldconfig - found
=3D=3D=3D>   portupgrade-2.1.4_5,1 depends on file: =
/usr/local/lib/ruby/site_ruby/1.8/i386-freebsd4/bdb.so - found
=3D=3D=3D>   portupgrade-2.1.4_5,1 depends on file: =
/usr/local/libdata/ldconfig - found
=3D=3D=3D>   portupgrade-2.1.4_5,1 depends on file: =
/usr/local/bin/perl5.8.8 - found
=3D=3D=3D>   Generating temporary packing list
=3D=3D=3D>  Checking if sysutils/portupgrade already installed
=3D=3D=3D> bin
install -o root  -g wheel -m 555  .build/pkg_fetch  =
/usr/local/sbin/pkg_fetch
install -o root  -g wheel -m 555  .build/pkg_glob  =
/usr/local/sbin/pkg_glob
install -o root  -g wheel -m 555  .build/pkg_sort  =
/usr/local/sbin/pkg_sort
install -o root  -g wheel -m 555  .build/pkgdb  /usr/local/sbin/pkgdb
install -o root  -g wheel -m 555  .build/portcvsweb  =
/usr/local/sbin/portcvsweb
install -o root  -g wheel -m 555  .build/portsclean  =
/usr/local/sbin/portsclean
install -o root  -g wheel -m 555  .build/portsdb  =
/usr/local/sbin/portsdb
install -o root  -g wheel -m 555  .build/portupgrade  =
/usr/local/sbin/portupgrade
install -o root  -g wheel -m 555  .build/portversion  =
/usr/local/sbin/portversion
install -o root -g wheel -m 444 pkg_deinstall.1.gz  /usr/local/man/man1
install -o root -g wheel -m 444 pkg_fetch.1.gz  /usr/local/man/man1
install -o root -g wheel -m 444 pkg_glob.1.gz  /usr/local/man/man1
install -o root -g wheel -m 444 pkg_sort.1.gz  /usr/local/man/man1
install -o root -g wheel -m 444 pkgdb.1.gz  /usr/local/man/man1
install -o root -g wheel -m 444 portcvsweb.1.gz  /usr/local/man/man1
install -o root -g wheel -m 444 portsclean.1.gz  /usr/local/man/man1
install -o root -g wheel -m 444 portsdb.1.gz  /usr/local/man/man1
install -o root -g wheel -m 444 portupgrade.1.gz  /usr/local/man/man1
install -o root -g wheel -m 444 portversion.1.gz  /usr/local/man/man1
/usr/local/man/man1/pkg_which.1.gz -> /usr/local/man/man1/pkgdb.1.gz
/usr/local/man/man1/portinstall.1.gz -> =
/usr/local/man/man1/portupgrade.1.gz
/usr/local/man/man1/ports_glob.1.gz -> /usr/local/man/man1/portsdb.1.gz
/usr/local/sbin/pkg_deinstall -> /usr/local/sbin/pkg_glob
/usr/local/sbin/pkg_which -> /usr/local/sbin/pkgdb
/usr/local/sbin/portinstall -> /usr/local/sbin/portupgrade
/usr/local/sbin/ports_glob -> /usr/local/sbin/portsdb
=3D=3D=3D> etc
install -o root  -g wheel -m 555  .build/status-pkg.sh  =
/usr/local/etc/pkgtools.status-pkg.sh
install -o root  -g wheel -m 444  pkgtools.conf  =
/usr/local/etc/pkgtools.conf.sample
install -o root -g wheel -m 444 pkgtools.conf.5.gz  /usr/local/man/man5
=3D=3D=3D> lib
install -o root -g wheel  -m 444 .build/pkg.rb .build/pkgdb.rb =
.build/pkginfo.rb .build/pkgmisc.rb .build/pkgtools.rb =
.build/pkgtsort.rb .build/pkgversion.rb .buil
d/portinfo.rb .build/ports.rb .build/portsdb.rb `/usr/local/bin/ruby18 =
-rrbconfig -e  'puts "%s/%s.%s" % %w[sitedir MAJOR MINOR].map { |k| =
Config::CONFIG[k] }'`
=3D=3D=3D> misc
=3D=3D=3D> misc/bash
mkdir -p /usr/local/share/examples/pkgtools/bash
install -o root -g wheel  -m 444 complete.sample =
/usr/local/share/examples/pkgtools/bash
=3D=3D=3D> misc/tcsh
mkdir -p /usr/local/share/examples/pkgtools/tcsh
install -o root -g wheel  -m 444 complete.sample =
/usr/local/share/examples/pkgtools/tcsh
=3D=3D=3D> misc/zsh
mkdir -p /usr/local/share/zsh/site-functions
install -o root -g wheel  -m 444 _pkgtools =
/usr/local/share/zsh/site-functions
mkdir -p /usr/local/share/doc/pkgtools
install -c -o root -g wheel -m 444  ChangeLog NEWS README =
/usr/local/share/doc/pkgtools
=3D=3D=3D>   Installing ldconfig configuration file
if [ ! -f /usr/local/etc/pkgtools.conf ]; then  /bin/cp -p =
/usr/local/etc/pkgtools.conf.sample /usr/local/etc/pkgtools.conf;  fi
=3D=3D=3D>   Registering installation for portupgrade-2.1.4_5,1
=3D=3D=3D>  Cleaning for ruby-1.8.4_8,1
=3D=3D=3D>  Cleaning for pkg_install-20060113
=3D=3D=3D>  Cleaning for ldconfig_compat-1.0_7
=3D=3D=3D>  Cleaning for ruby18-bdb42-0.5.9
=3D=3D=3D>  Cleaning for perl-5.8.8
=3D=3D=3D>  Cleaning for openssl-stable-0.9.7j
=3D=3D=3D>  Cleaning for rc_subr-1.31_1
=3D=3D=3D>  Cleaning for db42-4.2.52_4
=3D=3D=3D>  Cleaning for libtool-1.5.22_2
=3D=3D=3D>  Cleaning for portupgrade-2.1.4_5,1
--->  Cleaning out obsolete shared libraries
--->  Upgrade tasks: 1
--->  Summary: 1 done, 0 ignored, 0 skipped and 0 failed
/usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:450:in `__system': Command =
failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ (CommandFailedError)
        from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:473:in =
`__sudo'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:479:in =
`xsystem!'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:961:in =
`autofix!'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:957:in `autofix'
        from /usr/local/sbin/portupgrade:475:in `main'
        from /usr/local/sbin/portupgrade:718:in `main'
        from /usr/local/lib/ruby/1.8/optparse.rb:815:in `initialize'
        from /usr/local/sbin/portupgrade:209:in `main'
        from /usr/local/sbin/portupgrade:1978
root@mithrandir:/usr/ports$ pkgdb -F
--->  Checking the package registry database
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 221 =
packages found (-0 +1) .
Operation not permitted: skipping...
Operation not permitted: Cannot update the pkgdb!]





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02a301c6939c$0b8b2f10$99dfdfdf>