You are not logged in.

#1 2025-04-22 13:01:06

distag
Member
Registered: 2021-04-30
Posts: 2

Package post-update rebuild to patch package configuration

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

#2 2025-04-22 13:44:24

Nikolai5
Member
From: North West, England, UK
Registered: 2024-01-27
Posts: 267

Re: Package post-update rebuild to patch package configuration

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

#3 2025-04-22 14:45:06

gromit
Administrator
From: Germany
Registered: 2024-02-10
Posts: 1,503
Website

Re: Package post-update rebuild to patch package configuration

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

Board footer

Powered by FluxBB