On Sun, Feb 4, 2018 at 12:24 PM, Bruno Friedmann
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