Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80A81C25B08 for ; Wed, 17 Aug 2022 14:38:25 +0000 (UTC) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by mx.groups.io with SMTP id smtpd.web08.29621.1660747099966663590 for ; Wed, 17 Aug 2022 07:38:20 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=YnMfPD7K; spf=pass (domain: linuxfoundation.org, ip: 209.85.128.54, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wm1-f54.google.com with SMTP id h204-20020a1c21d5000000b003a5b467c3abso1102088wmh.5 for ; Wed, 17 Aug 2022 07:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc; bh=l+JnXWxIPizlEPVmE0kIz3wi9hF7p0cAvDYazdLklrs=; b=YnMfPD7KKDkS4Isp5J9tChKHswbz28QiGPWKKxo7ozWpHfUsw260c9BOC0RyVcJI5R OmQeC3koce6xdRhQSOsYhfdfA9jagol+UxNCDF8f/lbAfH4DVRTtYoseItswzqJdz4IR b/ze/9E0oAlgVGl71yfnZ6MTub20J/insQSB0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc; bh=l+JnXWxIPizlEPVmE0kIz3wi9hF7p0cAvDYazdLklrs=; b=IfZvfw5OoSSSNEdiW8w77McIXZ83L36xhhY4aJu36TNOMpxq6AWurWeJRUqvOQfTpX oWY3j8QspqYCxpG5ntPK+H8o1tDcrMfzqXYtMdCToOxwweKp4yL3pWlK0NmF/yEA4i2E esBZrdisytoElQA00LJncDsQhBuERZp2f5dku/QTWQPIw3TZ/1A8TyiYgSy0UB/UU5tX qjMwfGSWcSw/uHNXEHhRxpSsUgh1uLJ7FWHak8ymYOG7LfQsXCmgSFuaHVkRZvx5MfvU YkaYWtrWE6m6sGVti1b6j3T65LNDXWzbYqyCMXI7PjTnI2w46poa4veYbUzykAjU+jWL ALCQ== X-Gm-Message-State: ACgBeo2VDzCfGvJ7cmjuiXkz4wr9tb/K459GURBuf2jOqVwsFBzOEEhm pU7e6T3Vb91USuUajYnm9klXlg== X-Google-Smtp-Source: AA6agR6fMPdD7mcQhHErzWtW2hg9Sa5o1gZzr3SZFIQqS194Zj653vprmIqcpA5KBzj+p/J3wjouow== X-Received: by 2002:a05:600c:4c06:b0:3a5:4eec:eb4b with SMTP id d6-20020a05600c4c0600b003a54eeceb4bmr2453905wmp.151.1660747098242; Wed, 17 Aug 2022 07:38:18 -0700 (PDT) Received: from ?IPv6:2001:8b0:aba:5f3c:3694:2ef4:2932:37d5? ([2001:8b0:aba:5f3c:3694:2ef4:2932:37d5]) by smtp.gmail.com with ESMTPSA id r62-20020a1c2b41000000b003a5537bb2besm2326981wmr.25.2022.08.17.07.38.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 07:38:17 -0700 (PDT) Message-ID: <25379da13e18c8f0ccd75d461a5c9799c603da80.camel@linuxfoundation.org> Subject: Re: [OE-core] [PATCH v2 6/6] xmlto: Update to use upstream tip of trunk From: Richard Purdie To: Khem Raj , openembedded-core@lists.openembedded.org Date: Wed, 17 Aug 2022 15:38:17 +0100 In-Reply-To: <170C2857622947BA.6839@lists.openembedded.org> References: <20220816033005.2700801-1-raj.khem@gmail.com> <20220816033005.2700801-6-raj.khem@gmail.com> <170C2857622947BA.6839@lists.openembedded.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.1-0ubuntu1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 17 Aug 2022 14:38:25 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/169487 On Wed, 2022-08-17 at 15:31 +0100, Richard Purdie via lists.openembedded.org wrote: > On Mon, 2022-08-15 at 20:30 -0700, Khem Raj wrote: > > 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. > >=20 > > Add a patch to fix manpages builds not trying to access network during > > build > >=20 > > Regenerate xmlif from lex files, before configuring the build > >=20 > > Add UPSTREAM_CHECK_COMMITS =3D "1" > >=20 > > Signed-off-by: Khem Raj > > --- > > v2: > > - Update patch status > > - Add UPSTREAM_CHECK_COMMITS > >=20 > > .../0001-Skip-validating-xmlto-output.patch | 29 +++++++++++++++++++ > > ...rop-the-test-of-xmllint-and-xsltproc.patch | 6 ++-- > > meta/recipes-devtools/xmlto/xmlto_0.0.28.bb | 16 +++++++--- > > 3 files changed, 44 insertions(+), 7 deletions(-) > > create mode 100644 meta/recipes-devtools/xmlto/xmlto/0001-Skip-validat= ing-xmlto-output.patch > > rename meta/recipes-devtools/xmlto/{xmlto-0.0.28 =3D> xmlto}/configure= .in-drop-the-test-of-xmllint-and-xsltproc.patch (91%) > >=20 > > diff --git a/meta/recipes-devtools/xmlto/xmlto/0001-Skip-validating-xml= to-output.patch b/meta/recipes-devtools/xmlto/xmlto/0001-Skip-validating-xm= lto-output.patch > > new file mode 100644 > > index 00000000000..c6857a9da51 > > --- /dev/null > > +++ b/meta/recipes-devtools/xmlto/xmlto/0001-Skip-validating-xmlto-outp= ut.patch > > @@ -0,0 +1,29 @@ > > +From 3deb7a0eded04ab08a9cb2d88526cb1c7b440061 Mon Sep 17 00:00:00 2001 > > +From: Khem Raj > > +Date: Sun, 14 Aug 2022 00:23:29 -0700 > > +Subject: [PATCH] Skip validating xmlto output > > + > > +Avoids network access > > + > > +Upstream-Status: Submitted [https://pagure.io/xmlto/pull-request/11] > > +Signed-off-by: Khem Raj > > +--- > > + Makefile.am | 2 +- > > + 1 file changed, 1 insertion(+), 1 deletion(-) > > + > > +diff --git a/Makefile.am b/Makefile.am > > +index 50fa279..6a2da62 100644 > > +--- a/Makefile.am > > ++++ b/Makefile.am > > +@@ -68,7 +68,7 @@ EXTRA_DIST =3D xmlto.spec \ > > + doc/xmlif.xml \ > > + xmlto.mak > > +=20 > > +-GEN_MANPAGE =3D FORMAT_DIR=3D$(top_srcdir)/format $(BASH) ./xmlto -o = $(@D) man $< > > ++GEN_MANPAGE =3D FORMAT_DIR=3D$(top_srcdir)/format $(BASH) ./xmlto --s= kip-validation -o $(@D) man $< > > + man/man1/xmlto.1: doc/xmlto.xml ; $(GEN_MANPAGE) > > + man/man1/xmlif.1: doc/xmlif.xml ; $(GEN_MANPAGE) > > +=20 > > +--=20 > > +2.37.2 > > + > > diff --git a/meta/recipes-devtools/xmlto/xmlto-0.0.28/configure.in-drop= -the-test-of-xmllint-and-xsltproc.patch b/meta/recipes-devtools/xmlto/xmlto= /configure.in-drop-the-test-of-xmllint-and-xsltproc.patch > > similarity index 91% > > rename from meta/recipes-devtools/xmlto/xmlto-0.0.28/configure.in-drop-= the-test-of-xmllint-and-xsltproc.patch > > rename to meta/recipes-devtools/xmlto/xmlto/configure.in-drop-the-test-= of-xmllint-and-xsltproc.patch > > index 6d547a6c994..7cc3cbe0fb2 100644 > > --- a/meta/recipes-devtools/xmlto/xmlto-0.0.28/configure.in-drop-the-te= st-of-xmllint-and-xsltproc.patch > > +++ b/meta/recipes-devtools/xmlto/xmlto/configure.in-drop-the-test-of-x= mllint-and-xsltproc.patch > > @@ -9,9 +9,9 @@ Signed-off-by: Hongxu Jia > > configure.in | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > =20 > > -diff --git a/configure.in b/configure.in > > ---- a/configure.in > > -+++ b/configure.in > > +diff --git a/configure.ac b/configure.ac > > +--- a/configure.ac > > ++++ b/configure.ac > > @@ -42,10 +42,10 @@ AC_ARG_VAR([LOCALE], [Name and path of the `locale= ' program.]) > > AC_PATH_PROG([LOCALE], [locale], [locale]) > > =20 > > diff --git a/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb b/meta/recipes= -devtools/xmlto/xmlto_0.0.28.bb > > index 5cb9a4c57be..1913dd2833d 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 =3D "GPL-2.0-only" > > =20 > > LIC_FILES_CHKSUM =3D "file://COPYING;md5=3D59530bdf33659b29e73d4adb9f9= f6552" > > =20 > > -SRC_URI =3D "https://releases.pagure.org/xmlto/xmlto-${PV}.tar.gz \ > > +SRCREV =3D "6fa6a0e07644f20abf2596f78a60112713e11cbe" > > +UPSTREAM_CHECK_COMMITS =3D "1" > > +SRC_URI =3D "git://pagure.io/xmlto.git;protocol=3Dhttps;branch=3Dmaste= r \ > > file://configure.in-drop-the-test-of-xmllint-and-xsltproc.p= atch \ > > + file://0001-Skip-validating-xmlto-output.patch \ > > " > > -SRC_URI[md5sum] =3D "a1fefad9d83499a15576768f60f847c6" > > -SRC_URI[sha256sum] =3D "2f986b7c9a0e9ac6728147668e776d405465284e13c74d= 4146c9cbc51fd8aad3" > > +S =3D "${WORKDIR}/git" > > + > > +PV .=3D "+0.0.29+git${SRCPV}" > > =20 > > inherit autotools > > =20 > > CLEANBROKEN =3D "1" > > =20 > > -DEPENDS =3D "libxml2-native" > > +DEPENDS =3D "libxml2-native libxslt-native flex-native docbook-xml-dtd= 4-native docbook-xsl-stylesheets-native" > > =20 > > RDEPENDS:${PN} =3D "docbook-xml-dtd4 \ > > docbook-xsl-stylesheets \ > > @@ -36,6 +40,10 @@ BBCLASSEXTEND =3D "native" > > =20 > > EXTRA_OECONF:append =3D " BASH=3D/bin/bash GCP=3D/bin/cp XMLLINT=3Dxml= lint XSLTPROC=3Dxsltproc" > > =20 > > +do_configure:prepend() { > > + flex -o ${S}/xmlif/xmlif.c ${S}/xmlif/xmlif.l > > +} > > + > > do_install:append:class-native() { > > create_wrapper ${D}${bindir}/xmlto XML_CATALOG_FILES=3D${sysconfdi= r}/xml/catalog > > } > >=20 >=20 > Seems to have a reproducibility problem: >=20 > https://autobuilder.yoctoproject.org/typhoon/#/builders/117/builds/1401 >=20 and a packaging warning: https://autobuilder.yoctoproject.org/typhoon/#/builders/40/builds/5723 https://autobuilder.yoctoproject.org/typhoon/#/builders/108/builds/3390 Cheers, Richard