From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id EP+TIHlBOmc6cAEA62LTzQ:P1 (envelope-from ) for ; Sun, 17 Nov 2024 19:18:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id EP+TIHlBOmc6cAEA62LTzQ (envelope-from ) for ; Sun, 17 Nov 2024 20:18:17 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=CHeS3k8z; dkim=fail ("headers rsa verify failed") header.d=ditigal.xyz header.s=20240917 header.b=SZqWMjpl; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731871096; a=rsa-sha256; cv=none; b=c1IyxlSuHetBy/URtyu7aQrMUmifTnFr6mODG8aHo2L1vTP29JcOuVaXa3/OZJnrjAt8el mX1WUGXXyumUqhXr3eSXI4/Fe9CzO4qHl5VNTwGYM3vq61D3iaUAqcR0uv4QAtJiFI4Y5R 2DBpkklHEIy13FFz5WyA+aiqghpYOa6WiRKlWjF19weJ6cgDKivhbHyrJnLMzCG2mnpgu0 B8tUl4g8b6wtzUHViN9298Y20+iFTaWcyS/gqNbxic0Zb58KnX5AEyPUj1+Jqxs3YkJeq+ XS0mjogV/tiY+U4kLk+QvQIcu+ZyVNw3SUD39ci8FDAZdzI/h+2Q9YB1DF8vHA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=CHeS3k8z; dkim=fail ("headers rsa verify failed") header.d=ditigal.xyz header.s=20240917 header.b=SZqWMjpl; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731871096; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=y+6H8kbKt1dsDXV1CWBkafELW+Nj47lfy4u8qbjAmsY=; b=EcnJs3JKD84R3U55br3lJP5PMe/mlf33CS6NPVM+mrVCjNVVRWR1N66MhcR5iHrM/X0BuJ OAKRnk4IhhrWGuKwZHTELc6cFdKrzcsWoGaRtev9g8bf4bkH9K9yFWYOSuDEPYmDd2uhsu w+e4gcBFxmFmgfALqRYLGncAsNVu1oPhFAd8UVUj4a6rUIqyl/CltDWH5DbRtQ5h1DQ1O4 fgb4EjgBxehjGrBbOafZkEi/SItDIMiLW5lm6i2BfcIbsZoDLmO4cJO6HvG/ix5XG6vmwP /o/KAglLhAIIC8fsBHlxRqDXk5mytaoh8XkRLQV0WaPTPJnwjxiwGlyRUiqhSA== 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 3995F84319 for ; Sun, 17 Nov 2024 20:18:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCkmZ-0002Fn-Lu; Sun, 17 Nov 2024 14:18:03 -0500 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 1tCkmY-0002FT-Iq for guix-patches@gnu.org; Sun, 17 Nov 2024 14:18:02 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tCkmY-0005SA-AZ for guix-patches@gnu.org; Sun, 17 Nov 2024 14:18:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=y+6H8kbKt1dsDXV1CWBkafELW+Nj47lfy4u8qbjAmsY=; b=CHeS3k8zzwmYG+wlq1NUmdcu97Ykyzor3elCCYlYtwqu6+wtuWZtK/uFvVOzcc9hWBozguMF0UI4SKxfJUYOj/QLbAKDyhDY5AipIu0TJ7FTXsaKLVLMqqCEVtQe9EV+D90rBzEEvcYqjytkg6QAwO3VXYyDgAbgq6LPxjj6kD86cV/gxX35pyP/7ZaqMHwzrKUjzTP4dgHkQ+D0kWMHAbNuyBXUdcHi1RHeaIhv5BZlH3apho/dF/5lSlHoz82j2yrI29aXE4Ult1CxkMwrAwplhDNwjPmumLsdmMSBqXnd27SVGVnIuhs0hpKW1wDLwagYKnOJ+q4tNOOGAKlpYw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tCkmY-0001hD-59; Sun, 17 Nov 2024 14:18:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74405] [PATCH 1/1] gnu: antlr4: Pass full path to java in bin executable Resent-From: Rutherther Original-Sender: "Debbugs-submit" Resent-CC: julien@lepiller.eu, guix-patches@gnu.org Resent-Date: Sun, 17 Nov 2024 19:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74405 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74405@debbugs.gnu.org Cc: Rutherther , Julien Lepiller X-Debbugs-Original-Xcc: Julien Lepiller Received: via spool by 74405-submit@debbugs.gnu.org id=B74405.17318710446461 (code B ref 74405); Sun, 17 Nov 2024 19:18:02 +0000 Received: (at 74405) by debbugs.gnu.org; 17 Nov 2024 19:17:24 +0000 Received: from localhost ([127.0.0.1]:58649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCklv-0001g9-NK for submit@debbugs.gnu.org; Sun, 17 Nov 2024 14:17:23 -0500 Received: from ditigal.xyz ([78.46.201.50]:38428 helo=mail.ditigal.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCklu-0001fx-2f for 74405@debbugs.gnu.org; Sun, 17 Nov 2024 14:17:22 -0500 Received: by cerebrum (OpenSMTPD) with ESMTPSA id 2c97ab73 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sun, 17 Nov 2024 19:17:14 +0000 (UTC) Date: Sun, 17 Nov 2024 20:17:01 +0100 Message-ID: <27ea0b2b5326c827fd03399b4009c1bb62d81600.1731870758.git.rutherther@ditigal.xyz> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ditigal.xyz; i=@ditigal.xyz; q=dns/txt; s=20240917; t=1731871034; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=s2SwSMVNRbG1OWVW885rvr4k5PLi705fgklH17/YbpA=; b=SZqWMjplUY694WBnR5qVKcRmvIdWF4ctD4bgQ0+hkIF3hBpslz3HGMukza7KEbhNkzq3V Uy1WDv2jsj39JtRKFeSFtj6RaiW09zFZk87z16mvURws0QeqLRVGTR8MmQhzkfCjQr6M0no JQDX8DzHm5i+2lyhwJeCJnj0iYuxEb0= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Rutherther X-ACL-Warn: , Rutherther via Guix-patches From: Rutherther via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.03 X-Spam-Score: -3.03 X-Migadu-Queue-Id: 3995F84319 X-Migadu-Scanner: mx10.migadu.com X-TUID: /HykUDgpDvgy The executable outputted by antlr4 package does not refer to full path of java, but to standalone "java". That means the package expects java to be in PATH. Since it's an application, requiring java to run, it should rather refer to full path of java executable it was built with/for. * gnu/packages/java.scm: (antrl4)[arguments]: Change "java" in bin/antlr4 for full path Change-Id: I311b9ec54a90fc7251eb8fcb62b232e843853e64 --- gnu/packages/java.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index df57385ea7..8607b62bea 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -8866,13 +8866,14 @@ (define-public antlr4 (add-after 'install 'bin-install (lambda* (#:key inputs outputs #:allow-other-keys) (let ((jar (string-append (assoc-ref outputs "out") "/share/java")) - (bin (string-append (assoc-ref outputs "out") "/bin"))) + (bin (string-append (assoc-ref outputs "out") "/bin")) + (java (search-input-file inputs "bin/java"))) (mkdir-p bin) (with-output-to-file (string-append bin "/antlr4") (lambda _ (display (string-append "#!" (which "sh") "\n" - "java -cp " jar "/antlr4.jar:" + java " -cp " jar "/antlr4.jar:" (string-join (apply append -- 2.46.0