You are not logged in.

#1 2008-04-25 19:03:42

fiod
Member
Registered: 2007-04-02
Posts: 205

Recompile installed packages?

Hey,

I am running arch on a Core Duo laptop.

Suppose I got a few hours to kill smile and want to recompile all my installed packages
to my CPU. I got makepkg.conf all set up and ready.

Is there a way (using ABS maybe?) to recompile and install all my installed packages automatically?
Does ABS provide such an option?

thanks
fiod

Last edited by fiod (2008-04-25 19:04:37)

Offline

#2 2008-04-25 19:06:30

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Recompile installed packages?

the abs package provides makeworld, which will build an entire repo for you at once.  It currently does not have the feature to build only the packages currently installed on your system - maybe file a feature request for it.  That's not a bad idea.  smile

Offline

#3 2008-04-25 19:15:47

fiod
Member
Registered: 2007-04-02
Posts: 205

Re: Recompile installed packages?

got ya.

thanks

Offline

#4 2008-04-26 13:29:01

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Recompile installed packages?

fiod wrote:

I am running arch on a Core Duo laptop.

Suppose I got a few hours to kill smile and want to recompile all my installed packages
to my CPU. I got makepkg.conf all set up and ready.

What for?


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#5 2008-04-26 13:31:05

fiod
Member
Registered: 2007-04-02
Posts: 205

Re: Recompile installed packages?

Recompile all of my packages to use my processor specific flags (same as when installing packages with Gentoo).

Arch is compiled to i686, and a Core Duo processor can do a bit more..

Offline

#6 2008-04-26 13:36:47

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: Recompile installed packages?

There is a general opinion around here that the additional CPU specific compiler flags gain you very little...  If you have lots of free time you could do some benchmarks.  I tried optimizing a few packages while back and couldn't notice a difference with some simple tests.

Offline

#7 2008-04-26 13:41:46

fiod
Member
Registered: 2007-04-02
Posts: 205

Re: Recompile installed packages?

Did you try doing the same to the kernel? Didn't notice a difference there too?

Offline

#8 2008-04-26 13:56:42

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: Recompile installed packages?

Most of my tests were done on an old LFS box.  From memory, I concluded that compiling the kernel and toolchain (given I was building everything) with lots of optimizations was a good idea (though I never use -O3 because of some breakages - may not be the case anymore).  I feel that it is just not worth going any further that that in an already semi optimized binary distribution...  Maybe some of the multimedia applications (mplayer if you are brave.., gimp) if you use them frequently.  In essence, rebuilding you whole system is almost definitely not worth it.

Offline

#9 2008-04-26 16:30:27

stylopath
Member
Registered: 2007-07-26
Posts: 112

Re: Recompile installed packages?

well, i found out that recompiling udev with custom compiler flags can speed up udev processing time at boot a lot.
With the Stock-package it took about 5 seconds, with my own-compiled less than 3. smile

Offline

#10 2008-05-01 12:48:27

Hohoho
Member
Registered: 2007-06-23
Posts: 222

Re: Recompile installed packages?

stylopath wrote:

well, i found out that recompiling udev with custom compiler flags can speed up udev processing time at boot a lot.
With the Stock-package it took about 5 seconds, with my own-compiled less than 3. smile

I just had to check that, had 6s udev uevents at boot times, after recompile with -march=pentium4 -O2 got 5,9s.
Im dissapointed sad

Offline

#11 2008-05-01 16:32:26

Ink-Jet
Member
From: London
Registered: 2008-03-27
Posts: 64
Website

Re: Recompile installed packages?

Re-compiling my udev took off about 2 milliseconds.
Re-compiling the kernel itself seemed to make things faster, mind.

Offline

Board footer

Powered by FluxBB