Re: [PATCH] docs: don't install news.rng file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel P. Berrange <berrange@xxxxxxxxxx> [2017-04-04, 07:24PM +0200]:
The news.rng file gets picked up by the wildcard match on docs/schemas,
and so gets installed into /usr/share/libvirt, along with the schemas
for our API objects. This then generated an RPM build failure, since
we don't have news.rng in the RPM file list

The news.rng schema is not something that users of libvirt ever care
about, since it is purely an internal thing to validate our website
content.

So rather than add news.rng to the RPM file list, this changes the
make rules so that we don't install news.rng at all.

Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
---

Technically a built-break fix, but I'm not pushing it, in case people
have any alternative suggestions. eg we could just put news.rng in
the tests/ subdirectory instead, letting us keep the wildcard in the
docs/Makefile.am

I would actually prefer this solution. The current place feels weirdly
wrong.

docs/Makefile.am | 27 +++++++++++++++++++++++++--
1 file changed, 25 insertions(+), 2 deletions(-)

diff --git a/docs/Makefile.am b/docs/Makefile.am
index 62e069e..2251848 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -153,7 +153,30 @@ fig = \
  migration-unmanaged-direct.fig

schemadir = $(pkgdatadir)/schemas
-schema_DATA = $(wildcard $(srcdir)/schemas/*.rng)
+schema_DATA = \
+	schemas/basictypes.rng \
+	schemas/capability.rng \
+	schemas/cputypes.rng \
+	schemas/domaincaps.rng \
+	schemas/domaincommon.rng \
+	schemas/domain.rng \
+	schemas/domainsnapshot.rng \
+	schemas/domain.xml \

This is wrong?

+	schemas/interface.rng \
+	schemas/networkcommon.rng \
+	schemas/network.rng \
+	schemas/nodedev.rng \
+	schemas/nwfilter.rng \
+	schemas/secret.rng \
+	schemas/storagecommon.rng \
+	schemas/storagepool.rng \
+	schemas/storagevol.rng \
+	$(NULL)
+
+noinst_DATA = \
+	schemas/news.rng \
+	$(NULL)
+

EXTRA_DIST=					\
  apibuild.py genaclperms.pl \
@@ -166,7 +189,7 @@ EXTRA_DIST=					\
  $(internals_html_in) $(internals_html) \
  aclperms.htmlinc \
  hvsupport.pl \
-  $(schema_DATA)
+  $(schema_DATA) $(noinst_DATA)

acl_generated = aclperms.htmlinc

--
2.9.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


However, this does its job, with the above fixed.

Reviewed-by: Bjoern Walk <bwalk@xxxxxxxxxxxxxxxxxx>

--
IBM Systems
Linux on z Systems & Virtualization Development
------------------------------------------------------------------------
IBM Deutschland
Schönaicher Str. 220
71032 Böblingen
Phone: +49 7031 16 1819
E-Mail: bwalk@xxxxxxxxxx
------------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzende des Aufsichtsrats: Martina Koederitz
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux