• Builds not reproducible on armhf

    From Mechtilde Stehmann@21:1/5 to Debian Java on Mon May 20 10:20:01 2024
    XPost: linux.debian.ports.arm
    To: debian-arm@lists.debian.org

    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------Gk8V2ntXwJKwcmuiQ3JzQO7R
    Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64

    SGVsbG8sDQoNCkkgd2FudCB0byBjbGVhbiB1cCBteSBKYXZhIHBhY2thZ2VzLg0KDQpUaGVy ZSBhcmUgc2V2ZXJhbCB3aXRoIEZUQlIuIEkgZm91bmQgdGhhdCB0aGUgZGF5IG9mIHRoZSAq LnBvbXMgcyBhIGRhdGUgDQpmcm9tIDE5NzAuDQoNCmZvciBleGFtcGxlIHRoZXkgYXJlIHRo ZSBwYWNrYWdlcw0KDQp2aW5uaWUNCmNvbW1vbnMtZW1haWwNCmV6LXZjYXJkDQouLi4NCmFu ZCBzbyBvbg0KDQpDYW4geW91IGdpdmUgbWUvYSBoaW50IHRvIGZpeCB0aGlzIGJlaGF2aW91 ci4NCg0KS2luZCByZWdhcmRzDQotLSANCk1lY2h0aWxkZSBTdGVobWFubg0KIyMgRGViaWFu IERldmVsb3Blcg0KIyMgUEdQIGVuY3J5cHRpb24gd2VsY29tZQ0KIyMgRjBFMyA3RjNEIEM4 N0EgNDk5OCAyODk5ICAzOUU3IEYyODcgN0JCQSAxNDFBIEFEN0YNCg==

    --------------Gk8V2ntXwJKwcmuiQ3JzQO7R--

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEE8ON/Pch6SZgomTnn8od7uhQarX8FAmZK/WEACgkQ8od7uhQa rX8hnQ/9EJOCJUYBmsLzCwxcrdCx/kcx8BZXfuA87Lk1og6WM8gjf8t6zrqIUtiT An9YUEHOawdsUYYgF8bjLJUJk55JAHfAl/rl2DZoEfpI9fqstorFGUimeiPDZa8L omPiKMOmEGf7gfRfwevHaqaH/y3QhImDMJjsbtiqiFLjy5QB5UO/yB5jBlgsiD8K gaTpa+IAVpBrZg0La9tgLiyM/wZrFKt+HO0hxANWzdSP+QcnS8HqQlpj3Tx8OX12 fxLXJX27zYgciS6nysk16gHUw9FdEQwoZG1kZGF+hxfqIEuThKAMOyZhUR7oP3sy 2oO/3YecChxXagdD2p0+16KZe1reh5/hBc63cKT1Q9eKWIgy7yGgdkKCWT2GRaXv 6OEcbDeaBGx/6ISKO2oO2Hx0iyGjPf93bm7Z+oMFAILy1xPYFRneeWoyX3BKxNrp NJgKv3kKFLrjz4VMhQ+zj4tMoLTDJKEgYnDq4L0FeclVrajbb1UI3BCLpgB5Yp5A b4Y2RH5mDsPy8t0WUY6yK4HhWJADq7KGGC05rFUCub0H9uzCxuOgdNrnAfDFiL0o ZLZP6rAF+GRrcB/tH1+0RW1lN27Vm0emdrtR+cUkjaM+YQPfqqVOUP2aln8jh1Hk FBoVCgVKXfQrtDryTtYwCxXaaJjtlTetgx7eM4NZqlChDAC+uXc=
    =aLcN
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Thorsten Glaser@21:1/5 to Mechtilde Stehmann on Mon May 20 18:20:01 2024
    XPost: linux.debian.ports.arm

    On Mon, 20 May 2024, Mechtilde Stehmann wrote:

    There are several with FTBR. I found that the day of the *.poms s a date from 1970.

    I’ve had a look at this. The files have various, *differing*,
    timestamps within the month of January 1970, which in itself
    is not proper.

    It’s not a t64-related JDK bug: I tested…

    import java.io.*;

    class T1 {
    public static void main(String args[]) throws IOException {
    File sf = new File("T1.java");
    File df = new File("T1.out");
    System.out.println(sf.lastModified());
    InputStream is = new FileInputStream(sf);
    OutputStream os = new FileOutputStream(df);
    byte[] data = new byte[32768];
    int nbytes = is.read(data);
    os.write(data, 0, nbytes);
    os.close();
    is.close();
    df.setLastModified(sf.lastModified());
    }
    }

    … on armhf with OpenJDK 8, 17 and 21 (11 needs t64-transitioning).

    Given the range of January 1970…

    $ TZ=UTC date -d '1970-01-31T23:59:59Z' +%s
    2678399
    $ TZ=UTC date -d @2678399000
    Sun Nov 15 23:43:20 UTC 2054

    … it is entirely possible that someone confused time_t and
    Java millis, so the timestamps are off by a factor of 1000.

    -rw-r--r--···0·root·········(0)·root·········(0)·····1415·1970-01-06·08:03:05.000000·./usr/share/maven-repo/com/github/mangstadt/vinnie/2.0.2/vinnie-2.0.2.pom
    -rw-r--r--···0·root·········(0)·root·········(0)·····1415·1970-01-03·13:27:14.000000·./usr/share/maven-repo/com/github/mangstadt/vinnie/2.0.2/vinnie-2.0.2.pom

    -rw-r--r--···0·root·········(0)·root·········(0)·····1416·1970-01-09·01:36:03.000000·./usr/share/maven-repo/com/github/mangstadt/vinnie/debian/vinnie-debian.pom
    -rw-r--r--···0·root·········(0)·root·········(0)·····1416·1970-01-04·21:40:23.000000·./usr/share/maven-repo/com/github/mangstadt/vinnie/debian/vinnie-debian.pom

    $ for t in 1970-01-06T08:03:05 1970-01-03T13:27:14 \
    1970-01-09T01:36:03 1970-01-04T21:40:23; do \
    TZ=UTC date -d @$(TZ=UTC date -d "${t}Z" +%s)000; \
    done

    Fri Aug 10 11:23:20 UTC 1984
    Tue Jan 4 13:53:20 UTC 1977
    Sat Feb 1 16:50:00 UTC 1992
    Mon Sep 8 01:03:20 UTC 1980

    Okaaay… So, maybe not so much. I *was* guessing something with DEB_SOURCE_EPOCH vs. project.build.outputTimestamp, but that’s
    apparently not it either.

    So I fear someone’ll have to dig through all the various Maven-
    related source packages…

    FWIW, the 517-day-old .deb currently in the repo has…

    -rw-r--r-- root/root 1415 2022-12-17 18:36 ./usr/share/maven-repo/com/github/mangstadt/vinnie/2.0.2/vinnie-2.0.2.pom

    … which matches Sat, 17 Dec 2022 18:36:19 +0100 from d/changelog,
    so something something reproducible-builds is still suspect.

    Good luck with that,
    //mirabilos
    --
    Infrastrukturexperte • Qvest Digital AG
    Am Dickobskreuz 10, D-53121 Bonn • https://www.qvest-digital.com/
    Telephon +49 228 54881-393 • Fax: +49 228 54881-235
    HRB AG Bonn 18196 • USt-ID (VAT): DE274355441
    Vorstand: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg Vorsitzender Aufsichtsrat: Peter Nöthen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)