guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: gnu: cups: Fix build failure in reset-gzip-timestamps phase.


From: Leo Famulari
Subject: 01/03: gnu: cups: Fix build failure in reset-gzip-timestamps phase.
Date: Tue, 28 Feb 2017 02:10:18 -0500 (EST)

lfam pushed a commit to branch core-updates
in repository guix.

commit 29796b3f94b6cb5955c4e6d99afba8fe1a799bd7
Author: Leo Famulari <address@hidden>
Date:   Tue Feb 28 02:03:56 2017 -0500

    gnu: cups: Fix build failure in reset-gzip-timestamps phase.
    
    * gnu/packages/cups.scm (cups)[arguments]: Add 'make-manpages-writable' 
phase.
---
 gnu/packages/cups.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm
index 2649cd3..dc070ff 100644
--- a/gnu/packages/cups.scm
+++ b/gnu/packages/cups.scm
@@ -275,6 +275,14 @@ device-specific programs to convert and print many types 
of files.")
                   (string-append "cupsFileFind(\"cat\", \"" catpath "\""))
                  (("cupsFileFind\\(\"cat\", \"/bin:/usr/bin\"")
                   (string-append "cupsFileFind(\"cat\", \"" catpath "\""))))))
+         ;; 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"))
+                    (man (string-append out "/share/man")))
+               (for-each (lambda (file) (chmod file #o644))
+                         (find-files man "\\.gz")))))
          (add-after 'install 'install-cups-filters-symlinks
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]