From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: Making javadoc reproducible Date: Sat, 13 Oct 2018 20:35:19 -0700 Message-ID: <87a7nh8ako.fsf@gmail.com> References: <20181012200135.505ba447@alma-ubu> <87y3b32ehe.fsf@aikidev.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBXBm-0004Pl-3L for guix-devel@gnu.org; Sat, 13 Oct 2018 23:35:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gBXBk-0001tq-8q for guix-devel@gnu.org; Sat, 13 Oct 2018 23:35:33 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:41062) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gBXBk-0001lB-0r for guix-devel@gnu.org; Sat, 13 Oct 2018 23:35:32 -0400 Received: by mail-pf1-x435.google.com with SMTP id m77-v6so8025915pfi.8 for ; Sat, 13 Oct 2018 20:35:27 -0700 (PDT) In-Reply-To: <87y3b32ehe.fsf@aikidev.net> (Vagrant Cascadian's message of "Fri, 12 Oct 2018 11:42:53 -0700") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Vagrant Cascadian , =?utf-8?Q?G=C3=A1bor?= Boskovits Cc: Guix-devel --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi G=C3=A1bor and Vagrant, Vagrant Cascadian writes: > There's been some discussion about this in Debian and in reproducible > builds: > > https://bugs.debian.org/783938 > > https://wiki.debian.org/ReproducibleBuilds/TimestampsInDocumentationGen= eratedByJavadoc > > https://tests.reproducible-builds.org/debian/issues/unstable/timestamps= _in_documentation_generated_by_javadoc_issue.html > > Hope it's useful! Thank you for the links! G=C3=A1bor Boskovits writes: > Bj=C3=B6rn H=C3=B6fling ezt =C3=ADrta= (id=C5=91pont: > 2018. okt. 12., P, 20:01): >> >> On Fri, 12 Oct 2018 19:35:51 +0200 >> G=C3=A1bor Boskovits wrote: >> >> > G=C3=A1bor Boskovits ezt =C3=ADrta (id=C5=91pont= : 2018. okt. >> > 12., P, 19:00): >> > > >> > > Hello guix, >> > > >> > > I've tracked down the javadoc timestamp problem. >> > > There is a command line flag for javadoc (notimestamp), that >> > > disables generating the comment in the docs that contains the >> > > timestamp. Currently I see two ways forward: >> > > 1. Track down the calls to javadoc, and add the flag to all calls. >> > > 2. Write a simple patch to make javadoc behave as if notimestamp was >> > > specified, whenever >> > > SOURCE_DATE_EPOCH is defined. >> > > I do not think, that the patch produced by 2 is upstreamable, but it >> > > seems much less work. WDYT? >> > >> > Also we can simply turn off the timestamp generation >> > unconditionally... >> >> Number 2 sounds good, and why not giving it a try to place it upstream? > > Ok, i will go for it, and try to get it upsreamed for jdk8 and jdk11. Be sure to check out the links Vagrant posted. Specifically this one: https://bugs.debian.org/783938 In that bug report, Samuel Thibault says: "Perhaps javadoc could be made to use by default the SOURCE_DATE_EPOCH environment variable when it is defined?" There seems to be agreement that teaching javadoc to honor the SOURCE_DATE_EPOCH environment variable would be preferable to unconditionally disabling the timestamp behavior. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlvCuXgACgkQ3UCaFdgi Rp2Rmg//T7IO8krBrWecv75BeE+UBeRZWzCAZbzWSg0tUFmYuotzRQ/Wtzy8zrXh /zEBFTr8qJq2sPrplFjVO0RoZTyQo11DUo3A4ZHmhUglI/gD0fWniAPxTqz6OqeR SJovYTjgagFrzactMswzt3Kls05rz6p/PDMrLEI+wmpUgxwpPuY9U3048MYBpx/d J4yEfM2uaxvIfvJKD+QoF09vtD9r9vejRdNrPPUEBEYk0kMTy3hYk2nbIXTHZD2c psfwd4c410vdcb57mZmZETuymgpPrTWECz4ps9LhuzFgRtfu9hDUJ5eGBzANF6od D7/KY5VGKC2r8m1+PyccNNcnWrqOKPQUz1kQDFOoT+XXJ/cX9zykseuUOlsgUo8w fM7hLC1JW3nKLWKZ2/uIe+BjU9WTR63o3QZrMI+pw5Ftv4QeCWKu8l84UeMBEBAZ yApdUl+OWJc9cTOempwTKwr4lrpTMXf4KxXj2r9nxpFgPOwIp9lWygH9+7vM8SW2 RhKu69/J7H1VMd9bJwwNRaOv8o0gjOnk/QyWqN3D844g9zYQTmQsLrYfx0gvk3iK g7wCK+w6/RYEUebQGZdoEb5RrlixNDEnJmDZIUKsj75zxTnrqlmIjnYy+wQ3+Grb e2NigL/zN4Asbj9cwdTHcGoMkX+WmG99gbFrzKiOXiKjXl2zr1U= =mZsD -----END PGP SIGNATURE----- --=-=-=--