From: Andy Wingo <wingo@igalia.com>
To: Leo Famulari <leo@famulari.name>
Cc: guix-devel@gnu.org
Subject: Re: core-updates: Fix cups-minimal build failure
Date: Mon, 27 Feb 2017 09:47:47 +0100 [thread overview]
Message-ID: <cucvarwuij0.fsf@igalia.com> (raw)
In-Reply-To: <20170226022519.GA16840@jasmine> (Leo Famulari's message of "Sat, 25 Feb 2017 21:25:19 -0500")
On Sun 26 Feb 2017 03:25, Leo Famulari <leo@famulari.name> writes:
> Do you have any suggestions about how to make this more concise?
> + ;; 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")))))
(for-each
(lambda (section)
(for-each
(lambda (file) (chmod file #o666))
(find-files (string-append out "/share/man/man" section)
"\\.gz")))
'("1" "5" "7" "8"))
Would be nice if there were a recursive find-files; oh well.
Andy
next prev parent reply other threads:[~2017-02-27 8:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-26 2:25 core-updates: Fix cups-minimal build failure Leo Famulari
2017-02-26 14:45 ` Marius Bakke
2017-02-27 8:47 ` Andy Wingo [this message]
2017-02-27 21:13 ` Leo Famulari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cucvarwuij0.fsf@igalia.com \
--to=wingo@igalia.com \
--cc=guix-devel@gnu.org \
--cc=leo@famulari.name \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).