From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:40570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpFtg-0005c2-NH for guix-patches@gnu.org; Thu, 31 Jan 2019 12:13:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpFte-0000Xn-UO for guix-patches@gnu.org; Thu, 31 Jan 2019 12:13:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53967) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gpFte-0000XL-CH for guix-patches@gnu.org; Thu, 31 Jan 2019 12:13:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gpFte-00068N-3I for guix-patches@gnu.org; Thu, 31 Jan 2019 12:13:02 -0500 Subject: [bug#34265] [PATCH 4/9] gnu: ocaml-stdio: Fix libdir install References: <875zu4ycve.fsf@gmail.com> In-Reply-To: <875zu4ycve.fsf@gmail.com> Resent-Message-ID: From: Gabriel Hondet Date: Thu, 31 Jan 2019 17:39:15 +0100 Message-ID: <871s4sycn5.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 34265@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-- gnu/packages/ocaml.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 946360833..94b108961 100644 =2D-- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -5090,7 +5090,18 @@ is now @code{Ocaml_common.Ast_helper}.") (inputs `(("ocaml-base" ,ocaml-base) ("ocaml-sexplib0" ,ocaml-sexplib0))) (arguments =2D '(#:tests? #f)) ;no tests + '(#:tests? #f ;no tests + #:phases + (modify-phases %standard-phases + (replace 'install + ;; set libdir to use ocaml-site + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (invoke "dune" "install" + (string-append "--prefix=3D" out) + (string-append "--libdir=3D" out + "/lib/ocaml/site-lib"))) + #t))))) (synopsis "Standard IO library for OCaml") (description "Stdio implements simple input/output functionalities for OCaml. It =2D-=20 2.20.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE5ercJXBcjd3P1FcAMbyBBfZZ1CUFAlxTLH4ACgkQMbyBBfZZ 1CUqnxAAr4OcGxpYoF1BAUmMQ2oX0urL1b+nAj4VkhUPICebvNV6f9j4M4n2qCI9 cIR2LK3TfHhcICVhOS2Xi9o4aGVFYlHNKjlRW39tNQMtXqBI/zV2BN3nYD5X66x6 Scn/TrWWEf/cFOIeh1dVzljfaG9G0kEMQGc8lC1L/lkaDEB0cWRk+umabtVNl/NO C72gRnFFPKCug67ouOVfE9vTqnwbkWubN6ihw7dJHVKljiUeefZnJs8CHrdoa8oo 6/CnmSMc42YiY1DrEfFLzXd4MJtZzMZv0TtIz2rnJd3Y6/6W0KcNRo8PyYa1NCWP 8YkZ3+izsrP//hBer8sKLluUoC5vWF/+LdrC1JZt8JRucrul6FfJdLs2sxdWsBOs cMkAHAsCxqLYcICx/xP/2chxrtRnTLjE2yRhWA0t8puHe+jQOnbZjm58cb2dUDeh gdhQweRGbamb9RhcrYUo/7DDvIf4a1/JdGjhoNO2vuoRKqrmZw3o1guavFbpkMOs tnMlXBREEa4I83V0Jp5QKoOuz2G1Bgfjmqi84GEHuddu2DZHh0lg6Q+IQRiV9Xuh t04Fj7fH5YsAOJ5zKI7YJvqUxqvJofINWbq+/lDuQgKNoOvi1tPVZYSCarLuwyJs PdYg0TP46qLIBwAcQ9Kmf3sTaxbWARYgwFHHRq/IOnUFOy5u1tM= =qOdQ -----END PGP SIGNATURE----- --=-=-=--