You are not logged in.

#1 2007-09-10 11:41:44

onyx
Member
Registered: 2007-08-27
Posts: 7

Compilations with options

Hi,
I have installed a package with pacman, now I want to compile it with different options.
How can I do that?

Offline

#2 2007-09-10 11:47:48

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: Compilations with options

Run abs as root then check for the folder corresponding to your package somewhere in some subfolder in /var/abs/
then copy that folder to your desktop. Inside it is a PKGBUILD file which you can edit to change your options. then cd to the folder on you desktop in a terminal and run makepkg

Last edited by hussam (2007-09-10 11:48:36)

Offline

#3 2007-09-10 11:48:36

FeatherMonkey
Member
Registered: 2007-02-26
Posts: 313

Re: Compilations with options

I'm presuming you mean a package that ABS will find. Plus the build options at ./configure time.

If this is the case, use abs copy the said pkgbuild to your build environment, modify the PKGBUILD to reflect the changes, i.e if a configure flag add it.

Then use abs as normal http://wiki.archlinux.org/index.php/ABS if a non ABS package then you have to create the PKGBUILD first but the same principles apply.

Offline

#4 2007-09-10 14:51:25

onyx
Member
Registered: 2007-08-27
Posts: 7

Re: Compilations with options

OK, it's done, many thanks.
However, what happens when my program is updated?
I had preferred, for example, an aur_user.conf file to list my options for each program I want to cuztomize.

Offline

#5 2007-09-10 15:45:13

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Compilations with options

Have a look at srcpac.

Also, as you are suggesting an 'aur_user.conf' file, allow me to clarify - the data in your abs tree relates to the packages provided by the official Arch repos. The AUR is an Arch project enabling users to share PKGBUILDs they create themselves i.e. 'unofficial' packaging efforts.

Offline

Board footer

Powered by FluxBB