All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Kanavin <alex.kanavin@gmail.com>
To: "Andreas Müller" <schnitzeltony@gmail.com>
Cc: OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 01/11] itstool: add from meta-oe
Date: Thu, 9 Jan 2020 21:35:01 +0100	[thread overview]
Message-ID: <CANNYZj_ZS77tDpmBO-_AaYb6KYEQTi-B=AV8snywaOa-KrPLVA@mail.gmail.com> (raw)
In-Reply-To: <20200109202623.28936-2-schnitzeltony@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 5321 bytes --]

This also needs a maintainers.inc entry.

Alex

On Thu, 9 Jan 2020 at 21:26, Andreas Müller <schnitzeltony@gmail.com> wrote:

> Recent versions of shared-mime-info depend on itstool
>
> Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
> ---
>  ...-build-time-hardcoded-python-binary-.patch | 35 +++++++++++++++++++
>  ...ld-time-hardcoded-python-binary-path.patch | 29 +++++++++++++++
>  meta/recipes-support/itstool/itstool_2.0.6.bb | 20 +++++++++++
>  3 files changed, 84 insertions(+)
>  create mode 100644
> meta/recipes-support/itstool/itstool/0001-Native-Don-t-use-build-time-hardcoded-python-binary-.patch
>  create mode 100644
> meta/recipes-support/itstool/itstool/0002-Don-t-use-build-time-hardcoded-python-binary-path.patch
>  create mode 100644 meta/recipes-support/itstool/itstool_2.0.6.bb
>
> diff --git
> a/meta/recipes-support/itstool/itstool/0001-Native-Don-t-use-build-time-hardcoded-python-binary-.patch
> b/meta/recipes-support/itstool/itstool/0001-Native-Don-t-use-build-time-hardcoded-python-binary-.patch
> new file mode 100644
> index 0000000000..19a858bd75
> --- /dev/null
> +++
> b/meta/recipes-support/itstool/itstool/0001-Native-Don-t-use-build-time-hardcoded-python-binary-.patch
> @@ -0,0 +1,35 @@
> +From 335ef14fc801c9dfbe7e5692dc71cfbe72049d2b Mon Sep 17 00:00:00 2001
> +From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
> +Date: Sun, 27 Oct 2019 16:38:52 +0100
> +Subject: [PATCH] Native: Don't use build time hardcoded python binary
> path.
> +MIME-Version: 1.0
> +Content-Type: text/plain; charset=UTF-8
> +Content-Transfer-Encoding: 8bit
> +
> +This is same patch as used for target build except that we do not use the
> +'-S' and '-s' option because '-S' is relatively young [1] and elder
> build-host
> +don't support it [2]
> +
> +[1]
> https://github.com/coreutils/coreutils/commit/668306ed86c8c79b0af0db8b9c882654ebb66db2#diff-83d9d52b1f12ac589739ab1334ae4f30
> +[2] https://errors.yoctoproject.org/Errors/Details/274743/
> +
> +Upstream-Status: Inappropriate [OE specific]
> +
> +Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
> +---
> + itstool.in | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/itstool.in b/itstool.in
> +index e64cd34..05d264f 100755
> +--- a/itstool.in
> ++++ b/itstool.in
> +@@ -1,4 +1,4 @@
> +-#!@PYTHON@ -s
> ++#!/usr/bin/env python3
> + #
> + # Copyright (c) 2010-2018 Shaun McCance <shaunm@gnome.org>
> + #
> +--
> +2.21.0
> +
> diff --git
> a/meta/recipes-support/itstool/itstool/0002-Don-t-use-build-time-hardcoded-python-binary-path.patch
> b/meta/recipes-support/itstool/itstool/0002-Don-t-use-build-time-hardcoded-python-binary-path.patch
> new file mode 100644
> index 0000000000..b91105330c
> --- /dev/null
> +++
> b/meta/recipes-support/itstool/itstool/0002-Don-t-use-build-time-hardcoded-python-binary-path.patch
> @@ -0,0 +1,29 @@
> +From cd9b56224895576125e91cca317ace8a80f3eb77 Mon Sep 17 00:00:00 2001
> +From: Piotr Tworek <tworaz@tworaz.net>
> +Date: Sat, 27 Jul 2019 10:19:11 +0200
> +Subject: [PATCH] Don't use build time hardcoded python binary path.
> +
> +This path obviously won't work on target since they refer to build
> +machine directory structure. Native builds will also fail if local.conf
> +has INHERIT+=rm_work. Instread of hardcoding path to python binary use
> +whatever is found in PATH first. This should also allow the tool to use
> +python3 binary provided in recipe-sysroot-native.
> +
> +Upstream-Status: Inappropriate [OE specific]
> +---
> + itstool.in | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/itstool.in b/itstool.in
> +index b3c0033..7df2476 100755
> +--- a/itstool.in
> ++++ b/itstool.in
> +@@ -1,4 +1,4 @@
> +-#!@PYTHON@ -s
> ++#!/usr/bin/env -S python3 -s
> + #
> + # Copyright (c) 2010-2018 Shaun McCance <shaunm@gnome.org>
> + #
> +--
> +2.21.0
> +
> diff --git a/meta/recipes-support/itstool/itstool_2.0.6.bb
> b/meta/recipes-support/itstool/itstool_2.0.6.bb
> new file mode 100644
> index 0000000000..8290c5e581
> --- /dev/null
> +++ b/meta/recipes-support/itstool/itstool_2.0.6.bb
> @@ -0,0 +1,20 @@
> +SUMMARY = "ITS Tool allows you to translate your XML documents with PO
> files"
> +HOMEPAGE = "http://itstool.org/"
> +LICENSE = "GPLv3"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=59c57b95fd7d0e9e238ebbc7ad47c5a5"
> +
> +inherit autotools python3native
> +
> +DEPENDS = "libxml2-native"
> +
> +SRC_URI = "http://files.itstool.org/${BPN}/${BPN}-${PV}.tar.bz2"
> +SRC_URI_append_class-native = "
> file://0001-Native-Don-t-use-build-time-hardcoded-python-binary-.patch"
> +SRC_URI_append_class-target = "
> file://0002-Don-t-use-build-time-hardcoded-python-binary-path.patch"
> +
> +SRC_URI[md5sum] = "4306eeba4f4aee6b393d14f9c3c57ca1"
> +SRC_URI[sha256sum] =
> "6233cc22726a9a5a83664bf67d1af79549a298c23185d926c3677afa917b92a9"
> +
> +BBCLASSEXTEND = "native"
> +
> +RDEPENDS_${PN} += "libxml2-python"
> +RDEPENDS_${PN}_class-native = ""
> --
> 2.21.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>

[-- Attachment #2: Type: text/html, Size: 8043 bytes --]

  reply	other threads:[~2020-01-09 20:35 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-09 20:26 [PATCH 00/11] Make MIME work on desktops Andreas Müller
2020-01-09 20:26 ` [PATCH 01/11] itstool: add from meta-oe Andreas Müller
2020-01-09 20:35   ` Alexander Kanavin [this message]
2020-01-09 20:44     ` Andreas Müller
2020-01-09 21:35       ` Alexander Kanavin
2020-01-09 20:26 ` [PATCH 02/11] itstool: extend to nativesdk Andreas Müller
2020-01-09 20:26 ` [PATCH 03/11] shared-mime-info: upgrade 1.10 -> 1.15 Andreas Müller
2020-01-09 20:34   ` Alexander Kanavin
2020-01-09 20:43     ` Andreas Müller
2020-01-09 20:26 ` [PATCH 04/11] bitbake.conf: add variables 'mimedir' and 'desktopdir' Andreas Müller
2020-01-09 22:15   ` Richard Purdie
2020-01-09 22:21     ` Andreas Müller
2020-01-09 22:27       ` Richard Purdie
2020-01-09 22:59         ` Andreas Müller
2020-01-09 20:26 ` [PATCH 05/11] mime.bbclass: rework Andreas Müller
2020-01-09 20:26 ` [PATCH 06/11] insane.bbclass: introduce a warning for mime missing in inherit Andreas Müller
2020-01-10 15:07   ` Peter Kjellerstedt
2020-01-09 20:26 ` [PATCH 07/11] shared-mime-info: add mime to inherit Andreas Müller
2020-01-09 20:26 ` [PATCH 08/11] gcr: " Andreas Müller
2020-01-09 20:26 ` [PATCH 09/11] mime-xdg.bbclass: initial add Andreas Müller
2020-01-09 20:26 ` [PATCH 10/11] insane.bbclass: Spawn warning for missing mime-xdg in inherit Andreas Müller
2020-01-09 20:26 ` [PATCH 11/11] gcr: add mime-xdg to inherit Andreas Müller
2020-01-09 20:32 ` ✗ patchtest: failure for Make MIME work on desktops Patchwork
2020-01-11 10:26 ` [PATCH 00/11] " Andreas Müller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CANNYZj_ZS77tDpmBO-_AaYb6KYEQTi-B=AV8snywaOa-KrPLVA@mail.gmail.com' \
    --to=alex.kanavin@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=schnitzeltony@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.