1
0
forked from pool/util-linux

Accepting request 644909 from home:sbrabec:branches:numlock-b1113188

- Fix runstatedir path (to /run) (boo#1113188#c1).

OBS-URL: https://build.opensuse.org/request/show/644909
OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=382
This commit is contained in:
Marcus Meissner 2018-11-07 07:46:39 +00:00 committed by Git OBS Bridge
parent 7de341a83d
commit 4278302324
6 changed files with 30 additions and 9 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Oct 26 17:24:46 CEST 2018 - sbrabec@suse.com
- Fix runstatedir path (to /run) (boo#1113188#c1).
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Oct 12 14:06:56 CEST 2018 - sbrabec@suse.com Fri Oct 12 14:06:56 CEST 2018 - sbrabec@suse.com

View File

@ -507,15 +507,12 @@ export SUID_LDFLAGS="-pie"
export LDFLAGS="-Wl,-z,relro,-z,now" export LDFLAGS="-Wl,-z,relro,-z,now"
export CFLAGS="%{optflags} -D_GNU_SOURCE" export CFLAGS="%{optflags} -D_GNU_SOURCE"
export CXXFLAGS="%{optflags} -D_GNU_SOURCE" export CXXFLAGS="%{optflags} -D_GNU_SOURCE"
# override default localstatedir to /run
# only used for volatile data
# #
# SUSE now supports only systemd based system. We do not build # SUSE now supports only systemd based system. We do not build
# sysvinit-only versions of UTIL_LINUX_SYSTEMD_SOURCES utilities. # sysvinit-only versions of UTIL_LINUX_SYSTEMD_SOURCES utilities.
AUTOPOINT=true autoreconf -vfi AUTOPOINT=true autoreconf -vfi
%configure \ %configure \
--disable-silent-rules \ --disable-silent-rules \
--localstatedir=/run \
--docdir=%{_docdir}/%{_name} \ --docdir=%{_docdir}/%{_name} \
--disable-makeinstall-chown \ --disable-makeinstall-chown \
--disable-makeinstall-setuid \ --disable-makeinstall-setuid \
@ -844,6 +841,11 @@ getent passwd uuidd >/dev/null || \
%{service_add_pre uuidd.socket uuidd.service} %{service_add_pre uuidd.socket uuidd.service}
%post -n uuidd %post -n uuidd
# Fix running instance paths during live upgrade from
# Leap = 15, SLE = 15 (boo#1113188).
# Useful for Tumbleweed or zypper dup only.
mv /run/run/uuidd /run/uuidd >/dev/null 2>&1 || :
rmdir --ignore-fail-on-non-empty /run/run >/dev/null 2>&1 || :
%{service_add_post uuidd.socket uuidd.service} %{service_add_post uuidd.socket uuidd.service}
%preun -n uuidd %preun -n uuidd

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Oct 26 17:24:46 CEST 2018 - sbrabec@suse.com
- Fix runstatedir path (to /run) (boo#1113188#c1).
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Oct 12 14:06:56 CEST 2018 - sbrabec@suse.com Fri Oct 12 14:06:56 CEST 2018 - sbrabec@suse.com

View File

@ -507,15 +507,12 @@ export SUID_LDFLAGS="-pie"
export LDFLAGS="-Wl,-z,relro,-z,now" export LDFLAGS="-Wl,-z,relro,-z,now"
export CFLAGS="%{optflags} -D_GNU_SOURCE" export CFLAGS="%{optflags} -D_GNU_SOURCE"
export CXXFLAGS="%{optflags} -D_GNU_SOURCE" export CXXFLAGS="%{optflags} -D_GNU_SOURCE"
# override default localstatedir to /run
# only used for volatile data
# #
# SUSE now supports only systemd based system. We do not build # SUSE now supports only systemd based system. We do not build
# sysvinit-only versions of UTIL_LINUX_SYSTEMD_SOURCES utilities. # sysvinit-only versions of UTIL_LINUX_SYSTEMD_SOURCES utilities.
AUTOPOINT=true autoreconf -vfi AUTOPOINT=true autoreconf -vfi
%configure \ %configure \
--disable-silent-rules \ --disable-silent-rules \
--localstatedir=/run \
--docdir=%{_docdir}/%{_name} \ --docdir=%{_docdir}/%{_name} \
--disable-makeinstall-chown \ --disable-makeinstall-chown \
--disable-makeinstall-setuid \ --disable-makeinstall-setuid \
@ -844,6 +841,11 @@ getent passwd uuidd >/dev/null || \
%{service_add_pre uuidd.socket uuidd.service} %{service_add_pre uuidd.socket uuidd.service}
%post -n uuidd %post -n uuidd
# Fix running instance paths during live upgrade from
# Leap = 15, SLE = 15 (boo#1113188).
# Useful for Tumbleweed or zypper dup only.
mv /run/run/uuidd /run/uuidd >/dev/null 2>&1 || :
rmdir --ignore-fail-on-non-empty /run/run >/dev/null 2>&1 || :
%{service_add_post uuidd.socket uuidd.service} %{service_add_post uuidd.socket uuidd.service}
%preun -n uuidd %preun -n uuidd

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Oct 26 17:24:46 CEST 2018 - sbrabec@suse.com
- Fix runstatedir path (to /run) (boo#1113188#c1).
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Oct 12 14:06:56 CEST 2018 - sbrabec@suse.com Fri Oct 12 14:06:56 CEST 2018 - sbrabec@suse.com

View File

@ -507,15 +507,12 @@ export SUID_LDFLAGS="-pie"
export LDFLAGS="-Wl,-z,relro,-z,now" export LDFLAGS="-Wl,-z,relro,-z,now"
export CFLAGS="%{optflags} -D_GNU_SOURCE" export CFLAGS="%{optflags} -D_GNU_SOURCE"
export CXXFLAGS="%{optflags} -D_GNU_SOURCE" export CXXFLAGS="%{optflags} -D_GNU_SOURCE"
# override default localstatedir to /run
# only used for volatile data
# #
# SUSE now supports only systemd based system. We do not build # SUSE now supports only systemd based system. We do not build
# sysvinit-only versions of UTIL_LINUX_SYSTEMD_SOURCES utilities. # sysvinit-only versions of UTIL_LINUX_SYSTEMD_SOURCES utilities.
AUTOPOINT=true autoreconf -vfi AUTOPOINT=true autoreconf -vfi
%configure \ %configure \
--disable-silent-rules \ --disable-silent-rules \
--localstatedir=/run \
--docdir=%{_docdir}/%{_name} \ --docdir=%{_docdir}/%{_name} \
--disable-makeinstall-chown \ --disable-makeinstall-chown \
--disable-makeinstall-setuid \ --disable-makeinstall-setuid \
@ -844,6 +841,11 @@ getent passwd uuidd >/dev/null || \
%{service_add_pre uuidd.socket uuidd.service} %{service_add_pre uuidd.socket uuidd.service}
%post -n uuidd %post -n uuidd
# Fix running instance paths during live upgrade from
# Leap = 15, SLE = 15 (boo#1113188).
# Useful for Tumbleweed or zypper dup only.
mv /run/run/uuidd /run/uuidd >/dev/null 2>&1 || :
rmdir --ignore-fail-on-non-empty /run/run >/dev/null 2>&1 || :
%{service_add_post uuidd.socket uuidd.service} %{service_add_post uuidd.socket uuidd.service}
%preun -n uuidd %preun -n uuidd