Accepting request 150228 from GNOME:Factory
Move files from /var/run to /run in accordance with systemd design (forwarded request 150227 from dimstar) OBS-URL: https://build.opensuse.org/request/show/150228 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gdm?expand=0&rev=151
This commit is contained in:
commit
4d54ec8896
80
gdm-move-everything-to-run.patch
Normal file
80
gdm-move-everything-to-run.patch
Normal file
@ -0,0 +1,80 @@
|
||||
Index: gdm-3.6.2/configure
|
||||
===================================================================
|
||||
--- gdm-3.6.2.orig/configure
|
||||
+++ gdm-3.6.2/configure
|
||||
@@ -26020,7 +26020,7 @@ fi
|
||||
if ! test -z "$with_pid_file"; then
|
||||
GDM_PID_FILE=$with_pid_file
|
||||
else
|
||||
- GDM_PID_FILE=/var/run/gdm.pid
|
||||
+ GDM_PID_FILE=/run/gdm.pid
|
||||
fi
|
||||
|
||||
|
||||
@@ -26041,7 +26041,7 @@ fi
|
||||
if ! test -z "$with_ran_once_marker_directory"; then
|
||||
GDM_RAN_ONCE_MARKER_DIR=$with_ran_once_marker_directory
|
||||
else
|
||||
- GDM_RAN_ONCE_MARKER_DIR=${localstatedir}/run/gdm
|
||||
+ GDM_RAN_ONCE_MARKER_DIR=/run/gdm
|
||||
fi
|
||||
|
||||
|
||||
@@ -26085,7 +26085,7 @@ fi
|
||||
if ! test -z "$with_xauth_dir"; then
|
||||
GDM_XAUTH_DIR=$with_xauth_dir
|
||||
else
|
||||
- GDM_XAUTH_DIR=${localstatedir}/run/gdm
|
||||
+ GDM_XAUTH_DIR=/run/gdm
|
||||
fi
|
||||
|
||||
|
||||
@@ -26101,7 +26101,7 @@ fi
|
||||
if ! test -z "$with_screenshot_dir"; then
|
||||
GDM_SCREENSHOT_DIR=$with_screenshot_dir
|
||||
else
|
||||
- GDM_SCREENSHOT_DIR=${localstatedir}/run/gdm/greeter
|
||||
+ GDM_SCREENSHOT_DIR=/run/gdm/greeter
|
||||
fi
|
||||
|
||||
|
||||
Index: gdm-3.6.2/configure.ac
|
||||
===================================================================
|
||||
--- gdm-3.6.2.orig/configure.ac
|
||||
+++ gdm-3.6.2/configure.ac
|
||||
@@ -1326,7 +1326,7 @@ AC_ARG_WITH(pid-file,
|
||||
if ! test -z "$with_pid_file"; then
|
||||
GDM_PID_FILE=$with_pid_file
|
||||
else
|
||||
- GDM_PID_FILE=/var/run/gdm.pid
|
||||
+ GDM_PID_FILE=/run/gdm.pid
|
||||
fi
|
||||
|
||||
AC_SUBST(GDM_PID_FILE)
|
||||
@@ -1343,7 +1343,7 @@ AC_ARG_WITH(ran-once-marker-directory,
|
||||
if ! test -z "$with_ran_once_marker_directory"; then
|
||||
GDM_RAN_ONCE_MARKER_DIR=$with_ran_once_marker_directory
|
||||
else
|
||||
- GDM_RAN_ONCE_MARKER_DIR=${localstatedir}/run/gdm
|
||||
+ GDM_RAN_ONCE_MARKER_DIR=/run/gdm
|
||||
fi
|
||||
AC_SUBST(GDM_RAN_ONCE_MARKER_DIR)
|
||||
AC_DEFINE_UNQUOTED(GDM_RAN_ONCE_MARKER_DIR, "$GDM_RAN_ONCE_MARKER_DIR", [ran once marker dir])
|
||||
@@ -1379,7 +1379,7 @@ AC_ARG_WITH(xauth-dir,
|
||||
if ! test -z "$with_xauth_dir"; then
|
||||
GDM_XAUTH_DIR=$with_xauth_dir
|
||||
else
|
||||
- GDM_XAUTH_DIR=${localstatedir}/run/gdm
|
||||
+ GDM_XAUTH_DIR=/run/gdm
|
||||
fi
|
||||
|
||||
AC_SUBST(GDM_XAUTH_DIR)
|
||||
@@ -1395,7 +1395,7 @@ AC_ARG_WITH(screenshot-dir,
|
||||
if ! test -z "$with_screenshot_dir"; then
|
||||
GDM_SCREENSHOT_DIR=$with_screenshot_dir
|
||||
else
|
||||
- GDM_SCREENSHOT_DIR=${localstatedir}/run/gdm/greeter
|
||||
+ GDM_SCREENSHOT_DIR=/run/gdm/greeter
|
||||
fi
|
||||
|
||||
AC_SUBST(GDM_SCREENSHOT_DIR)
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 28 10:36:39 UTC 2013 - rmilasan@suse.com
|
||||
|
||||
- Add gdm-move-everything-to-run.patch: move everything (socket and
|
||||
pid files) to /run.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 20 09:53:24 UTC 2013 - dimstar@opensuse.org
|
||||
|
||||
|
7
gdm.spec
7
gdm.spec
@ -66,6 +66,8 @@ Patch35: gdm-xauthlocalhostname.patch
|
||||
Patch40: gdm-look-at-runlevel.patch
|
||||
# PATCH-FIX-UPSTREAM gdm-autologin-session-logout.patch bgo#682467 dimstar@opensuse.org -- Fix login after logging out from a auto-login session
|
||||
Patch41: gdm-autologin-session-logout.patch
|
||||
# PATCH-FIX-OPENSUSE gdm-move-everything-to-run.patch bgo#692733 rmilasan@suse.com -- Move everything (socket and pid files) to /run
|
||||
Patch42: gdm-move-everything-to-run.patch
|
||||
BuildRequires: check-devel
|
||||
# needed for directory ownership
|
||||
BuildRequires: dconf
|
||||
@ -237,6 +239,7 @@ translation-update-upstream
|
||||
%patch35 -p1
|
||||
%patch40 -p1
|
||||
%patch41 -p1
|
||||
%patch42 -p1
|
||||
|
||||
%build
|
||||
NOCONFIGURE=1 gnome-autogen.sh
|
||||
@ -309,7 +312,7 @@ install -m 755 %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/gdmflexiserver
|
||||
install -D -m 644 %{SOURCE5} %{buildroot}%{_libexecdir}/X11/displaymanagers/gdm
|
||||
# Install other files
|
||||
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/gdm
|
||||
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/gdm
|
||||
mkdir -p $RPM_BUILD_ROOT/run/gdm
|
||||
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
||||
ln -s ../sbin/gdm $RPM_BUILD_ROOT%{_bindir}/gdm
|
||||
%find_lang %{name} %{?no_lang_C}
|
||||
@ -385,9 +388,9 @@ dconf update
|
||||
%{_libexecdir}/gdm/gdm-*
|
||||
%{_libexecdir}/gdm/gdmflexiserver
|
||||
%attr(750,gdm,gdm) %dir %{_localstatedir}/lib/gdm
|
||||
%ghost %attr(751,gdm,gdm) %dir %{_localstatedir}/run/gdm
|
||||
%attr(750,gdm,gdm) %dir %{_localstatedir}/log/gdm
|
||||
%dir %{_localstatedir}/cache/gdm
|
||||
%ghost %attr(751,gdm,gdm) %dir /run/gdm
|
||||
%config /etc/pam.d/gdm
|
||||
%config /etc/pam.d/gdm-autologin
|
||||
%config /etc/pam.d/gdm-fingerprint
|
||||
|
Loading…
x
Reference in New Issue
Block a user