Bug#1041187: does not respect compilation flags from dpkg-buildflags

Sébastien Villemot sebastien at debian.org
Sat Jul 15 13:50:22 BST 2023


Le samedi 15 juillet 2023 à 14:14 +0200, Sébastien Villemot a écrit :
> The build process of python-escript does not respect the flags from
> dpkg-buildflags.
> 
> For many source files, those flags are not injected. Moreover, the build
> process unconditionally adds -O3. It means that the default -O2 level is not
> respected. It also means that DEB_BUILD OPTIONS=noopt does not work as expected
> (it should use -O0).

I just realized that using -O3 is allowed by Policy, if there is a good
reason for using it (see §10.1).

However it is still recommended to inject all other flags provided by
dpkg-buildflags, and to support DEB_BUILD_OPTIONS=noopt.

-- 
⢀⣴⠾⠻⢶⣦⠀  Sébastien Villemot
⣾⠁⢠⠒⠀⣿⡁  Debian Developer
⢿⡄⠘⠷⠚⠋⠀  https://sebastien.villemot.name
⠈⠳⣄⠀⠀⠀⠀  https://www.debian.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20230715/1cb46e59/attachment.sig>


More information about the debian-science-maintainers mailing list