cups/cups-move-everything-to-run.patch
Johannes Meixner 056668eb06 Accepting request 202658 from home:elvigia:branches:Printing
********* RECOMMENDED FOR 13.1 *************

- patch cups-move-everything-to-run.patch missed to move 
  CUPS_STATEDIR to run, so systemd sockets are still created
  in /var/run 
-  Add required tmpfiles.d config snippet to ensure /run/cups
   is always available.

OBS-URL: https://build.opensuse.org/request/show/202658
OBS-URL: https://build.opensuse.org/package/show/Printing/cups?expand=0&rev=267
2013-10-09 08:41:40 +00:00

34 lines
810 B
Diff

--- cups-1.5.4.orig/config.h.in
+++ cups-1.5.4/config.h.in
@@ -131,7 +131,7 @@
#define CUPS_SBINDIR "/usr/sbin"
#define CUPS_SERVERBIN "/usr/lib/cups"
#define CUPS_SERVERROOT "/etc/cups"
-#define CUPS_STATEDIR "/var/run/cups"
+#define CUPS_STATEDIR "/run/cups"
/*
--- cups-1.5.4.orig/configure
+++ cups-1.5.4/configure
@@ -6424,7 +6424,7 @@ case "$uname" in
;;
*)
# All others
- CUPS_STATEDIR="$localstatedir/run/cups"
+ CUPS_STATEDIR="/run/cups"
;;
esac
cat >>confdefs.h <<_ACEOF
--- cups-1.5.4.orig/config-scripts/cups-directories.m4
+++ cups-1.5.4/config-scripts/cups-directories.m4
@@ -429,7 +429,7 @@ case "$uname" in
;;
*)
# All others
- CUPS_STATEDIR="$localstatedir/run/cups"
+ CUPS_STATEDIR="/run/cups"
;;
esac
AC_DEFINE_UNQUOTED(CUPS_STATEDIR, "$CUPS_STATEDIR")