You are not logged in.
In a nutshell, how does pacman handle a user-created package of the same name as one in the repo? I ask because I'd like to customize the build options on a package that's in the official repo. Is it best to simply change the name of my package or is pacman smart enough to know that package xyz installed locally is not to be upgraded to package xyz from the repo?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Change the name, and add conflicts and provides lines. For instance I have a package called evince-gtk that provides evince. So:
pkgname=evince-gtk
provides=('evince')
conflicts=('evince')
If the package is version sensitive, you can change the provides line to something like:
provides=("evince=2.26.0")
Offline
What I typically do is bump the release number to 99, such as foopackage-1.0-99. By doing it this way pacman won't upgrade the package unless a new upstream release is made, such as 1.1 in the previous example.
thayer williams ~ cinderwick.ca
Offline
What I typically do is bump the release number to 99, such as foopackage-1.0-99. By doing it this way pacman won't upgrade the package unless a new upstream release is made, such as 1.1 in the previous example.
Similarly, if you build a package locally to fix some packaging bug, and you expect that you'll be interested in any updates at all, I bump the release number by 0.1 so it's bigger than the version I'm fixing but smaller than whatever the Arch maintainer will supply next.
Offline
All that needs to be changed is pkgver or pkgrel. Pacman will only try to install from the repos if the version in repo is higher than local.
[git] | [AURpkgs] | [arch-games]
Offline
Thanks guys... I just appended an 0.1 to the version number.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
I'll add that if there is something you want changed about the package (packaging bug, feature addition) it is probably worth requesting it on the bug tracker.
Offline
@Allan - it's more of a personal customization with pretty limited appeal I think.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Mine did look a bit more generally useful, so I had bug-reported them a couple of weeks ago. (And now, I've provided fixes, and nominated them for bug day as being trivial fixes...)
Offline