From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: core-updates: Fix cups-minimal build failure Date: Sat, 25 Feb 2017 21:25:19 -0500 Message-ID: <20170226022519.GA16840@jasmine> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yNb1oOkm5a9FJOVX" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1choWd-0008Vk-Ce for guix-devel@gnu.org; Sat, 25 Feb 2017 21:25:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1choWY-0005Pl-EW for guix-devel@gnu.org; Sat, 25 Feb 2017 21:25:27 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:35686) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1choWY-0005P0-6a for guix-devel@gnu.org; Sat, 25 Feb 2017 21:25:22 -0500 Received: from localhost (m9e5a36d0.tmodns.net [208.54.90.158]) by mail.messagingengine.com (Postfix) with ESMTPA id CA78C7E3FA for ; Sat, 25 Feb 2017 21:25:20 -0500 (EST) Content-Disposition: inline List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --yNb1oOkm5a9FJOVX Content-Type: multipart/mixed; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Do you have any suggestions about how to make this more concise? --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-gnu-cups-minimal-Fix-build-failure-in-reset-gzip-tim.patch" Content-Transfer-Encoding: quoted-printable =46rom 0191e8394eedd271494b5e1e8c8eb131176440a8 Mon Sep 17 00:00:00 2001 =46rom: Leo Famulari Date: Sat, 25 Feb 2017 21:22:08 -0500 Subject: [PATCH] gnu: cups-minimal: Fix build failure in reset-gzip-timesta= mps phase. * gnu/packages/cups.scm (cups-minimal)[arguments]: Add 'make-manpages-writa= ble' phase. --- gnu/packages/cups.scm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm index 20621e32b..ebb979c62 100644 --- a/gnu/packages/cups.scm +++ b/gnu/packages/cups.scm @@ -166,6 +166,23 @@ filters for the PDF-centric printing workflow introduc= ed by OpenPrinting.") (substitute* "Makedefs.in" (("INITDIR.*=3D.*@INITDIR@") "INITDIR =3D @prefix@/@INITDIR= @") (("/bin/sh") (which "sh"))))) + ;; Make the compressed manpages writable so that the + ;; reset-gzip-timestamps phase does not error out. + (add-before 'reset-gzip-timestamps 'make-manpages-writable + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (man1 (string-append out "/share/man/man1")) + (man5 (string-append out "/share/man/man5")) + (man7 (string-append out "/share/man/man7")) + (man8 (string-append out "/share/man/man8"))) + (for-each (lambda (file) (chmod file #o666)) + (find-files man1 "\\.gz")) + (for-each (lambda (file) (chmod file #o666)) + (find-files man5 "\\.gz")) + (for-each (lambda (file) (chmod file #o666)) + (find-files man7 "\\.gz")) + (for-each (lambda (file) (chmod file #o666)) + (find-files man8 "\\.gz"))))) (add-before 'build 'patch-tests (lambda _ (substitute* "test/ippserver.c" --=20 2.11.1 --8t9RHnE3ZwKMSgU+-- --yNb1oOkm5a9FJOVX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAliyPIsACgkQJkb6MLrK fwj2VQ//XQ8QFQegCq3C6lOV6frVlkU9bCq1PMtFf18/rG44WkaOQdMRKSUaL7UX zbMfTb6PGCl3cEL3n8OopMKtvaqIV1Q9ERASHX5bhd3K2E+dAjSsVvbGHmir3dnD cfYwCNl6AqNkAXj1/nkyd+9AUjJuudTK1sMpCDOzgykF3CNeAzECsltqh+bDv1pQ RmaQsozLa9V1zYc5oLOoM9bYQE5B8Mk/+XfIpCkfx1/4LFjsMQXtyC7p1GSt2RzS zzFxBKWpZ3GAKfRBz7Iq0jFMcFBs9l24Ryeg6kBa850q39ZCHyvEHekTIke/CdgK yBTngZbMHkKnuDOh23aFhPqfDbLe44rOHcc3oLO6KM6Kuo+ywBVdh9HOr1VkmFP0 +2WoyhWi9sN8C4GU9OGyujSxXkvJ2W+OLllomEATJdSvlKv/TL3ro5y+zhfLiygN qhdfTZ5sX66UNMJzwl5Kj+80W0ZSqAsCaguZI2fuAsiUlNQD8fbybD473K0lz+xa xjCa1edaXey9bHftaRGXaYPC8rq4xcz8Wzdx/hgPESaBP2vwZsyFuH/jJdjX+Kdf iQteEXtp6NhdjMgkdtvKAYwukE+hfM41SdcKylHbfLyLfTF7zVsnNvihLua3fZNL lVPuaigvmr+xIh/NB5xC1NWGjya7xijbp/e/I/7sY03roYB2z78= =0IcP -----END PGP SIGNATURE----- --yNb1oOkm5a9FJOVX--