From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Wingo Subject: Re: core-updates: Fix cups-minimal build failure Date: Mon, 27 Feb 2017 09:47:47 +0100 Message-ID: References: <20170226022519.GA16840@jasmine> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciGyz-0004gJ-3g for guix-devel@gnu.org; Mon, 27 Feb 2017 03:48:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciGyv-0008H7-SA for guix-devel@gnu.org; Mon, 27 Feb 2017 03:48:37 -0500 Received: from pb-sasl2.pobox.com ([64.147.108.67]:63137 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ciGyv-0008Bt-OY for guix-devel@gnu.org; Mon, 27 Feb 2017 03:48:33 -0500 In-Reply-To: <20170226022519.GA16840@jasmine> (Leo Famulari's message of "Sat, 25 Feb 2017 21:25:19 -0500") 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: Leo Famulari Cc: guix-devel@gnu.org On Sun 26 Feb 2017 03:25, Leo Famulari 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