You are not logged in.
Hi,
When I update my system using yaourt, I find one cannot edit the PKGBUILD file if the package is in official repository.
Maybe I can build the package manually like this ABS wiki, but if I update the system using yaourt -Syua, my own PKGBUILD will be overriden.
And I didn't find the manual metion this.
So I wrote a shell script to help myself.
But I also didn't find how to specify PKGBUILD when using makepkg. So I had to copy my own PKGBUILD into the directory to override the original PKGBUILD.
I think there must be some good methods.
Thx in advance;)
// edit
if the package updates --> if I update the system using yaourt -Syua,
Last edited by JasonZhang (2013-05-29 09:33:11)
Offline
If I understand you correctly, you can add a field to the official PKGBUILDs called 'modified' and then in pacman.conf add that group to the IgnoreGroup array.
Your customizations wil not get overwritten then.
As for yaourt not letting you edit PKGBUILDs from the official repos, use pacman--that is its job.
Offline
But if I add the package into the IgnoreGroup, can the package be updated?
Offline
Of course; when you update your ABS PKGBUILD and install with makepkg, the package will get updated. It's just that pacman won't do it automatically.
Offline
Emm, so the user still has to build the package himself if the package is in official repos?
Can pacman update the package (which we modified the PKGBUILD and build with ABS) without overwritten the user's PKGBUILD?
Last edited by JasonZhang (2013-05-30 06:19:55)
Offline
You have to build the package yourself if you want to modify it...
Offline
Emm, so the user still has to build the package himself if the package is in official repos?
Can pacman update the package (which we modified the PKGBUILD and build with ABS) without overwritten the user's PKGBUILD?
No, pacman can't patch the official PKGBUILD and whatever was modified by the user, but have a look at srcpac.
Offline
JasonZhang wrote:Emm, so the user still has to build the package himself if the package is in official repos?
Can pacman update the package (which we modified the PKGBUILD and build with ABS) without overwritten the user's PKGBUILD?No, pacman can't patch the official PKGBUILD and whatever was modified by the user, but have a look at srcpac.
En, maybe srcpac can do this though I still didn't make it work.(It cannot find PKGBUILD in /var/abs)
Anyway, thank you all very much.
Last edited by JasonZhang (2013-05-29 09:33:50)
Offline
En, maybe srcpac can do this though I still didn't make it work.(It cannot find PKGBUILD in /var/abs)
Please tell us what you did, post the commands you run and their output.
Offline
$ srcpac --version
srcpac v0.10.9
$ cat /etc/srcpac.d/vim
s#--disable-pythoninterp#--enable-pythoninterp#
$ sudo srcpac -So vim
// the pager less prints out nothing
sed: can't read /var/abs//vim/vim/PKGBUILD: No such file or directory
I followed the manual, but it didn't work.
Last edited by JasonZhang (2013-05-29 10:01:36)
Offline
I get the same error, the path is wrong:
sed: can't read /var/abs//vim/vim/PKGBUILD: No such file or directory
The correct one is /var/abs/extra/vim/PKGBUILD.
I also found https://bugs.archlinux.org/task/26573 and it looks like srcpac is practically unmaintained.
Offline
I get the same error, the path is wrong:
sed: can't read /var/abs//vim/vim/PKGBUILD: No such file or directory
The correct one is /var/abs/extra/vim/PKGBUILD.
I also found https://bugs.archlinux.org/task/26573 and it looks like srcpac is practically unmaintained.
Thanks.
Maybe it should be removed from extra:)
Offline