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


Groups > linux.debian.maint.java > #12769

Re: Builds not reproducible on armhf

Path csiph.com!pasdenom.info!newsfeed.bofh.team!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From Thorsten Glaser <t.glaser@qvest-digital.com>
Newsgroups linux.debian.maint.java, linux.debian.ports.arm
Subject Re: Builds not reproducible on armhf
Date Mon, 20 May 2024 18:20:01 +0200
Message-ID <IGdTX-eFcs-3@gated-at.bofh.it> (permalink)
References <IG6pr-eAHn-3@gated-at.bofh.it>
X-Original-To Mechtilde Stehmann <mechtilde@debian.org>
X-Mailbox-Line From debian-java-request@lists.debian.org Mon May 20 16:12:13 2024
Old-Return-Path <t.glaser@qvest-digital.com>
X-Amavis-Spam-Status No, score=0.9 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, BODY_8BITS=1.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, MONEY=0.5, RCVD_IN_DNSWL_NONE=-0.0001, STOCKLIKE=1] autolearn=no autolearn_force=no
X-Policyd-Weight NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .qvest-digital. - helo: .mail-wm1-x333.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5
X-Gm-Message-State AOJu0YwMOdv8ayvXO0SYMcHcglXQ9HsNDqCMuNNlb/ZHpDM5Kcng1Z+m RFmbeMhd17P16VAHPlBqVFxrXOlYDe3bC8QN5Sp2MErYNUIR5CPOp+XKrZVwBWA=
X-Google-SMTP-Source AGHT+IECCmAFBWbDssgkQBjPg1IJlxXxfHv0l/gzjf75npaifq2fe8tC/4fXNHomZhdOsxe6Jfl+Iw==
X-Received by 2002:a05:600c:5487:b0:41b:851a:af43 with SMTP id 5b1f17b1804b1-41feaa38f9dmr200929335e9.11.1716220574131; Mon, 20 May 2024 08:56:14 -0700 (PDT)
Content-Language de-DE-1901
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding QUOTED-PRINTABLE
X-Mailing-List <debian-java@lists.debian.org> archive/latest/23461
List-ID <debian-java.lists.debian.org>
List-URL <https://lists.debian.org/debian-java/>
List-Archive https://lists.debian.org/msgid-search/c56b7e1c-36ed-b850-703a-1d151fd1bc50@qvest-digital.com
Approved robomod@news.nic.it
Lines 98
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc Debian Java <debian-java@lists.debian.org>, debian-arm@lists.debian.org
X-Original-Date Mon, 20 May 2024 17:56:11 +0200 (CEST)
X-Original-Message-ID <c56b7e1c-36ed-b850-703a-1d151fd1bc50@qvest-digital.com>
X-Original-References <b658fe97-78d3-4327-a96c-019d8ef59a02@debian.org>
Xref csiph.com linux.debian.maint.java:12769 linux.debian.ports.arm:13961

Cross-posted to 2 groups.

Show key headers only | View raw


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

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Builds not reproducible on armhf Mechtilde Stehmann <mechtilde@debian.org> - 2024-05-20 10:20 +0200
  Re: Builds not reproducible on armhf Thorsten Glaser <t.glaser@qvest-digital.com> - 2024-05-20 18:20 +0200
  Re: (java) Builds not reproducible on armhf Vagrant Cascadian <vagrant@reproducible-builds.org> - 2024-05-21 19:40 +0200
    Re: (java) Builds not reproducible on armhf Mechtilde Stehmann <mechtilde@debian.org> - 2024-08-24 21:00 +0200
      Re: (java) Builds not reproducible on armhf Mechtilde <ooo@mechtilde.de> - 2024-08-24 21:40 +0200

csiph-web