From: aduskett at gmail.com <aduskett@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v12 4/6] package/meson: prevent python include path manipulation
Date: Sun, 23 Jun 2019 17:23:40 -0400 [thread overview]
Message-ID: <20190623212342.41809-5-aduskett@gmail.com> (raw)
In-Reply-To: <20190623212342.41809-1-aduskett@gmail.com>
From: Adam Duskett <Aduskett@gmail.com>
From: https://github.com/openembedded/openembedded-core/blob/master/meta/recipes-devtools/meson/meson/
Meson exports a bunch of PKG_CONFIG_ variables which causes a double prefix for
the staging python include directory.
Signed-off-by: Adam Duskett <Aduskett@gmail.com>
---
Changes v11 -> v12:
- Remove accidental copy and paste in the commit message.
Changes v1 -> v11:
- Add this patch to the series
...-environment-when-calling-pkg-config.patch | 48 +++++++++++++++++++
1 file changed, 48 insertions(+)
create mode 100644 package/meson/0002-python-module-do-not-manipulate-the-environment-when-calling-pkg-config.patch
diff --git a/package/meson/0002-python-module-do-not-manipulate-the-environment-when-calling-pkg-config.patch b/package/meson/0002-python-module-do-not-manipulate-the-environment-when-calling-pkg-config.patch
new file mode 100644
index 0000000000..89a6830c67
--- /dev/null
+++ b/package/meson/0002-python-module-do-not-manipulate-the-environment-when-calling-pkg-config.patch
@@ -0,0 +1,48 @@
+From 3cb2c811dc6d4890342afa5b709cd30cf7b8f3ca Mon Sep 17 00:00:00 2001
+From: Alexander Kanavin <alex.kanavin@gmail.com>
+Date: Mon, 19 Nov 2018 14:24:26 +0100
+Subject: [PATCH] python module: do not manipulate the environment when calling pkg-config
+
+From: https://github.com/openembedded/openembedded-core/blob/master/meta/recipes-devtools/meson/meson/
+
+Meson exports a bunch of PKG_CONFIG_ variables which causes a double prefix to
+the python include directory.
+
+Upstream-Status: Inappropriate [embedded specific]
+Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
+Signed-off-by: Adam Duskett <aduskett@gmail.com>
+
+---
+ mesonbuild/modules/python.py | 12 ------------
+ 1 file changed, 12 deletions(-)
+
+diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
+index 9cfbd6f..3ff687a 100644
+--- a/mesonbuild/modules/python.py
++++ b/mesonbuild/modules/python.py
+@@ -75,11 +75,6 @@ class PythonDependency(ExternalDependency):
+ old_pkg_libdir = os.environ.get('PKG_CONFIG_LIBDIR')
+ old_pkg_path = os.environ.get('PKG_CONFIG_PATH')
+
+- os.environ.pop('PKG_CONFIG_PATH', None)
+-
+- if pkg_libdir:
+- os.environ['PKG_CONFIG_LIBDIR'] = pkg_libdir
+-
+ try:
+ self.pkgdep = PkgConfigDependency('python-{}'.format(pkg_version), environment, kwargs)
+ mlog.debug('Found "python-{}" via pkgconfig lookup in LIBPC ({})'.format(pkg_version, pkg_libdir))
+@@ -88,13 +83,6 @@ class PythonDependency(ExternalDependency):
+ mlog.debug('"python-{}" could not be found in LIBPC ({})'.format(pkg_version, pkg_libdir))
+ mlog.debug(e)
+
+- if old_pkg_path is not None:
+- os.environ['PKG_CONFIG_PATH'] = old_pkg_path
+-
+- if old_pkg_libdir is not None:
+- os.environ['PKG_CONFIG_LIBDIR'] = old_pkg_libdir
+- else:
+- os.environ.pop('PKG_CONFIG_LIBDIR', None)
+ else:
+ mlog.debug('"python-{}" could not be found in LIBPC ({}), this is likely due to a relocated python installation'.format(pkg_version, pkg_libdir))
+
--
2.21.0
next prev parent reply other threads:[~2019-06-23 21:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-23 21:23 [Buildroot] [PATCH v12 0/6] gobject-introspection: new package aduskett at gmail.com
2019-06-23 21:23 ` [Buildroot] [PATCH v12 1/6] package/libiberty: " aduskett at gmail.com
2019-06-23 21:23 ` [Buildroot] [PATCH v12 2/6] package/prelink-cross: " aduskett at gmail.com
2019-06-23 21:23 ` [Buildroot] [PATCH v12 3/6] package/gdb: depend on libiberty aduskett at gmail.com
2019-06-23 21:23 ` aduskett at gmail.com [this message]
2019-06-23 21:23 ` [Buildroot] [PATCH v12 5/6] package/qemu: drop host kernel version check aduskett at gmail.com
2019-08-03 22:27 ` Arnout Vandecappelle
2019-06-23 21:23 ` [Buildroot] [PATCH v12 6/6] package/gobject-introspection: new package aduskett at gmail.com
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=20190623212342.41809-5-aduskett@gmail.com \
--to=aduskett@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox