From patchwork Mon Jun 3 20:01:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alex Griffin X-Patchwork-Id: 14215 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1650017095; Mon, 3 Jun 2019 21:02:10 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 9E1F216FD6 for ; Mon, 3 Jun 2019 21:02:09 +0100 (BST) Received: from localhost ([127.0.0.1]:40235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXt9l-0001rf-9A for patchwork@mira.cbaines.net; Mon, 03 Jun 2019 16:02:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXt9i-0001rX-8p for guix-patches@gnu.org; Mon, 03 Jun 2019 16:02:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXt9g-0006Vk-1D for guix-patches@gnu.org; Mon, 03 Jun 2019 16:02:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57902) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hXt9e-0006Sa-OI for guix-patches@gnu.org; Mon, 03 Jun 2019 16:02:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hXt9e-0000n3-Hf for guix-patches@gnu.org; Mon, 03 Jun 2019 16:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36060] [PATCH] services: cups: Create /var/cache on activation. Resent-From: "Alex Griffin" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 03 Jun 2019 20:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36060 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 36060@debbugs.gnu.org Received: via spool by 36060-submit@debbugs.gnu.org id=B36060.15595920992936 (code B ref 36060); Mon, 03 Jun 2019 20:02:02 +0000 Received: (at 36060) by debbugs.gnu.org; 3 Jun 2019 20:01:39 +0000 Received: from localhost ([127.0.0.1]:43213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hXt9G-0000lI-Mq for submit@debbugs.gnu.org; Mon, 03 Jun 2019 16:01:39 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:53465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hXt9F-0000km-Bu for 36060@debbugs.gnu.org; Mon, 03 Jun 2019 16:01:37 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id AE916305 for <36060@debbugs.gnu.org>; Mon, 3 Jun 2019 16:01:31 -0400 (EDT) Received: from imap6 ([10.202.2.56]) by compute6.internal (MEProxy); Mon, 03 Jun 2019 16:01:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ajgrf.com; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm3; bh=GIZ5CMAAr8WdbNwxkeKoLiRDyjXygoL vngNWB94JNec=; b=pr6BRggf6tb9IrvaPKS4Fm6bg3gyHfLUfPTatIzkYsKsiZD VRRrsIz4GRfPMbAtQ0mv8X2LPhWDmmmjbJocnFamP4YyhFNlq7CEZ0rEECQ0wUgy fkMWEUnl/ZLp8VpwJpaPAhpdRtrk0ItVr1ICKyAwRZfD8WnqPgO7pyTHJv6X5qgA CtVwPI8gfKPgPstlbPqeQtwXIRgsST6L8y2CwPjKmPz4YoIjHbunmsHE/UelDZd8 6Wiydq9m6SCHDzSbl/rxVvRwZTIeC2RqcssKNMjOyGqSpG1xLgitdVbY8CsuA+P9 QBHSd80FzGntpDfKof9khJkdClH2xt39ypfD7Fw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=GIZ5CM AAr8WdbNwxkeKoLiRDyjXygoLvngNWB94JNec=; b=SFBAnSo1vbRfUksSw6CiQf gSpPp+kPfP4kQrRysnI6aWDnJsLuLRRcsRzk6/L6IDaFci0mosJwx6yaWl1MUcDC 9WI2960av42nu4hyr7K86FBJVhHq+UfnDW+rplQPaC8rOi8/wAKiiOyUuQTlQvBm ToVWcmi7Y5bDcGm+TuaDe54lxyMZhLA76jWTjcSC9gWUzWl1qLUB7sKDpgfMM2hv 9U9lzyjGo+wny/kS9oAob6tF63b9b82kSCc2pV2yDhZYcku4PfUv9VHQReNDSbm/ K5rOxhdv4zHqse31juGeiYZkXxdUPh58Uhluy+4pNJpHx11C21sfKHcjXj7rAZwA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudefjedgudegfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesmh dtreerreertdenucfhrhhomhepfdetlhgvgicuifhrihhffhhinhdfuceorgesrghjghhr fhdrtghomheqnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrsegrjhhgrhhfrdgtohhmne cuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id F1ED814009F; Mon, 3 Jun 2019 16:01:30 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.6-555-g49357e1-fmstable-20190528v2 Mime-Version: 1.0 Message-Id: <6814c5b5-f2a1-4a9f-99bf-a37be2af1427@www.fastmail.com> In-Reply-To: References: <573c52c2-ec82-44ff-b543-af3be78e877b@www.fastmail.com> Date: Mon, 03 Jun 2019 20:01:23 +0000 From: "Alex Griffin" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Maybe this patch fits in a little better. I used mkdir-p/perms like the surrounding code instead of just mkdir-p. From 2ef61ab79cb387e00317cda54d893c061d9a1206 Mon Sep 17 00:00:00 2001 From: Alex Griffin 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 ;;; Copyright © 2017 Clément Lassieur ;;; Copyright © 2018 Ricardo Wurmus +;;; Copyright © 2019 Alex Griffin ;;; ;;; 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