[libvirt] [PATCH] build: Don't fail on '< ' or '> ' with old xmllint

Martin Kletzander mkletzan at redhat.com
Fri Nov 22 04:34:04 UTC 2013


Older xmllint version don't allow such characters in datatype anyURI.
In order not to change too much, I'm suggesting making a choice of
anyURI or 'absPathName' which should be fine (checked with upstream
and that old xmllint, both work fine).

Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---

Notes:
    Pushed as a build-breaker

 docs/schemas/storagevol.rng | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/docs/schemas/storagevol.rng b/docs/schemas/storagevol.rng
index 8bc5907..5da8e1f 100644
--- a/docs/schemas/storagevol.rng
+++ b/docs/schemas/storagevol.rng
@@ -105,7 +105,10 @@
     <element name='target'>
       <optional>
         <element name='path'>
-          <data type='anyURI'/>
+          <choice>
+            <data type='anyURI'/>
+            <ref name='absFilePath'/>
+          </choice>
         </element>
       </optional>
       <ref name='format'/>
-- 
1.8.4.3




More information about the libvir-list mailing list