[arch-general] mkpkg : A new tool to auto rebuild packages when makedepends have updated

Genes Lists lists at sapience.com
Sat Sep 3 13:10:35 UTC 2022


When building packages (makepkg + PKGBUILD), It would be useful if there 
was a way to easily rebuild the package whenever a make dependency is 
updated. One can do this manually of course, by bumping the pkgrel and 
rebuilding.

To make it easier I built a tool to do that for me. For example:

When a tool chain used to build a package is updated, it's good practice 
to rebuild those which use that tool chain.  For example, when gcc, 
cargo, binutils et al are updated packages using those tools should also 
be updated.

While static linked libraries surely don't demand a rebuild to function, 
because the prior, older library is part of the binary itself, it's 
still a good idea to rebuild it. This will pick up fixes, including 
security related ones, as well as improvements.  Of course, it's always 
sensible to confirm that the application properly builds and works with
the newer tool or library.

I've made the code available should it be useful to others.

   https://github.com/gene-git/Arch-mkpkg

best

gene



More information about the arch-general mailing list