Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Feb 2012 02:53:23 +0400
From:      =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JrQsNC30LDRgNC+0LI=?= <d.y.kazarov@mail.ru>
To:        clutton <clutton0@gmail.com>
Cc:        ruby@freebsd.org
Subject:   Re: portupgrade -af fails
Message-ID:  <4F4D5AE3.5040102@mail.ru>
In-Reply-To: <4F251BDB.4080702@mail.ru>
References:  <4F120654.1030004@mail.ru> <1327523583.32205.4.camel@eva02> <4F251BDB.4080702@mail.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------040909040502020801020504
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"


   Hello,
   I've just met this problem while upgrading a server from FreeBSD 7.0
   Stable to 9.0 Stable.
   After successful upgrading of FreeBSD I've started upgrading of
   packages.
   The command was
   portupgrade -af
   since most packages were outdated and all packages should be
   recompiled within new environment.
   After upgrading the ruby package portupgrade failed:
   --------------->8------------------------------>8---------------------
   ------
   ====
   ===>   Compressing manual pages for ruby-1.8.7.358,1
   ===>   Running ldconfig
   /sbin/ldconfig -m /usr/local/lib
   ===>   Registering installation for ruby-1.8.7.358,1
   ===> SECURITY REPORT:
         This port has installed the following files which may act as
   network
         servers and may therefore pose a remote security risk to the
   system.
   /usr/local/lib/ruby/1.8/i386-freebsd9/socket.so
         If there are vulnerabilities in these programs there may be a
   security
         risk to the system. FreeBSD makes no guarantee about the
   security of
         ports included in the Ports Collection. Please type 'make
   deinstall'
         to deinstall the port if this is a concern.
         For more information, and contact details about the security
         status of this software, see the following webpage:
   [1]http://www.ruby-lang.org/en/
   ===>  Cleaning for automake-1.11.1
   ===>  Cleaning for automake-wrapper-20101119
   ===>  Cleaning for ruby-1.8.7.358,1
   --->  Cleaning out obsolete shared libraries
   [Updating the pkgdb <format:dbm_hash> in /var/db/pkg ... Inappropriate
   file type or format - /var/db/pkg/pkgdb; rebuild needed] [Rebuilding
   the pkgdb <format:dbm_hash> in /var/db/pkg ... - 161 packages found
   (-0 +161)
   ......................................................................
   ..............................100.....................................
   ........................ done]
   /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:215:in `origin':
   /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid
   argument (PkgDB::DBError)
           from /usr/local/lib/ruby/site_ruby/1.8/pkginfo.rb:205:in
   `origin'
           from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:245:in
   `config_include?'
           from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:215:in
   `config_ignore_moved?'
           from /usr/local/sbin/portupgrade:942:in `do_upgrade'
           from /usr/local/sbin/portupgrade:816:in `main'
           from /usr/local/sbin/portupgrade:812:in `each'
           from /usr/local/sbin/portupgrade:812:in `main'
           from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize'
           from /usr/local/sbin/portupgrade:229:in `new'
           from /usr/local/sbin/portupgrade:229:in `main'
           from /usr/local/sbin/portupgrade:2213
   [root@mail ~/update.20120228]#
   --------------->8------------------------------>8---------------------
   ------
   Log is attached (screenlog.1.gz). File pre.gz contains list of
   packages before the upgrading; file post.gz - list of packages right
   after failure (result of pkg_info without arguments).
   Is there way to restart building from the point of failure?
   Sincere yours,
   Dmitry
   On 29.01.2012 14:13, Dmitrij Kazarov wrote:

   Hello,
   I apologize. I currently can not reproduce the problem. Last time
   postupgrade failed when I upgraded FreeBSD from 8.2-STABLE to 9.0 -
   I've upgraded all ports to exclude dependencies on old system
   libraries. Since I expected a failure I use "--results-file FILE"
   option but the file was empty.
   Sincerely yours,
   Dmitry
   26.01.2012 00:33, clutton pishet:

Please give more details.
What ruby version?
What error is? And what packages you try upgrade.

On Sun, 2012-01-15 at 02:48 +0400, Dmitrij Kazarov wrote:

Hello!

portupgrade -af fails right after upgrading ruby package.
And running with option -l result does not helps at all - no data saved
to result file.

Sincerely yours,
Dmitry
_______________________________________________
[2]freebsd-ruby@freebsd.org mailing list
[3]http://lists.freebsd.org/mailman/listinfo/freebsd-ruby
To unsubscribe, send any mail to [4]"freebsd-ruby-unsubscribe@freebsd.org"

References

   1. http://www.ruby-lang.org/en/
   2. mailto:freebsd-ruby@freebsd.org
   3. http://lists.freebsd.org/mailman/listinfo/freebsd-ruby
   4. mailto:freebsd-ruby-unsubscribe@freebsd.org

--------------040909040502020801020504--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F4D5AE3.5040102>