On 2020-11-26 12:19 +0100, Matthias Klose wrote:

> Package: dpkg-dev
> Version: 1.20.5
>
> as seen in
> https://buildd.debian.org/status/fetch.php?pkg=dub&arch=amd64&ver=1.22.0-1&;
> stamp=1596920730&raw=0
>
> Running gdc...
> + gdc -Wall -obin/dub -fversion=DubUseCurl -Isource
> -Wl,--push-state,--no-as-needed -lcurl -lz -Wl,--pop-state -g -O2
> -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
> -Werror=format-security -Wl,-z,relro @build-files.txt
> d21: warning: command-line option ‘-Wformat=1’ is valid for C/C++/ObjC/ObjC++
> but not for D
> d21: warning: ‘-Werror=’ argument ‘-Werror=format-security’ is not valid for D
> + set +x
>
> Please don't pass these flags in dpkg-buildflags.

They are passed as part of CFLAGS.  If that is not suitable for D, I
think dub should not pass $CFLAGS to gdc, which it currently does.

Cheers,
       Sven

Reply via email to