[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#1023744: meson: debcrossgen: should include cmake



On Wed, 09 Nov 2022 at 10:03:34 +0100, Helmut Grohne wrote:
> The task for generating [the cross-file] (at this time)
> still falls to debcrossgen even though I know you want to move it to
> env2mfile. For that reason I'm sending a patch to debcrossgen and hope
> that you can port it to env2mfile as needed.

As of 1.6.0, `meson env2mfile --debarch i386 --cross -o cross.txt` outputs
a cross-file that includes cmake = ['/usr/bin/cmake'].

Similarly,
`MESON_USE_NEW_CROSSGEN=1 /usr/share/meson/debcrossgen --arch i386 -o cross.txt`
outputs a suitable cross-file.

This is *not* fixed for the default code path, used when the environment
variable MESON_USE_NEW_CROSSGEN is unset.

So to solve this, either the debcrossgen in Meson's Debian packaging
needs to use what is currently the MESON_USE_NEW_CROSSGEN=1 code path
by default (possibly with an opt-out to go back to the old behaviour if
we are concerned about regressions), or consumers of information from
debcrossgen (which I believe means debhelper and debputy but nothing else)
need to be updated to invoke `meson env2mfile` instead.

    smcv


Reply to: