Skip to contentSkip to conversation

asciidoc: disable xmllint check

PATCH In review [email protected] 2 participants 4 messages Apr 4, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 asciidoc: disable xmllint check

From: Mingli Yu <[email protected]>

asciidoc-native build with below error when
there is no xmllint program located on build
host:

| python3 a2x.py -f manpage doc/asciidoc.1.txt
| a2x: ERROR: "xmllint" --nonet --noout --valid "/build/tmp/work/x86_64-linux/asciidoc-native/8.6.9+py3-gitAUTOINC+618f6e6f6b-r0/git/doc/asciidoc.1.xml" returned non-zero exit status 4
|
| Makefile:110: recipe for target 'doc/asciidoc.1' failed

Considering it's only used to check the xml format of the doc file as doc/asciidoc.1.txt, so disable xmllint check to fix the above issue.

---
 meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb   |  4 ++-
 .../0001-Makefile.in-disable-xmllint-check.patch   | 38 ++++++++++++++++++++++
 2 files changed, 41 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-extended/asciidoc/files/0001-Makefile.in-disable-xmllint-check.patch
meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb +3 -1
index d0d1517..7e00b34 100644
@@ -8,7 +8,9 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
                     file://COPYRIGHT;md5=029ad5428ba5efa20176b396222d4069"
 
-SRC_URI = "git://github.com/asciidoc/asciidoc-py3;protocol=https"
+SRC_URI = "git://github.com/asciidoc/asciidoc-py3;protocol=https \
+           file://0001-Makefile.in-disable-xmllint-check.patch \
+"
 SRCREV = "618f6e6f6b558ed1e5f2588cd60a5a6b4f881ca0"
 PV .= "+py3-git${SRCPV}"
 
meta/recipes-extended/asciidoc/files/0001-Makefile.in-disable-xmllint-check.patch new file +38 -0
new file mode 100644
index 0000000..4c0dd6d
@@ -0,0 +1,38 @@
+From 242e58f16c129f5983d6b32d493619cc4f87703e Mon Sep 17 00:00:00 2001
+From: Mingli Yu <[email protected]>
+Date: Thu, 4 Apr 2019 13:38:10 +0800
+Subject: [PATCH] Makefile.in: disable xmllint check
+
+asciidoc-native build with below error when
+there is no xmllint program located on build
+host:
+| python3 a2x.py -f manpage doc/asciidoc.1.txt
+| a2x: ERROR: "xmllint" --nonet --noout --valid "/build/tmp/work/x86_64-linux/asciidoc-native/8.6.9+py3-gitAUTOINC+618f6e6f6b-r0/git/doc/asciidoc.1.xml" returned non-zero exit status 4
+|
+| Makefile:110: recipe for target 'doc/asciidoc.1' failed
+
+So disable xmllint check to fix the above issue.
+
+Upstream-Status: Inappropriate [oe build specific]
+
+Signed-off-by: Mingli Yu <[email protected]>
+---
+ Makefile.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index ffba3b5..fb95fab 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -107,7 +107,7 @@ $(DATATARGETS): % : %dir
+ 	$(INSTALL_DATA) $($@) $(DESTDIR)/$($<)/
+ 
+ $(manp): %.1 : %.1.txt
+-	python3 a2x.py -f manpage $<
++	python3 a2x.py -L -f manpage $<
+ 
+ docs:
+ 	$(INSTALL) -d $(DESTDIR)/$(docdir)
+-- 
+2.7.4
+
Signature · 1 line
2.7.4
#1 lore raw

I've submitted fixes for this already.

Ross

Quoted 89 lines · On Thu, 4 Apr 2019 at 07:12, <[email protected]> wrote:

From: Mingli Yu <[email protected]>

asciidoc-native build with below error when
there is no xmllint program located on build
host:

| python3 a2x.py -f manpage doc/asciidoc.1.txt
| a2x: ERROR: "xmllint" --nonet --noout --valid "/build/tmp/work/x86_64-linux/asciidoc-native/8.6.9+py3-gitAUTOINC+618f6e6f6b-r0/git/doc/asciidoc.1.xml" returned non-zero exit status 4
|
| Makefile:110: recipe for target 'doc/asciidoc.1' failed

Considering it's only used to check the xml format of the doc file as doc/asciidoc.1.txt, so disable xmllint check to fix the above issue.

---
 meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb   |  4 ++-
 .../0001-Makefile.in-disable-xmllint-check.patch   | 38 ++++++++++++++++++++++
 2 files changed, 41 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-extended/asciidoc/files/0001-Makefile.in-disable-xmllint-check.patch
meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb +3 -1
index d0d1517..7e00b34 100644
@@ -8,7 +8,9 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
                     file://COPYRIGHT;md5=029ad5428ba5efa20176b396222d4069"
 
-SRC_URI = "git://github.com/asciidoc/asciidoc-py3;protocol=https"
+SRC_URI = "git://github.com/asciidoc/asciidoc-py3;protocol=https \
+           file://0001-Makefile.in-disable-xmllint-check.patch \
+"
 SRCREV = "618f6e6f6b558ed1e5f2588cd60a5a6b4f881ca0"
 PV .= "+py3-git${SRCPV}"
 
meta/recipes-extended/asciidoc/files/0001-Makefile.in-disable-xmllint-check.patch new file +38 -1
new file mode 100644
index 0000000..4c0dd6d
@@ -0,0 +1,38 @@
+From 242e58f16c129f5983d6b32d493619cc4f87703e Mon Sep 17 00:00:00 2001
+From: Mingli Yu <[email protected]>
+Date: Thu, 4 Apr 2019 13:38:10 +0800
+Subject: [PATCH] Makefile.in: disable xmllint check
+
+asciidoc-native build with below error when
+there is no xmllint program located on build
+host:
+| python3 a2x.py -f manpage doc/asciidoc.1.txt
+| a2x: ERROR: "xmllint" --nonet --noout --valid "/build/tmp/work/x86_64-linux/asciidoc-native/8.6.9+py3-gitAUTOINC+618f6e6f6b-r0/git/doc/asciidoc.1.xml" returned non-zero exit status 4
+|
+| Makefile:110: recipe for target 'doc/asciidoc.1' failed
+
+So disable xmllint check to fix the above issue.
+
+Upstream-Status: Inappropriate [oe build specific]
+
+Signed-off-by: Mingli Yu <[email protected]>
+---
+ Makefile.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index ffba3b5..fb95fab 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -107,7 +107,7 @@ $(DATATARGETS): % : %dir
+       $(INSTALL_DATA) $($@) $(DESTDIR)/$($<)/
+
+ $(manp): %.1 : %.1.txt
+-      python3 a2x.py -f manpage $<
++      python3 a2x.py -L -f manpage $<
+
+ docs:
+       $(INSTALL) -d $(DESTDIR)/$(docdir)
+--
+2.7.4
+
--

2.7.4

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#2 lore raw

Some further context (note to self: don't reply to mails during breakfast): the problem which lead to xmllint failing also leads to the XSL stylesheets in the sysroot not being used, so xsltproc downloads them. On my machine, asciidoc should execute do_compile in about a second, but with the broken catalogues this was taking almost a minute.

Ross

Quoted 95 lines · Ross

I've submitted fixes for this already.

Ross

Quoted 89 lines · On Thu, 4 Apr 2019 at 07:12, <[email protected]> wrote:

From: Mingli Yu <[email protected]>

asciidoc-native build with below error when
there is no xmllint program located on build
host:

| python3 a2x.py -f manpage doc/asciidoc.1.txt
| a2x: ERROR: "xmllint" --nonet --noout --valid "/build/tmp/work/x86_64-linux/asciidoc-native/8.6.9+py3-gitAUTOINC+618f6e6f6b-r0/git/doc/asciidoc.1.xml" returned non-zero exit status 4
|
| Makefile:110: recipe for target 'doc/asciidoc.1' failed

Considering it's only used to check the xml format of the doc file as doc/asciidoc.1.txt, so disable xmllint check to fix the above issue.

---
 meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb   |  4 ++-
 .../0001-Makefile.in-disable-xmllint-check.patch   | 38 ++++++++++++++++++++++
 2 files changed, 41 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-extended/asciidoc/files/0001-Makefile.in-disable-xmllint-check.patch
meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb +3 -1
index d0d1517..7e00b34 100644
@@ -8,7 +8,9 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
                     file://COPYRIGHT;md5=029ad5428ba5efa20176b396222d4069"
 
-SRC_URI = "git://github.com/asciidoc/asciidoc-py3;protocol=https"
+SRC_URI = "git://github.com/asciidoc/asciidoc-py3;protocol=https \
+           file://0001-Makefile.in-disable-xmllint-check.patch \
+"
 SRCREV = "618f6e6f6b558ed1e5f2588cd60a5a6b4f881ca0"
 PV .= "+py3-git${SRCPV}"
 
meta/recipes-extended/asciidoc/files/0001-Makefile.in-disable-xmllint-check.patch new file +38 -1
new file mode 100644
index 0000000..4c0dd6d
@@ -0,0 +1,38 @@
+From 242e58f16c129f5983d6b32d493619cc4f87703e Mon Sep 17 00:00:00 2001
+From: Mingli Yu <[email protected]>
+Date: Thu, 4 Apr 2019 13:38:10 +0800
+Subject: [PATCH] Makefile.in: disable xmllint check
+
+asciidoc-native build with below error when
+there is no xmllint program located on build
+host:
+| python3 a2x.py -f manpage doc/asciidoc.1.txt
+| a2x: ERROR: "xmllint" --nonet --noout --valid "/build/tmp/work/x86_64-linux/asciidoc-native/8.6.9+py3-gitAUTOINC+618f6e6f6b-r0/git/doc/asciidoc.1.xml" returned non-zero exit status 4
+|
+| Makefile:110: recipe for target 'doc/asciidoc.1' failed
+
+So disable xmllint check to fix the above issue.
+
+Upstream-Status: Inappropriate [oe build specific]
+
+Signed-off-by: Mingli Yu <[email protected]>
+---
+ Makefile.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index ffba3b5..fb95fab 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -107,7 +107,7 @@ $(DATATARGETS): % : %dir
+       $(INSTALL_DATA) $($@) $(DESTDIR)/$($<)/
+
+ $(manp): %.1 : %.1.txt
+-      python3 a2x.py -f manpage $<
++      python3 a2x.py -L -f manpage $<
+
+ docs:
+       $(INSTALL) -d $(DESTDIR)/$(docdir)
+--
+2.7.4
+
--

2.7.4

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

author
#3 lore raw
Quoted 6 lines · Ross

Some further context (note to self: don't reply to mails during breakfast): the problem which lead to xmllint failing also leads to the XSL stylesheets in the sysroot not being used, so xsltproc downloads them. On my machine, asciidoc should execute do_compile in about a second, but with the broken catalogues this was taking almost a minute.

Thanks Ross's reminding.

Thanks,

Quoted 100 lines

Ross

Quoted 95 lines · Ross

I've submitted fixes for this already.

Ross

Quoted 89 lines · On Thu, 4 Apr 2019 at 07:12, <[email protected]> wrote:

From: Mingli Yu <[email protected]>

asciidoc-native build with below error when
there is no xmllint program located on build
host:

| python3 a2x.py -f manpage doc/asciidoc.1.txt
| a2x: ERROR: "xmllint" --nonet --noout --valid "/build/tmp/work/x86_64-linux/asciidoc-native/8.6.9+py3-gitAUTOINC+618f6e6f6b-r0/git/doc/asciidoc.1.xml" returned non-zero exit status 4
|
| Makefile:110: recipe for target 'doc/asciidoc.1' failed

Considering it's only used to check the xml format of the doc file as doc/asciidoc.1.txt, so disable xmllint check to fix the above issue.

---
  meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb   |  4 ++-
  .../0001-Makefile.in-disable-xmllint-check.patch   | 38 ++++++++++++++++++++++
  2 files changed, 41 insertions(+), 1 deletion(-)

create mode 100644 meta/recipes-extended/asciidoc/files/0001-Makefile.in-disable-xmllint-check.patch

meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb +3 -1
index d0d1517..7e00b34 100644
@@ -8,7 +8,9 @@ LICENSE = "GPLv2"
  LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
                      file://COPYRIGHT;md5=029ad5428ba5efa20176b396222d4069"
 
-SRC_URI = "git://github.com/asciidoc/asciidoc-py3;protocol=https"
+SRC_URI = "git://github.com/asciidoc/asciidoc-py3;protocol=https \
+           file://0001-Makefile.in-disable-xmllint-check.patch \
+"
  SRCREV = "618f6e6f6b558ed1e5f2588cd60a5a6b4f881ca0"
  PV .= "+py3-git${SRCPV}"
 
meta/recipes-extended/asciidoc/files/0001-Makefile.in-disable-xmllint-check.patch new file +38 -1
new file mode 100644
index 0000000..4c0dd6d
@@ -0,0 +1,38 @@
+From 242e58f16c129f5983d6b32d493619cc4f87703e Mon Sep 17 00:00:00 2001
+From: Mingli Yu <[email protected]>
+Date: Thu, 4 Apr 2019 13:38:10 +0800
+Subject: [PATCH] Makefile.in: disable xmllint check
+
+asciidoc-native build with below error when
+there is no xmllint program located on build
+host:
+| python3 a2x.py -f manpage doc/asciidoc.1.txt
+| a2x: ERROR: "xmllint" --nonet --noout --valid "/build/tmp/work/x86_64-linux/asciidoc-native/8.6.9+py3-gitAUTOINC+618f6e6f6b-r0/git/doc/asciidoc.1.xml" returned non-zero exit status 4
+|
+| Makefile:110: recipe for target 'doc/asciidoc.1' failed
+
+So disable xmllint check to fix the above issue.
+
+Upstream-Status: Inappropriate [oe build specific]
+
+Signed-off-by: Mingli Yu <[email protected]>
+---
+ Makefile.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index ffba3b5..fb95fab 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -107,7 +107,7 @@ $(DATATARGETS): % : %dir
+       $(INSTALL_DATA) $($@) $(DESTDIR)/$($<)/
+
+ $(manp): %.1 : %.1.txt
+-      python3 a2x.py -f manpage $<
++      python3 a2x.py -L -f manpage $<
+
+ docs:
+       $(INSTALL) -d $(DESTDIR)/$(docdir)
+--
+2.7.4
+
--

2.7.4

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core