all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: 55927@debbugs.gnu.org
Subject: [bug#55927] [PATCH] gnu: icedtea-7: Add native-search-paths.
Date: Sun, 12 Jun 2022 14:45:39 +0200	[thread overview]
Message-ID: <20220612144539.55d5bcc0@sybil.lepiller.eu> (raw)

[-- Attachment #1: Type: text/plain, Size: 504 bytes --]

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.

[-- Attachment #2: 0001-gnu-icedtea-7-Add-native-search-paths.patch --]
[-- Type: text/x-patch, Size: 1144 bytes --]

From 8c35ca59ab1977eb56d4a157fda774645f7702fd Mon Sep 17 00:00:00 2001
From: Julien Lepiller <julien@lepiller.eu>
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


                 reply	other threads:[~2022-06-12 12:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220612144539.55d5bcc0@sybil.lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=55927@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.