[buildd-tools-devel] dpkg-buildflags: add some no-effect flags

Jonathan Nieder jrnieder at gmail.com
Sun May 29 18:36:44 UTC 2011


Hi Matthias,

Matthias Klose wrote:

> There is more than a handful of packages which do not care about
> dpkg-buildflags yet in debian/rules.  Currently it's difficult to
> tell if a package build honors dpkg-buildflags or not.  The only way
> to do this currently is to edit the config files for a test rebuild.
>
> The idea is to add some flags which do not have any effect on the
> package build, and then look at the build log if these flags are
> passed to the build.
>
> Such flags could be for
>
>  - CFLAGS, CPPFLAGS, CXXFLAGS, FFLAGS: -D__BUILDD_<random-string>__
>  - LDFLAGS: -z buildd-<random-string> (gold would need a patch for this)

Neat idea.  Would it be possible to set this up as configuration on
buildds so people don't get the strange idea that this is a standard
dpkg feature they can rely on?  (Cc-ing the buildd-tools developers as
a random guess for who could set this up.)

> Similiar defines could be used for the _APPEND flags, although these
> are not yet supported by dpkg-buildflags.

Aren't they?

| $ DEB_CFLAGS_APPEND=foo dpkg-buildflags --get CFLAGS
| -g -O2 foo
| $ dpkg-buildflags --version |head -1
| Debian dpkg-buildflags version 1.16.0.3.



More information about the Buildd-tools-devel mailing list