X-Loop: help-debbugs@HIDDEN Subject: [bug#74406] [PATCH 0/1] antlr4 package does not refer to java executable by full path Resent-From: Rutherther <rutherther@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: julien@HIDDEN, guix-patches@HIDDEN Resent-Date: Sun, 17 Nov 2024 19:16:02 +0000 Resent-Message-ID: <handler.74406.B.17318709496241 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 74406 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74406 <at> debbugs.gnu.org Cc: Rutherther <rutherther@HIDDEN>, Julien Lepiller <julien@HIDDEN> X-Debbugs-Original-To: guix-patches@HIDDEN X-Debbugs-Original-Xcc: Julien Lepiller <julien@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.17318709496241 (code B ref -1); Sun, 17 Nov 2024 19:16:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Nov 2024 19:15:49 +0000 Received: from localhost ([127.0.0.1]:58640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tCkkP-0001cZ-7T for submit <at> debbugs.gnu.org; Sun, 17 Nov 2024 14:15:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:39514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rutherther@HIDDEN>) id 1tCkkN-0001cR-3k for submit <at> debbugs.gnu.org; Sun, 17 Nov 2024 14:15:47 -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 <rutherther@HIDDEN>) id 1tCkkM-00021a-K2 for guix-patches@HIDDEN; Sun, 17 Nov 2024 14:15:46 -0500 Received: from ditigal.xyz ([2a01:4f8:1c1b:6a1c::] helo=mail.ditigal.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from <rutherther@HIDDEN>) id 1tCkkK-00057t-0y for guix-patches@HIDDEN; Sun, 17 Nov 2024 14:15:45 -0500 Received: by cerebrum (OpenSMTPD) with ESMTPSA id 3c466c89 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sun, 17 Nov 2024 19:15:42 +0000 (UTC) From: Rutherther <rutherther@HIDDEN> Date: Sun, 17 Nov 2024 20:15:41 +0100 Message-ID: <cover.1731870758.git.rutherther@HIDDEN> X-Mailer: git-send-email 2.46.0 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=1731870942; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : from; bh=zC7T22bBxwXKDpy5DpZiLruRwxc0xW7j7p5CAr4JuuY=; b=da0UR0rA3rNAkyWRkjfWECbU4i20Zrja5dFhhWZquimgf8MLTo04uQbXj1cWpDFZIYeLG MEFOmxRLq+YVVsgavVfkBcAhpKMtY6y/7/VMM72uUL734XmFn3AlkJVuRde/1J1KXzQ0l8i mCLRuZHRJQkq/qvofqXGHSLT0+y4UH8= Received-SPF: pass client-ip=2a01:4f8:1c1b:6a1c::; envelope-from=rutherther@HIDDEN; helo=mail.ditigal.xyz 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) Hello, this seems to me like a bug - the package antlr4 refers to "java" in bin/antlr4 that is produced. I think it should refer to #$icedtea/bin/java. It seems to me quite probable this was a mistake, since there was java written multiple times in phases, where it's available in PATH automatically. Rutherther (1): gnu: antlr4: Pass full path to java in bin executable gnu/packages/java.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) base-commit: d108a7aac2c51f21c55cb8ea8801629a97f5242a -- 2.46.0
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Rutherther <rutherther@HIDDEN> Subject: bug#74406: Acknowledgement ([PATCH 0/1] antlr4 package does not refer to java executable by full path) Message-ID: <handler.74406.B.17318709496241.ack <at> debbugs.gnu.org> References: <cover.1731870758.git.rutherther@HIDDEN> X-Gnu-PR-Message: ack 74406 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 74406 <at> debbugs.gnu.org Date: Sun, 17 Nov 2024 19:16:03 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. As you requested using X-Debbugs-CC, your message was also forwarded to Julien Lepiller <julien@HIDDEN> (after having been given a bug report number, if it did not have one). Your message has been sent to the package maintainer(s): guix-patches@HIDDEN If you wish to submit further information on this problem, please send it to 74406 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 74406: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D74406 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at control) by debbugs.gnu.org; 17 Nov 2024 19:26:26 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 17 14:26:26 2024 Received: from localhost ([127.0.0.1]:58671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tCkug-00027Q-E9 for submit <at> debbugs.gnu.org; Sun, 17 Nov 2024 14:26:26 -0500 Received: from ditigal.xyz ([78.46.201.50]:36508 helo=mail.ditigal.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rutherther@HIDDEN>) id 1tCkud-000274-Lt for control <at> debbugs.gnu.org; Sun, 17 Nov 2024 14:26:24 -0500 Received: by cerebrum (OpenSMTPD) with ESMTPSA id 2dd6d238 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for <control <at> debbugs.gnu.org>; Sun, 17 Nov 2024 19:26:15 +0000 (UTC) From: Rutherther <rutherther@HIDDEN> To: control <at> debbugs.gnu.org Subject: Merge two issues Date: Sun, 17 Nov 2024 20:26:15 +0100 Message-ID: <87r079d5m0.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ditigal.xyz; i=@ditigal.xyz; q=dns/txt; s=20240917; t=1731871575; h=from : to : subject : date : message-id : mime-version : content-type : from; bh=bqSQDvdXW6pA8QBEqpFZ6mEmUeHaJvWJhZH2/xn3grU=; b=g5ZHZU2hzdLFXTonhiiuhfcoT/P9wPNCHhoZuotWKYyiee1+vcCENRg4Cmn2NZpYWw4GW IuLizI5hNu5VyAOtGSjilIhIIEodoGOqQ57WxNxtwU9nhdUhUwWTqW8i50cFN4GHouGtIox 57M29lTPadu+spD4d4W0pzSMve4kbPI= X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) merge 74405 74406 I've accidentally sent an issue twice, trying to merge them, not sure if I am doing it right and if I have permissions to do it, sorry if this is just spamming. ... How does debbugs know for what project this is, where do I specify "guix"?
X-Loop: help-debbugs@HIDDEN Subject: [bug#74406] [PATCH 1/1] gnu: antlr4: Pass full path to java in bin executable Resent-From: Rutherther <rutherther@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: julien@HIDDEN, guix-patches@HIDDEN Resent-Date: Sun, 17 Nov 2024 19:45:02 +0000 Resent-Message-ID: <handler.74406.B74406.173187265311351 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 74406 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74406 <at> debbugs.gnu.org Cc: Rutherther <rutherther@HIDDEN>, Julien Lepiller <julien@HIDDEN> X-Debbugs-Original-Xcc: Julien Lepiller <julien@HIDDEN> Received: via spool by 74406-submit <at> debbugs.gnu.org id=B74406.173187265311351 (code B ref 74406); Sun, 17 Nov 2024 19:45:02 +0000 Received: (at 74406) by debbugs.gnu.org; 17 Nov 2024 19:44:13 +0000 Received: from localhost ([127.0.0.1]:58734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tClBt-0002x0-68 for submit <at> debbugs.gnu.org; Sun, 17 Nov 2024 14:44:13 -0500 Received: from ditigal.xyz ([78.46.201.50]:43070 helo=mail.ditigal.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rutherther@HIDDEN>) id 1tClBq-0002wh-N7 for 74406 <at> debbugs.gnu.org; Sun, 17 Nov 2024 14:44:12 -0500 Received: by cerebrum (OpenSMTPD) with ESMTPSA id be4d8196 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sun, 17 Nov 2024 19:44:02 +0000 (UTC) From: Rutherther <rutherther@HIDDEN> Date: Sun, 17 Nov 2024 20:43:58 +0100 Message-ID: <27ea0b2b5326c827fd03399b4009c1bb62d81600.1731870758.git.rutherther@HIDDEN> X-Mailer: git-send-email 2.46.0 In-Reply-To: <cover.1731870758.git.rutherther@HIDDEN> References: <cover.1731870758.git.rutherther@HIDDEN> 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=1731872642; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=s2SwSMVNRbG1OWVW885rvr4k5PLi705fgklH17/YbpA=; b=b07yXyiiLLdYdzpMmEhsF3hnvLH4FB7hBXDTUlIyh5PxHXyBxw1B1AOcgNUIOva4EeCss rFQWiGa50Sv9K/rYuwFYv99PFdKeHU2BGQLBLHDF9LqVcjwhg81H0TfKiTKPEhBp1NjpQLM CTSbkd1v7RukPvBm2hpfix9eCi3a7h4= X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) 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
X-Loop: help-debbugs@HIDDEN Subject: [bug#74406] [PATCH 1/1] gnu: antlr4: Pass full path to java in bin executable Resent-From: Maxim Cournoyer <maxim.cournoyer@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Thu, 02 Jan 2025 13:52:03 +0000 Resent-Message-ID: <handler.74406.B74406.17358259114551 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 74406 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Rutherther <rutherther@HIDDEN> Cc: Julien Lepiller <julien@HIDDEN>, 74405 <at> debbugs.gnu.org, 74406 <at> debbugs.gnu.org Received: via spool by 74406-submit <at> debbugs.gnu.org id=B74406.17358259114551 (code B ref 74406); Thu, 02 Jan 2025 13:52:03 +0000 Received: (at 74406) by debbugs.gnu.org; 2 Jan 2025 13:51:51 +0000 Received: from localhost ([127.0.0.1]:43192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tTLc6-0001BG-8p for submit <at> debbugs.gnu.org; Thu, 02 Jan 2025 08:51:50 -0500 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:47259) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <maxim.cournoyer@HIDDEN>) id 1tTLc2-0001At-I8; Thu, 02 Jan 2025 08:51:47 -0500 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-21680814d42so133374385ad.2; Thu, 02 Jan 2025 05:51:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735825900; x=1736430700; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=3Mos5f/ruxJ81Nnl75cvsMajVhvRdBSE2CanB+udvu8=; b=EOmdTvXGhmmZNu1bn+o10sbXcnvmJqxAJA681qtv38EK9roOjW0tGJ31G/ZE9ZKnxC ptG2CHB3LbhDsMYLyXPVqjrwndKxCqWWKGQhGuBzOn0qsXSs+TJPCaJQaH5TPqcivobM Dyr662UJcG3XgvYh22Ub8s1MZ+aCzZrd4KC7binOCflCQEGxcVDUbEyVjoFwbcTS/mmt bWjmOOvLl+hj8cm1RxCpEr033GxY8qI40MzwxlQOpApVfDKx8w30SlANUC7Ifq6Asz8p xuGJS2V2TWPci72Je33xzYKDZeXcmwvDXiTHUXHwZ1heIUcZyNGUE/HS7A9EpgVqB5/Z 5I6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735825900; x=1736430700; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3Mos5f/ruxJ81Nnl75cvsMajVhvRdBSE2CanB+udvu8=; b=e9dk+kajg6vvL7WjDP1JFHAcSpuZnHSiJ4seED5IiAIUWQb0ZgbrCorGysHISEKpHx PHV+acF5tevrTUOcAfAf9OUu1A3BK4zVTqAoTs6q7oTqzjq4+yO1x8onauWnUaaJ4cPS EiMpD5ke++0eNxrm5iJW4D6JRPNhiSn2f4L7Mum7tPSK2ZJfk3JyxB41GsE/wnrNqo+3 jBFwJyj98bJo9/YyZbjpVrE4bwnr/2aZP4EcyEA0Q2FH/VVgSPAhqRMgg6ak6WL/dcYH nFRaj+lyddgIepjmoUOZ4zEZvlp7KucRxAEnuO/ixqosJKONZyRIyzBQsvB1H0No62zU HR0g== X-Forwarded-Encrypted: i=1; AJvYcCWPVFoz3ZeuKRa1XQiQezLHguUWtDCP9ibDQZBK++Xs1W8Vih8kRdqqcGd6fMG72N4szpLcvg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwGt2+Jt6Ab329ShMtis8sDDe1GY5NC2rZF1KGx3NPDxE9DDE8g WVJfxQSDh7TYcBnaSMSF+wMFrj62pZ9w+VVLnT54shtwqoCpCePUNageT0QC X-Gm-Gg: ASbGnctDlY3pwp1z4xtuNFVmobNTE608Xr8Jidkt5QPNj0A0Gr0fRYaLzesFwpl0QEP Oa8Cg0t76t1xB+VnvK2RbRz6rDCEiFxfGD4JkDdWUxloAWjJXq2dcyrSGhkgCgTqEcG1yEmOIwk vxNP2ptaQLZUBOjUY/TIkn1fncDPstMv+YuL60YbxBLbLbDLObU4xTZjyPTo7pmRzC3fBcFJvsN 6svxtehHx0nLgxFObnDLV7eUYwF7Ej4mCJYCz05SZIbRIOPI072lQ== X-Google-Smtp-Source: AGHT+IG1cXHduT7z+4SJDxLUJZbshYFpD01KnUs1j03nWidMESUdHswMweyChT3tqBzBNcHqPQvYiA== X-Received: by 2002:a17:902:c406:b0:215:854c:a71a with SMTP id d9443c01a7336-219e6ebb68dmr545512085ad.34.1735825900393; Thu, 02 Jan 2025 05:51:40 -0800 (PST) Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dca013f4sm227754135ad.234.2025.01.02.05.51.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2025 05:51:39 -0800 (PST) From: Maxim Cournoyer <maxim.cournoyer@HIDDEN> In-Reply-To: <27ea0b2b5326c827fd03399b4009c1bb62d81600.1731870758.git.rutherther@HIDDEN> (rutherther@HIDDEN's message of "Sun, 17 Nov 2024 20:43:58 +0100") References: <cover.1731870758.git.rutherther@HIDDEN> <27ea0b2b5326c827fd03399b4009c1bb62d81600.1731870758.git.rutherther@HIDDEN> Date: Thu, 02 Jan 2025 22:51:28 +0900 Message-ID: <87wmfd5nof.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi Rutherther, Apologies for the delay, this had been tagged as SPAM by big G. Rutherther <rutherther@HIDDEN> writes: > 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:" Hm. I'm not sure what is the state of the art here for our Java packages; it makes sense that it should work out of the box, but perhaps there's a reason to want to have it run with any Java available on PATH? I'll defer to Julien, which I believe has done more work with Java in Guix. -- Thanks, Maxim
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.