[debhelper-devel] Bug#795253: Bug#795253: Add support for Meson build system

Michael Biebl biebl at debian.org
Fri Mar 24 16:05:18 UTC 2017


Am 24.03.2017 um 08:31 schrieb Niels Thykier:
>>From what little I know about meson + ninja, looks fine.  The only
> comment I have is that the ninja file speaks a lot about Makefiles
> without the code ever touching one. :)  Guess it is copy-waste
> left-overs from make.pm?

Yeah, thanks for spotting. I fixed that.

I've also added a couple of notes/TODOs to the code

a/ Add support for DEB_BUILD_OPTIONS="parallel=N"?
By default ninja runs N jobs in parallel, where N is derived
from the number of CPUs.
Should this be only done for the build step or install and test as well?
In the latter case, the code to run buildcmd should be factored out.
Or do we just keep ninja's default behaviour and don't bother setting -j
manually.

b/ Add support for DH_QUIET, i.e. don't run with ninja -v in quiet mode.

c/ The install target mangles $ENV to set DESTDIR, which is a bit meh.
Should we save and restore $ENV?

Input welcome.

> Re: cross-build, Helmut is usually my goto person for that.  Admittedly,
> he usually contacts me when he discovers an issue.  Anyway, per above, I
> have BCC'ed him, so he at least knows about this work. :)

In theory, meson does support cross building
https://github.com/mesonbuild/meson/wiki/Cross-compilation

I personally do not have experience with it though. So I would need help
with implementing that or leave that to someone else. I wouldn't make
this a blocker though, for merging meson/ninja support.

Regards,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20170324/4459a063/attachment-0002.sig>


More information about the debhelper-devel mailing list