Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1025832

Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base

From tony mancill <tmancill@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base
Date 2020-09-21 07:10 +0200
Message-ID <ARmfo-tw-5@gated-at.bofh.it> (permalink)
References (6 earlier) <AQpoZ-74N-3@gated-at.bofh.it> <z2pnX-1pI-1@gated-at.bofh.it> <AQrh7-8bH-5@gated-at.bofh.it> <z2pnX-1pI-1@gated-at.bofh.it> <AQrh7-8bH-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Tiago, hi Julian,

On Fri, Sep 18, 2020 at 01:13:55PM -0300, Tiago Daitx wrote:
> Hi Tony,
> 
> Matthias is the actual Debian Maintainer, but in my opinion the patch
> is great and should be ok to go do an upload including it.

Yes, that's a good point.  Once the upload is ready (see below), I will
upload it as an NMU to the delayed queue if we haven't heard back from
Matthias.

> > > On Thu, Sep 17, 2020 at 06:45:39PM +0100, Julian Gilbey wrote:
> > > > affects 944738 openjdk-14-jdk
> > > > thanks
> > > >
> > > > The same problem is still present in openjdk-14 - see
> > > > https://bugs.debian.org/968991
> > >
> > > I have located the source of the bug and have a patch to fix it.
> > >
> > > The cause is the use of dh_strip_nondeterminism late in the build
> > > process.  This reorganises the jmod files, which in turn changes their
> > > SHA256 checksums.  This would not be a problem, except that the
> > > checksums are saved in java.base.jmod *before* the use of
> > > dh_strip_nondeterminism.  Performing this stripping immediately after
> > > each jmod file is created results in the checksums being consistent
> > > throughout.

Julian, I applied the patch and built the package successfully, but
jlink still fails with the "expected hash" error.  It's (perhaps)
interesting that the expected hash does differ between the patched build
and the unpatched build.

Disabling the invocation of 'dh_strip_nondeterminism -a' in
debian/rules *does* address the problem with jlink, either with or
without the jmod patch applied.  Also, I had to add strip-determinism to
the build-deps to build with the patch.

Given that the package doesn't build reproducibly anyway, my inclination
is to make the change in debian/rules to address this long-standing bug.

Thanks,
tony

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base Bill Zaumen <bill.zaumen@gmail.com> - 2020-08-20 07:10 +0200
  Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base Julian Gilbey <jdg@debian.org> - 2020-09-17 20:10 +0200
    Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base Julian Gilbey <jdg@debian.org> - 2020-09-18 12:20 +0200
      Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base Julian Gilbey <jdg@debian.org> - 2020-09-18 12:30 +0200
      Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base tony mancill <tmancill@debian.org> - 2020-09-18 16:20 +0200
        Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base Tiago Daitx <tiago.daitx@canonical.com> - 2020-09-18 18:20 +0200
          Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base Julian Gilbey <jdg@debian.org> - 2020-09-18 18:30 +0200
          Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base tony mancill <tmancill@debian.org> - 2020-09-21 07:10 +0200
            Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base Julian Gilbey <jdg@debian.org> - 2020-09-21 11:10 +0200
              Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base tony mancill <tmancill@debian.org> - 2020-09-21 16:10 +0200
                Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base Julian Gilbey <jdg@debian.org> - 2020-09-21 22:30 +0200
                Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base tony mancill <tmancill@debian.org> - 2020-09-22 08:00 +0200
                Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base Julian Gilbey <jdg@debian.org> - 2020-09-22 11:10 +0200
                Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base tony mancill <tmancill@debian.org> - 2020-09-22 16:20 +0200
                Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base Julian Gilbey <jdg@debian.org> - 2020-09-23 14:50 +0200
                Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base tony mancill <tmancill@debian.org> - 2020-09-23 20:20 +0200
                Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base Julian Gilbey <jdg@debian.org> - 2020-09-23 22:00 +0200
                Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base tony mancill <tmancill@debian.org> - 2020-09-24 06:00 +0200
                Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base Julian Gilbey <jdg@debian.org> - 2020-09-24 12:00 +0200
                Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base tony mancill <tmancill@debian.org> - 2020-09-25 02:30 +0200
                Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base Julian Gilbey <jdg@debian.org> - 2020-09-25 17:00 +0200
                Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base tony mancill <tmancill@debian.org> - 2020-09-25 17:20 +0200
                Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base Florian Weimer <fw@deneb.enyo.de> - 2020-09-25 18:30 +0200
                Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base Julian Gilbey <jdg@debian.org> - 2020-09-25 18:50 +0200
                Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base Florian Weimer <fw@deneb.enyo.de> - 2020-09-25 18:50 +0200
                Bug#944738: [Openjdk] Bug#944738: jlink: Hash of module differs to expected hash recorded in java.base tony mancill <tmancill@debian.org> - 2020-09-28 05:30 +0200

csiph-web