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

tony mancill tmancill at debian.org
Sat Aug 21 05:36:43 BST 2021


Hi Vagrant,

On Fri, Aug 20, 2021 at 12:04:57AM -0700, Vagrant Cascadian wrote:
> 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...

Thanks for catching this and the pointer on the fix.  I will get an
update uploaded soon.

Cheers,
tony
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20210820/8cebd496/attachment.sig>


More information about the pkg-java-maintainers mailing list