Advice about cvsup ports-all upgrading

From: Toyotoshy (umbertobox_at_yahoo.it)
Date: 01/11/05


Date: Tue, 11 Jan 2005 11:53:41 +0100

Hallo guys,
it's going to be a long mail, I apologize for my poor english*.
I'd like to have an advice about how to behave in case I want to upgrade
some port because of new vulnerabilities. I'm not interested in having
all my portsa always upgraded to the newest release; I'm only interested
in try to fix vulnerabilities as fast as I can.
As we all know the standard way to upgrade our ports is via cvsupping
/usr/ports and then run portupgrade [-options] prg_name. It does work
mostof the time and I use r as option inorder to avoid binary
incompatibilities, but sometimes this procedure is realy a waste of
time, expecially if I use to cvsup all my ports tree.
Sometimes something very bad could happen as well: suppose you have
ports a depending on b that depends on c, schematicaly
c <- b <- a
and a, b and c have been replaced in ports tree with a', b', c'(and
sometimes d' as *new dependency*) in such a way we have for example the
following:
c' <- b' <- a'
So if I portupgrade -r a it would try to upgrade the dependency first,
but it could happen that for some reason the process does stop because
of some errors and you could be left in such a situation:
c' <- b -< a
This configuration couldbe a wrong , not working configuration. However
I'm not worried about such a situation: I use to tell portupgrade to
backup packages before trying to portupgrade and so I can revert to
previous situation.
However one can avoid cvsupthe whole ports-tree: on FreeBSD handbook I
find that one can write down a refuse file and/or decide to cvsup only
one subcollection of the ports-tree but one has to remember to always
upgrade the base-system. OK, but when you do something like this you
cannot build INDEX(written in the handbook). My question is: will
portupgrade work well even with the wrong INDEX? That is I don't know
the details about the way portupgrade does work, but I think it uses
informations contained in the INDEX file, isn't it?
So, finaly, what to do? always cvsupping the whole ports-tree even if
you have the risk that something in some long dependencylist would not
work, or what?
OK, one solution could be the one(suggested in the handbook), to
make PREFIX=/usr/home/example/local install
as well as cvsup into a non-standard directory, to try if the process
does work. But suppose, everything does work; what should I do in order
to have the newly tested and working packages installed onthe standard
places? overwrite my old ports-tree with the new one and rebuild?
By the way, I should upgrade my tiff because of vulnerabilities. The
tiff's release installed on my computer is tiff-3.7.0_2 and a lot of
packages I have installed depend on tiff:

cups-base-1.1.22.0_1
cups-lpr-1.1.22.0
cups-pstoraster-7.07_3
djvulibre-3.5.13
ethereal-0.10.8
firefox-1.0_3,1
gconf2-2.8.1
gimp-2.2.0_1,1
gkrellm-1.2.13_3
gnomevfs2-2.8.3_1
gtk-2.4.13
gtk-engines2-2.2.0_5
imlib-1.9.15_1
librsvg2-2.8.1_1
libxine-1.0
mozilla-1.7.3_3,2
qt-3.3.3_3
windowmaker-0.91.0
xine-0.99.3
xv-3.10a_4
bluefish-0.7_2

So if I portupgrade -r(oh, I've cvsupped my whole ports tree) I'll waste
a lot of time. Do you know if in this case upgrading *only* tiffs to
3.7.1_2 would realy break something?
Thanks

*
by the way, if you like to correct me, I'll be grateful :-)

-- 
Toyotoshy
Powered by FreeBSD 4.10 and X-forwarding|


Relevant Pages

  • Re: new package system proposal
    ... If I could install, let's say, FreeBSD 7.1 on that system, use ... No because the packages are built on a rolling ports tree. ... the precompiled packages are somewhat -STABLE every time. ... snapshot and choosing only to upgrade certain ports. ...
    (freebsd-questions)
  • Re: Upgrading packages - portupgrade confusion
    ... Portupgrade is a third party app you can install to assist in automating the ... I didn't actually refresh the ports tree so I'm gona have to do that. ...
    (freebsd-questions)
  • Re: q???
    ... > yes, it does download and install auto, this is what i actually was ... After you cvsup the ports system, you can use portupgrade to: ... Upgrade an application, all of its dependencies, and all of the ports ...
    (freebsd-questions)
  • Re: Keeping my system up to date with CTM or subversion?
    ... By the way, your ports tree is different than installed software packages, ... the only reason people even bother to upgrade their ... When security vulnerabilities are discovered and patches released by FBSD, ... I'll install from DVD and I'll chose the option ...
    (freebsd-questions)
  • Re: Upgrading perl
    ... # make deinstall then: ... You indicated that you used portupgrade for similar updates on ... similar machines that succeeded, and look at the Makefile in perl5.12 to ... upgrade itself on FreeBSD 7.x. ...
    (freebsd-questions)