From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 01 20:51:04 2020 Received: (at submit) by debbugs.gnu.org; 2 Jul 2020 00:51:04 +0000 Received: from localhost ([127.0.0.1]:53977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jqnRH-0003Gr-Vc for submit@debbugs.gnu.org; Wed, 01 Jul 2020 20:51:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:37288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jqnRF-0003Gi-0C for submit@debbugs.gnu.org; Wed, 01 Jul 2020 20:50:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqnRE-0007CK-LL for guix-patches@gnu.org; Wed, 01 Jul 2020 20:50:52 -0400 Received: from pb-smtp2.pobox.com ([64.147.108.71]:53008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqnRB-00089S-Ny for guix-patches@gnu.org; Wed, 01 Jul 2020 20:50:52 -0400 Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 312206BB72; Wed, 1 Jul 2020 20:50:46 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=sasl; bh=/3ZGcOWzCaVdUnUb3jdz6z5xW PY=; b=Ez/FpBmO8N+d+lmvKzBFoB4WCfYVk5nsShvxZg8ojzE0Tfnd+NfqqdBjI M6F+lQiFYJYdNEmkfD1yN/FyXQCallaRXjLXTlNlulUhTzsE3y3e9dUFxtLcTaaa ShFgACc6EUZ7KnRcLpWssG1bgB3DWlUkw0br8uy8Q6SDsSQt6c= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 292EB6BB71; Wed, 1 Jul 2020 20:50:46 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:cc:subject:date:message-id:mime-version:content-type:content-transfer-encoding; s=mesmtp; bh=Ftf15ZTy9Jj80e6VpGGqvLKZiZ6rbWZlsQ8hABR9yyk=; b=f4wIDLae/FaCXwp/y/WWqlU1Qy6c1LgaHJLTrKeSQHWbFr0Y07cDnJ+c5lOnVv/coaHZ8CnSIaAB+kYMqww6hEe8AoKDriYVclF5ImDZd6Frze0C7zvIq4YpDL/B0B1Lh/9JoA3fSBALcCBvcgISd2hqvV/piOtGx7DJKgErJ/A= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 9B1E96BB70; Wed, 1 Jul 2020 20:50:45 -0400 (EDT) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: guix-patches@gnu.org Subject: [PATCH] gnu: git-annex: Build and install man pages. Date: Wed, 1 Jul 2020 20:50:41 -0400 Message-Id: <20200702005041.11965-1-kyle@kyleam.com> X-Mailer: git-send-email 2.27.0.383.g050319c2ae MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Pobox-Relay-ID: 10397E1E-BBFE-11EA-8A6D-D1361DBA3BAF-24757444!pb-smtp2.pobox.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=64.147.108.71; envelope-from=kyle@kyleam.com; helo=pb-smtp2.pobox.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/01 20:50:46 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Kyle Meyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) * gnu/packages/haskell-apps.scm (git-annex)[arguments]: Add phases for building and installing the man pages. [native-inputs]: Add perl. --- gnu/packages/haskell-apps.scm | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/gnu/packages/haskell-apps.scm b/gnu/packages/haskell-apps.sc= m index f8bee424c3..5b6f0401e4 100644 --- a/gnu/packages/haskell-apps.scm +++ b/gnu/packages/haskell-apps.scm @@ -9,7 +9,7 @@ ;;; Copyright =C2=A9 2018 Arun Isaac ;;; Copyright =C2=A9 2016, 2017 Leo Famulari ;;; Copyright =C2=A9 2015 Paul van der Walt -;;; Copyright =C2=A9 2019 Kyle Meyer +;;; Copyright =C2=A9 2019, 2020 Kyle Meyer ;;; Copyright =C2=A9 2015 John Soo ;;; Copyright =C2=A9 2019, 2020 Efraim Flashner ;;; Copyright =C2=A9 2019 Alex Griffin @@ -370,8 +370,7 @@ (define-public git-annex ;; Factor out necessary build logic from the provided ;; `Setup.hs' script. The script as-is does not work becau= se ;; it cannot find its dependencies, and there is no obvious= way - ;; to tell it where to look. Note that we do not preserve = the - ;; code that installs man pages here. + ;; to tell it where to look. (call-with-output-file "PreConf.hs" (lambda (out) (format out "import qualified Build.Configure as Config= ure~%") @@ -385,6 +384,18 @@ (define-public git-annex (lambda _ (invoke "runhaskell" "PreConf.hs") #t)) + (add-after 'build 'build-manpages + (lambda _ + ;; The Setup.hs rewrite above removed custom code for build= ing + ;; the man pages. In addition to that code, git-annex's so= urce + ;; tree has a file that's not included in the tarball but i= s used + ;; by the Makefile to build man pages. Copy the core bits = here. + (call-with-output-file "Build/MakeMans.hs" + (lambda (out) + (format out "module Main where~%") + (format out "import Build.Mans~%") + (format out "main =3D buildMansOrWarn~%"))) + (invoke "runhaskell" "Build/MakeMans.hs"))) (replace 'check (lambda _ ;; We need to set the path so that Git recognizes @@ -400,6 +411,14 @@ (define-public git-annex ;; Undo `patch-shell-for-tests'. (copy-file "/tmp/Shell.hs" "Utility/Shell.hs") (apply (assoc-ref %standard-phases 'build) args))) + (add-after 'install 'install-manpages + (lambda* (#:key outputs #:allow-other-keys) + (let ((man (string-append (assoc-ref outputs "out") + "/man/man1/"))) + (mkdir-p man) + (for-each (lambda (file) (install-file file man)) + (find-files "man"))) + #t)) (add-after 'install 'install-symlinks (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) @@ -465,7 +484,8 @@ (define-public git-annex `(("ghc-tasty" ,ghc-tasty) ("ghc-tasty-hunit" ,ghc-tasty-hunit) ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck) - ("ghc-tasty-rerun" ,ghc-tasty-rerun))) + ("ghc-tasty-rerun" ,ghc-tasty-rerun) + ("perl" ,perl))) (home-page "https://git-annex.branchable.com/") (synopsis "Manage files with Git, without checking in their contents= ") (description "This package allows managing files with Git, without base-commit: 67ba9815c954d6ccef041d5dbbe2b2ba14f37474 --=20 2.27.0.383.g050319c2ae From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 02 03:51:14 2020 Received: (at 42159-done) by debbugs.gnu.org; 2 Jul 2020 07:51:14 +0000 Received: from localhost ([127.0.0.1]:54330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jqu02-0005Bg-6u for submit@debbugs.gnu.org; Thu, 02 Jul 2020 03:51:14 -0400 Received: from flashner.co.il ([178.62.234.194]:49612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jqu00-0005BR-DU for 42159-done@debbugs.gnu.org; Thu, 02 Jul 2020 03:51:13 -0400 Received: from localhost (unknown [31.210.181.184]) by flashner.co.il (Postfix) with ESMTPSA id 3BE8A40116; Thu, 2 Jul 2020 07:51:06 +0000 (UTC) Date: Thu, 2 Jul 2020 10:50:33 +0300 From: Efraim Flashner To: Kyle Meyer Subject: Re: [bug#42159] [PATCH] gnu: git-annex: Build and install man pages. Message-ID: <20200702075033.GG6387@E5400> References: <20200702005041.11965-1-kyle@kyleam.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DNUSDXU7R7AVVM8C" Content-Disposition: inline In-Reply-To: <20200702005041.11965-1-kyle@kyleam.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 42159-done Cc: 42159-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --DNUSDXU7R7AVVM8C Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Looks good! I was missing the man pages. Patch pushed. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --DNUSDXU7R7AVVM8C Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl79kcYACgkQQarn3Mo9 g1EKNxAArY95FNSGmKo8ZkOsLC2TzngOtciT03ZPyA+IPKcJK/CRMmXSx9fteqcT SJ/aql+acnI5wm7s31odEF+XUtutjXXIscaqQiTbQLYWEJ7bhFlcPBq+/dbPemoi iCvJDtOL77vTnJjPYHtdvGTO+cIkuqnuIsKVfSnKyHopNLTICEk76144Rd5B/U7Q wfxdPEtAOhbalE+vUqtXeOsjRXSFWvxjMw8yXzEPIQwZ0+51+f/7RjOVrifOWm3k iwPPgvw5ZGw9Hnu124SexvbsQMbxRBY23Ng7iPeI2VjYP8+kF8hRKeuo9aPW4ZnP brtDCvIAmKdrltJyZeoRTFyymB/XERMrtDDPAfjdZlUY0Y7MbEKqvOa6xq6p7+Qd 8IYxl7gBwryiGwT4haEafoGO7YhtmKqbAPqvAR015zEWahpe6vmEmbPYIuQunJV4 sCic7WOAxQZP8sG+Y++hNj8/u15EVF3EFNy/Jfte/hKj6r4De5ts0EK3EMG6uoba 0ivvdnhE4Hwv2uQ0/gEhhLHdCfjQBV96uhxmBQZFJU7OVYpVE0OQ4V7/tyuyYdJ8 PjD2GSiu8sw4CM/GGlOEbA3HiXtqQlpxKKY/oenltLvZR0mT2DC2qQbwEu0pHNo8 JC3GHknAg6WPRpoNHGrnrp2UuKtiiwLnXFAXuPxRXNSUZ1c/caU= =Ih35 -----END PGP SIGNATURE----- --DNUSDXU7R7AVVM8C-- From unknown Sat Aug 09 13:17:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 30 Jul 2020 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator