[Bug 1868699] Re: jlink fails due to unexpected hash of java.* modules

2020-03-31 Thread Sebastian Stenzel
I asked about this in the jigsaw mailing list and got a response that
suggests that the Ubuntu build "is doing stripping or other
modifications to the packaged modules".

If this is the case, the hashes stored in the java.base package need to
be patched, too.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1868699

Title:
  jlink fails due to unexpected hash of java.* modules

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-14/+bug/1868699/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1869869] [NEW] jlink fails due to unexpected hash of java.* modules

2020-03-31 Thread Sebastian Stenzel
Public bug reported:

Basically the same bug as I reported earlier in
https://bugs.launchpad.net/ubuntu/+source/openjdk-14/+bug/1868699,
however it also affects the latest LTS build:

/usr/lib/jvm/java-11-openjdk-amd64/bin/jlink \
> --output myRuntimeImage \
> --no-header-files \
> --no-man-pages \
>  --strip-debug \
>  --compress=2 \
>  --verbose \
> --add-modules 
> java.base,java.logging,java.xml,java.sql,java.management,java.security.sasl,java.naming,java.datatransfer,java.security.jgss,java.rmi,java.scripting,java.prefs,java.desktop,jdk.security.auth,jdk.unsupported,java.net.http,jdk.crypto.ec
Error: Hash of java.rmi 
(ccefd4d0a51f66cd65f3b648c4a74a67202a3069035b27038b32b26ab601ce8b) differs to 
expected hash 
(e5f988d0fe0cb2e35b244771b92cadab4df78eae2cbfc7c60de8cddcbaec5025) recorded in 
java.base

I'm not sure, if bugs on the openjdk-14 package are even seen by anyone,
so I decided to re-report this here.

This build of OpenJDK tampers with the jmods without fixing the hashes,
making the new packaging tools useless for PPAs.

** Affects: openjdk-lts (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1869869

Title:
  jlink fails due to unexpected hash of java.* modules

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1869869/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1869869] Re: jlink fails due to unexpected hash of java.* modules

2020-03-31 Thread Sebastian Stenzel
I also asked in the openjdk mailing list and they suggested that this is
probably caused by patches applied by Ubuntu's builds
https://mail.openjdk.java.net/pipermail/jigsaw-
dev/2020-March/014398.html

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1869869

Title:
  jlink fails due to unexpected hash of java.* modules

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1869869/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1868699] Re: jlink fails due to unexpected hash of java.* modules

2020-05-22 Thread Sebastian Stenzel
@lehman-austin In fact jlink itself should work fine from both, openjdk
and adoptopenjdk. The problem lies in the broken *.jmod files in
openjdk. Thus your jlink from adoptopenjdk will also fail, if you point
to the jmods in the JAVA_HOME dir of openjdk.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1868699

Title:
  jlink fails due to unexpected hash of java.* modules

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-14/+bug/1868699/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1868699] Re: jlink fails due to unexpected hash of java.* modules

2020-05-01 Thread Sebastian Stenzel
Works fine using docker openjdk:14-jdk-buster. No idea this is built,
but they build it differently at the openjdk team.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1868699

Title:
  jlink fails due to unexpected hash of java.* modules

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-14/+bug/1868699/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1868699] [NEW] jlink fails due to unexpected hash of java.* modules

2020-03-24 Thread Sebastian Stenzel
Public bug reported:

Ubuntu Focal Fossa (development branch)
Linux 4.4.0-176-generic
openjdk-14-jdk-headless 14~36-2

It appears that jlink fails to create runtime images. I expected the
command mentioned below to succeed (exit code 0).

Instead it fails (exit code 1) with the following error message:

> Error: Hash of java.rmi
(91a6fed418dc8e3f6af3874310ba35fbc6dc8cd437fc44ed87f8ac453c98d192)
differs to expected hash
(818ed0065f7ac05ec64de9c2619651dd3eac05cbf40ec3d8958ebb64f5aa3e83)
recorded in java.base

When I remove java.rmi from my list of modules, it fails for a different
module instead. I suspect that the hashes for all modules might be
wrong.

To reproduce this, run (optionally try some other modules):

/usr/lib/jvm/java-14-openjdk-amd64/bin/jlink \
--output myRuntimeImage \
--no-header-files \
--no-man-pages \
--strip-debug \
--compress=2 \
--verbose \
--add-modules 
java.base,java.logging,java.xml,java.sql,java.management,java.security.sasl,java.naming,java.datatransfer,java.security.jgss,java.rmi,java.scripting,java.prefs,java.desktop,jdk.security.auth,jdk.unsupported,java.net.http,jdk.crypto.ec

** Affects: openjdk-14 (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1868699

Title:
  jlink fails due to unexpected hash of java.* modules

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-14/+bug/1868699/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs