* [PATCH] asciidoc: use Python 3 port
@ 2019-03-27 14:20 Ross Burton
2019-03-30 2:00 ` Khem Raj
0 siblings, 1 reply; 5+ messages in thread
From: Ross Burton @ 2019-03-27 14:20 UTC (permalink / raw)
To: openembedded-core
There's a sort-of-official port of asciidoc to Python 3. Whilst the official
replacement is asciidoctor which is rewritten in Ruby, this is a fairly trivial
swap and removes Python 2 from core-image-sato builds entirely.
Moving forward we should evaluate asciidoctor, but that can wait.
Change the RDEPENDS so that python3 is only a dependency for target and
nativesdk builds, for native this can use the host python3.
Remove redundant DESTDIR export that isn't needed.
Signed-off-by: Ross Burton <ross.burton@intel.com>
---
meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb b/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb
index 38164d55735..d0d15171ac4 100644
--- a/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb
+++ b/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb
@@ -8,17 +8,20 @@ LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
file://COPYRIGHT;md5=029ad5428ba5efa20176b396222d4069"
-SRC_URI = "http://downloads.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BP}.tar.gz"
-SRC_URI[md5sum] = "c59018f105be8d022714b826b0be130a"
-SRC_URI[sha256sum] = "78db9d0567c8ab6570a6eff7ffdf84eadd91f2dfc0a92a2d0105d323cab4e1f0"
+SRC_URI = "git://github.com/asciidoc/asciidoc-py3;protocol=https"
+SRCREV = "618f6e6f6b558ed1e5f2588cd60a5a6b4f881ca0"
+PV .= "+py3-git${SRCPV}"
-UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/asciidoc/files/"
+DEPENDS = "libxml2-native libxslt-native docbook-xml-dtd4-native"
+S = "${WORKDIR}/git"
+
+# Not using automake
inherit autotools-brokensep
+CLEANBROKEN = "1"
-export DESTDIR = "${D}"
-DEPENDS_class-native = "docbook-xml-dtd4-native"
-RDEPENDS_${PN} += "python"
-BBCLASSEXTEND = "native"
+# target and nativesdk needs python3, but for native we can use the host.
+RDEPENDS_${PN} += "python3"
+RDEPENDS_remove_class-native = "python3"
-CLEANBROKEN = "1"
+BBCLASSEXTEND = "native nativesdk"
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] asciidoc: use Python 3 port
2019-03-27 14:20 [PATCH] asciidoc: use Python 3 port Ross Burton
@ 2019-03-30 2:00 ` Khem Raj
2019-04-01 14:00 ` Burton, Ross
0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2019-03-30 2:00 UTC (permalink / raw)
To: Ross Burton; +Cc: Patches and discussions about the oe-core layer
On Wed, Mar 27, 2019 at 7:20 AM Ross Burton <ross.burton@intel.com> wrote:
>
> There's a sort-of-official port of asciidoc to Python 3. Whilst the official
> replacement is asciidoctor which is rewritten in Ruby, this is a fairly trivial
> swap and removes Python 2 from core-image-sato builds entirely.
>
> Moving forward we should evaluate asciidoctor, but that can wait.
>
> Change the RDEPENDS so that python3 is only a dependency for target and
> nativesdk builds, for native this can use the host python3.
>
> Remove redundant DESTDIR export that isn't needed.
>
its failing on my archlinux builder, ideas ?
https://errors.yoctoproject.org/Errors/Details/234833/
https://errors.yoctoproject.org/Errors/Details/234829/
> Signed-off-by: Ross Burton <ross.burton@intel.com>
> ---
> meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb | 21 ++++++++++++---------
> 1 file changed, 12 insertions(+), 9 deletions(-)
>
> diff --git a/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb b/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb
> index 38164d55735..d0d15171ac4 100644
> --- a/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb
> +++ b/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb
> @@ -8,17 +8,20 @@ LICENSE = "GPLv2"
> LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
> file://COPYRIGHT;md5=029ad5428ba5efa20176b396222d4069"
>
> -SRC_URI = "http://downloads.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BP}.tar.gz"
> -SRC_URI[md5sum] = "c59018f105be8d022714b826b0be130a"
> -SRC_URI[sha256sum] = "78db9d0567c8ab6570a6eff7ffdf84eadd91f2dfc0a92a2d0105d323cab4e1f0"
> +SRC_URI = "git://github.com/asciidoc/asciidoc-py3;protocol=https"
> +SRCREV = "618f6e6f6b558ed1e5f2588cd60a5a6b4f881ca0"
> +PV .= "+py3-git${SRCPV}"
>
> -UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/asciidoc/files/"
> +DEPENDS = "libxml2-native libxslt-native docbook-xml-dtd4-native"
>
> +S = "${WORKDIR}/git"
> +
> +# Not using automake
> inherit autotools-brokensep
> +CLEANBROKEN = "1"
>
> -export DESTDIR = "${D}"
> -DEPENDS_class-native = "docbook-xml-dtd4-native"
> -RDEPENDS_${PN} += "python"
> -BBCLASSEXTEND = "native"
> +# target and nativesdk needs python3, but for native we can use the host.
> +RDEPENDS_${PN} += "python3"
> +RDEPENDS_remove_class-native = "python3"
>
> -CLEANBROKEN = "1"
> +BBCLASSEXTEND = "native nativesdk"
> --
> 2.11.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] asciidoc: use Python 3 port
2019-03-30 2:00 ` Khem Raj
@ 2019-04-01 14:00 ` Burton, Ross
2019-04-02 2:34 ` Khem Raj
0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2019-04-01 14:00 UTC (permalink / raw)
To: Khem Raj; +Cc: Patches and discussions about the oe-core layer
Error 4 is 'validation error', can you recover the file that is failing?
Ross
On Sat, 30 Mar 2019 at 02:01, Khem Raj <raj.khem@gmail.com> wrote:
>
> On Wed, Mar 27, 2019 at 7:20 AM Ross Burton <ross.burton@intel.com> wrote:
> >
> > There's a sort-of-official port of asciidoc to Python 3. Whilst the official
> > replacement is asciidoctor which is rewritten in Ruby, this is a fairly trivial
> > swap and removes Python 2 from core-image-sato builds entirely.
> >
> > Moving forward we should evaluate asciidoctor, but that can wait.
> >
> > Change the RDEPENDS so that python3 is only a dependency for target and
> > nativesdk builds, for native this can use the host python3.
> >
> > Remove redundant DESTDIR export that isn't needed.
> >
>
> its failing on my archlinux builder, ideas ?
>
> https://errors.yoctoproject.org/Errors/Details/234833/
> https://errors.yoctoproject.org/Errors/Details/234829/
>
> > Signed-off-by: Ross Burton <ross.burton@intel.com>
> > ---
> > meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb | 21 ++++++++++++---------
> > 1 file changed, 12 insertions(+), 9 deletions(-)
> >
> > diff --git a/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb b/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb
> > index 38164d55735..d0d15171ac4 100644
> > --- a/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb
> > +++ b/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb
> > @@ -8,17 +8,20 @@ LICENSE = "GPLv2"
> > LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
> > file://COPYRIGHT;md5=029ad5428ba5efa20176b396222d4069"
> >
> > -SRC_URI = "http://downloads.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BP}.tar.gz"
> > -SRC_URI[md5sum] = "c59018f105be8d022714b826b0be130a"
> > -SRC_URI[sha256sum] = "78db9d0567c8ab6570a6eff7ffdf84eadd91f2dfc0a92a2d0105d323cab4e1f0"
> > +SRC_URI = "git://github.com/asciidoc/asciidoc-py3;protocol=https"
> > +SRCREV = "618f6e6f6b558ed1e5f2588cd60a5a6b4f881ca0"
> > +PV .= "+py3-git${SRCPV}"
> >
> > -UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/asciidoc/files/"
> > +DEPENDS = "libxml2-native libxslt-native docbook-xml-dtd4-native"
> >
> > +S = "${WORKDIR}/git"
> > +
> > +# Not using automake
> > inherit autotools-brokensep
> > +CLEANBROKEN = "1"
> >
> > -export DESTDIR = "${D}"
> > -DEPENDS_class-native = "docbook-xml-dtd4-native"
> > -RDEPENDS_${PN} += "python"
> > -BBCLASSEXTEND = "native"
> > +# target and nativesdk needs python3, but for native we can use the host.
> > +RDEPENDS_${PN} += "python3"
> > +RDEPENDS_remove_class-native = "python3"
> >
> > -CLEANBROKEN = "1"
> > +BBCLASSEXTEND = "native nativesdk"
> > --
> > 2.11.0
> >
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] asciidoc: use Python 3 port
2019-04-01 14:00 ` Burton, Ross
@ 2019-04-02 2:34 ` Khem Raj
2019-04-02 7:48 ` Burton, Ross
0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2019-04-02 2:34 UTC (permalink / raw)
To: Burton, Ross; +Cc: Patches and discussions about the oe-core layer
I find many posts reporting similar issue also I see it happen on
ubuntu 18.04 host as well
https://groups.google.com/forum/#!topic/asciidoc/FC-eOwU8rYg
https://groups.google.com/forum/#!topic/asciidoc/N4boYdQ3Zik
On Mon, Apr 1, 2019 at 7:01 AM Burton, Ross <ross.burton@intel.com> wrote:
>
> Error 4 is 'validation error', can you recover the file that is failing?
>
> Ross
>
> On Sat, 30 Mar 2019 at 02:01, Khem Raj <raj.khem@gmail.com> wrote:
> >
> > On Wed, Mar 27, 2019 at 7:20 AM Ross Burton <ross.burton@intel.com> wrote:
> > >
> > > There's a sort-of-official port of asciidoc to Python 3. Whilst the official
> > > replacement is asciidoctor which is rewritten in Ruby, this is a fairly trivial
> > > swap and removes Python 2 from core-image-sato builds entirely.
> > >
> > > Moving forward we should evaluate asciidoctor, but that can wait.
> > >
> > > Change the RDEPENDS so that python3 is only a dependency for target and
> > > nativesdk builds, for native this can use the host python3.
> > >
> > > Remove redundant DESTDIR export that isn't needed.
> > >
> >
> > its failing on my archlinux builder, ideas ?
> >
> > https://errors.yoctoproject.org/Errors/Details/234833/
> > https://errors.yoctoproject.org/Errors/Details/234829/
> >
> > > Signed-off-by: Ross Burton <ross.burton@intel.com>
> > > ---
> > > meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb | 21 ++++++++++++---------
> > > 1 file changed, 12 insertions(+), 9 deletions(-)
> > >
> > > diff --git a/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb b/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb
> > > index 38164d55735..d0d15171ac4 100644
> > > --- a/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb
> > > +++ b/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb
> > > @@ -8,17 +8,20 @@ LICENSE = "GPLv2"
> > > LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
> > > file://COPYRIGHT;md5=029ad5428ba5efa20176b396222d4069"
> > >
> > > -SRC_URI = "http://downloads.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BP}.tar.gz"
> > > -SRC_URI[md5sum] = "c59018f105be8d022714b826b0be130a"
> > > -SRC_URI[sha256sum] = "78db9d0567c8ab6570a6eff7ffdf84eadd91f2dfc0a92a2d0105d323cab4e1f0"
> > > +SRC_URI = "git://github.com/asciidoc/asciidoc-py3;protocol=https"
> > > +SRCREV = "618f6e6f6b558ed1e5f2588cd60a5a6b4f881ca0"
> > > +PV .= "+py3-git${SRCPV}"
> > >
> > > -UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/asciidoc/files/"
> > > +DEPENDS = "libxml2-native libxslt-native docbook-xml-dtd4-native"
> > >
> > > +S = "${WORKDIR}/git"
> > > +
> > > +# Not using automake
> > > inherit autotools-brokensep
> > > +CLEANBROKEN = "1"
> > >
> > > -export DESTDIR = "${D}"
> > > -DEPENDS_class-native = "docbook-xml-dtd4-native"
> > > -RDEPENDS_${PN} += "python"
> > > -BBCLASSEXTEND = "native"
> > > +# target and nativesdk needs python3, but for native we can use the host.
> > > +RDEPENDS_${PN} += "python3"
> > > +RDEPENDS_remove_class-native = "python3"
> > >
> > > -CLEANBROKEN = "1"
> > > +BBCLASSEXTEND = "native nativesdk"
> > > --
> > > 2.11.0
> > >
> > > --
> > > _______________________________________________
> > > Openembedded-core mailing list
> > > Openembedded-core@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] asciidoc: use Python 3 port
2019-04-02 2:34 ` Khem Raj
@ 2019-04-02 7:48 ` Burton, Ross
0 siblings, 0 replies; 5+ messages in thread
From: Burton, Ross @ 2019-04-02 7:48 UTC (permalink / raw)
To: Khem Raj; +Cc: Patches and discussions about the oe-core layer
Ah so it looks like it's ignoring the XML stuff we're installing and
using the host, and you don't have the right versions. Shall look
into this today.
Ross
On Tue, 2 Apr 2019 at 03:34, Khem Raj <raj.khem@gmail.com> wrote:
>
> I find many posts reporting similar issue also I see it happen on
> ubuntu 18.04 host as well
>
> https://groups.google.com/forum/#!topic/asciidoc/FC-eOwU8rYg
> https://groups.google.com/forum/#!topic/asciidoc/N4boYdQ3Zik
>
> On Mon, Apr 1, 2019 at 7:01 AM Burton, Ross <ross.burton@intel.com> wrote:
> >
> > Error 4 is 'validation error', can you recover the file that is failing?
> >
> > Ross
> >
> > On Sat, 30 Mar 2019 at 02:01, Khem Raj <raj.khem@gmail.com> wrote:
> > >
> > > On Wed, Mar 27, 2019 at 7:20 AM Ross Burton <ross.burton@intel.com> wrote:
> > > >
> > > > There's a sort-of-official port of asciidoc to Python 3. Whilst the official
> > > > replacement is asciidoctor which is rewritten in Ruby, this is a fairly trivial
> > > > swap and removes Python 2 from core-image-sato builds entirely.
> > > >
> > > > Moving forward we should evaluate asciidoctor, but that can wait.
> > > >
> > > > Change the RDEPENDS so that python3 is only a dependency for target and
> > > > nativesdk builds, for native this can use the host python3.
> > > >
> > > > Remove redundant DESTDIR export that isn't needed.
> > > >
> > >
> > > its failing on my archlinux builder, ideas ?
> > >
> > > https://errors.yoctoproject.org/Errors/Details/234833/
> > > https://errors.yoctoproject.org/Errors/Details/234829/
> > >
> > > > Signed-off-by: Ross Burton <ross.burton@intel.com>
> > > > ---
> > > > meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb | 21 ++++++++++++---------
> > > > 1 file changed, 12 insertions(+), 9 deletions(-)
> > > >
> > > > diff --git a/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb b/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb
> > > > index 38164d55735..d0d15171ac4 100644
> > > > --- a/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb
> > > > +++ b/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb
> > > > @@ -8,17 +8,20 @@ LICENSE = "GPLv2"
> > > > LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
> > > > file://COPYRIGHT;md5=029ad5428ba5efa20176b396222d4069"
> > > >
> > > > -SRC_URI = "http://downloads.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BP}.tar.gz"
> > > > -SRC_URI[md5sum] = "c59018f105be8d022714b826b0be130a"
> > > > -SRC_URI[sha256sum] = "78db9d0567c8ab6570a6eff7ffdf84eadd91f2dfc0a92a2d0105d323cab4e1f0"
> > > > +SRC_URI = "git://github.com/asciidoc/asciidoc-py3;protocol=https"
> > > > +SRCREV = "618f6e6f6b558ed1e5f2588cd60a5a6b4f881ca0"
> > > > +PV .= "+py3-git${SRCPV}"
> > > >
> > > > -UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/asciidoc/files/"
> > > > +DEPENDS = "libxml2-native libxslt-native docbook-xml-dtd4-native"
> > > >
> > > > +S = "${WORKDIR}/git"
> > > > +
> > > > +# Not using automake
> > > > inherit autotools-brokensep
> > > > +CLEANBROKEN = "1"
> > > >
> > > > -export DESTDIR = "${D}"
> > > > -DEPENDS_class-native = "docbook-xml-dtd4-native"
> > > > -RDEPENDS_${PN} += "python"
> > > > -BBCLASSEXTEND = "native"
> > > > +# target and nativesdk needs python3, but for native we can use the host.
> > > > +RDEPENDS_${PN} += "python3"
> > > > +RDEPENDS_remove_class-native = "python3"
> > > >
> > > > -CLEANBROKEN = "1"
> > > > +BBCLASSEXTEND = "native nativesdk"
> > > > --
> > > > 2.11.0
> > > >
> > > > --
> > > > _______________________________________________
> > > > Openembedded-core mailing list
> > > > Openembedded-core@lists.openembedded.org
> > > > http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-04-02 7:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-27 14:20 [PATCH] asciidoc: use Python 3 port Ross Burton
2019-03-30 2:00 ` Khem Raj
2019-04-01 14:00 ` Burton, Ross
2019-04-02 2:34 ` Khem Raj
2019-04-02 7:48 ` Burton, Ross
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.