all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#36060] [PATCH] services: cups: Create /var/cache on activation.
@ 2019-06-02 21:31 Alex Griffin
       [not found] ` <handler.36060.B.15595112395993.ack@debbugs.gnu.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Griffin @ 2019-06-02 21:31 UTC (permalink / raw)
  To: 36060

[-- Attachment #1: Type: text/plain, Size: 169 bytes --]

I recently ran into the situation where CUPS wouldn't start because /var/cache didn't exist yet. This patch just creates /var/cache on CUPS activation.

-- 
Alex Griffin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-services-cups-Create-var-cache-on-activation.patch --]
[-- Type: text/x-patch; name="0001-services-cups-Create-var-cache-on-activation.patch", Size: 1202 bytes --]

From 4a2335d70088ad485ca2f91d5f21a4e7078fb927 Mon Sep 17 00:00:00 2001
From: Alex Griffin <a@ajgrf.com>
Date: Sun, 2 Jun 2019 16:26:47 -0500
Subject: [PATCH] services: cups: Create /var/cache on activation.

* gnu/services/cups.scm (%cups-activation): Create /var/cache if it doesn't
exist yet.
---
 gnu/services/cups.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/services/cups.scm b/gnu/services/cups.scm
index 9125139ef3..4cdc83452f 100644
--- a/gnu/services/cups.scm
+++ b/gnu/services/cups.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2016 Andy Wingo <wingo@pobox.com>
 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
 ;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -897,6 +898,7 @@ IPP specifications.")
           (mkdir-p/perms "/var/log/cups" user #o755)
           (mkdir-p/perms "/etc/cups" user #o755)
           (mkdir-p/perms "/etc/cups/ssl" user #o700)
+          (mkdir-p "/var/cache")
           ;; This certificate is used for HTTPS connections to the CUPS web
           ;; interface.
           (create-self-signed-certificate-if-absent
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#36060] [PATCH] services: cups: Create /var/cache on activation.
       [not found] ` <handler.36060.B.15595112395993.ack@debbugs.gnu.org>
@ 2019-06-03 19:57   ` Alex Griffin
  2019-06-03 20:01   ` Alex Griffin
  1 sibling, 0 replies; 4+ messages in thread
From: Alex Griffin @ 2019-06-03 19:57 UTC (permalink / raw)
  To: 36060

[-- Attachment #1: Type: text/plain, Size: 131 bytes --]

Maybe this patch fits in a little better. I used mkdir-p/perms like the surrounding code instead of just mkdir-p.

-- 
Alex Griffin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-services-cups-Create-var-cache-on-activation.patch --]
[-- Type: text/x-patch; name="0001-services-cups-Create-var-cache-on-activation.patch", Size: 1219 bytes --]

From b09759e4a2a348d6bdd1fef9593871e9e0a75a68 Mon Sep 17 00:00:00 2001
From: Alex Griffin <a@ajgrf.com>
Date: Sun, 2 Jun 2019 16:26:47 -0500
Subject: [PATCH] services: cups: Create /var/cache on activation.

* gnu/services/cups.scm (%cups-activation): Create /var/cache if it doesn't
exist yet.
---
 gnu/services/cups.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/services/cups.scm b/gnu/services/cups.scm
index 9125139ef3..5d9e373117 100644
--- a/gnu/services/cups.scm
+++ b/gnu/services/cups.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2016 Andy Wingo <wingo@pobox.com>
 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
 ;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -897,6 +898,7 @@ IPP specifications.")
           (mkdir-p/perms "/var/log/cups" user #o755)
           (mkdir-p/perms "/etc/cups" user #o755)
           (mkdir-p/perms "/etc/cups/ssl" user #o700)
+          (mkdir-p/perms "/var/cache" user #o770)
           ;; This certificate is used for HTTPS connections to the CUPS web
           ;; interface.
           (create-self-signed-certificate-if-absent
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#36060] [PATCH] services: cups: Create /var/cache on activation.
       [not found] ` <handler.36060.B.15595112395993.ack@debbugs.gnu.org>
  2019-06-03 19:57   ` Alex Griffin
@ 2019-06-03 20:01   ` Alex Griffin
  2019-06-05 15:17     ` bug#36060: " Ludovic Courtès
  1 sibling, 1 reply; 4+ messages in thread
From: Alex Griffin @ 2019-06-03 20:01 UTC (permalink / raw)
  To: 36060

[-- Attachment #1: Type: text/plain, Size: 131 bytes --]

Maybe this patch fits in a little better. I used mkdir-p/perms like the surrounding code instead of just mkdir-p.

-- 
Alex Griffin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-services-cups-Create-var-cache-on-activation.patch --]
[-- Type: text/x-patch; name="0001-services-cups-Create-var-cache-on-activation.patch", Size: 1262 bytes --]

From 2ef61ab79cb387e00317cda54d893c061d9a1206 Mon Sep 17 00:00:00 2001
From: Alex Griffin <a@ajgrf.com>
Date: Sun, 2 Jun 2019 16:26:47 -0500
Subject: [PATCH] services: cups: Create /var/cache on activation.

* gnu/services/cups.scm (%cups-activation): Create /var/cache if it doesn't
exist yet.
---
 gnu/services/cups.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/services/cups.scm b/gnu/services/cups.scm
index 9125139ef3..9d21b6e70c 100644
--- a/gnu/services/cups.scm
+++ b/gnu/services/cups.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2016 Andy Wingo <wingo@pobox.com>
 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
 ;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -895,6 +896,7 @@ IPP specifications.")
           (mkdir-p/perms "/var/spool/cups" user #o755)
           (mkdir-p/perms "/var/spool/cups/tmp" user #o755)
           (mkdir-p/perms "/var/log/cups" user #o755)
+          (mkdir-p/perms "/var/cache/cups" user #o770)
           (mkdir-p/perms "/etc/cups" user #o755)
           (mkdir-p/perms "/etc/cups/ssl" user #o700)
           ;; This certificate is used for HTTPS connections to the CUPS web
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#36060: [PATCH] services: cups: Create /var/cache on activation.
  2019-06-03 20:01   ` Alex Griffin
@ 2019-06-05 15:17     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2019-06-05 15:17 UTC (permalink / raw)
  To: Alex Griffin; +Cc: 36060-done

Hi Alex,

"Alex Griffin" <a@ajgrf.com> skribis:

> From 2ef61ab79cb387e00317cda54d893c061d9a1206 Mon Sep 17 00:00:00 2001
> From: Alex Griffin <a@ajgrf.com>
> Date: Sun, 2 Jun 2019 16:26:47 -0500
> Subject: [PATCH] services: cups: Create /var/cache on activation.
>
> * gnu/services/cups.scm (%cups-activation): Create /var/cache if it doesn't
> exist yet.

Applied, thanks!

Ludo'.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-06-05 15:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-02 21:31 [bug#36060] [PATCH] services: cups: Create /var/cache on activation Alex Griffin
     [not found] ` <handler.36060.B.15595112395993.ack@debbugs.gnu.org>
2019-06-03 19:57   ` Alex Griffin
2019-06-03 20:01   ` Alex Griffin
2019-06-05 15:17     ` bug#36060: " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.