Welcome to FreeBSDFreaks.net!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Advice about cvsup ports-all upgrading

 
   FreeBSD Hosting (Home) -> FreeBSD Handbook RSS
Next:  amd.map  
Author Message
Toyotoshy

External


Since: Feb 17, 2005
Posts: 10



(Msg. 1) Posted: Tue Jan 11, 2005 11:53 am
Post subject: Advice about cvsup ports-all upgrading
Archived from groups: comp>unix>bsd>freebsd>misc (more info?)

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 Smile

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

 >> Stay informed about: Advice about cvsup ports-all upgrading 
Back to top
Login to vote
MattD..

External


Since: Jul 29, 2004
Posts: 10



(Msg. 2) Posted: Tue Jan 11, 2005 11:53 am
Post subject: Re: Advice about cvsup ports-all upgrading [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
jpd

External


Since: Jan 17, 2005
Posts: 60



(Msg. 3) Posted: Tue Jan 11, 2005 12:08 pm
Post subject: Re: Advice about cvsup ports-all upgrading [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Begin
On 2005-01-11, MattD.. wrote:
[snip]
> BTW, it's a "post", not a "mail". Pedantic, yes, but correct. Many
> knowledgeable people on here will get annoyed at this sort of thing. I can
> hear steam escaping from jpd from here Wink

Smile

Except that I never saw the original post. Besides, I'd decided to lay
off for a while just to see if I really was the last of the mohicans
here. In that case, it'd be time to admit defeat and to, well, go
somewhere else and maybe start a lawn-mowing consultancy instead. I
still may do that, as my current gig has lost any entertainment value
it might have had left. So I'll probably be a bit busy with looking
for less stressful ways to earn a living instead of bothering you lot,
soonish. Then again, who am I to think I can overcome my net addiction?


--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
willing to travel to warm countries with good food.
 >> Stay informed about: Advice about cvsup ports-all upgrading 
Back to top
Login to vote
MattD..

External


Since: Jul 29, 2004
Posts: 10



(Msg. 4) Posted: Tue Jan 11, 2005 12:58 pm
Post subject: Re: Advice about cvsup ports-all upgrading [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Toyotoshy

External


Since: Feb 17, 2005
Posts: 10



(Msg. 5) Posted: Tue Jan 11, 2005 3:48 pm
Post subject: Re: Advice about cvsup ports-all upgrading [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Matt,

MattD.. wrote:

>>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?
>
>
> Yes. It will leave any binary statically compiled against the tiff libraries
> with the possibility of containing the insecure function. Spend the time,
> save later.

thanks for your answer! I'm upgrading just now.
Last question: if portupgrade -r does fail(and stops) during the
compilation of some program how can I tell him to continue with the
recursive recompilation of the packages he has to recompile(because of
-r option previousky given), skipping the one that breaks the
compilatiomn process?

>
> BTW, it's a "post", not a "mail". Pedantic, yes, but correct. Many
> knowledgeable people on here will get annoyed at this sort of thing. I can
> hear steam escaping from jpd from here Wink

thanks! you're right: it's a postm not an email.

--
Toyotoshy
Powered by FreeBSD 4.10 and X-forwarding|
 >> Stay informed about: Advice about cvsup ports-all upgrading 
Back to top
Login to vote
MattD..

External


Since: Jul 29, 2004
Posts: 10



(Msg. 6) Posted: Tue Jan 11, 2005 3:48 pm
Post subject: Re: Advice about cvsup ports-all upgrading [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Toyotoshy

External


Since: Feb 17, 2005
Posts: 10



(Msg. 7) Posted: Tue Jan 11, 2005 6:24 pm
Post subject: Re: Advice about cvsup ports-all upgrading [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,
thanks, however fortunately the list of packages I though portupgrade -r
would upgrade was wrong: I though it would upgrade all the packages
that pkg_delete -n does say that depend on tiff, but this is false.
Thanks again.
However what about the question related to behaviour of portupgrade if I
cvsup only a subcollection of the ports collection?
thanks

--
Toyotoshy
Powered by FreeBSD 4.10!
 >> Stay informed about: Advice about cvsup ports-all upgrading 
Back to top
Login to vote
Toyotoshy

External


Since: Feb 17, 2005
Posts: 10



(Msg. 8) Posted: Tue Jan 11, 2005 8:40 pm
Post subject: Re: Advice about cvsup ports-all upgrading [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Matt,

MattD.. wrote:
> On Tuesday 11 Jan 2005 17:24, the whim of a few quarks and leptons to be
> Toyotoshy for a while caused the following to be typed:

I don't like quarks: I've always had problem with the meaning of
perturbative asymptotic series of QCD, so I never understood very well
strong interactions Smile : I've stopped my understanding at local
SU(2)xU(1) simmetries.

>>However what about the question related to behaviour of portupgrade if I
>>cvsup only a subcollection of the ports collection?
>
>
> I'm having a hard time understanding what you're trying to explain. If

and I'm having a very hard time understandig if you don't understand
because my english is so terrible that I think I'm saying something
while I'm sayuing something else ... Sad

> you're saying what I think you are in the OP, it's a moot point:

well: what do OP and moot mean? I've found moot on my dictionary(it
sounds offensive... ), but haven't found OP Smile


> Portupgrade will not deinstall a package until it has successfully built
> its replacement. You can see this as a portupgrade progresses. In a

of course! If portupgrade doesn't do like that it would be realy a
terrible program!

.....long cut of Matt's words.....

> Portupgrade isn't foolproof, but it's pretty intelligent. The only way an
> app will become broken is if a library is updated and a dynamically linked
> dependency fails to rebuild but, even then, most shared objects are
> preserved by portupgrade for this eventuality anyway.

probably this is in part the answer to one of my questions (that is not
the one you've quoted in your answer).
However it doesn't matter. Forget it.
Thanks the time you've spent with me and your help
Ciao

--
Toyotoshy
Powered by FreeBSD 4.10!
 >> Stay informed about: Advice about cvsup ports-all upgrading 
Back to top
Login to vote
MattD..

External


Since: Jul 29, 2004
Posts: 10



(Msg. 9) Posted: Tue Jan 11, 2005 9:56 pm
Post subject: Re: Advice about cvsup ports-all upgrading [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Toyotoshy

External


Since: Feb 17, 2005
Posts: 10



(Msg. 10) Posted: Wed Jan 12, 2005 9:40 am
Post subject: Re: Advice about cvsup ports-all upgrading [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi MattD,

MattD.. wrote:

> I bet your English is better than my ${OTHER_LANGUAGE}. Moot means, loosely,
> already discussed to death with only one possible outcome. OP means
> Original Post. I do not deliberately go out of my way to be offensive. I
> can usually achieve that accidentally without any effort whatsoever Wink

Smile unfortunately my dictionary is not that good and "moot" is
translated as something worste than "stupid". I remember few years ago I
asked a question about bash on a linux newsgroup and one answer started
with "help yourself..." that sounds realy bad if straightly translated
to my language; it sounds like "stupid man, aren't you realy able to
find it out?" I was very angry. Then, one year ago I was at a conference
a found written everywhere near to brochures "help yourself ...". So I
understood the meaning was different Smile

> If you were hinting at a partially updated ports tree, this is not a good
> idea. Not only will any Index that you fetch with make fetchindex be
> totally wrong, you may also be unable to build your own. This will stop
> portsdb -u from creating the database, which in turn will confuse the hell
> out of portupgrade to the point that it may stop working altogether. Do
> yourself a favour and cvsup ports-all. It's a lot less hassle in the long
> run.

OK! that's the answer.

>
> BTW, I don't understand the finer points of quantum chromodynamics either.
> Colour charge doesn't really make sense to someone with an electronics
> background without a profound shift of thinking. Would you prefer if I
> changed the attribution line to hadrons and leptons? Or would this, still
> involving strong interactions in the former, as well as the weak
> interactions of both be no better? Smile

Smile

ciao

--
Toyotoshy
Powered by FreeBSD 4.10!
 >> Stay informed about: Advice about cvsup ports-all upgrading 
Back to top
Login to vote
MattD..

External


Since: Jul 29, 2004
Posts: 10



(Msg. 11) Posted: Wed Jan 12, 2005 11:46 am
Post subject: Re: Advice about cvsup ports-all upgrading [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Display posts from previous:   
Related Topics:
Partition advice - I need some advice creating partitions (on my 80 Gb harddisk -IDE) especially the /var and /usr partitions. It's a PII, 450 Mhz with 512 Mb RAM and I need to run Apache, PHP, MySQL (forum) and Postfix mailserver. It's not very heavy, it's for private use...

CVSup vs. portupgrade - Reading from the FreeBSD handbook on "Using the Ports Collection" leaves me a bit confused wrt CVSup and portupgrade... do these utilities accomplish the same thing? Thanks, Jay _______________________________________________..

CVSUP Mirror - FreBSD 4.10 Release CVSUP-MIRROR v. 1.3_2 freshly installed. I got the cvsup-mirror port installed without any errors. The CVSUPD daemon is running. I can connect to my mirror from another server. When I try to update a ports collection (i.e...

I am having trouble with CVSup - Hi guys! Here is the contents of my supfile: ========================== *default tag=. *default host=cvsup.au.FreeBSD.org *default prefix=/usr *default base=/usr/local/etc/cvsup *default release=cvs delete use-rel-suffix compress ports-multmedia..

Q: cvsup, standard-supfile, and 5.3... - Hi all, I just completed a 5.2.1 install a couple weeks ago and saw the 5.3 announcement to the mailing list today and being a nerd (and we all know that the "latest and greatest desire" is a true disease ;^) ) I'm considering upgrading. But...
   FreeBSD Hosting (Home) -> FreeBSD Handbook All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]