Skip to contentSkip to conversation

cups: use /run instead /var/run in systemd's unit file

PATCH Chen Qi 1 participant 1 message Oct 16, 2020 1 message not in the archive

lore
Share & tools
lore

Chen Qi

author
#1 lore raw
In reply to a message not in the archive

Sorry, please ignore this patch.

Quoted 60 lines · Chen Qi

/var/run has been deprecated by systemd, so use /run instead, as suggested by systemd.

---
  meta/recipes-extended/cups/cups.inc           |  1 +
  ...sd.socket-use-run-instead-of-var-run.patch | 28 +++++++++++++++++++
  2 files changed, 29 insertions(+)

create mode 100644 meta/recipes-extended/cups/cups/0001-org.cups.cupsd.socket-use-run-instead-of-var-run.patch

meta/recipes-extended/cups/cups.inc +1 -0
index 1765944568..f56233acac 100644
@@ -13,6 +13,7 @@ SRC_URI = "https://github.com/apple/cups/releases/download/v${PV}/${BP}-source.t
             file://0002-don-t-try-to-run-generated-binaries.patch \
             file://0003-cups_1.4.6.bb-Fix-build-on-ppc64.patch \
             file://0004-cups-fix-multilib-install-file-conflicts.patch \
+           file://0001-org.cups.cupsd.socket-use-run-instead-of-var-run.patch \
             file://volatiles.99_cups \
             file://cups-volatiles.conf \
             "
meta/recipes-extended/cups/cups/0001-org.cups.cupsd.socket-use-run-instead-of-var-run.patch new file +28 -0
new file mode 100644
index 0000000000..e8fbd19104
@@ -0,0 +1,28 @@
+From 5b1d90bc6bbb25eaf01855cb0fd5e0a9c9e1fa7f Mon Sep 17 00:00:00 2001
+From: Chen Qi <[email protected]>
+Date: Fri, 16 Oct 2020 11:22:01 +0800
+Subject: [PATCH] org.cups.cupsd.socket: use /run instead of /var/run
+
+Upstream-Status: Pending
+
+Signed-off-by: Chen Qi <[email protected]>
+---
+ scheduler/org.cups.cupsd.socket | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/scheduler/org.cups.cupsd.socket b/scheduler/org.cups.cupsd.socket
+index 9cb4613..899e00b 100644
+--- a/scheduler/org.cups.cupsd.socket
++++ b/scheduler/org.cups.cupsd.socket
+@@ -3,7 +3,7 @@ Description=CUPS Scheduler
+ PartOf=org.cups.cupsd.service
+
+ [Socket]
+-ListenStream=/var/run/cups/cups.sock
++ListenStream=/run/cups/cups.sock
+
+ [Install]
+ WantedBy=sockets.target
+--
+2.17.1
+