summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-08-17 09:24:36 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-09-03 08:51:57 +0100
commit09483d29812d30be5d4317e2f818d337427e02c4 (patch)
tree09b45e3d662051648153c00490775be1470974de /meta/recipes-devtools/xmlto/xmlto_0.0.28.bb
parent5974df19831057700979d3f6f924dbfdc99cbb07 (diff)
downloadpoky-09483d29812d30be5d4317e2f818d337427e02c4.tar.gz
xmlto: Update to use upstream tip of trunk
There are several fixes which are done to fix builds with newer compilers after 0.0.28 was releases in 2015 a long time ago. Add a patch to fix manpages builds not trying to access network during build Add UPSTREAM_CHECK_COMMITS = "1" Regenerate xmlif from lex files, before configuring the build. Run lex from sourcedir to avoid emitting absolute source paths via #line directive into generated c source file which ends up causing reproducability isssue (From OE-Core rev: 27a5000724e4f4df274279bcd801d1dc2830208e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/xmlto/xmlto_0.0.28.bb')
-rw-r--r--meta/recipes-devtools/xmlto/xmlto_0.0.28.bb16
1 files changed, 12 insertions, 4 deletions
diff --git a/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb b/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb
index 5cb9a4c57b..373eca2454 100644
--- a/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb
+++ b/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb
@@ -6,17 +6,21 @@ LICENSE = "GPL-2.0-only"
6 6
7LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" 7LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
8 8
9SRC_URI = "https://releases.pagure.org/xmlto/xmlto-${PV}.tar.gz \ 9SRCREV = "6fa6a0e07644f20abf2596f78a60112713e11cbe"
10UPSTREAM_CHECK_COMMITS = "1"
11SRC_URI = "git://pagure.io/xmlto.git;protocol=https;branch=master \
10 file://configure.in-drop-the-test-of-xmllint-and-xsltproc.patch \ 12 file://configure.in-drop-the-test-of-xmllint-and-xsltproc.patch \
13 file://0001-Skip-validating-xmlto-output.patch \
11" 14"
12SRC_URI[md5sum] = "a1fefad9d83499a15576768f60f847c6" 15S = "${WORKDIR}/git"
13SRC_URI[sha256sum] = "2f986b7c9a0e9ac6728147668e776d405465284e13c74d4146c9cbc51fd8aad3" 16
17PV .= "+0.0.29+git${SRCPV}"
14 18
15inherit autotools 19inherit autotools
16 20
17CLEANBROKEN = "1" 21CLEANBROKEN = "1"
18 22
19DEPENDS = "libxml2-native" 23DEPENDS = "libxml2-native libxslt-native flex-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native"
20 24
21RDEPENDS:${PN} = "docbook-xml-dtd4 \ 25RDEPENDS:${PN} = "docbook-xml-dtd4 \
22 docbook-xsl-stylesheets \ 26 docbook-xsl-stylesheets \
@@ -36,6 +40,10 @@ BBCLASSEXTEND = "native"
36 40
37EXTRA_OECONF:append = " BASH=/bin/bash GCP=/bin/cp XMLLINT=xmllint XSLTPROC=xsltproc" 41EXTRA_OECONF:append = " BASH=/bin/bash GCP=/bin/cp XMLLINT=xmllint XSLTPROC=xsltproc"
38 42
43do_configure:prepend() {
44 (cd ${S} && flex -o xmlif/xmlif.c xmlif/xmlif.l)
45}
46
39do_install:append:class-native() { 47do_install:append:class-native() {
40 create_wrapper ${D}${bindir}/xmlto XML_CATALOG_FILES=${sysconfdir}/xml/catalog 48 create_wrapper ${D}${bindir}/xmlto XML_CATALOG_FILES=${sysconfdir}/xml/catalog
41} 49}