GNU bug report logs - #55927
[PATCH] gnu: icedtea-7: Add native-search-paths.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Julien Lepiller <julien@HIDDEN>; Keywords: patch; dated Sun, 12 Jun 2022 12:48:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 55927 <at> debbugs.gnu.org:


Received: (at 55927) by debbugs.gnu.org; 16 Mar 2026 12:51:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 16 08:51:35 2026
Received: from localhost ([127.0.0.1]:59870 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1w27Pz-00063J-2J
	for submit <at> debbugs.gnu.org; Mon, 16 Mar 2026 08:51:35 -0400
Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:46282)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1w27Pm-00060H-7P
 for 55927 <at> debbugs.gnu.org; Mon, 16 Mar 2026 08:51:23 -0400
Received: by mail-wm1-x32c.google.com with SMTP id
 5b1f17b1804b1-4852c9b4158so40323925e9.0
 for <55927 <at> debbugs.gnu.org>; Mon, 16 Mar 2026 05:51:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1773665481; x=1774270281; 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=JTZ8RTZem4b2CcW+aSJVKT4QZA6+QA2Ou0BtySaLtmE=;
 b=h8RnV6BpBYatFc4PQtb+MQWv5EC/Vhbp+GQS3/9g0QGWeA0ntIehx3OysYjvpQpqx1
 8y8eR5JZw/ostB6aUJeCiBg9a65cW+Pn8K7pTJrVrztJu4Yz/QsjX51Q10ichL/5HzUm
 qiQZBl7Sf5Rsy2c/ru2Q2RG0gNWCTv0q0TNailNbwr8lDB9kxxuxfxJNXktyzWGM4F+n
 zhA6u9tEjdXHqMI5sP4qyEC7zJoZujTvwAxA8lTxdmAHMxxZTFB266Va6UjKRmO0VrcF
 Z7z4k9C+eNbsnEzoyv0XZpniZJjAEYIf0efbwDdogPL8STdUppQ8hfkkOg6HufsJAqww
 HXnw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1773665481; x=1774270281;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject
 :date:message-id:reply-to;
 bh=JTZ8RTZem4b2CcW+aSJVKT4QZA6+QA2Ou0BtySaLtmE=;
 b=jndVm3T74zquBpgVGn4RU6q8xonikTlSlGDEpm6Kt4guHPSiUyNZsDYymkdv0TXITZ
 jqcIri/1/EDrPvd6WiMVEGWnJs/ScW0owkPWQ/CpoP8wo9NDldRVjMBHgY732hp+SA/E
 NvDA6keVJ4gt+nyfknjJhi+d7LwGhvNRQZXOjCSjP6zoY6w3cBULpoO5gkfAxzkJAx6/
 lxBl5bsuy8DR46HCw/79FHRRDUNKl1AbvX90do/rcWP9Z3uLXuR7/H+J10HXTSSzdYzB
 ACwiMygOfzJady418dUOUdLr6OE4OkocUbBXqDMvXCnZDvhThmrtdIVJJU2HJ/owBCr/
 UUMg==
X-Forwarded-Encrypted: i=1;
 AJvYcCXhfl0ToHnTJS4s1CKCsM5ahE/XMRbeyL3eNwqC6JFcRiJu1IjC+yjxS8TF1BS5Q4zn2LMroA==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwCV2i+fwsdmzjrty6rHoRxWBjBZ3wykHyeKRquRuXngFG50cNR
 ACOs3Pay9+KTe6GZRUQrj7ers96cVe8Dy+n3NIbFW1QLbdqqTGTt01jlkM82Bg==
X-Gm-Gg: ATEYQzwLcoK6J/w3vRV1rbQZnQcLVirJO0MD/Bvjf6mFjF20ZyK63zzYtVYwGgsFirQ
 sUhFkYuSE1ksR1ZqG8Q8QvlFKEG/exYV+zGSmB3w8rD5BpyldgTR+KsuQhYFcSDmdl2JJa3baKy
 t2rm7lMv3XhidmQ+chavBKQcTKz6WTvwa9poENAz3i7d4K+F4/knK+52mcINR+5DkAvOoX52NDW
 aePiZ18On2FjMJXwNlM784OlK85AlhyI3KPqfQfIGJMr3HCssFxAqMtrmQaJQMX1Q2kXOuRZEbp
 z//HHxPJaEHHpm2fBUY4rSpU2zpF30H13CG92Z2A0vRU3RqAHf8m/g2WXCHNSXbZ7jAb5fCnubc
 s7CJ6SghK3O21997ff09E/8jAMd2NjLVkohSainw2snlVhnUSW2aA47d7Pj2FIV6kpWu4ldxAI3
 rAJt1MKvbdTl5w1ZqW/CUlyIT2K18/sl2jsGSp+3gX2UOFlBZ5X17xM4bPZ/uFKjefJjucPw==
X-Received: by 2002:a05:600c:45d5:b0:485:3ff1:d5c3 with SMTP id
 5b1f17b1804b1-485566cfa3cmr206738895e9.5.1773665481015; 
 Mon, 16 Mar 2026 05:51:21 -0700 (PDT)
Received: from lili (nat-dsi-209.net.univ-paris-diderot.fr. [81.194.30.209])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-4854b47145dsm425408605e9.0.2026.03.16.05.51.20
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 16 Mar 2026 05:51:20 -0700 (PDT)
From: Simon Tournier <zimon.toutoune@HIDDEN>
To: Mathieu Lirzin <mthl@HIDDEN>
Subject: Re: [bug#55927] [PATCH] gnu: icedtea-7: Add native-search-paths.,
 [PATCH] gnu: icedtea-7: Add native-search-paths.
In-Reply-To: <87ikbzcpbw.fsf@HIDDEN> (Mathieu Lirzin's message of "Sat, 14
 Feb 2026 16:33:23 +0100")
References: <20220612144539.55d5bcc0@HIDDEN>
 <87ikbzcpbw.fsf@HIDDEN>
Date: Mon, 16 Mar 2026 13:03:55 +0100
Message-ID: <877brc56c4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 55927
Cc: Julien Lepiller <julien@HIDDEN>, 55927 <at> debbugs.gnu.org
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: 0.0 (/)

Hi,

On Sat, 14 Feb 2026 at 16:33, Mathieu Lirzin <mthl@HIDDEN> wrote:

> I don't have a good solution for that problem, so I would recommend
> doing nothing until we do.

Well, if this ticket is not currently actionable I would suggest to
close it.  And maybe open a fresh one on Codeberg; this way it could
attract the attention it deserves. :-)c

WDYT?

> [1] <https://www.youtube.com/watch?v=7CM7Ef-dPWQ>

Oh cool, thanks!

Cheers,
simon




Information forwarded to guix-patches@HIDDEN:
bug#55927; Package guix-patches. Full text available.

Message received at 55927 <at> debbugs.gnu.org:


Received: (at 55927) by debbugs.gnu.org; 14 Feb 2026 15:33:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 14 10:33:37 2026
Received: from localhost ([127.0.0.1]:49648 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vrHeK-0004tS-O5
	for submit <at> debbugs.gnu.org; Sat, 14 Feb 2026 10:33:37 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:35840)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <mthl@HIDDEN>) id 1vrHeI-0004sO-NW
 for 55927 <at> debbugs.gnu.org; Sat, 14 Feb 2026 10:33:36 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mthl@HIDDEN>)
 id 1vrHeB-00036I-9n; Sat, 14 Feb 2026 10:33:27 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=hSclpebFWJHRLQiMOe7ovxRXy27HPX1E9nYNhCrvsFs=; b=Pplm0uUB8vGjCRQyt7x6
 oqGeisLlYcr0S96H2dTpa3LAyp39nEkGrxHd5O13mxtV3mUkHNRbQQ7U/FEvBUv/M+KoB5apKMabT
 jPiz56IfONvy8RKoSGhgp/OQP1pzlC9+A9G9Dzoe//Enbubqifqk86gB9QSrafaFu7ktegp5pXtYM
 pH82FkuYghjwTeQ85M8FH89EbdgJUs7Cp3U52BhOlPELByMY5OCV8mjpMSJccLMMdb7DNL3uX4NZJ
 eTBKgxB795+eZbbvPYPyIi5nhCvuUebwR1BQClI2QW2IKvd04K/Z+NwkvT1zFJqLL58fxOcDgIx+7
 a2sLmpsGzo6wkA==;
From: Mathieu Lirzin <mthl@HIDDEN>
To: Julien Lepiller <julien@HIDDEN>
Subject: Re: [bug#55927] [PATCH] gnu: icedtea-7: Add native-search-paths.,
 [PATCH] gnu: icedtea-7: Add native-search-paths.
In-Reply-To: <20220612144539.55d5bcc0@HIDDEN> (Julien Lepiller's
 message of "Sun, 12 Jun 2022 14:45:39 +0200")
References: <20220612144539.55d5bcc0@HIDDEN>
Date: Sat, 14 Feb 2026 16:33:23 +0100
Message-ID: <87ikbzcpbw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 55927
Cc: 55927 <at> debbugs.gnu.org
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: -3.3 (---)

Hello Julien,

Julien Lepiller <julien@HIDDEN> writes:

> 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 :)

I think it would be great to be able to use Guix provided dependencies.
However we need to be careful about version collision, because we can
end up with multiple versions of the same Java package in a single
profile.  Including multiple versions of the same package in CLASSPATH
can lead to nasty runtime behavior where you end up using a mix of both
version that depend on the order of jar in the classpath.

For example with the following profile

  guix shell --pure java-plexus-component-metadata java-qdox

You end up with both qdox-2.0-M2 and qdox-2.0-M9 jars.  So to have a
valid classpath you have to pick only one of them.  Since in Guix
multiple versions of the same package are provided only when they exists
some breakage making impossible to use only the latest one as inputs for
all dependant packages, probability of encountering some problem is
high.

I don't have a good solution for that problem, so I would recommend
doing nothing until we do. If you are interested in the dependency
resolution subject in the context of Java/Clojure I recommend the
following talk by Alex Miller [1].

[1] <https://www.youtube.com/watch?v=7CM7Ef-dPWQ>

Thanks,

Mathieu




Information forwarded to guix-patches@HIDDEN:
bug#55927; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 12 Jun 2022 12:47:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 12 08:47:20 2022
Received: from localhost ([127.0.0.1]:55024 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o0Mzw-0007Vw-1p
	for submit <at> 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 <julien@HIDDEN>) id 1o0Mzt-0007Vn-PZ
 for submit <at> 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 <julien@HIDDEN>)
 id 1o0Mzt-0004X8-HZ
 for guix-patches@HIDDEN; 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 <julien@HIDDEN>)
 id 1o0Mzq-00057e-VU
 for guix-patches@HIDDEN; 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 <guix-patches@HIDDEN>; 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 <guix-patches@HIDDEN>;
 Sun, 12 Jun 2022 12:45:43 +0000 (UTC)
Date: Sun, 12 Jun 2022 14:45:39 +0200
From: Julien Lepiller <julien@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: icedtea-7: Add native-search-paths.
Message-ID: <20220612144539.55d5bcc0@HIDDEN>
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@HIDDEN; 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 <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.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 <julien@HIDDEN>
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--




Acknowledgement sent to Julien Lepiller <julien@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#55927; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 16 Mar 2026 13:00:03 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.