From owner-freebsd-questions@FreeBSD.ORG Sat Feb 28 15:37:38 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F7EB16A4CE for ; Sat, 28 Feb 2004 15:37:38 -0800 (PST) Received: from grebe.mail.pas.earthlink.net (grebe.mail.pas.earthlink.net [207.217.120.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5ED8B43D1D for ; Sat, 28 Feb 2004 15:37:38 -0800 (PST) (envelope-from rperry4@earthlink.net) Received: from dialup-171.75.71.7.dial1.weehawken.level3.net ([171.75.71.7] helo=earthlink.net) by grebe.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1AxE1X-0004p0-00; Sat, 28 Feb 2004 15:37:35 -0800 Message-ID: <4041265D.9060708@earthlink.net> Date: Sat, 28 Feb 2004 18:38:05 -0500 From: Bob Perry User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040222 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kent Stewart References: <4040F1C8.3000704@earthlink.net> <200402281159.52983.kstewart@owt.com> <4040FFF1.70003@earthlink.net> <200402281310.12233.kstewart@owt.com> In-Reply-To: <200402281310.12233.kstewart@owt.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: FreeBSD-Questions Subject: Re: Pkgdb Problem -- /usr/local/sbin/pkgdb:35:in X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2004 23:37:38 -0000 >>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 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