You are not logged in.

#1 2025-12-29 04:07:35

phoenix324
Member
Registered: 2023-08-23
Posts: 104

[Solved] Override value inside OPITONS=() /etc/makepkg.conf.d/*.conf

From the wiki https://wiki.archlinux.org/title/Makepk … es_and_LTO, i have to `OPTIONS=(...!debug !lto...)` but to add those i have copy the whole line which creates a situation where if i do in a drop in file, future defaults won't get applied or if do in /etc/makepkg.conf, i will have to pacdiff everytime the /etc/makepkg.conf gets updated.

Are there any other way to do this where i get new defaults and to override only spedific value.

Last edited by phoenix324 (2025-12-30 10:30:16)

Offline

#2 2025-12-29 10:44:48

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,057

Re: [Solved] Override value inside OPITONS=() /etc/makepkg.conf.d/*.conf

Offline

#3 2025-12-29 11:08:58

phoenix324
Member
Registered: 2023-08-23
Posts: 104

Re: [Solved] Override value inside OPITONS=() /etc/makepkg.conf.d/*.conf

Does removing the value (lto & debug ) from the OPTIONS=( )  enough? Because in docs it saying to add a "!" character directly in front of them.

This will make it easier as i won't have to first delete those values and add them again with "!" prepended.

Last edited by phoenix324 (2025-12-29 11:09:22)

Offline

#4 2025-12-29 15:01:18

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,057

Re: [Solved] Override value inside OPITONS=() /etc/makepkg.conf.d/*.conf

You could just traverse the array and replace the undesired key resp. ultimately add what you want.
The easiest way however would be to build a new array by copying the old elements, skipping the undesired ones and appending yours.

Offline

Board footer

Powered by FluxBB