this post was submitted on 11 Feb 2024
0 points (NaN% liked)

Arch Linux

7581 readers
1 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS
 

There's a few packages that I use that I have created personal patches for. When one of these packages gets updated I need to manually change the PKGBUILD to the new version, SHA, etc. Is there any way to have a local patch applied to a package every time a new version of the package is release?

top 2 comments
sorted by: hot top controversial new old
[โ€“] EddyBot@feddit.de 0 points 7 months ago (1 children)

this task is easy on gentoo but hard anywhere else
in the past I checked package updates via nvchecker, grabed the latest PKGBUILD via ABS, applied the patch, compiled the package and sent it to my custom repository
if you add the repository higher in your pacman.conf it will grab it from that first

but this a huge pita, even going through the route of maintaining an AUR package is simpler

[โ€“] Laser@feddit.de 0 points 7 months ago

this task is easy on gentoo but hard anywhere else

Not true, it's also doable on NixOS: https://nixos.wiki/wiki/Overlays#Adding_patches