<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
<div>Hi,<br></div><div><br></div><div>Just a heads up on my experiences with the new build system.<br></div><div><br></div><div>Arch Linux<br></div><div>meson-0.55.1<br></div><div><br></div><div>Overall, it looks good, so well done!<br></div><div><br></div><div>Just a couple of minor things I noted:<br></div><div><br></div><div>1. Arch uses a meson wrapper script (arch-meson) that sets:<br></div><div><br></div><div>  --buildtype plain<br></div><div><br></div><div>This seems to trigger a bug in meson that results in copious bogus compiler warnings:<br></div><div><br></div><div>cc1: warning: ‘-Wformat-y2k’ ignored without ‘-Wformat’ [-Wformat-y2k]<br></div><div>cc1: warning: ‘-Wformat-extra-args’ ignored without ‘-Wformat’ [-Wformat-extra-args]<br></div><div>cc1: warning: ‘-Wformat-zero-length’ ignored without ‘-Wformat’ [-Wformat-zero-length]<br></div><div>cc1: warning: ‘-Wformat-contains-nul’ ignored without ‘-Wformat’ [-Wformat-contains-nul]<br></div><div>cc1: warning: ‘-Wformat-security’ ignored without ‘-Wformat’ [-Wformat-security]<br></div><div><br></div><div>which of course breaks -Werror builds.<br></div><div><br></div><div>I can easily work around it by setting `-D git_werror=disabled' or even better still:<br></div><div><br></div><div>CFLAGS+=" -Wall" arch-meson...<br></div><div><br></div><div>Maybe this github issue is related?:<br></div><div><br></div><div><a target="_blank" rel="noopener noreferrer" href="https://github.com/mesonbuild/meson/issues/7399">https://github.com/mesonbuild/meson/issues/7399</a><br></div><div><br></div><div>2. Arch currently builds libvirt with support for ZFS. Seeing as ZFS is not in the distro proper, a simple Autoconf tweak is used:<br></div><div><br></div><div>ZFS=/usr/bin/zfs ZPOOL=/usr/bin/zpool \<br></div><div>./configure ...<br></div><div><br></div><div>This is surprisingly hard to emulate with meson, in fact it appears impossible, unless I resort to dodgy hacks with sed etc.<br></div><div><br></div><div>Cheers<br></div>  </body>
</html>