From nobody@FreeBSD.org  Mon Feb  4 17:19:12 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 1112937B41B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  4 Feb 2002 17:19:12 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g151JCa42852;
	Mon, 4 Feb 2002 17:19:12 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200202050119.g151JCa42852@freefall.freebsd.org>
Date: Mon, 4 Feb 2002 17:19:12 -0800 (PST)
From: Steve Davidson <sdn@sprintlabs.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: portupgrade -R ruby  fails on 4.5RC3
X-Send-Pr-Version: www-1.0

>Number:         34623
>Category:       ports
>Synopsis:       portupgrade -R ruby  fails on 4.5RC3
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    knu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 04 17:20:00 PST 2002
>Closed-Date:    Fri Feb 22 05:02:12 JST 2002
>Last-Modified:  Fri Feb 22 05:05:20 JST 2002
>Originator:     Steve Davidson
>Release:        4.5RC3
>Organization:
>Environment:
4.5RC3
All ports current against last Friday's ports CVS update except:
% grep '<' PKG_VERSION
gnomecore-1.4.0.5                   <   needs updating (port has 1.4.0.6)
gnomelibs-1.4.1.3                   <   needs updating (port has 1.4.1.4)
libgda-0.2.94                       <   needs updating (port has 0.2.95)
libxml-1.8.16                       <   needs updating (port has 1.8.17)
libxml2-2.4.12                      <   needs updating (port has 2.4.13)
libxslt-1.0.9                       <   needs updating (port has 1.0.10)
pan-0.11.1.91                       <   needs updating (port has 0.11.1.93)
pilot-link-0.9.5_1                  <   needs updating (port has 0.9.5_3)
postfix-20020107                    <   needs updating (port has 20020115)
ruby-1.6.6.2002.01.26               <   needs updating (port has 1.6.6.2002.01.29)


Attempts to "portupgrade" any package leads to the core dump
described below.
>Description:
% portupgrade -R ruby
[Updating the pkgdb in /var/db/pkg ... - 153 packages found (-1 +1) (...)/usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:276: [BUG] Segmentation fault
ruby 1.6.6 (2002-01-25) [i386-freebsd4]
Abort (core dumped)



Portsdb has some weirdness as well:

% portsdb -Uu
Updating the ports index ...cat: /usr/ports/www/linux-netscape6/work//netscape-installer/xpi/components.conf: No such file or directory: malformed entry: cat: /usr/ports/www/linux-netscape6/work//netscape-installer/xpi/components.conf: No such file or directory
 done
[Updating the ports database in /usr/ports ... - 6509 port entries found .........1000.........2000.........3000.........4000.........5000.........6000..... (...) done]

>How-To-Repeat:
Run "portupgrade -R [anypackage]" or
pkgdb -F
   
>Fix:
Fix the port or
I need some way to clean up this "ruby" core dump problem.

I forced a re-install of ruby but nothing got fixed.     
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->knu 
Responsible-Changed-By: petef 
Responsible-Changed-When: Tue Feb 5 00:32:01 PST 2002 
Responsible-Changed-Why:  
Over to maintainer 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34623 

From: "Akinori MUSHA" <knu@iDaemons.org>
To: Steve Davidson <sdn@sprintlabs.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/34623: portupgrade -R ruby  fails on 4.5RC3
Date: Tue, 05 Feb 2002 19:56:49 +0900

 Try pkgdb -fu to rebuild the database.
 
 I think I will switch from db 1.8x to bdb3 or higher at some point in
 future.
 
 -- 
                      /
                     /__  __            Akinori.org / MUSHA.org
                    / )  )  ) )  /     FreeBSD.org / Ruby-lang.org
 Akinori MUSHA aka / (_ /  ( (__(  @ iDaemons.org / and.or.jp
 
 "Somewhere out of a memory.. of lighted streets on quiet nights.."
State-Changed-From-To: open->closed 
State-Changed-By: knu 
State-Changed-When: Fri Feb 22 05:02:12 JST 2002 
State-Changed-Why:  
I think pkgdb -fu should always fix the coredump problem. 

I've added the tip to the manpage, so future users will be able to know 
how to cope with the problem. 

Thanks anyway! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34623 
>Unformatted:
