From: Angelo Compagnucci <angelo.compagnucci@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/pkg-python: fixing wrong root an prefix
Date: Sun, 25 Nov 2018 00:21:39 +0100 [thread overview]
Message-ID: <20181124232139.14782-1-angelo@amarulasolutions.com> (raw)
Some python software refers to setuptool/distutils options
to install files in python root directory (like data_files option).
To use this type of option, python root should point to the real python
root in buildroot folder and not to the guest os /.
Prefix path is always built starting from the python root, so it should
be simply /usr.
Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
---
package/pkg-python.mk | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/package/pkg-python.mk b/package/pkg-python.mk
index f57e486dad..38c5941777 100644
--- a/package/pkg-python.mk
+++ b/package/pkg-python.mk
@@ -42,10 +42,12 @@ PKG_PYTHON_DISTUTILS_BUILD_OPTS = \
--executable=/usr/bin/python
PKG_PYTHON_DISTUTILS_INSTALL_TARGET_OPTS = \
- --prefix=$(TARGET_DIR)/usr
+ --prefix=/usr \
+ --root=$(TARGET_DIR) \
PKG_PYTHON_DISTUTILS_INSTALL_STAGING_OPTS = \
- --prefix=$(STAGING_DIR)/usr
+ --prefix=/usr \
+ --root=$(STAGING_DIR)
# Host distutils-based packages
HOST_PKG_PYTHON_DISTUTILS_ENV = \
@@ -66,16 +68,16 @@ PKG_PYTHON_SETUPTOOLS_ENV = \
_python_exec_prefix=/usr
PKG_PYTHON_SETUPTOOLS_INSTALL_TARGET_OPTS = \
- --prefix=$(TARGET_DIR)/usr \
+ --prefix=/usr \
--executable=/usr/bin/python \
--single-version-externally-managed \
- --root=/
+ --root=$(TARGET_DIR)
PKG_PYTHON_SETUPTOOLS_INSTALL_STAGING_OPTS = \
- --prefix=$(STAGING_DIR)/usr \
+ --prefix=/usr \
--executable=/usr/bin/python \
--single-version-externally-managed \
- --root=/
+ --root=$(STAGING_DIR)
# Host setuptools-based packages
HOST_PKG_PYTHON_SETUPTOOLS_ENV = \
--
2.17.1
next reply other threads:[~2018-11-24 23:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-24 23:21 Angelo Compagnucci [this message]
2018-11-25 8:26 ` [Buildroot] [PATCH] package/pkg-python: fixing wrong root an prefix 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=20181124232139.14782-1-angelo@amarulasolutions.com \
--to=angelo.compagnucci@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