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

Re: Debian packaging with meson

On Fri, 17 Feb 2017 at 18:08:01 -0500, Jeremy Bicha wrote:
> GNOME 3.24 modules have begun including meson build scripts.

It looks as though Meson approximately follows the Autotools-like
build pipeline that dh assumes, so something like this should work:

	rm -fr debian/build

	mkdir -p debian/build
	cd debian/build && meson \
		--prefix=/usr \
		... more options ... \
		... more compiler flags ...

	cd debian/build && ninja -v

	cd debian/build && ninja test

	cd debian/build && DESTDIR=${CURDIR}/debian/tmp ninja install

(This is all entirely untested and based on what was said in

This could be encapsulated in a debhelper Buildsystem class later, but
I think the first step would be to prototype it using overrides in a small
number of packages in experimental (or some PPA-like location).
If I was a debhelper maintainer, I wouldn't want to merge a Meson
Buildsystem class whose author hadn't prototyped it like this first.


Reply to: