From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2L6SEgEXDGXgNAAA9RJhRA:P1 (envelope-from ) for ; Thu, 21 Sep 2023 12:12:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2L6SEgEXDGXgNAAA9RJhRA (envelope-from ) for ; Thu, 21 Sep 2023 12:12:17 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D41DD5A1A0 for ; Thu, 21 Sep 2023 12:12:16 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=univ-grenoble-alpes.fr header.s=2020 header.b="CpgKIhG/"; dmarc=pass (policy=none) header.from=univ-grenoble-alpes.fr; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695291137; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=cE8mpbRpenvHdtfXmukYIYxp8TbM2mroAGHoa6+daDA=; b=r0RPlWPqr8MuX00z88lx/UP/GYXsxpdSYJ5y4dlYrnTsT5WBF4QtGtOa5peCqlBQYVNrf9 i2dJN8jD9uDYQz1geRSUeCh95KZM/2PKUhTuQkcF1zhU3lqhiXEF3BWDaqRZdz4845nA5T H8Fhkk5Ww1n/YvNpRBgcAZKHZ6Ko1qADddhclaMkKTifbQE+rp553wjcUQ3B/C8L/65XJk Hbmw69qg2ngzsm1pKswJtnuGU3MlR+adtUJzXvpcTduqNKN9XFzBQWRui2D1pUbmMHSQu2 +xH/D8qM04BLVfaDrEtB1PXesjUMrXqRevBDXkm12QRaQwgkzepMwq4dXWQvvA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695291137; a=rsa-sha256; cv=none; b=W5NJXJzAB9sVJCvpbrrBZzKZw0X7/1+MQi71Ak5sdW8H4Rd7LmMicrFTTSSPTGbbOEWTWI 4sjZdryrB1Ebs6/ThO9hOjom8NDPoN6/GdKovvyrYmkipSt4iRn0VFDEcZJ8JEdYVpEI0U kkPlwCMkK4+ftINIEDe/XYtN74Ngp4GdH29KK0U1BrUSwNtQiWuiT/l+uKTKelAUMX8f+e BHAMCVPef6TM5G/OOA9tsd+pfpFmRtSyGfD/9cSp5h/nPi3/j29WFK+8Jt/IfKUwmOZmyM Mo1kW6gRq3f7yCca88YGlgy+GwgkV8b10xGwJbZ7uVA7941eDOpfswpIsbNjqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=univ-grenoble-alpes.fr header.s=2020 header.b="CpgKIhG/"; dmarc=pass (policy=none) header.from=univ-grenoble-alpes.fr; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjGeb-0007UY-1k; Thu, 21 Sep 2023 06:11:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjGeY-0007UH-Cm for help-guix@gnu.org; Thu, 21 Sep 2023 06:11:22 -0400 Received: from zm-mta-out-3.u-ga.fr ([152.77.200.56]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjGeQ-0004OW-0M for help-guix@gnu.org; Thu, 21 Sep 2023 06:11:22 -0400 Received: from mailhub.u-ga.fr (mailhub-1.u-ga.fr [129.88.178.98]) by zm-mta-out-3.u-ga.fr (Postfix) with ESMTP id 7FAA94033A; Thu, 21 Sep 2023 12:11:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=univ-grenoble-alpes.fr; s=2020; t=1695291065; bh=53wZ/JRTK+C2t9Hv3j0oq6BiV+wXtJQt8ecqusnVyq8=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=CpgKIhG/0rJecp8jkSEmiL9nRnptJ2yirgtPmJGfLfwmadlmaZ/c6yLKP1SfEdx1j njUrzjYrPgMaP457VBxSargVsDRLp+81dC11Fc5pyXp0Zx3iOq2dsmZPwWHdEnNm9q YFneHreTTHIzYSew5+Bz9EKXf8smdeyQIWQXbYXyINvliByk3OzGr9Vq1jJRocslWA 07vdIOno5VGA9NSArEDC5Jc59A+U6GNgf6SpzL6pdVZRrJnOFTnBSePugAGV7ipMB4 7C6fcTjyA9rT8+cZFb3CL3sdTcQzbjvFNRYWFylQvw38ZhmUXcowCqiWETyBPGqSzg e/SfomixEnt4g== Received: from smtps.univ-grenoble-alpes.fr (smtps3.u-ga.fr [195.83.24.62]) by mailhub.u-ga.fr (Postfix) with ESMTP id 7D15510005A; Thu, 21 Sep 2023 12:11:05 +0200 (CEST) Received: from crevetete.univ-grenoble-alpes.fr (crevetete.imag.fr [129.88.43.91]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jahiere@univ-grenoble-alpes.fr) by smtps.univ-grenoble-alpes.fr (Postfix) with ESMTPSA id 61D8740055; Thu, 21 Sep 2023 12:11:05 +0200 (CEST) References: <87editff74.fsf@univ-grenoble-alpes.fr> <20230921075730.6964647c@lepiller.eu> User-agent: mu4e 1.10.5; emacs 27.1 From: Erwan Jahier To: Julien Lepiller Cc: help-guix@gnu.org Subject: Re: dune-based package design trouble Date: Thu, 21 Sep 2023 11:58:07 +0200 In-reply-to: <20230921075730.6964647c@lepiller.eu> Message-ID: <874jjneszr.fsf@univ-grenoble-alpes.fr> MIME-Version: 1.0 Content-Type: text/plain X-Greylist: Whitelist-UGA SMTP Authentifie (jahiere@univ-grenoble-alpes.fr) via submission-587 ACL (41) Received-SPF: pass client-ip=152.77.200.56; envelope-from=erwan.jahier@univ-grenoble-alpes.fr; helo=zm-mta-out-3.u-ga.fr X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.88 X-Spam-Score: -9.88 X-Migadu-Queue-Id: D41DD5A1A0 X-Migadu-Scanner: mx0.migadu.com X-TUID: 4rbhMzPoDDml > It's not very clean, but this works: Indeed it would be better to make ocamlfind do its job of correctly finding camlidl (and this is actually biting for another package), probably by fixing the camlidl recipe I guess. More precisely ocamfind query camlidl returns the wrong path. But ocamfind prinfconf path returns ... /gnu/store/wazczxixf2s0aakw586gh1pk8s3yc74d-camlidl-1.09/lib/ocaml /gnu/store/wazczxixf2s0aakw586gh1pk8s3yc74d-camlidl-1.09/lib/ocaml/site-lib ... which looks correct. The file /gnu/store/wazczxixf2s0aakw586gh1pk8s3yc74d-camlidl-1.09/lib/ocaml/site-lib/camlidl/META exists. So AFAICT, camlidl install is correct wrt ocamlfind. Any idea of what is happening? > (define-public ocaml-mlgmpidl > (package > (name "ocaml-mlgmpidl") > (version "1.2.15") > (source (origin > (method url-fetch) > (uri > "https://github.com/nberth/mlgmpidl/archive/1.2.15.tar.gz") > (sha256 > (base32 > "0hcaan4n5li0rnr55ilgxgd8w00lza9an6w4yj7v66dcb7plbasj")))) > (build-system ocaml-build-system) > (arguments > `(#:tests? #f; > #:phases > (modify-phases %standard-phases > (replace 'configure > (lambda* (#:key outputs inputs #:allow-other-keys) > (substitute* "configure" > ((".*query gmp.*") "echo \"$camlidl_prefix\n\" \n") > (("camlidl_prefix=`\\$ocamlfind.*") > (string-append "camlidl_prefix=\"" (assoc-ref inputs > "camlidl") "/lib/ocaml/site-lib/camlidl\"\n"))) > (invoke "./configure" "--prefix" (assoc-ref outputs > "out"))))))) > (inputs (list perl ocaml-findlib camlidl gmp mpfr > ocaml-bigarray-compat)) > (home-page > "https://www.inrialpes.fr/pop-art/people/bjeannet/mlxxxidl-forge/mlgmpidl/") > (synopsis "OCaml interface to the GMP library") > (description #f) > (license license:lgpl2.1)) ; with linking exception > )