From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 0DsTLMAvTWVebgAAauVa8A:P1 (envelope-from ) for ; Thu, 09 Nov 2023 20:15:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0DsTLMAvTWVebgAAauVa8A (envelope-from ) for ; Thu, 09 Nov 2023 20:15:12 +0100 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 97B7340B88 for ; Thu, 9 Nov 2023 20:15:12 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=j9V8SzvA; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699557312; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: 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=5MbevKIHWXyyg7kgZFpe1eEJqEGgfPNxVZ5lqqWK4ZI=; b=f9pkiH+OBeUIy84lm7NmE/9qYxCoW8gwJIkkfz4IlaNkCE3fqX+hUu2bQxmtC/fAdTx4uq nCFW2SWXSSjXH0fTQ5lYxn+wg177Tq3VzN3YXQdRMbXEYCGCh1CVE2JiFdwYpFzjPoFGZA Gy0OFcaLdipb2UCLisi3spRrrj0rXQ7BNsCB1UNqaxXlsOU+/uajcjzNby5QErX3eU7jXX /2j+DR33PVFWpZ3F/n4QDsdrfRGesqEkxQXaaG5jRXLRnxmnTeXhSoJLOKV3O/L9vr2InQ oqeal6dW2/c8xrRSnhtTTIxLTnEyygqVXYumQ7aVCUVJDjYmEo4rB60Sj+Y8zQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=j9V8SzvA; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699557312; a=rsa-sha256; cv=none; b=IoREMO5I8nFZFU4N0quGFr5p7epZB0Mj6N3Ej7MMg1OKVDm0pnwB3Y71QM9dCxGQeSKgXm 9UD0BPuk/8aagnezyDRYKF0IujbgEORPqB3T6PQsre5nC+VUh+bVRNqKvBJVyAPO0vcO9R BJIzKdBDJDTG6sRgiWPJy5l+B1sfWVKzy0jPcRHiBnf5rrl1lQzefunj7mSGuzdOwHhuJr UzmH9Qn551wQs/MjLjfH1BDRfc0DMJJYiYphy42XCk6qMrhufDmXgtVIctAJQXulRQm5n2 nHGBj1tX/zI14XR2Rp6Q2ZlRFvEeOVvHYQkXyALFYbf8u1tABzGFTnk/L5opTg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r1AU8-0003yh-GC; Thu, 09 Nov 2023 14:14:36 -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 1r1ATv-0003rF-I5 for guix-patches@gnu.org; Thu, 09 Nov 2023 14:14:25 -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 1r1ATu-0002Ch-NX for guix-patches@gnu.org; Thu, 09 Nov 2023 14:14:23 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r1AUX-0005p1-Lf for guix-patches@gnu.org; Thu, 09 Nov 2023 14:15:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67026] [PATCH 1/3] gnu: javacc: Do not reference a jdk. References: <20231109195755.67182db2@lepiller.eu> In-Reply-To: <20231109195755.67182db2@lepiller.eu> Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 09 Nov 2023 19:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67026 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67026@debbugs.gnu.org Received: via spool by 67026-submit@debbugs.gnu.org id=B67026.169955724322279 (code B ref 67026); Thu, 09 Nov 2023 19:15:01 +0000 Received: (at 67026) by debbugs.gnu.org; 9 Nov 2023 19:14:03 +0000 Received: from localhost ([127.0.0.1]:48754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r1ATa-0005nA-Qh for submit@debbugs.gnu.org; Thu, 09 Nov 2023 14:14:03 -0500 Received: from lepiller.eu ([89.234.186.109]:47832 helo=hermes.lepiller.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r1ATX-0005mY-7d for 67026@debbugs.gnu.org; Thu, 09 Nov 2023 14:14:01 -0500 Received: from hermes.lepiller.eu (localhost [127.0.0.1]) by hermes.lepiller.eu (OpenSMTPD) with ESMTP id 9b4227b0 for <67026@debbugs.gnu.org>; Thu, 9 Nov 2023 19:13:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=dkim; bh=F7xk2bXyiuWelmltKc9D7m1xw cqdIWPf2xBifRWyklI=; b=j9V8SzvAQDzIFoyUGIWXzLEMjL/0nVirbghdcravZ cKf+T/dCGEFk7MAZSl1SzkKx4L0HR0xYrgJPjWW7vVYDtMLFxrUlnF0GZ5iWIi5o S6TvEOThf1hzWezglHuM6wYZ7+CVMbh2fXAvinxNDLlF22LKGxXB7WXAriDc3rG9 ZNet1c2/sWcgHl5vGW0XfOEo9/V+xp5kiNk7vEfDHegQXTilN0RQAHfC/Q/K3X3V cdLcndU2IcVdof4hQxFPu6O/ik1zi7E9Y3pBADMLQZ38UJf6iiHQ7LCXzhFO/6Ee AsbBf+ka17gXOAbdQ9io/SKHY1W3+m6j7q1mj4HPD3ooA== Received: by hermes.lepiller.eu (OpenSMTPD) with ESMTPSA id 74ea1af7 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <67026@debbugs.gnu.org>; Thu, 9 Nov 2023 19:13:16 +0000 (UTC) From: Julien Lepiller Date: Thu, 9 Nov 2023 20:13:07 +0100 Message-ID: <20231109191309.6876-1-julien@lepiller.eu> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 3.89 X-Spam-Score: 3.89 X-Migadu-Queue-Id: 97B7340B88 X-Migadu-Scanner: mx13.migadu.com X-TUID: psz54rIM4usA The jdk provides java and javac, while a jre only provides the necessary java, reducing the closure size by 350MB. * gnu/packages/java.scm (javacc): Remove #t at end of phases. [inputs]: Add icedtea-8 as the jre. [arguments]: Use it instead of the jdk. Change-Id: Icb218c40915550b7ff1db96a48a3c48fa6ef52b4 --- gnu/packages/java.scm | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 7c8c4e0a36..eded386a03 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -2465,8 +2465,7 @@ (define-public javacc (modules '((guix build utils))) ;; Delete bundled jars. (snippet '(begin (for-each delete-file-recursively - '("bootstrap" "lib")) - #t)))) + '("bootstrap" "lib")))))) (arguments `(#:make-flags ; bootstrap from javacc-4 ,#~(list (string-append "-Dbootstrap-jar=" @@ -2487,17 +2486,16 @@ (define-public javacc (lambda _ (display (string-append "#!/bin/sh\n" - (assoc-ref inputs "jdk") "/bin/java" + (assoc-ref inputs "icedtea") "/bin/java" " -cp " dir "/javacc.jar" " `basename $0`" " $*")))) (chmod javacc #o755) ;; symlink to different names to affect the first argument and ;; change the behavior of the jar file. (symlink javacc (string-append bin "/jjdoc")) - (symlink javacc (string-append bin "/jjtree")) - #t)))))) - + (symlink javacc (string-append bin "/jjtree")))))))) (native-inputs - (list javacc-4)))) + (list javacc-4)) + (inputs (list icedtea-8)))) (define-public java-ecj (package -- 2.41.0