unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#40387] [PATCH] gnu: Set JAVA_HOME for all Java development kits.
@ 2020-04-02  8:10 Pierre Neidhardt
       [not found] ` <handler.40387.B.158581504230091.ack@debbugs.gnu.org>
  2020-12-18 11:17 ` [bug#40387] [PATCH] gnu: Set JAVA_HOME for all Java development kits Christopher Baines
  0 siblings, 2 replies; 6+ messages in thread
From: Pierre Neidhardt @ 2020-04-02  8:10 UTC (permalink / raw)
  To: 40387

* gnu/packages/java.scm (icedtea-6, icedtea-7, openjdk9)[native-search-paths]:
  Set JAVA_HOME to "jre".
  This fixes issues for which the Java tooling could not find Jars,
  e.g. tools.jar.
---
 gnu/packages/java.scm | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 4d305aac49..ca6c64fc1e 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -1078,6 +1078,10 @@ machine.")))
            (sha256
             (base32
              "0835lkw8vib1xhp8lxnybhlvzdh699hbi4mclxanydjk63zbpxk0"))))))
+    (native-search-paths
+       (list (search-path-specification
+              (variable "JAVA_HOME")
+              (files '("jre")))))
     (home-page "http://icedtea.classpath.org")
     (synopsis "Java development kit")
     (description
@@ -1620,6 +1624,10 @@ bootstrapping purposes.")
          ("lcms" ,lcms)
          ("zlib" ,zlib)
          ("gtk" ,gtk+-2)))
+      (native-search-paths
+       (list (search-path-specification
+              (variable "JAVA_HOME")
+              (files '("jre")))))
       (home-page "http://icedtea.classpath.org")
       (synopsis "Java development kit")
       (description
@@ -1923,6 +1931,10 @@ new Date();"))
        ("unzip" ,unzip)
        ("which" ,which)
        ("zip" ,zip)))
+    (native-search-paths
+       (list (search-path-specification
+              (variable "JAVA_HOME")
+              (files '("jre")))))
     (home-page "https://openjdk.java.net/projects/jdk9/")
     (synopsis "Java development kit")
     (description
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#40387] Acknowledgement ([PATCH] gnu: Set JAVA_HOME for all Java development kits.)
       [not found] ` <handler.40387.B.158581504230091.ack@debbugs.gnu.org>
@ 2020-04-02  8:28   ` Pierre Neidhardt
  2020-04-02  8:56     ` Roel Janssen
  0 siblings, 1 reply; 6+ messages in thread
From: Pierre Neidhardt @ 2020-04-02  8:28 UTC (permalink / raw)
  To: 40387; +Cc: Roel Janssen

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

I cannot test this patch unfortunately, build icedtea-8 fails for me
with


--8<---------------cut here---------------start------------->8---
INFO: ZIP_DEBUGINFO_FILES=1
echo Generating precompiled header precompiled.hpp.gch
Generating precompiled header precompiled.hpp.gch
mkdir -p .
/gnu/store/x3jx25cd3q363mr7nbgzrhrv1vza6cf7-gcc-7.4.0/bin/g++ -DLINUX -D_GNU_SOURCE -DAMD64 -DPRODUCT -I. -I/tmp/guix-build-icedtea-3.7.0.drv-0/icedtea-2.6.13/openjdk/hotspot/src/share/vm/prims -I/tmp/guix-build-icedtea-3.7.0.drv-0/icedtea-2.6.13/openjdk/hotspot/src/share/vm -I/tmp/guix-build-icedtea-3.7.0.drv-0/icedtea-2.6.13/openjdk/hotspot/src/share/vm/precompiled -I/tmp/guix-build-icedtea-3.7.0.drv-0/icedtea-2.6.13/openjdk/hotspot/src/cpu/x86/vm -I/tmp/guix-build-icedtea-3.7.0.drv-0/icedtea-2.6.13/openjdk/hotspot/src/os_cpu/linux_x86/vm -I/tmp/guix-build-icedtea-3.7.0.drv-0/icedtea-2.6.13/openjdk/hotspot/src/os/linux/vm -I/tmp/guix-build-icedtea-3.7.0.drv-0/icedtea-2.6.13/openjdk/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"25.161-b12\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"nixbld\"" -DHOTSPOT_LIB_ARCH=\"amd64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DDERIVATIVE_ID="\"IcedTea 3.7.0\"" -DDISTRIBUTION_ID="\"Custom build\""  -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64  -pipe -fno-strict-aliasing  -g -fno-omit-frame-pointer -O3  -DVM_LITTLE_ENDIAN -D_LP64=1  -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value   -g -O2 -fno-delete-null-pointer-checks -fno-lifetime-dse -std=gnu++98 -c -MMD -MP -MF ../generated/dependencies/precompiled.hpp.gch.d -fpch-deps -x c++-header /tmp/guix-build-icedtea-3.7.0.drv-0/icedtea-2.6.13/openjdk/hotspot/src/share/vm/precompiled/precompiled.hpp -o precompiled.hpp.gch 
In file included from /tmp/guix-build-icedtea-3.7.0.drv-0/icedtea-2.6.13/openjdk/hotspot/src/share/vm/precompiled/precompiled.hpp:315:0:
/tmp/guix-build-icedtea-3.7.0.drv-0/icedtea-2.6.13/openjdk/hotspot/src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.hpp:250:2: fatal error: can't write PCH file: No space left on device
 };
  ^
compilation terminated.
--8<---------------cut here---------------end--------------->8---

Even though I do have enough space and memory left.
Unsure what's going on.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#40387] Acknowledgement ([PATCH] gnu: Set JAVA_HOME for all Java development kits.)
  2020-04-02  8:28   ` [bug#40387] Acknowledgement ([PATCH] gnu: Set JAVA_HOME for all Java development kits.) Pierre Neidhardt
@ 2020-04-02  8:56     ` Roel Janssen
  2020-04-02  9:03       ` Pierre Neidhardt
  0 siblings, 1 reply; 6+ messages in thread
From: Roel Janssen @ 2020-04-02  8:56 UTC (permalink / raw)
  To: Pierre Neidhardt, 40387

On Thu, 2020-04-02 at 10:28 +0200, Pierre Neidhardt wrote:
> I cannot test this patch unfortunately, build icedtea-8 fails for me
> with
> 
> 
> --8<---------------cut here---------------start------------->8---
> INFO: ZIP_DEBUGINFO_FILES=1
> echo Generating precompiled header precompiled.hpp.gch
> Generating precompiled header precompiled.hpp.gch
> mkdir -p .
> /gnu/store/x3jx25cd3q363mr7nbgzrhrv1vza6cf7-gcc-7.4.0/bin/g++ -DLINUX
> -D_GNU_SOURCE -DAMD64 -DPRODUCT -I. -I/tmp/guix-build-icedtea-3.7.0.drv-
> 0/icedtea-2.6.13/openjdk/hotspot/src/share/vm/prims -I/tmp/guix-build-icedtea-
> 3.7.0.drv-0/icedtea-2.6.13/openjdk/hotspot/src/share/vm -I/tmp/guix-build-
> icedtea-3.7.0.drv-0/icedtea-2.6.13/openjdk/hotspot/src/share/vm/precompiled
> -I/tmp/guix-build-icedtea-3.7.0.drv-0/icedtea-
> 2.6.13/openjdk/hotspot/src/cpu/x86/vm -I/tmp/guix-build-icedtea-3.7.0.drv-
> 0/icedtea-2.6.13/openjdk/hotspot/src/os_cpu/linux_x86/vm -I/tmp/guix-build-
> icedtea-3.7.0.drv-0/icedtea-2.6.13/openjdk/hotspot/src/os/linux/vm
> -I/tmp/guix-build-icedtea-3.7.0.drv-0/icedtea-
> 2.6.13/openjdk/hotspot/src/os/posix/vm -I../generated
> -DHOTSPOT_RELEASE_VERSION="\"25.161-b12\""
> -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"nixbld\""
> -DHOTSPOT_LIB_ARCH=\"amd64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\""
> -DDERIVATIVE_ID="\"IcedTea 3.7.0\"" -DDISTRIBUTION_ID="\"Custom build\""  -
> DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64
> -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64
> -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions
> -D_REENTRANT -fcheck-new -fvisibility=hidden -m64  -pipe -fno-strict-
> aliasing  -g -fno-omit-frame-pointer -O3  -DVM_LITTLE_ENDIAN -D_LP64=1  -
> Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value   -g
> -O2 -fno-delete-null-pointer-checks -fno-lifetime-dse -std=gnu++98 -c -MMD -MP
> -MF ../generated/dependencies/precompiled.hpp.gch.d -fpch-deps -x c++-header
> /tmp/guix-build-icedtea-3.7.0.drv-0/icedtea-
> 2.6.13/openjdk/hotspot/src/share/vm/precompiled/precompiled.hpp -o
> precompiled.hpp.gch 
> In file included from /tmp/guix-build-icedtea-3.7.0.drv-0/icedtea-
> 2.6.13/openjdk/hotspot/src/share/vm/precompiled/precompiled.hpp:315:0:
> /tmp/guix-build-icedtea-3.7.0.drv-0/icedtea-
> 2.6.13/openjdk/hotspot/src/share/vm/gc_implementation/parallelScavenge/paralle
> lScavengeHeap.hpp:250:2: fatal error: can't write PCH file: No space left on
> device
>  };
>   ^
> compilation terminated.
> --8<---------------cut here---------------end--------------->8---
> 
> Even though I do have enough space and memory left.
> Unsure what's going on.
> 

Is your /tmp a separate partition, and full at the time this build fails?

Kind regards,
Roel Janssen

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#40387] Acknowledgement ([PATCH] gnu: Set JAVA_HOME for all Java development kits.)
  2020-04-02  8:56     ` Roel Janssen
@ 2020-04-02  9:03       ` Pierre Neidhardt
  0 siblings, 0 replies; 6+ messages in thread
From: Pierre Neidhardt @ 2020-04-02  9:03 UTC (permalink / raw)
  To: Roel Janssen, 40387

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

/tmp is a separate partition but it's a tmpfs, it uses my virtual
memory which is largely free (5GiB+).

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#40387] [PATCH] gnu: Set JAVA_HOME for all Java development kits.
  2020-04-02  8:10 [bug#40387] [PATCH] gnu: Set JAVA_HOME for all Java development kits Pierre Neidhardt
       [not found] ` <handler.40387.B.158581504230091.ack@debbugs.gnu.org>
@ 2020-12-18 11:17 ` Christopher Baines
  2020-12-18 12:31   ` Pierre Neidhardt
  1 sibling, 1 reply; 6+ messages in thread
From: Christopher Baines @ 2020-12-18 11:17 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 40387

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


Pierre Neidhardt <mail@ambrevar.xyz> writes:

> * gnu/packages/java.scm (icedtea-6, icedtea-7, openjdk9)[native-search-paths]:
>   Set JAVA_HOME to "jre".
>   This fixes issues for which the Java tooling could not find Jars,
>   e.g. tools.jar.

Which tools have you observed not to work? I tried running javac and I
got the help output at least.

Thanks,

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#40387] [PATCH] gnu: Set JAVA_HOME for all Java development kits.
  2020-12-18 11:17 ` [bug#40387] [PATCH] gnu: Set JAVA_HOME for all Java development kits Christopher Baines
@ 2020-12-18 12:31   ` Pierre Neidhardt
  0 siblings, 0 replies; 6+ messages in thread
From: Pierre Neidhardt @ 2020-12-18 12:31 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 40387

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

Sorry, I forgot, I've moved on since then.
Maybe it was for some Clojure thing.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-12-18 12:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-02  8:10 [bug#40387] [PATCH] gnu: Set JAVA_HOME for all Java development kits Pierre Neidhardt
     [not found] ` <handler.40387.B.158581504230091.ack@debbugs.gnu.org>
2020-04-02  8:28   ` [bug#40387] Acknowledgement ([PATCH] gnu: Set JAVA_HOME for all Java development kits.) Pierre Neidhardt
2020-04-02  8:56     ` Roel Janssen
2020-04-02  9:03       ` Pierre Neidhardt
2020-12-18 11:17 ` [bug#40387] [PATCH] gnu: Set JAVA_HOME for all Java development kits Christopher Baines
2020-12-18 12:31   ` Pierre Neidhardt

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).