build: don't ship access syms files in tarball
On a mingw VPATH build (such as done by ./autobuild.sh), the tarball created by 'make dist' was including generated files. The VPATH rules were then seeing that the tarball files were up-to-date, and not regenerating files locally, leading to this failure: GEN libvirt.syms cat: libvirt_access.syms: No such file or directory cat: libvirt_access_qemu.syms: No such file or directory cat: libvirt_access_lxc.syms: No such file or directory make: *** [libvirt.syms] Error 1 We already have a category for generated sym files, which are intentionally not part of the tarball; stick the access sym files in that category. The rearrange the declarations a bit to make it harder to repeat the problem, dropping things that are now redundant (for example, BUILT_FILES already includes GENERATED_SYM_FILES, so it does not also need to call out ACCESS_DRIVER_SYM_FILES). * src/Makefile.am (USED_SYM_FILES): Don't include generated files. (GENERATED_SYM_FILES): Access syms files are generated. (libvirt.syms): Include access syms files here. (ACCESS_DRIVER_SYMFILES): Rename... (ACCESS_DRIVER_SYM_FILES): ...for consistency. Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
1165e39ca3
commit
336bf8e28b
@ -815,7 +815,7 @@ ACCESS_DRIVER_GENERATED = \
|
|||||||
$(srcdir)/access/viraccessapichecklxc.h \
|
$(srcdir)/access/viraccessapichecklxc.h \
|
||||||
$(srcdir)/access/viraccessapichecklxc.c
|
$(srcdir)/access/viraccessapichecklxc.c
|
||||||
|
|
||||||
ACCESS_DRIVER_SYMFILES = \
|
ACCESS_DRIVER_SYM_FILES = \
|
||||||
libvirt_access.syms \
|
libvirt_access.syms \
|
||||||
libvirt_access_qemu.syms \
|
libvirt_access_qemu.syms \
|
||||||
libvirt_access_lxc.syms
|
libvirt_access_lxc.syms
|
||||||
@ -927,8 +927,14 @@ libvirt_driver_la_CFLAGS = \
|
|||||||
libvirt_driver_la_LIBADD = \
|
libvirt_driver_la_LIBADD = \
|
||||||
$(GNUTLS_LIBS) $(CURL_LIBS) $(DLOPEN_LIBS)
|
$(GNUTLS_LIBS) $(CURL_LIBS) $(DLOPEN_LIBS)
|
||||||
|
|
||||||
|
# All .syms files should be placed in exactly one of these three lists,
|
||||||
|
# depending on whether they are stored in git and/or used in the build.
|
||||||
SYM_FILES = $(USED_SYM_FILES)
|
SYM_FILES = $(USED_SYM_FILES)
|
||||||
USED_SYM_FILES = $(srcdir)/libvirt_private.syms
|
USED_SYM_FILES = $(srcdir)/libvirt_private.syms
|
||||||
|
GENERATED_SYM_FILES = \
|
||||||
|
$(ACCESS_DRIVER_SYM_FILES) \
|
||||||
|
libvirt.syms libvirt.def libvirt_qemu.def libvirt_lxc.def \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
if WITH_TEST
|
if WITH_TEST
|
||||||
noinst_LTLIBRARIES += libvirt_driver_test.la
|
noinst_LTLIBRARIES += libvirt_driver_test.la
|
||||||
@ -1474,9 +1480,8 @@ EXTRA_DIST += $(ACCESS_DRIVER_POLKIT_SOURCES)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
USED_SYM_FILES += $(ACCESS_DRIVER_SYMFILES)
|
BUILT_SOURCES += $(ACCESS_DRIVER_GENERATED)
|
||||||
BUILT_SOURCES += $(ACCESS_DRIVER_GENERATED) $(ACCESS_DRIVER_SYMFILES)
|
CLEANFILES += $(ACCESS_DRIVER_GENERATED)
|
||||||
CLEANFILES += $(ACCESS_DRIVER_GENERATED) $(ACCESS_DRIVER_SYMFILES)
|
|
||||||
|
|
||||||
libvirt_access.syms: $(srcdir)/rpc/gendispatch.pl \
|
libvirt_access.syms: $(srcdir)/rpc/gendispatch.pl \
|
||||||
$(REMOTE_PROTOCOL) Makefile.am
|
$(REMOTE_PROTOCOL) Makefile.am
|
||||||
@ -1713,12 +1718,9 @@ EXTRA_DIST += \
|
|||||||
$(SYM_FILES) \
|
$(SYM_FILES) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
GENERATED_SYM_FILES = \
|
|
||||||
libvirt.syms libvirt.def libvirt_qemu.def libvirt_lxc.def
|
|
||||||
|
|
||||||
BUILT_SOURCES += $(GENERATED_SYM_FILES)
|
BUILT_SOURCES += $(GENERATED_SYM_FILES)
|
||||||
|
|
||||||
libvirt.syms: libvirt_public.syms $(USED_SYM_FILES) \
|
libvirt.syms: libvirt_public.syms $(USED_SYM_FILES) $(ACCESS_DRIVER_SYM_FILES) \
|
||||||
$(top_builddir)/config.status
|
$(top_builddir)/config.status
|
||||||
$(AM_V_GEN)rm -f $@-tmp $@ ; \
|
$(AM_V_GEN)rm -f $@-tmp $@ ; \
|
||||||
printf '# WARNING: generated from the following:\n# $^\n\n' >$@-tmp && \
|
printf '# WARNING: generated from the following:\n# $^\n\n' >$@-tmp && \
|
||||||
@ -1726,7 +1728,7 @@ libvirt.syms: libvirt_public.syms $(USED_SYM_FILES) \
|
|||||||
printf '\n\n# Private symbols\n\n' >>$@-tmp && \
|
printf '\n\n# Private symbols\n\n' >>$@-tmp && \
|
||||||
printf 'LIBVIRT_PRIVATE_$(VERSION) {\n\n' >>$@-tmp && \
|
printf 'LIBVIRT_PRIVATE_$(VERSION) {\n\n' >>$@-tmp && \
|
||||||
printf 'global:\n\n' >>$@-tmp && \
|
printf 'global:\n\n' >>$@-tmp && \
|
||||||
cat $(USED_SYM_FILES) >>$@-tmp && \
|
cat $(USED_SYM_FILES) $(ACCESS_DRIVER_SYM_FILES) >>$@-tmp && \
|
||||||
printf '\n\nlocal:\n*;\n\n};' >>$@-tmp && \
|
printf '\n\nlocal:\n*;\n\n};' >>$@-tmp && \
|
||||||
chmod a-w $@-tmp && \
|
chmod a-w $@-tmp && \
|
||||||
mv $@-tmp libvirt.syms
|
mv $@-tmp libvirt.syms
|
||||||
|
Loading…
x
Reference in New Issue
Block a user