You are not logged in.
Pages: 1
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
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 packages • Zsh and other configs
Offline
Or give your custom package a custom name - sxiv-away or something - and add appropriate provides= and conflicts= lines.
Offline
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
I find ataraxia's solution from Updating packages compiled via ABS works a charm to prevent updates overwriting your packages.
Offline
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
thanks!
Offline
Pages: 1