[opensuse-packaging] Trouble with %{_sharedstatedir} macros

This macro resolve correctly on TW and Leap 15 to /var/lib but on 42.x and Some SLE12 it point to /usr/com ... Bug ? -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch Bareos Partner, openSUSE Member, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On Thursday 2018-02-01 14:16, Bruno Friedmann wrote:
This macro resolve correctly on TW and Leap 15 to /var/lib
but on 42.x and Some SLE12 it point to /usr/com ...
Bug ?
No, that's actually what GNU defaults to. /var/lib is localstatedir. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On jeudi, 1 février 2018 18.47:07 h CET Jan Engelhardt wrote:
On Thursday 2018-02-01 14:16, Bruno Friedmann wrote:
This macro resolve correctly on TW and Leap 15 to /var/lib
but on 42.x and Some SLE12 it point to /usr/com ...
Bug ?
No, that's actually what GNU defaults to. /var/lib is localstatedir.
Hi Jan, but then is %_localstatedir is /var/lib on Leap 42x/SLE12 it resolve to /var on TW so nothing is solving my search of use a single rpm macros for all, no ? -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch Bareos Partner, openSUSE Member, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On Sun, Feb 4, 2018 at 12:24 PM, Bruno Friedmann <bruno@ioda-net.ch> wrote:
On jeudi, 1 février 2018 18.47:07 h CET Jan Engelhardt wrote:
On Thursday 2018-02-01 14:16, Bruno Friedmann wrote:
This macro resolve correctly on TW and Leap 15 to /var/lib
but on 42.x and Some SLE12 it point to /usr/com ...
Bug ?
No, that's actually what GNU defaults to. /var/lib is localstatedir.
Hi Jan, but then is %_localstatedir is /var/lib on Leap 42x/SLE12 it resolve to /var on TW so nothing is solving my search of use a single rpm macros for all, no ?
%_localstatedir is supposed to be /var. %_sharedstatedir had historically be incorrectly defined as /usr/com. I fixed this in Factory last July, and that fix will make its way into SLE/OSL 15. For older releases, you'll need to redefine %_sharedstatedir, like so: %if 0%{?suse_version} && 0%{?suse_version} < 1500 %global _sharedstatedir %{_localstatedir}/lib %endif It is already correctly defined in RH/Fedora and Mageia (the other major RPM-based Linux distributions). -- 真実はいつも一つ!/ Always, there's only one truth! -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Bruno Friedmann
-
Jan Engelhardt
-
Neal Gompa