Bug#779223: box2d: please make the build reproducible

Markus Koschany apo at gambaru.de
Fri Mar 13 16:59:43 UTC 2015


Hi,

On 13.03.2015 17:05, marivalen wrote:
[...]
> I talked to helmut as a doxygen maintainer on IRC and he pointed out the
> following:
> 
>  - dh_doxygen only runs after the build is completed and thus has no
>    way to influence the run of doxygen
> 
>  - since it is impossible to determine the configuration file used by
>    doxygen during the build, the only working solution in practice
>    would be to move /usr/bin/doxygen to /usr/bin/doxygen.real and let
>    the former be a thin wrapper around the latter which detects using
>    environment variable when a package build is in progress and if so
>    determines the used configuration file and changes its value of
>    HTML_TIMESTAMP to NO before passing it on to doxygen.real
> 
> It is unlikely that such a fragile and hacky workaround will be included
> in dh_doxygen.

My hope was that the maintainer could override dh_doxygen somehow and
manually point it to the Doxyfile. Then dh_doxygen would simply replace
the configuration option in question. However it seems this tool is not
envisaged to work that way.

Anyway, I think I have found a better solution after finally reading the
documentation part of Doxygen about command line usage. :-)

http://www.stack.nl/~dimitri/doxygen/manual/faq.html

Although doxygen cannot be controlled via command line options, it is
possible to pipe options via stdin to it.

The following override for dh_auto_build-indep works:

cd Box2D/Documentation && ( cat Doxyfile ; echo"HTML_TIMESTAMP=NO") |
doxygen -

I will implement this change and fix this bug with the next upload. I
prefer modifying debian/rules and I think it is the least "intrusive"
way to resolve this issue. At least nobody has to worry about rebasing
patches in the future. :)

By the way, I have forwarded your patch upstream.

https://code.google.com/p/box2d/issues/detail?id=344

Cheers,

Markus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20150313/9a78e3fa/attachment.sig>


More information about the Pkg-games-devel mailing list