From debbugs-submit-bounces@debbugs.gnu.org Sat May 03 10:40:09 2025 Received: (at submit) by debbugs.gnu.org; 3 May 2025 14:40:09 +0000 Received: from localhost ([127.0.0.1]:42160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uBE2C-0002t6-Nz for submit@debbugs.gnu.org; Sat, 03 May 2025 10:40:09 -0400 Received: from lists.gnu.org ([2001:470:142::17]:40238) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uBE29-0002oS-JT for submit@debbugs.gnu.org; Sat, 03 May 2025 10:40:07 -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 1uBE1y-0002ct-Bs for guix-patches@gnu.org; Sat, 03 May 2025 10:39:55 -0400 Received: from magnesium.8pit.net ([45.76.88.171]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uBE1v-0005ue-U3; Sat, 03 May 2025 10:39:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=opensmtpd; bh=9zFUkKEZ HM4xQLXe05LXcHHenSzjUdjZ5+VYSZLaePI=; h=date:subject:cc:to:from; d=soeren-tempel.net; b=ETIyLCy3YVSr0A5lrnF1D7zPiIl7DCjMY5WRkLo8RfTboFM cyuSVyYQnYP29XNaDmL1yBtDKoeSm+nRtuIiS3rgz9it2z/Gn0sKAXCTNU9NHSabGuc/gW aK5kTxx3TPG7EZ6JRv/Q7j1Noa3Kr8s3fXDZ+jWa9lNDAhycABPT+o= Received: from localhost ( [2a02:560:4d21:3f00:11d2:aa46:9365:87a6]) by magnesium.8pit.net (OpenSMTPD) with ESMTPSA id 8dbd970f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:YES); Sat, 3 May 2025 16:39:46 +0200 (CEST) From: soeren@soeren-tempel.net To: guix-patches@gnu.org Subject: [PATCH] ocaml: binsec: Wrap program to set OCAMLPATH Date: Sat, 3 May 2025 16:38:26 +0200 Message-ID: <739a1da5e980801aa40d3e81d84d30ba633bae70.1746283105.git.soeren@soeren-tempel.net> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-Debbugs-Cc: Julien Lepiller , pukkamustard Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=45.76.88.171; envelope-from=soeren@soeren-tempel.net; helo=magnesium.8pit.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit Cc: jgart@dismail.de 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.1 (/) From: Sören Tempel Otherwise, dune plugins cannot be loaded which results in some command line options to not work correctly. For example, binsec --help errors with "The library "binsec.sse.checkct" can't be found in the search paths". To fix this, this patch adds a wrap-programs phase. Fixes https://issues.guix.gnu.org/69996 * gnu/packages/ocaml.scm (binsec) : Add wrap-programs phase. --- gnu/packages/ocaml.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index a5632c6ad1..e86f59d2b3 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -1419,6 +1419,17 @@ (define-public binsec (sha256 (base32 "1szfqb6rj19w2jdyaxdgy3plhgr7picijf7l4k5qq80kna2h0zm8")))) (build-system dune-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'install 'wrap-programs + (lambda _ + (let ((ocamlpath + `(,(string-append #$output "/lib/ocaml/site-lib") + ,@(search-path-as-string->list (getenv "OCAMLPATH"))))) + (wrap-program (string-append #$output "/bin/" "binsec") + `("OCAMLPATH" ":" prefix ,ocamlpath)))))))) + (inputs (list bash-minimal)) (native-inputs (list gmp ocaml-qcheck ocaml-ounit2)) (propagated-inputs (list dune-site ocaml-base base-commit: 415e3d98d6faf5fd3d1b7b3daa2f20636e4ff822 From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 07 10:40:23 2025 Received: (at 78231-done) by debbugs.gnu.org; 7 Jun 2025 14:40:23 +0000 Received: from localhost ([127.0.0.1]:49246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uNuid-0007zt-3e for submit@debbugs.gnu.org; Sat, 07 Jun 2025 10:40:23 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:49118) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uNuiY-0007un-3X; Sat, 07 Jun 2025 10:40:18 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 21586476; Sat, 7 Jun 2025 16:40:11 +0200 (CEST) Authentication-Results: hera.aquilenet.fr; none X-Virus-Scanned: Debian amavis at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavis, port 10024) with ESMTP id BfwsJLTBxZqD; Sat, 7 Jun 2025 16:40:10 +0200 (CEST) Received: from jurong (176-179-191-150.abo.bbox.fr [176.179.191.150]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 0217125A; Sat, 7 Jun 2025 16:40:08 +0200 (CEST) Date: Sat, 7 Jun 2025 16:40:07 +0200 From: Andreas Enge To: soeren@soeren-tempel.net Subject: Re: [PATCH] ocaml: binsec: Wrap program to set OCAMLPATH Message-ID: References: <739a1da5e980801aa40d3e81d84d30ba633bae70.1746283105.git.soeren@soeren-tempel.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <739a1da5e980801aa40d3e81d84d30ba633bae70.1746283105.git.soeren@soeren-tempel.net> X-Rspamd-Server: hera X-Rspamd-Queue-Id: 21586476 X-Spamd-Result: default: False [-5.59 / 15.00]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM(-2.99)[-0.996]; MID_RHS_NOT_FQDN(0.50)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; ARC_NA(0.00)[] X-Rspamd-Action: no action X-Spamd-Bar: ----- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78231-done Cc: 69996-done@debbugs.gnu.org, jgart@dismail.de, 78231-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 (-) Am Sat, May 03, 2025 at 04:38:26PM +0200 schrieb soeren@soeren-tempel.net: > From: Sören Tempel > Otherwise, dune plugins cannot be loaded which results in some command > line options to not work correctly. For example, binsec --help errors > with "The library "binsec.sse.checkct" can't be found in the search > paths". To fix this, this patch adds a wrap-programs phase. > Fixes https://issues.guix.gnu.org/69996 > * gnu/packages/ocaml.scm (binsec) : Add wrap-programs phase. Pushed, thanks! Andreas From unknown Sat Sep 13 11:13:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 06 Jul 2025 11:24:13 +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