Re: Problem with portupgrade
On Sun, 11 Mar 2007 10:06:23 -0500 Jonathan Carter [EMAIL PROTECTED] wrote: Not sure if the issue was resolved but, I did find this link that worked for me. http://www.512kbps.com/2007/03/02/ports-portupgrade-af-failing%E2%80%A6/ http://www.512kbps.com/2007/03/02/ports-portupgrade-af-failing%E2%80%A6/ I also resolved the problem: Here's what I did, csup -h a-local-mirror.freebsd.org /etc/ports.supfile rm -rf /usr/ports/INDEX-6.DB rm -rf /usr/ports/INDEX-6 portsdb -F pkgdb -F portsdb -u I am aware that some steps are redundant, but it did fix the problem, I had to clear out a lot of stale dependencies with pkgdb, and had to deinstall Linux ABI (partially manually) and reinstall, as well as it's dependant packages, however, this resolved everything. The steps outlined above proved ineffective for me. --thanks, hope this helps other people. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with portupgrade
On 2007-Mar-03 10:12:53 +1100, Phillip Ledger [EMAIL PROTECTED] wrote: Even after a complete reinstall of the toll and rebuildig the database its still giving the same error. anyumore ideas? Exactly what have you re-installed? What versions of ruby* and portupgrade do you have? Have you compared your /usr/local/etc/pkgtools.conf with the sample version? I have the exact same problem. I rebuilt INDEX-6, rebuilt INDEX-6.db and rebuilt portupgrade, to the latest version. I have ruby 1.8.4. I have published my pkgtools.conf to http://www.vistua.com/public/pkgtools.conf the only changes I made from default, was to ignore language categories I do not speak. And to instruct that packages only be used for Openoffice. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with portupgrade
On Saturday 03 March 2007 10:07, [EMAIL PROTECTED] wrote: On 2007-Mar-03 10:12:53 +1100, Phillip Ledger [EMAIL PROTECTED] wrote: Even after a complete reinstall of the toll and rebuildig the database its still giving the same error. anyumore ideas? Exactly what have you re-installed? What versions of ruby* and portupgrade do you have? Have you compared your /usr/local/etc/pkgtools.conf with the sample version? I have the exact same problem. I rebuilt INDEX-6, rebuilt INDEX-6.db and rebuilt portupgrade, to the latest version. I have ruby 1.8.4. I have published my pkgtools.conf to http://www.vistua.com/public/pkgtools.conf the only changes I made from default, was to ignore language categories I do not speak. And to instruct that packages only be used for Openoffice. These messages usually popup when you have a problem with ruby and the database setup. Something is inconsistant with that setup. Also, I don't know if your pkgtools.conf ignore will affect the building of the INDEX-*. If you ignore anything, you usually have to fetch an INDEX-* because you can't build a proper INDEX. Kent -- Kent Stewart Richland, WA http://www.soyandina.com/ I am Andean project. http://users.owt.com/kstewart/index.html ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with portupgrade
On Sat, Mar 03, 2007 at 01:07:16PM -0500, [EMAIL PROTECTED] wrote: http://www.vistua.com/public/pkgtools.conf the only changes I made from default, was to ignore language categories I do not speak. I know we don't support the INDEX concept if the language categories aren't there. Does adding them back affect your problem? mcl ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with portupgrade
On Sat, 3 Mar 2007 14:51:01 -0600 [EMAIL PROTECTED] (Mark Linimon) wrote: I know we don't support the INDEX concept if the language categories aren't there. Does adding them back affect your problem? Unfortunately no. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with portupgrade
Phillip Ledger wrote: i have been trying to get portupgrade working, however everything i try to run it im getting an error with the portsdb. now i have tryed to rebuild it as requested initaly by portupgrade but im still getting an error portupgrade -aRr [missing key: categories] [Updating the portsdb format:bdb_btree in /var/tmp ... - 16413 port entries found .1000.2000.3000.4000.5000.6000.7000.8000.9000.1.11000.12000.13000.14000.15000.16000 . done] missing key: categories: Cannot read the portsdb! /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:548:in `open_db': database file error (PortsDB::DBError) from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:702:in `port' from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:890:in `all_depends_list' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:809:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:801:in `each' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:801:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:823:in `sort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:827:in `sort_build!' from /usr/local/sbin/portupgrade:721:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:755:in `initialize' from /usr/local/sbin/portupgrade:220:in `new' from /usr/local/sbin/portupgrade:220:in `main' from /usr/local/sbin/portupgrade:2084 any idea whats causeing the issue or how to fix it? Try removing /usr/ports/INDEX-6.db and running portsdb -u, which should rebuild it from your existing /usr/ports/INDEX-6 file. (if you're using FreeBSD 5 it would be INDEX-5 above). -Proto ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with portupgrade
Michael Proto wrote: Phillip Ledger wrote: i have been trying to get portupgrade working, however everything i try to run it im getting an error with the portsdb. now i have tryed to rebuild it as requested initaly by portupgrade but im still getting an error portupgrade -aRr [missing key: categories] [Updating the portsdb format:bdb_btree in /var/tmp ... - 16413 port entries found .1000.2000.3000.4000.5000.6000.7000.8000.9000.1.11000.12000.13000.14000.15000.16000 . done] missing key: categories: Cannot read the portsdb! /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:548:in `open_db': database file error (PortsDB::DBError) from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:702:in `port' from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:890:in `all_depends_list' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:809:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:801:in `each' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:801:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:823:in `sort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:827:in `sort_build!' from /usr/local/sbin/portupgrade:721:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:755:in `initialize' from /usr/local/sbin/portupgrade:220:in `new' from /usr/local/sbin/portupgrade:220:in `main' from /usr/local/sbin/portupgrade:2084 any idea whats causeing the issue or how to fix it? Try removing /usr/ports/INDEX-6.db and running portsdb -u, which should rebuild it from your existing /usr/ports/INDEX-6 file. (if you're using FreeBSD 5 it would be INDEX-5 above). If it does not help, you should update portupgrade to the last version and rebuild the database again. -- Dixi. Sem. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with portupgrade
On 3/2/07, Michael Proto [EMAIL PROTECTED] wrote: Phillip Ledger wrote: i have been trying to get portupgrade working, however everything i try to run it im getting an error with the portsdb. now i have tryed to rebuild it as requested initaly by portupgrade but im still getting an error portupgrade -aRr [missing key: categories] [Updating the portsdb format:bdb_btree in /var/tmp ... - 16413 port entries found .1000.2000.3000.4000.5000.6000.7000.8000.9000.1.11000.12000.13000.14000.15000.16000 . done] missing key: categories: Cannot read the portsdb! /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:548:in `open_db': database file error (PortsDB::DBError) from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:702:in `port' from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:890:in `all_depends_list' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:809:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:801:in `each' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:801:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:823:in `sort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:827:in `sort_build!' from /usr/local/sbin/portupgrade:721:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:755:in `initialize' from /usr/local/sbin/portupgrade:220:in `new' from /usr/local/sbin/portupgrade:220:in `main' from /usr/local/sbin/portupgrade:2084 any idea whats causeing the issue or how to fix it? Try removing /usr/ports/INDEX-6.db and running portsdb -u, which should rebuild it from your existing /usr/ports/INDEX-6 file. (if you're using FreeBSD 5 it would be INDEX-5 above). -Proto ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED] From /usr/ports/UPDATING: 20070102: AFFECTS: users of sysutils/portupgrade AUTHOR: [EMAIL PROTECTED] If you have a problem with upgrading the tools from version 2.2.1 and less, remove the package with pkg_delete portupgrade\* command and reinstall it from scratch. Remove /usr/ports/INDEX*.db and run portsdb -u. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with portupgrade
Sergey Matveychuk wrote: Michael Proto wrote: Phillip Ledger wrote: i have been trying to get portupgrade working, however everything i try to run it im getting an error with the portsdb. now i have tryed to rebuild it as requested initaly by portupgrade but im still getting an error portupgrade -aRr [missing key: categories] [Updating the portsdb format:bdb_btree in /var/tmp ... - 16413 port entries found .1000.2000.3000.4000.5000.6000.7000.8000.9000.1.11000.12000.13000.14000.15000.16000 . done] missing key: categories: Cannot read the portsdb! /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:548:in `open_db': database file error (PortsDB::DBError) from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:702:in `port' from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:890:in `all_depends_list' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:809:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:801:in `each' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:801:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:823:in `sort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:827:in `sort_build!' from /usr/local/sbin/portupgrade:721:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:755:in `initialize' from /usr/local/sbin/portupgrade:220:in `new' from /usr/local/sbin/portupgrade:220:in `main' from /usr/local/sbin/portupgrade:2084 any idea whats causeing the issue or how to fix it? Try removing /usr/ports/INDEX-6.db and running portsdb -u, which should rebuild it from your existing /usr/ports/INDEX-6 file. (if you're using FreeBSD 5 it would be INDEX-5 above). If it does not help, you should update portupgrade to the last version and rebuild the database again. Even after a complete reinstall of the toll and rebuildig the database its still giving the same error. anyumore ideas? ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with portupgrade
On 2007-Mar-03 10:12:53 +1100, Phillip Ledger [EMAIL PROTECTED] wrote: Even after a complete reinstall of the toll and rebuildig the database its still giving the same error. anyumore ideas? Exactly what have you re-installed? What versions of ruby* and portupgrade do you have? Have you compared your /usr/local/etc/pkgtools.conf with the sample version? -- Peter Jeremy pgp2ln9OhAsFT.pgp Description: PGP signature
Re: Problem with portupgrade
On 23/05/05, Jim C. Nasby [EMAIL PROTECTED] wrote: After updating my ports tree I'm getting this: [EMAIL PROTECTED]:40]/usr/ports/sysutils/portupgrade:157sudo portupgrade -a [Updating the pkgdb format:bdb1_btree in /var/db/pkg ... - 354 packages found (-3 +2) (...)/usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:466: [BUG] Segmentation fault ruby 1.8.2 (2004-12-25) [i386-freebsd4] I've tried manually reinstalling both ruby and portupgrade to no avail. Try to add the following lines to your /usr/local/etc/pkgtools.conf ENV['PKG_DBDRIVER'] ||= 'dbm_hash' ENV['PORTS_DBDRIVER'] ||= 'dbm_hash' and after it run these 2 commands pkgdb -F portsdb -u to re-create the databases. Regards -- Renato Botelho ICQ: 54596223 AIM: RBGargaBR ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Problem with portupgrade
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim C. Nasby Sent: Monday, May 23, 2005 13:50 To: [EMAIL PROTECTED] Subject: Problem with portupgrade After updating my ports tree I'm getting this: [EMAIL PROTECTED]:40]/usr/ports/sysutils/portupgrade:157sudo portupgrade -a [Updating the pkgdb format:bdb1_btree in /var/db/pkg ... - 354 packages found (-3 +2) (...)/usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:466: [BUG] Segmentation fault ruby 1.8.2 (2004-12-25) [i386-freebsd4] I've tried manually reinstalling both ruby and portupgrade to no avail. I hope I am not hijacking your thread but... I recommend trying portmanager instead of portupgrade. It is MUCH smarter, has less dependencies, and knows how to take care of things when you upgrade a package like perl (it will reinstall all your perl related ports automatically, etc against the new build). Portmanager + portsnap is great. No need for databases or INDEX making which takes a while, etc. Portsnap should replace cvsup in the handbook IMO. It rocks. Here is how I update ports and check for outdated ports (in ports.sh script): portsnap fetch echo Port snapshot fetched, updating... portsnap update echo done. Outdated ports: # take care of cache miss on new ports portmanager -s /dev/null portmanager -s | grep OLD if there are any outdated ports, a portmanager -u will update them all, taking care of any and all dependencies, etc. it does a bunch more stuff too. is anyone aware of any downsides to portmanager? Anyone had any issues? Hope this helps someone out. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]