[pacman-dev] [PATCH] Add meson.build files to build with meson

Eli Schwartz eschwartz at archlinux.org
Mon Oct 22 01:32:24 UTC 2018


On 10/21/18 9:16 PM, Allan McRae wrote:
> On 22/10/18 10:03 am, Dave Reisner wrote:
>> On Mon, Oct 22, 2018 at 09:56:04AM +1000, Allan McRae wrote:
>>> On 22/10/18 8:57 am, Eli Schwartz wrote:
>>>>> Also, most projects ship prebuilt man pages. I think some GNU ones
>>>>> commit the built page to the tree, so that could be an option.
>>>
>>>> Both those things are also true about the configure and Makefile.in files...
>>>
>>> That is another good reason not to use git archive to create release
>>> tarballs.
>>>
>>> A
>>
>> Consider that the reason we need 'make dist' and can't just use 'git
>> archive' is because autotools *requires* extra tooling around just to
>> generate the build system. This is no longer needed with meson.
> 
> Good point!  I'm not overly familiar with meson, so missed that completely.
> 
>> Pre-generating the manpages means that our substitutions are
>> invalidated. For example, someone building from the tarball with
>> --prefix=/some/where/else or no --prefix at all will have a
>> pacman.conf(5) that still claims the right path is /etc/pacman.conf
>>
>> I understand your point about python2 vs python3, but I think that's
>> something we can work out based on a python3-based asciidoc in
>> existance.
> 
> Does the meson build script allow us to not create docs if wanted?

Yes, it does. The file meson_options.txt is used as a central location
to list all options, their description, and default values -- which is
nicely readable too, slightly unlike configure.ac. :)

>> What problems here would you like to see solved for the inclusion of
>> meson? That will help me focus my time spent on this.
> 
> None need solved for inclusion in the current state.  I'm just trying to
> understand what our future release process will look like.
> 
> While we have autotools in parallel, if I run "make dist" with this
> patch, do all the needed meson files get included too?   Can we get a
> helper script to run doxygen?

No, I think this is entirely down to EXTRA_DIST in Makefile.am, but
specifying "meson_options.txt meson.build" might be enough.

-- 
Eli Schwartz
Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20181021/8f8b7d73/attachment.asc>


More information about the pacman-dev mailing list