[libvirt] [PATCH] build: include augeas-gentest.pl and libvirt_qemu_probes.h into dist file

Eric Blake eblake at redhat.com
Wed May 30 02:32:11 UTC 2012


On 05/29/2012 08:15 PM, Wen Congyang wrote:
> We generate *.aug from *.aug.in by augeas-gentest.pl, so this script
> should be included in dist file.
> 
> We split QEMU dtrace probes into separate file, but we forget include
> libvirt_qemu_probes.h into dist file.
> 
> ---
>  src/Makefile.am |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/src/Makefile.am b/src/Makefile.am
> index c8efa5b..c418897 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -1120,6 +1120,7 @@ check-local: check-augeas
>  check-augeas: check-augeas-qemu check-augeas-lxc check-augeas-sanlock
>  
>  AUG_GENTEST = $(top_srcdir)/build-aux/augeas-gentest.pl
> +EXTRA_DIST += $(AUG_GENTEST)

NAK to this hunk as it conflicts with my patch to consistently invoke
the script with $(PERL):
https://www.redhat.com/archives/libvir-list/2012-May/msg01301.html

But ACK to the idea; I would be okay with either:

EXTRA_DIST += ../build-aux/augeas-gentest.pl

EXTRA_DIST += $(top_srcdir)/build-aux/augeas-gentest.pl

as we do need to ship the tools to regenerate things.

>  
>  if WITH_QEMU
>  qemu/test_libvirtd_qemu.aug: qemu/test_libvirtd_qemu.aug.in qemu/qemu.conf $(AUG_GENTEST)
> @@ -1289,7 +1290,8 @@ if WITH_REMOTE
>  $(REMOTE_DRIVER_GENERATED): libvirt_probes.h
>  endif WITH_REMOTE
>  
> -BUILT_SOURCES += libvirt_probes.h libvirt_probes.stp libvirt_functions.stp
> +BUILT_SOURCES += libvirt_probes.h libvirt_probes.stp libvirt_functions.stp \
> +		 libvirt_qemu_probes.h

BUILT_SOURCES are generally _not_ supposed to be part of the dist file.
 That is, *probes.h files are not needed as part of the tarball - either
you don't have dtrace and don't need the file, or you have dtrace and
can regenerate the file yourself.  Also, why would we list
libvirt_qemu_probes.h but not libvirt_qemu_probes.stp?  I'm not sure
this hunk is necessary or right, or if we even have latent bugs that we
need to clean up with what is already present.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120529/ee6b256d/attachment-0001.sig>


More information about the libvir-list mailing list