From unknown Tue Sep 09 17:03:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#55927 <55927@debbugs.gnu.org> To: bug#55927 <55927@debbugs.gnu.org> Subject: Status: [PATCH] gnu: icedtea-7: Add native-search-paths. Reply-To: bug#55927 <55927@debbugs.gnu.org> Date: Wed, 10 Sep 2025 00:03:12 +0000 retitle 55927 [PATCH] gnu: icedtea-7: Add native-search-paths. reassign 55927 guix-patches submitter 55927 Julien Lepiller severity 55927 normal tag 55927 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 12 08:47:20 2022 Received: (at submit) by debbugs.gnu.org; 12 Jun 2022 12:47:20 +0000 Received: from localhost ([127.0.0.1]:55024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0Mzw-0007Vw-1p for submit@debbugs.gnu.org; Sun, 12 Jun 2022 08:47:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:46580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0Mzt-0007Vn-PZ for submit@debbugs.gnu.org; Sun, 12 Jun 2022 08:47:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0Mzt-0004X8-HZ for guix-patches@gnu.org; Sun, 12 Jun 2022 08:47:17 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:57476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0Mzq-00057e-VU for guix-patches@gnu.org; Sun, 12 Jun 2022 08:47:17 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 1cebef2d for ; Sun, 12 Jun 2022 12:45:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:message-id:mime-version:content-type; s=dkim; bh=bVr v09ES3Pr1J9VDYTzUMk4A90B6TcGg9gtKKIxT4qM=; b=kQKZMQdTAf38AiV0k6a Mr3LybuUu+EoLhA5sqLm1YQdtBSOCdFQjIGFEDVXOM3+EOFMKVrOwMGQtq361uUq an+ABTtYBpaG79BcKfMmbohJoXpcVXtEeIk5bg8mO49QD5+Lzs0bHjt4p5+MgP5t WeiTHlTy7EoV1FwLWRVjRXOtVy3tvr1o0ca8PZi8E2LOFOfP7EYHnAZl+XXzJiCp Im9n+jyDXPCS6p2dda5OXL+9vNC24mdmk3FYG31bZN7LzLASbQbx8+y88K4Ouf9e D5k1Xvb2JphvI2darWEzN7anh9ezMhfCw0d0Z4ARuruSAjTn31FvlaoSLiDEcBRG atg== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 8718f76d (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Sun, 12 Jun 2022 12:45:43 +0000 (UTC) Date: Sun, 12 Jun 2022 14:45:39 +0200 From: Julien Lepiller To: guix-patches@gnu.org Subject: [PATCH] gnu: icedtea-7: Add native-search-paths. Message-ID: <20220612144539.55d5bcc0@sybil.lepiller.eu> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/LbJ2scuhcQCJl++0ytBPPx5" Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu 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_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit 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: -2.3 (--) --MP_/LbJ2scuhcQCJl++0ytBPPx5 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Guix! This short patch adds a CLASSPATH native-search-path to our icedtea and openjdk packages. It lets users build java on their machine using Guix-provided dependencies and the JVM/JDK won't complain anymore it can't find the dependencies :) Unfortunately, this requires rebuilding all of Java, so it should go to staging. I tested the patch on my computer and rebuilt all packages up to java-jmh. No breakage to report, except a two undeterministic test failures in jmh and commons-collections4. --MP_/LbJ2scuhcQCJl++0ytBPPx5 Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-gnu-icedtea-7-Add-native-search-paths.patch >From 8c35ca59ab1977eb56d4a157fda774645f7702fd Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sun, 12 Jun 2022 14:39:42 +0200 Subject: [PATCH] gnu: icedtea-7: Add native-search-paths. This is inherited by other icedtea and openjdk versions. * gnu/packages/java.scm (icedtea-7): Add CLASSPATH support. --- gnu/packages/java.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index fcac0c2367..ad7ecc3d84 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -798,6 +798,12 @@ (define-public icedtea-7 (outputs '("out" ; Java Runtime Environment "jdk" ; Java Development Kit "doc")) ; all documentation + (native-search-paths + (list (search-path-specification + (variable "CLASSPATH") + (files '("lib/m2" "share/java")) + (file-type 'regular) + (file-pattern ".*\\.jar$")))) (arguments `(;; There are many test failures. Some are known to ;; fail upstream, others relate to not having an X -- 2.35.1 --MP_/LbJ2scuhcQCJl++0ytBPPx5--