You are not logged in.

#1 2008-12-07 15:08:33

presario
Member
From: Tashkent, Uzbekistan
Registered: 2008-12-07
Posts: 57
Website

[SOLVED] 1. How do I recompile an already installed package...

... the Arch way?

2. Does pacman cache store only binaries, or sources too? I guess... only binaries

3. What happens if I download a tarball, say for ppp, do:

./configure
make
make install

Does it override the old package?

4. If not, how about if I first remove it using pacman and then compile/install from source?

5. Will I be able to upgrade this package in the future?

Thanks everyone who responded!

Last edited by presario (2008-12-07 15:56:34)


Running ArchLinux on Compaq Presario v2000

Offline

#2 2008-12-07 15:16:35

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: [SOLVED] 1. How do I recompile an already installed package...

Required wiki reading:
http://wiki.archlinux.org/index.php/ABS
http://wiki.archlinux.org/index.php/Makepkg

should get you well on your way.

Offline

#3 2008-12-07 15:16:59

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: [SOLVED] 1. How do I recompile an already installed package...

1. cd /var/abs/name_of_repository/pkgpath..; 'makepkg' in the directrory of the package unless you want to change something with the package in which case you edit the PKGBUILD

2. only binaries. stores them in /var/cache/pacman/pkg

3. no, but the files of the old package will obviously be overrided

4. yes..

5. yes but you'll have some files left over unless they are overwritten by the files in the new package

a "package" is really just an archive, you know, like a zip file? try opening a package in your favorite package manager and look at its contents.


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

#4 2008-12-07 15:19:26

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: [SOLVED] 1. How do I recompile an already installed package...

You might want to look into the Arch Build System (ABS)

If you were to do those three steps you would overwrite the files the package installed, and it will cause you a whole lot of trouble!


Website - Blog - arch-home
Arch User since March 2005

Offline

#5 2008-12-07 15:25:56

presario
Member
From: Tashkent, Uzbekistan
Registered: 2008-12-07
Posts: 57
Website

Re: [SOLVED] 1. How do I recompile an already installed package...

To be more specific I just need to uncomment the line:

#CBCP=y

in ppp-2.4.4/pppd/Makefile.linux (after running ./configure) for ppp.

Because when I run:

pppd dryrun callback 0

It gives me:

Unrecognized option 'callback'

sad

Is is possible by modifying PKGBUILD?


Running ArchLinux on Compaq Presario v2000

Offline

#6 2008-12-07 15:46:02

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: [SOLVED] 1. How do I recompile an already installed package...

just run "abs" (install the abs package if you do not have it) and then:

cd /var/abs/local
cp -a /var/abs/core/ppp
cd ppp

Then edit the PKGBUILD.  You will probably want the line:

sed -i "s:^#CBCP=y:CBCP=y:" pppd/Makefile.linux

then, just run makepkg.  A nice new package will be built for you which you can install with "pacman -U <pkg>".  You can stop it being upgraded when a new version hits the repos by adding it to IgnorePkg in /etc/pacman.conf.  Use "man pacman.conf" for more info.

Offline

Board footer

Powered by FluxBB