Bug#1050944: jtreg6: please make the build reproducible

Vagrant Cascadian vagrant at reproducible-builds.org
Thu Aug 31 22:58:47 BST 2023


On 2023-08-31, Chris Lamb wrote:
> 2. The jtreg.jar file was being generated with 444 (read-only)
> permissions. This meant that strip-determinism could not fixup the
> file modification times of the files within that archive. It was
> actually printing: "dh_strip_nondeterminism: warning: Ignoring unwritable
> file: jtreg.jar".

Curious!

> --- a/debian/rules	2023-08-31 09:50:06.571624952 -0700
> --- b/debian/rules	2023-08-31 10:08:31.850276393 -0700
> @@ -33,3 +33,6 @@
>  	# Generate the manpages
>  	JT_HOME=./dist/jtreg/lib/ help2man --name="Regression Test Harness" --help-option="-help all" dist/jtreg/bin/jtdiff > jtdiff.1
>  	JT_HOME=./dist/jtreg/lib/ help2man --name="Regression Test Harness" --help-option="-help all" dist/jtreg/bin/jtreg > jtreg.1
> +
> +execute_before_dh_strip_nondeterminism:
> +	find  debian/ -type f -name jtreg.jar -print0 | xargs -0tr chmod +w

Maybe this should be restricted to only make it writeable to the user
... e.g. chmod u+w or similar?


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20230831/3a4cab02/attachment-0001.sig>


More information about the pkg-java-maintainers mailing list