All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] package/python-augeas: new package
Date: Thu, 24 Jun 2021 23:53:53 +0200	[thread overview]
Message-ID: <20210624215353.GI2852@scaer> (raw)
In-Reply-To: <20210621203456.361929-1-thomas.petazzoni@bootlin.com>

Thomas, All,

On 2021-06-21 22:34 +0200, Thomas Petazzoni spake thusly:
> We backport an upstream patch that fixes the loading of the native
> library by the FFI logic. Without this, "import augeas" doesn't work
> as it goes into the ctypes.utils.find_library() logic that tries to
> use a compiler on the target to find the augeas native library.
> 
> Based on initial work from Nicolas Carrier <nicolas.carrier@orolia.com>
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>

A new package with a runtime test? Applied to master, thanks.

[--SNIP--]
> diff --git a/package/python-augeas/python-augeas.mk b/package/python-augeas/python-augeas.mk
> new file mode 100644
> index 0000000000..7adaa84f49
> --- /dev/null
> +++ b/package/python-augeas/python-augeas.mk
> @@ -0,0 +1,21 @@
> +################################################################################
> +#
> +# python-augeas
> +#
> +################################################################################
> +
> +PYTHON_AUGEAS_VERSION = 1.1.0
> +PYTHON_AUGEAS_SITE = $(call github,hercules-team,python-augeas,v$(PYTHON_AUGEAS_VERSION))
> +PYTHON_AUGEAS_SETUP_TYPE = setuptools
> +PYTHON_AUGEAS_LICENSE = LGPL-2.1+
> +PYTHON_AUGEAS_LICENSE_FILES = COPYING
> +PYTHON_AUGEAS_DEPENDENCIES = augeas host-python-cffi host-pkgconf
> +# This will tell python-augeas to not call xml2-config, and instead
> +# use pkg-config to find libxml2. libxml2 is an indirect dependency of
> +# augeas, which is why it's not in our dependencies. It's odd that
> +# python-augeas searches for libxml2, but that's what it
> +# does. Question asked in the pull request at
> +# https://github.com/hercules-team/python-augeas/pull/49.

They've now replied, and I am not sure I followed... Augeas' .pc does
not yield libxml2' CFLAGS, because it is a Requires.Private.

So, why does python-augeas need the CFLAGS from libxml2?

Anyway...

Regards,
Yann E. MORIN.

> +PYTHON_AUGEAS_ENV = XML2_CONFIG=/bin/false
> +
> +$(eval $(python-package))
> -- 
> 2.31.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  parent reply	other threads:[~2021-06-24 21:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-21 20:34 [Buildroot] [PATCH 1/2] package/python-augeas: new package Thomas Petazzoni
2021-06-21 20:34 ` [Buildroot] [PATCH 2/2] support/testing/tests/package/test_python_augeas: new test Thomas Petazzoni
2021-06-24 21:53 ` Yann E. MORIN [this message]
2021-06-25  6:51   ` [Buildroot] [PATCH 1/2] package/python-augeas: new package Thomas Petazzoni

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=20210624215353.GI2852@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /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.