[libvirt] [PATCH 0/4] build: take full ownership of syntax-check from gnulib

Michal Privoznik mprivozn at redhat.com
Mon Oct 7 13:03:51 UTC 2019


On 10/3/19 12:51 PM, Daniel P. Berrangé wrote:
> Our syntax-check rule relies in various files imported during the gnulib
> bootstrap process. As we switch to meson & try to eliminate gnulib, we
> need to take ownership of syntax-check.
> 
> This patch series follows the approach taken for libosinfo & other
> projects wrt syntax-check rules, but goes a step further and eliminates
> alot of baggage we don't care about & merges all logic into one file.
> 
> Daniel P. Berrangé (4):
>    build: import gnulib's syntax-check make rules
>    build: remove all logic unrelated to syntax-check
>    build: delete all syntax check rules we're skipping
>    build: merge all syntax-check logic into one file
> 
>   Makefile.am                         |    7 +-
>   bootstrap.conf                      |    4 -
>   cfg.mk => build-aux/syntax-check.mk | 1141 +++++++++++++++++++++++++--
>   build-aux/useless-if-before-free    |  226 ++++++
>   build-aux/vc-list-files             |  113 +++
>   5 files changed, 1411 insertions(+), 80 deletions(-)
>   rename cfg.mk => build-aux/syntax-check.mk (52%)
>   create mode 100755 build-aux/useless-if-before-free
>   create mode 100755 build-aux/vc-list-files
> 

Problem I'm seeing with these patches is that when I "make -j10 all 
syntax-check check" (which is how I usually compile libvirt) then make 
does not order targets properly and:

1) I can see syntax-check output interleaved with 'all' output (or even 
'check'), but which is worse:

2) there must be a dependency missing somewhere, because after 'git 
clean -fxd; ./autogen.sh --system' I see the following error:


make[4]: Entering directory 
'/home/zippy/work/libvirt/libvirt.git/gnulib/lib'
   GEN      sys/ioctl.h
   GEN      arpa/inet.h
   GEN      sys/select.h
   GEN      pthread.h
   GEN      sys/socket.h
   GEN      sched.h
   GEN      stdio.h
   GEN      sys/stat.h
   GEN      string.h
   GEN      stdlib.h
   GEN      sys/time.h
   GEN      sys/socket.h
   GEN      sys/stat.h
   GEN      sys/types.h
mv: cannot stat 'string.h-t': No such file or directory
   GEN      sys/uio.h
make[4]: *** [Makefile:4311: string.h] Error 1
make[4]: *** Waiting for unfinished jobs....


Michal




More information about the libvir-list mailing list