Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Feb 2004 18:38:05 -0500
From:      Bob Perry <rperry4@earthlink.net>
To:        Kent Stewart <kstewart@owt.com>
Cc:        FreeBSD-Questions <freebsd-questions@freebsd.org>
Subject:   Re: Pkgdb Problem -- /usr/local/sbin/pkgdb:35:in
Message-ID:  <4041265D.9060708@earthlink.net>
In-Reply-To: <200402281310.12233.kstewart@owt.com>
References:  <4040F1C8.3000704@earthlink.net> <200402281159.52983.kstewart@owt.com> <4040FFF1.70003@earthlink.net> <200402281310.12233.kstewart@owt.com>

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

>>Sorry for being so thick, but I get more than just nervous when using
>>the delete
>>command.  Do I understand you correctly in that I delete, as in rm,
>>the portupgrade
>>files in /usr/ports/sysutils/ directory and also all of the ruby
>>files in the /usr/ports/
>>lang/ directory?
>>    
>>
>
>No, you can 
>
>pkg_delete portupgrade
>pkg_delete 'ruby*'
>cd /usr/ports/sysutils/portupgrade
>make install
>
>You can see options in the commit message at 
>http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/ruby18/Makefile
>
>The pkg_delete of ruby* and portupgrade was the only thing that worked 
>for me. There is a now ruby16 and a ruby18. Portupgrade now uses 
>ruby18.
>
>Kent
>
>  
>
First, I deleted portupgrade.  Ran into what seemed like a syntax 
error,  but
eventually deleted the port.  Note the following:

==>root@sphinx:/usr/ports> pkg_delete portupgrade
pkg_delete: no such package 'portupgrade' installed
==>root@sphinx:/usr/ports> pkg_delete portupgrade-\*

Next, I deleted all ruby files, with some familiar messages following.

==>root@sphinx:/usr/ports> pkg_delete 'ruby*'
pkg_delete: unable to completely remove directory 
'/usr/local/lib/ruby/site_ruby/1.6/i386-freebsd4'
pkg_delete: unable to completely remove directory 
'/usr/local/lib/ruby/site_ruby/1.6'
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)
pkg_delete: file '/usr/local/bin/erb' doesn't really exist
pkg_delete: file '/usr/local/bin/h2rb' doesn't really exist
pkg_delete: file '/usr/local/bin/rdoc' doesn't really exist
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)

Reinstalled portupgrade.

==>root@sphinx:/usr/ports> cd sysutils/portupgrade/
==>root@sphinx:/usr/ports/sysutils/portupgrade> make install
<snip>
Warning: Object directory not changed from original 
/usr/ports/sysutils/portupgrade/work/pkgtools-20040208/bin
/usr/local/bin/ruby18 -wc pkg_fetch
/usr/local/bin/ruby18:No such file or directory
*** Error code 1
 
Stop in /usr/ports/sysutils/portupgrade/work/pkgtools-20040208/bin.
*** Error code 1

Had to run make clean before it would run successfully.
 
Didn't run steps 2-4 of the options in the commit segment since I 
deleted all
of the ruby files at the beginning.  Hope no problems result.

Just ran portupgrade again to complete what I had started this morning
and it ran successfully.

I was aware of similar problems others had encountered due to the change in
the default version of ruby and read the commit in Fresh Ports.  It just 
didn't
register.  I saw the phrase, "If you are a ruby developer...", and 
ignored the rest.
My bad.

Thanks so much for your time and assistance.

Bob Perry


-- 
I've learned that whatever hits the fan will not be evenly
distributed.

FreeBSD 4.9-RELEASE-p2 #0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4041265D.9060708>