Re: [gentoo-user] Remove prelink and purge prelinked exec

2006-11-13 Thread Bo Ørsted Andresen
On Sunday 12 November 2006 20:58, Marco Calviani wrote:
 Hi list,
i would like to remove prelink and put the system to the state it
 has before the prelink procedure. I've read that a

 # prelink -ua

 can do the job but i would have some suggestions from you all. It is
 enough to behave like this?

Gentoo provides a prelink howto [1]. But the bottom line is you need to do:

# prelink -ua  emerge -Cva prelink

As long as prelink is installed portage will use it...

[1] http://www.gentoo.org/doc/en/prelink-howto.xml

-- 
Bo Andresen


pgpca9MatWxu6.pgp
Description: PGP signature


Re: [gentoo-user] Remove prelink and purge prelinked exec

2006-11-13 Thread Bo Ørsted Andresen
On Sunday 12 November 2006 21:40, Jesús Guerrero wrote:
 I never trusted prelink. So, I dont trust it to un-prelink either.

 The best way to make sure your binaries are not altered by 3rd party tools
 is this:

 emerge -euD world

This is slightly amusing. Remerging every package while prelink is still 
installed will use prelink again... Also --update and --deep are ignored 
with --emptytree. Finally --unmerge of any prelinked package would fail the 
checksum and the binaries would be left alone if prelink --undo didn't work. 
But because portage does prelink --undo (which works) before checking the 
checksum --unmerge works just fine...

-- 
Bo Andresen


pgp9jbRCCryna.pgp
Description: PGP signature


Re: [gentoo-user] Remove prelink and purge prelinked exec

2006-11-13 Thread Uwe Thiem
On 13 November 2006 14:44, Bo Ørsted Andresen wrote:
 On Sunday 12 November 2006 21:40, Jesús Guerrero wrote:
  I never trusted prelink. So, I dont trust it to un-prelink either.
 
  The best way to make sure your binaries are not altered by 3rd party
  tools is this:
 
  emerge -euD world

 This is slightly amusing. Remerging every package while prelink is still
 installed will use prelink again... 

Only if PRELINKING in /etc/conf.d/prelink is set to yes. I prefer to do my 
prelinking myself, so I set it to no - and emerge keeps its hand off 
prelink.

Uwe

-- 
Mark Twain: I rather decline two drinks than a German adjective.
http://www.SysEx.com.na
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Remove prelink and purge prelinked exec

2006-11-13 Thread Bo Ørsted Andresen
On Monday 13 November 2006 14:22, Uwe Thiem wrote:
 On 13 November 2006 14:44, Bo Ørsted Andresen wrote:
  On Sunday 12 November 2006 21:40, Jesús Guerrero wrote:
   I never trusted prelink. So, I dont trust it to un-prelink either.
  
   The best way to make sure your binaries are not altered by 3rd party
   tools is this:
  
   emerge -euD world
 
  This is slightly amusing. Remerging every package while prelink is still
  installed will use prelink again...

 Only if PRELINKING in /etc/conf.d/prelink is set to yes. I prefer to do
 my prelinking myself, so I set it to no - and emerge keeps its hand off
 prelink.

Yes, I missed that. Portage just adds to the list of locations 
in /etc/prelink.conf that should be prelinked if PRELINKING is set to yes. 
And during unmerge is runs prelink --undo as already mentioned. So if 
PRELINKING is set to yes then setting it to no is actually all that is 
required:

# head -n 4 /etc/conf.d/prelink
# Set this to no to disable prelinking altogether
# (if you change this from yes to no prelink -ua
# will be run next night to undo prelinking)
PRELINKING=yes

And if it is set to no then `prelink -ua` is sufficient to undo manual 
prelinking.

-- 
Bo Andresen


pgplBmKJQkKJx.pgp
Description: PGP signature


Re: [gentoo-user] Remove prelink and purge prelinked exec

2006-11-13 Thread Jesús Guerrero
El Mon, 13 Nov 2006 15:22:25 +0200
Uwe Thiem [EMAIL PROTECTED] escribió:

 On 13 November 2006 14:44, Bo Ørsted Andresen wrote:
  On Sunday 12 November 2006 21:40, Jesús Guerrero wrote:
   I never trusted prelink. So, I dont trust it to un-prelink either.
  
   The best way to make sure your binaries are not altered by 3rd
   party tools is this:
  
   emerge -euD world
 
  This is slightly amusing. Remerging every package while prelink is
  still installed will use prelink again... 
 
 Only if PRELINKING in /etc/conf.d/prelink is set to yes. I prefer
 to do my prelinking myself, so I set it to no - and emerge keeps
 its hand off prelink.
 
 Uwe
 

Thank you for pointing that out. 

Small detail that I bypassed. :P

Jesús.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Remove prelink and purge prelinked exec

2006-11-12 Thread Jesús Guerrero
El Domingo, 12 de Noviembre de 2006 20:58, Marco Calviani escribió:
 Hi list,
i would like to remove prelink and put the system to the state it
 has before the prelink procedure. I've read that a

 # prelink -ua

 can do the job but i would have some suggestions from you all. It is
 enough to behave like this?

 Regards,
 mc

I never trusted prelink. So, I dont trust it to un-prelink either. 

The best way to make sure your binaries are not altered by 3rd party tools is 
this:

emerge -euD world

Regards, Jesús.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Remove prelink and purge prelinked exec

2006-11-12 Thread Marco Calviani

Hi,


emerge -euD world


but: is this going to recompile everything (e option) or only those
that needs upgrade?

Regards,
mc
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Remove prelink and purge prelinked exec

2006-11-12 Thread Uwe Thiem
On 12 November 2006 22:40, Jesús Guerrero wrote:

 I never trusted prelink. So, I dont trust it to un-prelink either.

Just out of curiosity: Why? As in it doesn't do its job or as in it makes 
the system unstable?

My whole system is prelinked and it is very stable. Startup times of C++ 
applications are shorter.


 The best way to make sure your binaries are not altered by 3rd party tools
 is this:

 emerge -euD world

Probably right.

Uwe

-- 
Mark Twain: I rather decline two drinks than a German adjective.
http://www.SysEx.com.na
-- 
gentoo-user@gentoo.org mailing list