mirror of
https://git.yoctoproject.org/poky
synced 2026-02-23 18:09:40 +01:00
* need to add dependency on flex-native because now when the .l file is modified by the .patch file it will try to regenerate the c code and fail: | make[1]: Entering directory 'work/x86_64-linux/xmlto-native/0.0.28-r0/build' | /bin/bash ../xmlto-0.0.28/ylwrap ../xmlto-0.0.28/xmlif/xmlif.l .c xmlif/xmlif.c -- /bin/bash 'work/x86_64-linux/xmlto-native/0.0.28-r0/xmlto-0.0.28/missing' flex | work/x86_64-linux/xmlto-native/0.0.28-r0/xmlto-0.0.28/missing: line 81: flex: command not found | WARNING: 'flex' is missing on your system. | You should only need it if you modified a '.l' file. | You may want to install the Fast Lexical Analyzer package: | <https://github.com/westes/flex> * backport https://pagure.io/xmlto/c/32376c053733c6c0ebaca3c25c0725509342fdf3?branch=master as well, so that patched xmlif/xmlif.c is newer than xmlif/xmlif.l and the build won't try to regenerate it with flex as that leads to random build failures reported in: https://lists.openembedded.org/g/openembedded-core/message/206412 https://errors.yoctoproject.org/Errors/Details/810853/ https://lists.openembedded.org/g/openembedded-core/message/206496 https://valkyrie.yoctoproject.org/#/builders/29/builds/355 (From OE-Core rev: 2e8819c0b9ada2b600aecc40c974a18eb7c0a666) Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
54 lines
1.9 KiB
BlitzBasic
54 lines
1.9 KiB
BlitzBasic
SUMMARY = "A shell-script tool for converting XML files to various formats"
|
|
HOMEPAGE = "https://pagure.io/xmlto"
|
|
DESCRIPTION = "Utility xmlto is a simple shell-script tool for converting XML files to various formats. It serves as easy to use command line frontend to make fine output without remembering many long options and searching for the syntax of the backends."
|
|
SECTION = "docs/xmlto"
|
|
LICENSE = "GPL-2.0-only"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
|
|
|
|
SRC_URI = "https://releases.pagure.org/xmlto/xmlto-${PV}.tar.gz \
|
|
file://configure.in-drop-the-test-of-xmllint-and-xsltproc.patch \
|
|
file://0001-Fix-return-type-of-main-function.patch \
|
|
file://0001-fix-Wimplicit-int-for-ifsense.patch \
|
|
file://0001-Regenerate-the-xmlif.c-and-update-xmlif.l-to-comply-.patch \
|
|
"
|
|
SRC_URI[md5sum] = "a1fefad9d83499a15576768f60f847c6"
|
|
SRC_URI[sha256sum] = "2f986b7c9a0e9ac6728147668e776d405465284e13c74d4146c9cbc51fd8aad3"
|
|
|
|
inherit autotools
|
|
|
|
CLEANBROKEN = "1"
|
|
|
|
DEPENDS = "libxml2-native"
|
|
|
|
RDEPENDS:${PN} = "docbook-xml-dtd4 \
|
|
docbook-xsl-stylesheets \
|
|
util-linux \
|
|
libxml2 \
|
|
libxslt \
|
|
bash \
|
|
"
|
|
RDEPENDS:${PN}:append:class-target = " \
|
|
libxml2-utils \
|
|
libxslt-bin \
|
|
coreutils \
|
|
"
|
|
CACHED_CONFIGUREVARS += "ac_cv_path_TAIL=tail ac_cv_path_GREP=grep"
|
|
|
|
BBCLASSEXTEND = "native"
|
|
|
|
EXTRA_OECONF:append = " BASH=/bin/bash GCP=/bin/cp XMLLINT=xmllint XSLTPROC=xsltproc"
|
|
|
|
do_configure:prepend() {
|
|
# make sure xmlif.c is newer than xmlif.l after do_patch (order of
|
|
# .patch files in SRC_URI isn't enough) to prevent regenerating it
|
|
# with flex-native which isn't in DEPENDS
|
|
touch ${S}/xmlif/xmlif.c
|
|
}
|
|
|
|
do_install:append:class-native() {
|
|
create_wrapper ${D}${bindir}/xmlto XML_CATALOG_FILES=${sysconfdir}/xml/catalog
|
|
}
|
|
|
|
do_populate_sysroot[rdeptask] = "do_populate_sysroot"
|