Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-amd64
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-amd64@g.o
From: Duncan <1i5t5.duncan@...>
Subject: Re: Re: Re: Re: libungif and giflib conflict.
Date: Wed, 02 Nov 2005 16:07:32 -0700
Harm Geerts posted <200511022259.51970.harmgeerts@...>, excerpted
below,  on Wed, 02 Nov 2005 22:59:51 +0100:

> On Wednesday 02 November 2005 21:54, Duncan wrote:
>> Hmm...  That --noreplace is a new one on me.  I normally simply
>>
>> echo <category/pkg> >> /var/lib/portage/world
>>
>> Newer versions of portage (don't believe it's in stable portage yet) even
>> have an emaint command that removes the bad lines for you.
> 
> So did I, but now the warning `emerge depclean` produces tells me I can use 
> this. I find this rather nice as it is a lot safer and keeps the world file 
> free from user errors. For example replacing >> with > would be the most 
> destructive user error :P
> I have portage 2.0.53_rc7 installed and I'm not sure which version introduced 
> --noreplace so it might not be available for everyone yet.

I'm still on rc6, so I guess I need to sync and emerge -uD world. 
However, it's probably in rc6 too, only I didn't notice it in the warning
(<sheepish> as I don't read it as I know what the warning is about... only
they added something! </sheepish>).

Not here, forgetting the second > in >> wouldn't be destructive!  I think
this hint was featured in GWN a while back (yes, it was, comments are good
things! =8^):

-- snip --

# Based on a tips & tricks GWN feature.
# Makes redirection to an existing file an error.
# Use >> instead of > to append, or >| if overwriting is desired.
set -o noclobber

-- snip --

Put that in your .bashrc or whatever (my /etc/profile and .bashrc and all
that are rather seriously customized, here, it's a file called
noclobber.sh in /etc/profile.d/, but my bashrcs and profiles source
everything in /etc/profile.d/ so it's added to them).

That way, using > to redirect to an existing file produces an error saying
it already exists.  The comment gives the solution, use >> to append, or
use >| to force-overwrite the file.

So... "echo whatever > /var/lib/portage/world" would NOT "be the end of my
world" here!  (double entendre/entente)

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman in
http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html


-- 
gentoo-amd64@g.o mailing list


References:
libungif and giflib conflict.
-- Nick Currier
Re: Re: Re: libungif and giflib conflict.
-- Harm Geerts
Re: Re: Re: libungif and giflib conflict.
-- Duncan
Re: Re: Re: Re: libungif and giflib conflict.
-- Harm Geerts
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: Re: Re: libungif and giflib conflict.
Next by thread:
Re: Re: Re: Re: libungif and giflib conflict.
Previous by date:
Re: Re: Root on Raid and LVM
Next by date:
Re: Get synaptics touchpad to work after initial installation


Updated Jun 17, 2009

Summary: Archive of the gentoo-amd64 mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.