Re: Pkgdb Problem -- /usr/local/sbin/pkgdb:35:in

From: Bob Perry (rperry4_at_earthlink.net)
Date: 02/29/04

  • Next message: John Wilson: "/usr/ports/graphics/tiff build failure"
    Date: Sat, 28 Feb 2004 18:38:05 -0500
    To: Kent Stewart <kstewart@owt.com>
    
    

    >>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
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: John Wilson: "/usr/ports/graphics/tiff build failure"

    Relevant Pages

    • port behaves strangely: looks pkg_delete could not remove a package?
      ... Yesterday I tried to use portupgrade to upgrade my KDE from 2.1.4 ... I removed both package and I'm working on pkgdb -F. ... Here is the error message and description of first openldap failure I ... openldap-client-2.1.x.x before it tries to install 2.2. ...
      (comp.unix.bsd.freebsd.misc)
    • Re: New to stable!
      ... > or should I do it through package from releg4.freebsd.org?? ... Next, use portupgrade to install and update you packages, eg. ... enables you to do detailed ports configuration and leave make.conf for ...
      (freebsd-stable)
    • RE: Building Packages - Links to Tutorials?
      ... you can do make package, this should in my opinion make the package ... you can install everywhere you wish. ... >>familiar with using portupgrade to build and install ports. ... To unsubscribe, ...
      (freebsd-questions)
    • Re: kde3.3 upgrade help please
      ... >> They install files into the same place. ... > using a package management system which beleives to be more smart than ... be it Debian apt-get or FreeBSD portupgrade. ... Here the KDE people ...
      (comp.unix.bsd.freebsd.misc)
    • Re: More portupgrade problems from BROKEN port.
      ... I put samba-3.0.1_2,1 on the spare server via portupgrade without ... On the main server I was trying to install from the package created ... I also think I worked out why smbd had been zapped. ...
      (comp.unix.bsd.freebsd.misc)