You are not logged in.
Hello,
How can I automatically rebuild a package during its update on my machine to patch its build configuration?
For example with the gdb package: when gdb is updated, I would like that pacman[, yay or others] detect the gdb update and rebuild[ and reinstall] automatically the gdb package with the adding `--enable-targets=all` in the build command line.
Thank you in advance.
PS: the question is not only about the above gdb example case, I would like a solution for any archlinux package.
Last edited by distag (2025-04-22 13:02:29)
Offline
I could be misunderstanding what you're asking for, but there is this:
https://man.archlinux.org/man/rebuild-detector.7.en
You can run it manually and I believe it also installs a pacman hook to run post update/upgrade.
Desktop: Ryzen 7 1800X | AMD 7800XT | KDE Plasma
Offline
Hey @distag, the flag is already part of the package: https://gitlab.archlinux.org/archlinux/ … =heads#L50
But it depends a bit, this is of course easier for interpreted languages where you can actually just patch the source via a hook ..
Offline