Bug#991104: antlr: reproducible-builds: Example Makefiles embed build paths and binary paths

Vagrant Cascadian vagrant at reproducible-builds.org
Fri Aug 20 08:04:57 BST 2021


On 2021-07-14, Vagrant Cascadian wrote:
> The attached patch modifies debian/rules to remove the exmaple
> Makefiles.

Unfortunately, I only tested this with arch:all+arch:any builds, not
arch:any builds without arch:all builds, and so the arch:any builds on
buildd.debian.org are failing...

It needs some special-casing to only run when the specified examples
directory is actually present.


> diff --git a/debian/rules b/debian/rules
> index 77396e35..c1e9921c 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -46,6 +46,8 @@ override_dh_installdocs:
>  override_dh_installexamples:
>  	dh_installexamples
>  	find debian/antlr-doc/usr/share/doc/antlr/examples -type f -print | xargs -r chmod 0644
> +	# Remove example Makefiles containing build paths and binary paths
> +	find debian/antlr-doc/usr/share/doc/antlr/examples -name Makefile -print -delete
>  	rm -rf debian/antlr-doc/usr/share/doc/antlr/examples/csharp
>  
>  override_dh_auto_clean:
> -- 
> 2.32.0

Probably prefixing with something like:

  test ! -d debian/antlr-doc/usr/share/doc/antlr/examples || find ... -print -delete

(using "test -d ... && find ..." will error out when the directory isn't
there, e.g. arch:any builds)

This way the arch:any builds will just skip this step...


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/20210820/9fb1f35e/attachment.sig>


More information about the pkg-java-maintainers mailing list