On Sat, Sep 3, 2022 at 2:10 PM Genes Lists via arch-general < arch-general@lists.archlinux.org> wrote:
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
Excellent enhancement to the existing makepkg tool. -- mike c