Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Oct 2003 14:06:27 -0700
From:      Kent Stewart <kstewart@owt.com>
To:        jesse@wingnet.net, freebsd-questions@freebsd.org
Subject:   Re: portupgrade auto deinstall+reinstall?
Message-ID:  <200310241406.27267.kstewart@owt.com>
In-Reply-To: <bnc2jg$jfd$1@sea.gmane.org>
References:  <bnbo91$tib$1@sea.gmane.org> <200310241054.04392.kstewart@owt.com> <bnc2jg$jfd$1@sea.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 24 October 2003 01:38 pm, Jesse Guardiani wrote:
> Kent Stewart wrote:
> > On Friday 24 October 2003 10:41 am, Jesse Guardiani wrote:
> >> Howdy list,
> >>
> >> Sorry if this is an obvious question, but I didn't
> >> find anything in the portupgrade manpage.
> >>
> >> I'm in the process of upgrading the ports on my 5.1-RELEASE
> >> laptop, and I just executed the following command:
> >>
> >> portupgrade -R 'grip*'
> >>
> >> And it's giving me the following message:
> >>
> >> ----------------------------------------------
> >> ===>  Checking if x11/libgnome already installed
> >> ===>   An older version of x11/libgnome is already installed
> >> (libgnome-2.2.0.1) You may wish to ``make deinstall'' and install this
> >> port again by ``make reinstall'' to upgrade it properly.
> >>       If you really wish to overwrite the old port of x11/libgnome
> >>       without deleting it first, set the variable "FORCE_PKG_REGISTER"
> >>       in your environment or the "make install" command line.
> >> *** Error code 1
> >>
> >> Stop in /usr/ports/x11/libgnome.
> >> *** Error code 1
> >> ------------------------------------------------
> >>
> >> Now, I know how to get around this manually:
> >>
> >> pkg_delete -f 'libgnome-*'
> >>
> >> And then rerun `portupgrade -R 'grip*'`.
> >>
> >> However, is there a way to automate this process? It's
> >> happened three times already on this one port, and I'm
> >> getting a bit annoyed. I was hoping it would be done
> >> the first time I came back from lunch. :)
> >>
> >> Thanks!
> >
> > You can use -Rf but that will update everything that is a dependancy for
> > grip. What you did is probably much faster than that :). That includes
> > the time you spent eating lunch.
> >
> > I come from the programming world and to update a library and not update
> > the codes that use it really bothers me. I do what you did but I keep
> > thinking about all of the problems that I could be causing.
>
> Ah. I see. It's binary compatibility thing. Portupgrade has no way of
> knowing if the new package is binary compatible with the old package, so it
> builds the new package, uninstalls the old package, and installs the new
> one. Grrr...
>
> OK. I guess I'll just have to rebuild my entire ports tree if I want it
> done right.

Not all of the time. For example, the only one in recent time was the gettext 
library problem. 

The other thing is why are you telling portupgrade to recursively build all of 
grip's dependancies when you may not need to. I look at what portversion 
tells me is out of date first.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html



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