You are not logged in.

#1 2011-07-01 09:58:48

awayand
Member
Registered: 2009-09-25
Posts: 398

[SOLVED] first real-life working with abs

So I started using abs since I had to configure sxiv by recompiling its source. I copied the sxiv-folder from /var/abs/community/sxiv over to my ~/abs and compiled according to the arch wiki on abs. Now I recently had an update via pacman -Syu which updated my sxiv binary with the non-customized newer binary.

What is the cleanest way to update this binary to reflect my customizations?

a) Do I have to update via

$ sudo abs community/sxiv

, do a diff on config.h from /var/abs/community/sxiv to ~/abs/sxiv, then copy all files from /var/abs/community/sxiv over to ~/abs/sxiv *except* the config.h or is there a way of me for knowing that nothing in the abs tree changed?

b) Do I simply have to cd to my ~/abs/sxiv and

$ makepkg -f

?

How do you handle situations like these?

Last edited by awayand (2011-07-30 04:51:17)

Offline

#2 2011-07-01 10:13:15

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [SOLVED] first real-life working with abs

I think what happened is that the PKGBUILD got bumped up one version and pacman pulled it from the repo overwriting your version.  You can add the pkg to the ignore array in pacman.conf and you'll have to manually watch it to see when that pkg is updated, rebuild it via abs and you're good.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2011-07-01 11:12:59

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

Re: [SOLVED] first real-life working with abs

Or give your custom package a custom name - sxiv-away or something - and add appropriate provides= and conflicts= lines.

Offline

#4 2011-07-01 11:16:26

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] first real-life working with abs

No need to use sudo.
ABSROOT="~/abs" abs repo/package  or use the fancy script that pulls from the svn instead. You can also set up eg git or hg in the dir to easily track and diff any changes. (or again, just use svn)

Last edited by Mr.Elendig (2011-07-01 11:17:47)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2011-07-01 11:19:19

SidK
Member
Registered: 2011-03-03
Posts: 116

Re: [SOLVED] first real-life working with abs

I find ataraxia's solution from Updating packages compiled via ABS works a charm to prevent updates overwriting your packages.

Offline

#6 2011-07-01 15:34:54

chemicalfan
Member
From: United Kingdom
Registered: 2011-05-25
Posts: 58

Re: [SOLVED] first real-life working with abs

graysky wrote:

I think what happened is that the PKGBUILD got bumped up one version and pacman pulled it from the repo overwriting your version.  You can add the pkg to the ignore array in pacman.conf and you'll have to manually watch it to see when that pkg is updated, rebuild it via abs and you're good.

Yep, this is what you want. Add your package (sxiv) to the IgnorePkg field in /etc/pacman.conf (to stop pacman doing it again), then do a "sudo abs", "cp -r /var/abs/community/sxiv ~/abs", then "cd ~/abs/sxiv", then configure it manually (however you do this!) and finally "makepkg -ci"

Last edited by chemicalfan (2011-07-01 15:37:39)

Offline

#7 2011-07-30 04:50:55

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: [SOLVED] first real-life working with abs

thanks!

Offline

Board footer

Powered by FluxBB