Bug#919117: meson ignores all compiler flags when a --cross-file is given

2019-01-14 Thread Jussi Pakkanen
On Sun, Jan 13, 2019 at 5:35 PM Jussi Pakkanen wrote: > I updated the packaging to have the new debcrossgen script. > Unfortunately the repository is currently broken and pbuilder can not > install all the dependency packages needed to run the test suite so > binary packages can not be built. I h

Bug#919117: meson ignores all compiler flags when a --cross-file is given

2019-01-13 Thread Jussi Pakkanen
On Sun, Jan 13, 2019 at 2:31 PM Niels Thykier wrote: > I am happy to work with you to update debhelper in bullseye to use a > --native-file instead of passing ENV variables to meson provided we use > the same script for generating the cross file and the native file. Good to know. > The only cav

Bug#919117: meson ignores all compiler flags when a --cross-file is given

2019-01-13 Thread Niels Thykier
On Sun, 13 Jan 2019 01:13:18 +0200 Jussi Pakkanen wrote: > On Sun, Jan 13, 2019 at 12:42 AM Helmut Grohne wrote: > > > I think this discrepancy is a design bug in Meson. Meson should either > > use environment variables or not. For native compilation, you can simply > > use a native file. Artifi

Bug#919117: meson ignores all compiler flags when a --cross-file is given

2019-01-12 Thread Jussi Pakkanen
On Sun, Jan 13, 2019 at 12:42 AM Helmut Grohne wrote: > I think this discrepancy is a design bug in Meson. Meson should either > use environment variables or not. For native compilation, you can simply > use a native file. Artificially handling things differently just makes > cross compilation un

Bug#919117: meson ignores all compiler flags when a --cross-file is given

2019-01-12 Thread Helmut Grohne
Hi Jussi, Thank your for the quick reply. On Sat, Jan 12, 2019 at 11:10:36PM +0200, Jussi Pakkanen wrote: > This is not really a bug in Meson, it is how things should work by > design. All arguments used for cross compilation come from the cross > file only. Envvars are not used for cross compila

Bug#919117: meson ignores all compiler flags when a --cross-file is given

2019-01-12 Thread Jussi Pakkanen
On Sat, Jan 12, 2019 at 10:27 PM Helmut Grohne wrote: > 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 i

Bug#919117: meson ignores all compiler flags when a --cross-file is given

2019-01-12 Thread Helmut Grohne
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 DEFINE