From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: Re: [PATCH] profiles: Generate database file for manpages Date: Tue, 04 Apr 2017 17:59:40 -0700 Message-ID: <87d1crr7nn.fsf@gmail.com> References: <87fuhvw4a8.fsf@gmail.com> <87a882wykx.fsf@gnu.org> <87tw69538i.fsf@gmail.com> <8737dtjcbh.fsf@gnu.org> <8760il4iie.fsf@gmail.com> <87efx8s6dq.fsf@gnu.org> <87wpb02r0t.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvZIb-0001cD-LO for guix-devel@gnu.org; Tue, 04 Apr 2017 20:59:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvZIa-0005yE-Uc for guix-devel@gnu.org; Tue, 04 Apr 2017 20:59:49 -0400 In-Reply-To: <87wpb02r0t.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 04 Apr 2017 07:20:34 -0700") 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Another thought/experiment: It could be interesting to use find-files with the #:fail-on-error? flag set to #t. When trying it: --=-=-= Content-Type: text/x-patch Content-Disposition: inline Content-Transfer-Encoding: quoted-printable modified guix/profiles.scm @@ -978,7 +978,7 @@ files for the fonts of the @var{manifest} entries." (string-drop manpage-path (+ index (string-length "/share/man/= "))))) =20 (define (populate-manpages-collection-dir entries) =2D (let ((manpages (append-map (cut find-files <> #:stat stat) en= tries))) + (let ((manpages (append-map (cut find-files <> #:stat stat #:fai= l-on-error? #t) entries))) (for-each (lambda (manpage) (let* ((dest-file (string-append manpages-collection-dir "/" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 It found a broken link for one of the manpages shipped with our gimp packag= e. find-files: /gnu/store/wh2bryjss0pnrv9ss4jbbkwfbj2ql22i-gimp-2.8.18/share/m= an/man1/gimp-console.1: No such file or directory file /gnu/store/wh2bryjss0pnrv9ss4jbbkwfbj2ql22i-gimp-2.8.18/share/man/man1= /gimp-console.1=20 /gnu/store/wh2bryjss0pnrv9ss4jbbkwfbj2ql22i-gimp-2.8.18/share/man/man1/gimp= -console.1: broken symbolic link to gimp-console-2.8.1.gz Maxim --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJ9WGpPiQCFQyn/CfEmDkZILmNWIFAljkQXwACgkQEmDkZILm NWI+PA/+Mtp0sEad/7/u3ZCX9OBl3o4RIOvMZEgj04MAQUz1kkLUz1r7ATL9OqKL eCwV12R2dP0Qb/XogMYd8htgLpgY7yE3ZULuGsM+gC1M9ZOA+y8KcoiIYQHAXBLH yWnKWj362VL2SJj3k5J7EDYSmZLEeDfsFvu8guY3PM2RGwgcphsWguZYrLcgR7kY PfV0uvSEFOno0xhCuVLOOerlwK/Snnkklww/YGLwR/apO+pvuWvOnMBG1Mfax7ep Cq4xZA+7O+ikHt/j6+vZ9z3QlgBKQlEg305r1Wayb0hv0dzq0sDWK9mUA/BvauCR Q6+ncttV5LxRcZAHbEFdSbGlkqqvJpwxn/ylR+Scp3xqMgvI8I+22P54VsAXvLAz IEOwmNufzDwAyxBl2wCG58GC9z2iShpP4+nxenFU72GnCpMIlGgcx3A2uZnPe95V 6wKVYbZzx/zUQf8kfS1boVGzLzW/o7o68xd8+A6WoshBsWngPZFfYMOST9WdKK3Z BCl72OXEoz0/gz++fmi56Q7Wg09RiJEaAZQM6e9GMvFXol5MuMxjMdnvS2U0473y EYF2gb1kkhTUnzgKDuxQTBY6ca3FUOaMaHr8xZNkzYIGzlTjVvXIt8lGZbIXUSiY /kA+BpsEtpyZP/+A/hqXVIWroX0UE3GG0j4cC3vzd9Y++1BezqU= =moGX -----END PGP SIGNATURE----- --==-=-=--