Your message dated Tue, 15 Jan 2019 15:35:40 +0000
with message-id <[email protected]>
and subject line Bug#919117: fixed in meson 0.49.0-2
has caused the Debian Bug report #919117,
regarding meson ignores all compiler flags when a --cross-file is given
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
919117: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919117
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: meson
Version: 0.49.0-1
Severity: important

Please consider the following interaction:

$ dpkg --print-architecture
amd64
$ cat crossfile
[binaries]
c = 'gcc'
ar = 'ar'

[host_machine]
system = 'linux'
cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'
$ cat meson.build
#ifndef DEFINED_VIA_CFLAGS
#error CFLAGS are not propagated
#endif
project('example', 'c')
executable('example', ['example.c'])
$ cat example.c
int main() { return 0; }
$ CFLAGS=-DDEFINED_VIA_CFLAGS meson --cross-file crossfile . build
...
Appending CFLAGS from environment: '-DDEFINED_VIA_CFLAGS'
...
$ ninja -v -C build
ninja: Entering directory `build'
[1/2] gcc -Iexample@exe -I. -I.. -fdiagnostics-color=always -pipe 
-D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -g  -MD -MQ 
'example@exe/example.c.o' -MF 'example@exe/example.c.o.d' -o 
'example@exe/example.c.o' -c ../example.c
FAILED: example@exe/example.c.o 
gcc -Iexample@exe -I. -I.. -fdiagnostics-color=always -pipe 
-D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -g  -MD -MQ 
'example@exe/example.c.o' -MF 'example@exe/example.c.o.d' -o 
'example@exe/example.c.o' -c ../example.c
../example.c:2:2: error: #error CFLAGS are not propagated
 #error CFLAGS are not propagated
  ^~~~~
ninja: build stopped: subcommand failed.
$

We ask meson to include -DDEFINED_VIA_CFLAGS via the CFLAGS environment
variable and it says that it is appending the flag. However, when
running ninja, we see that the flag goes missing. When dropping the
--cross-file flag, the flag is correctly propagated. I fact, all
environment flags (LDFLAGS, CPPFLAGS, ...) go missing.

Please fix this as soon as possible as it breaks lots of packages and
makes QA next to impossible. Do not wait for the next upstream release.
Fix it now. Please ask me, if you need a sponsor. Please also add the
above test case as an autopkgtest.

Helmut

--- End Message ---
--- Begin Message ---
Source: meson
Source-Version: 0.49.0-2

We believe that the bug you reported is fixed in the latest version of
meson, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jussi Pakkanen <[email protected]> (supplier of updated meson package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 13 Jan 2019 00:59:08 +0200
Source: meson
Binary: meson
Architecture: source
Version: 0.49.0-2
Distribution: sid
Urgency: medium
Maintainer: Jussi Pakkanen <[email protected]>
Changed-By: Jussi Pakkanen <[email protected]>
Description:
 meson      - high-productivity build system
Closes: 919065 919117
Changes:
 meson (0.49.0-2) unstable; urgency=medium
 .
   * Debcrossgen CPU fix from Helmut Grohne. Closes: #919065.
   * Add system compiler flags to cross files. Closes: #919117.
Checksums-Sha1:
 c54c802ae1c97f4804cbf28d95b09b76d05cf114 3350 meson_0.49.0-2.dsc
 ccac8af116795304d9c8d0f505038623ddfd7143 12324 meson_0.49.0-2.debian.tar.xz
 39fcbb8a304c24931acdc73e344154da15d54a03 33528 meson_0.49.0-2_amd64.buildinfo
Checksums-Sha256:
 ad2cbdfb6f038b2011975f5921e03b871a9b663b3201874857670c7e07b9531a 3350 
meson_0.49.0-2.dsc
 5e7c1683e855fc11902775801d5f29198671423657970fc49eb69cb302edb70c 12324 
meson_0.49.0-2.debian.tar.xz
 be8734f58ccc13ac611570fbfdb12721116eaceb28e6b1727032095d0d16c39f 33528 
meson_0.49.0-2_amd64.buildinfo
Files:
 76411038d3acc291b34267e581fdcd5e 3350 devel optional meson_0.49.0-2.dsc
 64a82d39c09966e597d0464899b0bb3a 12324 devel optional 
meson_0.49.0-2.debian.tar.xz
 3143123df12d2a06629be4de436b28f0 33528 devel optional 
meson_0.49.0-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEETMLS2QqNFlTb+HOqLRqqzyREREIFAlw99+gACgkQLRqqzyRE
REIOmQ//YXdIT3/GoXILkIActxDtH2GApfRmpRVhB8WxzBarBPnp8ZrVPztYxjgc
WJTLsX5rOSqiKn7i70DpN25oZTnycebHaoTLPSbKDqfxnQ32xmvYvG3v9OIaJtGS
gK6GfV/DEllpRT142QgoNufAG73AZUNrLp1iwTxHmnr/OmX61tXxiUKZc7sa0po7
LuzvNQvpVcE6rlF7OOWI0K9wkKOPXmq43bKd6QYrUs5Srqii2EdfdZzTenUUXYMj
Fj2CwiXS1UqWH4N4NTU9vaSf/uYNALOVrmkgrk3+LUE6cg96X1TvAwOPlnrqM8gD
Exmki+0Jd4LkMfzQWy39jWJx5hJl92rFlcF9Eqmxy2TTF9NqydA/EhqkRtV8Bg/q
dc5LFqbnaF32zgQW3UGZeOUrYGkOFEr1+eLXbxuYDtTVFL70ptDRfnwoN+uzsIGc
P/KFwrDHXD5htQtZCK/NxR/zV75KSnwWlxL7InE+1UJhF0D94j9l5E/+YOB7VNPB
MMsJ7FVFRAGlN417uiv2ybue1kK58Z6xaYX2yXkmnUH+9M93lhSuSmeIJ8ujeNgZ
Ve2gk2U4ed9z6vs3hYBWtc+uv93nJU2fU9YUpVuM36Tt3Tt4Cc1qyURMWIFImDU8
HGvwp+9K95ZBEDPmIlVspEBF0UrmgWnfChJhFtHSN4aSpgrl+y8=
=huW4
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to