[opensuse-packaging] /usr/etc move: new rpm variable?
Hi, I think for the /usr/etc move of distribution provided configuration files, we should introduce a RPM variable. Any suggestions for a name? My suggestions would be: %_distro_sysconfdir %_usr_sysconfdir %_usretc Any other ideas? Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Felix Imendoerffer, Mary Higgins, Sri Rasiah, HRB 21284 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Wed, Aug 21, 2019 at 9:35 AM, Thorsten Kukuk <kukuk@suse.de> wrote:
Hi,
I think for the /usr/etc move of distribution provided configuration files, we should introduce a RPM variable.
Any suggestions for a name?
My suggestions would be:
%_distro_sysconfdir %_usr_sysconfdir %_usretc
%_distconfdir (for distributor configuration) in tandem with %_sysconfdir (system configuration) sounds a little easier to remember. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Wed, Aug 21, Stasiek Michalski wrote:
On Wed, Aug 21, 2019 at 9:35 AM, Thorsten Kukuk <kukuk@suse.de> wrote:
Hi,
I think for the /usr/etc move of distribution provided configuration files, we should introduce a RPM variable.
Any suggestions for a name?
My suggestions would be:
%_distro_sysconfdir %_usr_sysconfdir %_usretc
%_distconfdir (for distributor configuration) in tandem with %_sysconfdir (system configuration) sounds a little easier to remember.
Thanks for that suggestion, I really like that. Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Felix Imendoerffer, Mary Higgins, Sri Rasiah, HRB 21284 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 8/21/19 9:35 AM, Thorsten Kukuk wrote:
I think for the /usr/etc move of distribution provided configuration files, we should introduce a RPM variable. [..] My suggestions would be: %_distro_sysconfdir %_usr_sysconfdir %_usretc
Keep it short. So from the above suggestions I'd choose %_usretc. Ciao, Michael.
On Wed, Aug 21, Michael Ströder wrote:
On 8/21/19 9:35 AM, Thorsten Kukuk wrote:
I think for the /usr/etc move of distribution provided configuration files, we should introduce a RPM variable. [..] My suggestions would be: %_distro_sysconfdir %_usr_sysconfdir %_usretc
Keep it short. So from the above suggestions I'd choose %_usretc.
%_usretc implies already the result and would be confusing if somebody maps that to /usr/share/defaults or so. That's why I like the _distconfdir suggstion. Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Felix Imendoerffer, Mary Higgins, Sri Rasiah, HRB 21284 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 8/21/19 5:28 PM, Thorsten Kukuk wrote:
On Wed, Aug 21, Michael Ströder wrote:
On 8/21/19 9:35 AM, Thorsten Kukuk wrote:
I think for the /usr/etc move of distribution provided configuration files, we should introduce a RPM variable. [..] My suggestions would be: %_distro_sysconfdir %_usr_sysconfdir %_usretc
Keep it short. So from the above suggestions I'd choose %_usretc.
%_usretc implies already the result and would be confusing if somebody maps that to /usr/share/defaults or so.
That's why I like the _distconfdir suggstion.
I tend to agree here, also because if spec files are being shared between other distro's such as fedora having a %_usrect that points to /usr/lib on some distro's would be rather confusing. Where as _distconfdir will generally make sense. -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thursday 2019-08-22 03:12, Simon Lees wrote:
%_usretc implies already the result and would be confusing if somebody maps that to /usr/share/defaults or so.
That's why I like the _distconfdir suggstion.
I tend to agree here, also [...]
because if spec files are being shared between other distro's such as fedora
As if that's going to happen on the large scale anytime soon... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 8/22/19 3:46 PM, Jan Engelhardt wrote:
On Thursday 2019-08-22 03:12, Simon Lees wrote:
%_usretc implies already the result and would be confusing if somebody maps that to /usr/share/defaults or so.
That's why I like the _distconfdir suggstion.
I tend to agree here, also [...]
because if spec files are being shared between other distro's such as fedora
As if that's going to happen on the large scale anytime soon...
It happens on a large enough scale to care, maybe not officially but there are a number of devel projects on obs also building for fedora that have fedora users. -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Wednesday 2019-08-21 09:35, Thorsten Kukuk wrote:
Hi,
I think for the /usr/etc move of distribution provided configuration files, we should introduce a RPM variable.
Any suggestions for a name?
My suggestions would be:
%_distro_sysconfdir %_usr_sysconfdir %_usretc
Any other ideas?
Given /usr/etc is becoming a thing now, would it not be time to change the definition of %_sysconfdir to %_prefix/etc so it matches up with %_bindir et al? Yes, that is sort of a larger task, but I am looking at the larger picture here. Then, when something wants to use /etc, it can be written verbatim, like we do with /sbin. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Wed, Aug 21, Jan Engelhardt wrote:
Given /usr/etc is becoming a thing now, would it not be time to change the definition of %_sysconfdir to %_prefix/etc so it matches up with %_bindir et al? Yes, that is sort of a larger task, but I am looking at the larger picture here.
If you read the official documentation of sysconfdir (read-only configuration files never modified), then yes, sysconfdir should be /usr/etc and the current usage with /etc is wrong. But I'm afraid: we would break and need to fix the whole world, there are far too many out there using it. And we would not be able to adjust one package after the other, instead we would need to adjust everything at once ... Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Felix Imendoerffer, Mary Higgins, Sri Rasiah, HRB 21284 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Thorsten Kukuk schrieb:
On Wed, Aug 21, Jan Engelhardt wrote:
Given /usr/etc is becoming a thing now, would it not be time to change the definition of %_sysconfdir to %_prefix/etc so it matches up with %_bindir et al? Yes, that is sort of a larger task, but I am looking at the larger picture here.
If you read the official documentation of sysconfdir (read-only configuration files never modified), then yes, sysconfdir should be /usr/etc and the current usage with /etc is wrong.
But I'm afraid: we would break and need to fix the whole world, there are far too many out there using it. And we would not be able to adjust one package after the other, instead we would need to adjust everything at once ...
I guess if we really wanted to go for a clean solution for the future we could think of some macro magic to flag all packages legacy initially and then unflag the ones that are adjusted. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.com/ SUSE Linux GmbH, GF: Felix Imendörffer, Mary Higgins, Sri Rasiah, HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Wednesday 2019-08-21 10:18, Ludwig Nussel wrote:
But I'm afraid: we would break and need to fix the whole world, there are far too many out there using it. And we would not be able to adjust one package after the other, instead we would need to adjust everything at once ...
I guess if we really wanted to go for a clean solution for the future we could think of some macro magic to flag all packages legacy initially and then unflag the ones that are adjusted.
Sounds an awful lot like (the file) debian/compat ;-) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (6)
-
Jan Engelhardt
-
Ludwig Nussel
-
Michael Ströder
-
Simon Lees
-
Stasiek Michalski
-
Thorsten Kukuk