You are not logged in.

#1 2008-05-21 19:45:12

Cimi
Member
From: Padova, Italy
Registered: 2006-01-16
Posts: 301
Website

New pacman utility, rebuild and optimize packages from source

I was thinking about recompiling some packages for my slow laptop, just like gentoo but inside archlinux smile

I've created a small but powerful script, to automatically recompile the whole system (or what you like) preserving the correct explicit/deps installation of the original packages.

This is quite useful once you have edited /etc/makepkg.conf with some customized CFLAGS

Welcome PacBuilder!

pacbuilder.png

Some screenshots:
New:
screenshot5kh0.png
Old:
screenshot4es8.png

http://code.google.com/p/pacbuilder

Last edited by Cimi (2008-05-29 21:50:39)


Murrine Creator - GNOME Developer

Offline

#2 2008-05-21 19:55:14

Mikko777
Member
From: Suomi, Finland
Registered: 2006-10-30
Posts: 837

Re: New pacman utility, rebuild and optimize packages from source

Thanks! Just what I was looking for!

Cimi wrote:

Now I need a name... some ideas?

ABStimizer2000 pro

roll

Edit: You forgot the download link! tongue

Last edited by Mikko777 (2008-05-21 19:56:33)

Offline

#3 2008-05-21 19:57:56

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

Re: New pacman utility, rebuild and optimize packages from source

I was considering building this functionality into makeworld, but being a separate script really makes sense.  Great work

Plus, the output looks awesome.   I'd suggest a --verbose option that tees the makepkg output to the console - some people like seeing compile info fly by. big_smile

Offline

#4 2008-05-21 21:27:58

Martyr
Member
From: Out there
Registered: 2006-10-04
Posts: 103
Website

Re: New pacman utility, rebuild and optimize packages from source

Very useful!

Name suggestion: Pacmake

Offline

#5 2008-05-21 21:40:32

Cimi
Member
From: Padova, Italy
Registered: 2006-01-16
Posts: 301
Website

Re: New pacman utility, rebuild and optimize packages from source

pacbuilder, pacbuild?

Last edited by Cimi (2008-05-21 21:41:00)


Murrine Creator - GNOME Developer

Offline

#6 2008-05-21 22:44:09

KyKo
Member
Registered: 2007-06-15
Posts: 26

Re: New pacman utility, rebuild and optimize packages from source

This looks really awesome.

Offline

#7 2008-05-21 23:04:51

Sp4rkR4t
Member
From: Southampton
Registered: 2008-05-06
Posts: 110

Re: New pacman utility, rebuild and optimize packages from source

This sounds great, where can we get it from?

Offline

#8 2008-05-21 23:20:54

Cimi
Member
From: Padova, Italy
Registered: 2006-01-16
Posts: 301
Website

Re: New pacman utility, rebuild and optimize packages from source

Here there's the the first scratch:
http://code.google.com/p/pacbuilder/sou … pacbuilder
(Direct link to the raw file) http://pacbuilder.googlecode.com/svn/trunk/pacbuilder

It depends on yaourt (please grab the git version):

git clone http://projects.archlinux.fr/yaourt.git yaourt
cd yaourt/test
makepkg -i

But if someone would like to write a pkgbuild grabber... should be easy


Murrine Creator - GNOME Developer

Offline

#9 2008-05-22 00:10:36

Sp4rkR4t
Member
From: Southampton
Registered: 2008-05-06
Posts: 110

Re: New pacman utility, rebuild and optimize packages from source

Excellent work Cimi, running it now.

Offline

#10 2008-05-22 01:33:37

droog
Member
Registered: 2004-11-18
Posts: 877

Re: New pacman utility, rebuild and optimize packages from source

pacrice or pacricer?

Offline

#11 2008-05-22 02:48:45

Cimi
Member
From: Padova, Italy
Registered: 2006-01-16
Posts: 301
Website

Re: New pacman utility, rebuild and optimize packages from source

I've added resume support, still under testing.
You should be able now to switch-off your computer and resuming the previous build.


Murrine Creator - GNOME Developer

Offline

#12 2008-05-22 04:43:59

Anonymo
Member
Registered: 2005-04-07
Posts: 421
Website

Re: New pacman utility, rebuild and optimize packages from source

Portage

Offline

#13 2008-05-22 09:46:39

Flying Saxman
Member
From: Northern Hesse
Registered: 2007-02-26
Posts: 252

Re: New pacman utility, rebuild and optimize packages from source

Just out of curiosity (because I really don't know!): What benefit does one get, if one uses this script?

Offline

#14 2008-05-22 10:06:32

Cimi
Member
From: Padova, Italy
Registered: 2006-01-16
Posts: 301
Website

Re: New pacman utility, rebuild and optimize packages from source

Flying Saxman wrote:

Just out of curiosity (because I really don't know!): What benefit does one get, if one uses this script?

Basically, if you change your compiler flags under /etc/makepkg.conf, you will build the new packages with some architecture optimizations.
This should have a small benefit, depending of course on the CPU.
I'm recompiling my system for my pentium4


Murrine Creator - GNOME Developer

Offline

#15 2008-05-22 10:06:40

Sp4rkR4t
Member
From: Southampton
Registered: 2008-05-06
Posts: 110

Re: New pacman utility, rebuild and optimize packages from source

You get to rebuild your system from source with customized CFLAGS, etc. It can help performance.

Offline

#16 2008-05-22 10:55:32

Cimi
Member
From: Padova, Italy
Registered: 2006-01-16
Posts: 301
Website

Re: New pacman utility, rebuild and optimize packages from source

if someone wants to contribute, I can give him an access to the googlecode project


Murrine Creator - GNOME Developer

Offline

#17 2008-05-22 11:16:20

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: New pacman utility, rebuild and optimize packages from source

Wow, nice idea. I'll try this at some point - and this will make me delay trying Gentoo even more tongue

Offline

#18 2008-05-22 11:51:51

Cimi
Member
From: Padova, Italy
Registered: 2006-01-16
Posts: 301
Website

Re: New pacman utility, rebuild and optimize packages from source

Now you can edit pkgbuilds!!!
grab the latest version and add --edit

Last edited by Cimi (2008-05-22 11:52:48)


Murrine Creator - GNOME Developer

Offline

#19 2008-05-22 12:08:13

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: New pacman utility, rebuild and optimize packages from source

Pacman-contrib would be a cosy place for it. Ever thought of sumbitting upstream? smile


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#20 2008-05-22 12:15:18

dhave
Arch Linux f@h Team Member
From: Outside the matrix.
Registered: 2005-05-15
Posts: 1,110

Re: New pacman utility, rebuild and optimize packages from source

I live a quiet life and am not exposed to much danger besides too much caffeine, too many calories or perhaps cell-phone radiation. So when something like this comes around, I get really excited. The latent risk taker in me really wants to try this out.

But first, let me count the cost. What are the chances that I would completely bork my Arch system if I do a core rebuild using pacbuilder?

Does it look pretty safe? Maybe I'm a risk taker, but, then, I don't want to have to risk everything ....

Regardless, thanks for the work on this, Cimi.


Donate to Arch!

Tired? There's a nap for that. --anonymous

Offline

#21 2008-05-22 12:15:54

Cimi
Member
From: Padova, Italy
Registered: 2006-01-16
Posts: 301
Website

Re: New pacman utility, rebuild and optimize packages from source

dolby wrote:

Pacman-contrib would be a cosy place for it. Ever thought of sumbitting upstream? smile

the problem is that actually it depends on yaourt.
yaourt is used to grab PKGBUILD, just to grabbing from arch SVN.
I haven't the time to rewrite a grabbing tool, but should be easy to replace yaourt with the new grabbing tool, if someone will write it.

@Cerebral, do you know how I can grab a package from arch's svn?


Murrine Creator - GNOME Developer

Offline

#22 2008-05-22 12:18:43

Cimi
Member
From: Padova, Italy
Registered: 2006-01-16
Posts: 301
Website

Re: New pacman utility, rebuild and optimize packages from source

dhave wrote:

I live a quiet life and am not exposed to much danger besides too much caffeine, too many calories or perhaps cell-phone radiation. So when something like this comes around, I get really excited. The latent risk taker in me really wants to try this out.

But first, let me count the cost. What are the chances that I would completely bork my Arch system if I do a core rebuild using pacbuilder?

Does it look pretty safe? Maybe I'm a risk taker, but, then, I don't want to have to risk everything ....

Regardless, thanks for the work on this, Cimi.

if you choose safe cflags: http://wiki.archlinux.org/index.php/Safe_Cflags then you shouldn't broke anything.
If an error occurs and a package can't be installed due to a deps etc etc, then it won't be installed by this script.

Last edited by Cimi (2008-05-22 12:20:19)


Murrine Creator - GNOME Developer

Offline

#23 2008-05-22 12:25:25

Cimi
Member
From: Padova, Italy
Registered: 2006-01-16
Posts: 301
Website

Re: New pacman utility, rebuild and optimize packages from source

Cerebral wrote:

I was considering building this functionality into makeworld, but being a separate script really makes sense.  Great work

Plus, the output looks awesome.   I'd suggest a --verbose option that tees the makepkg output to the console - some people like seeing compile info fly by. big_smile

I forgot to say we now have a eye-candy output with --verbose smile


Murrine Creator - GNOME Developer

Offline

#24 2008-05-22 12:27:15

aRcHaTe
Member
Registered: 2006-10-24
Posts: 644

Re: New pacman utility, rebuild and optimize packages from source

this is aweosme finally a rebuild world that works...ive been trying to use makeworld for ages and doesnt work as it should...hopefully the devs could use ur script and merge it on current makeworld...great work


Its a sick world we live in....

Offline

#25 2008-05-22 12:28:40

dhave
Arch Linux f@h Team Member
From: Outside the matrix.
Registered: 2005-05-15
Posts: 1,110

Re: New pacman utility, rebuild and optimize packages from source

Cimi wrote:

if you choose safe cflags: http://wiki.archlinux.org/index.php/Safe_Cflags then you shouldn't broke anything.
If an error occurs and a package can't be installed due to a deps etc etc, then it won't be installed by this script.

Two further questions:
(1) If a package can't be installed, will my existing package be left intact?
(2) If I make changes in my cflags and do a core rebuild, does this mean that, from now on when new releases appear, I'll need to use pacbuilder to build and install that package (or do a manual build with the same cflags) rather than simply installing the new Arch binary? I'm not sure I'm willing to commit to that if so, since one reason I left Gentoo was to get off the compile treadmill.
Thanks.


Donate to Arch!

Tired? There's a nap for that. --anonymous

Offline

Board footer

Powered by FluxBB