From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cNZrFk/5x2RUeQAASxT56A (envelope-from ) for ; Mon, 31 Jul 2023 20:11:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cGBVFk/5x2T3AQAA9RJhRA (envelope-from ) for ; Mon, 31 Jul 2023 20:11:27 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A026F58C6B for ; Mon, 31 Jul 2023 20:11:26 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=scratchpost.org header.s=kas202303142049 header.b=vHSWPGW9; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690827086; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=auUGEAs/CoTxZ3B8XMXeE97DyNRq16tMWEkUIB5zvL0=; b=fOU1CFyL1r/YqkPDQqypu134UTneX9zDmNd4e+zZ5mlLfJFcz4+aa3MCnHPYIRmK2IZj50 KepTW1OIG3iJoPq33Dqn4PMcogf4d88ixKoADqj49WmKEvAn6HL+xNIaWXMtzh2LBYy7LS EVLp4uYCfhFZqbFTHk2itjat9skFJomvnFbNaCNHyH9aAGqJ4T07NfpbaMO1T7ZLxjyemC nZTqZ5CNQ3IS75GWwTTjM+99/NdmUqnZTXLoKDyAwzng+Kwo5ZzqeEJBkKOEygPCkQNqYn 3/xFawLaxfU7S2nwXepmla1Rcv+kuuJyUHnb0aAoa3T984I1Qp8vrbLhPS/gEg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690827086; a=rsa-sha256; cv=none; b=DY155VXpmZTsITfvoVMbE7mpQ70V1gaBsFtTjwHOK7hz1p5kvnVWyEbhpeVCrS251+c9Fa MLFaUF/pUGtTESxKolU8GztRwKGWf3CHiQm+sGaVYfaPBEonvpZBC6DHj94hHsvktKfZtZ mU9Ppk/e6y12HSXjzmnkNQyMW/ebFTmLselzy+i0/PdcDPBhVHF+GjYMjk9lW2K4A8YPAA plGlbUlCX3MWBfL46UTVNgCuaaIjz2cWcsy0Lv+udSA0PMfBMGIr9mkOkjLkwXIJ99xJQr NiCC3ZrnBn6xvswazsyzkMC9/lcD7MMPtnoaPZkLzzwuzutYHhcjFANNi6oRAA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=scratchpost.org header.s=kas202303142049 header.b=vHSWPGW9; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQXMS-0003t2-Kd; Mon, 31 Jul 2023 14:11:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qQXMF-0003qu-MG for guix-patches@gnu.org; Mon, 31 Jul 2023 14:11:06 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qQXMF-00044A-4K for guix-patches@gnu.org; Mon, 31 Jul 2023 14:11:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qQXMF-0007O9-03 for guix-patches@gnu.org; Mon, 31 Jul 2023 14:11:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55751] [PATCH v2 3/7] gnu: openjdk11: Make more reproducible. Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 31 Jul 2023 18:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55751 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55751@debbugs.gnu.org Cc: Danny Milosavljevic Received: via spool by 55751-submit@debbugs.gnu.org id=B55751.169082701528281 (code B ref 55751); Mon, 31 Jul 2023 18:11:02 +0000 Received: (at 55751) by debbugs.gnu.org; 31 Jul 2023 18:10:15 +0000 Received: from localhost ([127.0.0.1]:53533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQXLT-0007M5-95 for submit@debbugs.gnu.org; Mon, 31 Jul 2023 14:10:15 -0400 Received: from dd30410.kasserver.com ([85.13.145.193]:40306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQXLR-0007Lu-1W for 55751@debbugs.gnu.org; Mon, 31 Jul 2023 14:10:13 -0400 Received: from nova.lan (84-115-230-178.cable.dynamic.surfer.at [84.115.230.178]) by dd30410.kasserver.com (Postfix) with ESMTPSA id 39A781121EBB; Mon, 31 Jul 2023 20:09:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scratchpost.org; s=kas202303142049; t=1690826974; bh=auUGEAs/CoTxZ3B8XMXeE97DyNRq16tMWEkUIB5zvL0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vHSWPGW9KhWb3XlMxdAcHbFjj6UO+I3Vig0r88mi/pY8flhD3D9nysp7ybZUEcndu e+QkqSjjyVBacyLv/ONg5Y7mwgMo48BW7OMdRbMgJqHva6P+5qQeYLjyfD93DeS08p qszuszBu/DHG8SJ67lkLazqWsMxe6D0IbrN8CU+Ura9b9c45Zlvjn5aV2SdtLdRr9A Zs/IMlDz47fd+E/gLiI+YIdrrUA773Tk7j2qQ5gR7LRlp3QP/QUGJfwo0E8buNuurh vxL8XD0lNHDXLGmH8ahcahAWDzX3euU307pXrn+BidKQnbdFs9kcz/TtcQJgBzNeUW 7dmjcmdK/l8iA== From: Danny Milosavljevic Date: Mon, 31 Jul 2023 20:09:15 +0200 Message-Id: <20230731180919.28047-4-dannym@scratchpost.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230731180919.28047-1-dannym@scratchpost.org> References: <20230731180919.28047-1-dannym@scratchpost.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: --- X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.75 X-Spam-Score: -3.75 X-Migadu-Queue-Id: A026F58C6B X-Migadu-Scanner: mx1.migadu.com X-TUID: Q9LTYzHzsRy3 * gnu/packages/java.scm (openjdk11)[source]: Add patches. [arguments]<#:phases>[remove-timestamping]: Add phase. * gnu/packages/patches/openjdk-11-classlist-reproducibility.patch: New file. * gnu/local.mk (dist_patch_DATA): Add patches. --- gnu/local.mk | 1 + gnu/packages/java.scm | 21 ++++++++++++++++++- ...openjdk-11-classlist-reproducibility.patch | 11 ++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/openjdk-11-classlist-reproducibility.patch diff --git a/gnu/local.mk b/gnu/local.mk index 791e5a85aa..715e958248 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1675,6 +1675,7 @@ dist_patch_DATA = \ %D%/packages/patches/openjdk-10-module4-reproducibility.patch \ %D%/packages/patches/openjdk-10-pointer-comparison.patch \ %D%/packages/patches/openjdk-10-setsignalhandler.patch \ + %D%/packages/patches/openjdk-11-classlist-reproducibility.patch \ %D%/packages/patches/openjdk-15-xcursor-no-dynamic.patch \ %D%/packages/patches/openmpi-mtl-priorities.patch \ %D%/packages/patches/openmw-assume-nonconst-SIGSTKSZ.patch \ diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 14e9b1f653..9ffd0dce7e 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -1172,7 +1172,17 @@ (define-public openjdk11 "1prvqy0ysz0999wrhsrbz6vrknpqfihl9l74l16ph93g89dqi5ia")) (modules '((guix build utils))) (snippet - '(for-each delete-file (find-files "." "\\.(bin|exe|jar)$"))))) + '(for-each delete-file (find-files "." "\\.(bin|exe|jar)$"))) + (patches + (search-patches ;"openjdk-10-module-reproducibility.patch" + "openjdk-10-module3-reproducibility.patch" + "openjdk-10-module4-reproducibility.patch" + "openjdk-10-char-reproducibility.patch" + "openjdk-11-classlist-reproducibility.patch" + ;"openjdk-10-corba-reproducibility.patch" + ;"openjdk-10-idlj-reproducibility.patch" + "openjdk-10-jar-reproducibility.patch" + "openjdk-10-jtask-reproducibility.patch")))) (build-system gnu-build-system) (outputs '("out" "jdk" "doc")) (arguments @@ -1205,6 +1215,10 @@ (define-public openjdk11 "--with-libjpeg=system" "--with-libpng=system" "--with-version-pre=" + ;; should be set by SOURCE_DATE_EPOCH handler, but + ;; isn't being set. So manually do it. + "--with-hotspot-build-time=1970-01-01T00:00:01" + "--enable-reproducible-build" ; to be sure ;; Allow the build system to locate the system freetype. (string-append "--with-freetype-include=" #$(this-package-input "freetype") "/include") @@ -1218,6 +1232,11 @@ (define-public openjdk11 ;; this exact first line. (substitute* "make/data/blockedcertsconverter/blocked.certs.pem" (("^#!.*") "#! java BlockedCertsConverter SHA-256\n")))) + (add-after 'unpack 'remove-timestamping + (lambda _ + (substitute* "src/hotspot/share/runtime/abstract_vm_version.cpp" + (("__DATE__") "") + (("__TIME__") "")))) (add-after 'unpack 'patch-jni-libs ;; Hardcode dynamically loaded libraries. (lambda _ diff --git a/gnu/packages/patches/openjdk-11-classlist-reproducibility.patch b/gnu/packages/patches/openjdk-11-classlist-reproducibility.patch new file mode 100644 index 0000000000..2ac7c2b664 --- /dev/null +++ b/gnu/packages/patches/openjdk-11-classlist-reproducibility.patch @@ -0,0 +1,11 @@ +--- jdk-11.0.13-ga/make/GenerateLinkOptData.gmk.orig 2022-04-04 17:18:56.801929954 +0200 ++++ jdk-11.0.13-ga/make/GenerateLinkOptData.gmk 2022-04-04 17:19:14.962422622 +0200 +@@ -66,7 +66,7 @@ + -cp $(SUPPORT_OUTPUTDIR)/classlist.jar \ + build.tools.classlist.HelloClasslist \ + $(LOG_DEBUG) 2>&1 > $(JLI_TRACE_FILE) +- $(GREP) -v HelloClasslist $@.raw > $@ ++ $(GREP) -v HelloClasslist $@.raw |sort > $@ + + # The jli trace is created by the same recipe as classlist. By declaring these + # dependencies, make will correctly rebuild both jli trace and classlist -- 2.39.2