Hi Joey,

Joey Hess schrieb am Mon 14. Apr, 13:21 (-0400):
> Package: dpkg-dev
> Version: 1.14.18
> Severity: normal
> 
> dpkg-buildpackage exporting CFLAGS can cause packages to FTBFS. See for
> example #475979. In this case the package consists of a top-level
> makefile, that runs a makefile in a subdirectory. The toplevel makefile
> sets CFLAGS to some value, but does not expect the makefile in the
> subdirectory to see it.

You should not make expectations, you should ensure it.

> If CFLAGS is exported though, the makefile in the subdirectory will see
> the value exported from toplevel, and in this case, fail to build.

This means “CFLAGS= fakeroot ./debian/rules binary” and with the old
dpkg-buildpackage “CFLAGS= dpkg-buildpackage” fails. Yes? I would call
this a bug in the package not in dpkg.

Bye, Jörg.
-- 
Du kannst einem Schwein einen goldenen Ring durch die Nase ziehen,
deswegen bleibt es trozdem ein Schwein!

Attachment: signature.asc
Description: Digital signature http://en.wikipedia.org/wiki/OpenPGP

Reply via email to