Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: moving OpenRC to a meson-based build
Date: Wed, 01 Feb 2017 21:33:57
Message-Id: 20170201213322.GA17869@whubbs1.gaikai.biz
In Reply to: Re: [gentoo-dev] rfc: moving OpenRC to a meson-based build by james
1 On Wed, Feb 01, 2017 at 12:25:37PM -0500, james wrote:
2 > On 02/01/2017 10:40 AM, William Hubbs wrote:
3 > > On Wed, Feb 01, 2017 at 01:37:04AM +0000, Robin H. Johnson wrote:
4 > >> On Mon, Jan 30, 2017 at 02:04:06PM -0600, William Hubbs wrote:
5 > >>> As I said on the bug, the downside is the addition of py3 and ninja as
6 > >>> build time dependencies, but I think the upside (a build system where
7 > >>> we don't have to worry about parallel make issues or portability)
8 > >>> outweighs that.
9 > >> Could you please link or otherwise explain the portability issue?
10 > >
11 > > I'm not talking about a specific instance, just the flexability you get
12 > > with a build system. You let it handle the details of building
13 > > executables, linking libraries, etc.
14 > >
15 > > I have heard from more than one person that the OpenRC makefiles are
16 > > not written well, and I agree, so I've been looking for a build system
17 > > for a while.
18 > >
19 > > I thought about autotools. I'm not really fond of its syntax, and I've
20 > > been told that, to use autotools correctly, I would need to start
21 > > generating manual release tarballs again because I would need to put the
22 > > autotools generated cruft in them.
23 > >
24 > > I'm open to suggestions. I picked meson to experiment with because it
25 > > has a very nice clean syntax.
26 > >
27 > > William
28 > >
29 >
30 > 'TUP' is the fastest build system of the all? I believe many build
31 > systems leverage or imitate what TUP does. I've read that for hand
32 > crafting a specific build system, TUP is the most fundamental of the
33 > building blocks. Here are a few links, there are many for your perusal::
34 >
35 >
36 > http://gittup.org/tup/make_vs_tup.html
37 >
38 > https://news.ycombinator.com/item?id=12622097
39 >
40 >
41 > I think TUP would really shine in a build system for embedded and
42 > otherwise constrained build environments (limited resources) but
43 > I have not vetted that theory out, as I usually lean on others
44 > with greater depth of understanding in such matters. Still, from what I
45 > read, TUP warrants monitoring as new code contributions keep moving this
46 > blazingly fast build system tool forward.
47
48 I took a brief look at this earlier. It appears to be a make
49 replacement. In otherwords, it would be a back end that cmake or meson
50 could leverage by writing tupfiles.
51
52 cmake or meson are replacements for autotools
53 (autoconf/automake/libtool). All of these (autotools, cmake, meson, etc)
54 generate makefiles that are run by another tool to actually do the
55 build.
56
57 William

Attachments

File name MIME type
signature.asc application/pgp-signature