On Sun, May 12, 2019 at 04:57:00PM +0000, Niels Thykier wrote:

> > I tried using compat version 12 in package "hello" and this is what 
> > happened:
> 
> For reference/FYI, I suspect this will happen already at compat 10 or
> later (I noted that hello in sid uses compat 9 and compat 10 is the
> first to use dh_autoreconf by default).

Yes, indeed.

> I think this is because of two things:
> 
>  1) The source does not include build-aux/git-version-gen
>  2) The configure.ac references build-aux/git-version-gen and appears
>     to use it unconditionally[1]
> 
> So when dh_autoreconf does its job of regenerating the build scripts
> from configure.ac, then it will trigger those warnings because of the
> above.  I.e. this is a "hello"-specific issue.
> 
> Not sure what the proper fix is here.  Options include:
> 
>  * Have upstream include build-aux/git-version-gen in the source
>    - Though it may need git and a git repo to work properly, so this
>      might only make sense from the PoV of ensuring that we have the
>      complete source of the build scripts.
> 
>  * Patch configure.ac to *not* rely on the build-aux/git-version-gen
>    script
> 
>  * Skip reconfiguration by overriding dh_autoreconf (see [2] as an
>    example).

I tried the third option (skip dh_autoreconf), then I realized that
debhelper passes options to ./configure which the current configure
script does not understand yet because it's too old.

So I decided to keep compat version 9 for now. Next step should be
to ask upstream hello for a new release using updated tools, as I believe
the initial weird message I reported is not common in other packages.

Thanks a lot.

Reply via email to