All of lore.kernel.org
 help / color / mirror / Atom feed
From: Angelo Compagnucci <angelo.compagnucci@gmail.com>
To: buildroot@buildroot.org
Cc: Angelo Compagnucci <angelo.compagnucci@gmail.com>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: [Buildroot] [PATCH 2/2] package/pkg-python: fix pep517 data files installation
Date: Fri, 19 Apr 2024 23:32:16 +0200	[thread overview]
Message-ID: <20240419213216.518041-3-angelo.compagnucci@gmail.com> (raw)
In-Reply-To: <20240419213216.518041-1-angelo.compagnucci@gmail.com>

When installing a wheel in pep517 compatibility mode, the pyinstaller.py is
invoked with the --data parameter which point to the directory in which data
files should be installed.
Actually the --data parameter points to the /usr subdirectory which is indeed
wrong cause it shall point to the root directory where the wheel will be
installed.
This fixes the problem of having configuration files installed in /usr/etc
instead of /etc.

Fixes:
http://autobuild.buildroot.net/results/36ac5278d19195a21c3d02d087965e08f49228ef

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
---
 package/pkg-python.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/pkg-python.mk b/package/pkg-python.mk
index 839f728e2f..4f9bee4b90 100644
--- a/package/pkg-python.mk
+++ b/package/pkg-python.mk
@@ -70,7 +70,7 @@ PKG_PYTHON_PEP517_INSTALL_TARGET_CMD = \
 	--purelib=$(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages \
 	--headers=$(TARGET_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR) \
 	--scripts=$(TARGET_DIR)/usr/bin \
-	--data=$(TARGET_DIR)/usr
+	--data=$(TARGET_DIR)
 
 PKG_PYTHON_PEP517_INSTALL_STAGING_CMD = \
 	$(TOPDIR)/support/scripts/pyinstaller.py \
@@ -79,7 +79,7 @@ PKG_PYTHON_PEP517_INSTALL_STAGING_CMD = \
 	--purelib=$(STAGING_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages \
 	--headers=$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR) \
 	--scripts=$(STAGING_DIR)/usr/bin \
-	--data=$(STAGING_DIR)/usr
+	--data=$(STAGING_DIR)
 
 PKG_PYTHON_PEP517_DEPENDENCIES = \
 	host-python-pypa-build \
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  parent reply	other threads:[~2024-04-19 21:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-19 21:32 [Buildroot] [PATCH 0/2] Fix fail2ban Angelo Compagnucci
2024-04-19 21:32 ` [Buildroot] [PATCH 1/2] package/fail2ban: fix data_files installation path Angelo Compagnucci
2024-06-11 14:14   ` Fiona Klute via buildroot
2024-07-09 20:28   ` Thomas Petazzoni via buildroot
2024-07-09 20:54     ` Fiona Klute via buildroot
2024-04-19 21:32 ` Angelo Compagnucci [this message]
2024-06-11 14:15   ` [Buildroot] [PATCH 2/2] package/pkg-python: fix pep517 data files installation Fiona Klute via buildroot
2024-07-12 13:41 ` [Buildroot] [PATCH 0/2] Fix fail2ban Arnout Vandecappelle via buildroot
2024-07-12 14:00   ` Angelo Compagnucci
2024-08-01 10:50     ` Peter Korsgaard
  -- strict thread matches above, loose matches on Subject: below --
2024-04-19 21:27 Angelo Compagnucci
2024-04-19 21:27 ` [Buildroot] [PATCH 2/2] package/pkg-python: fix pep517 data files installation Angelo Compagnucci
2024-04-19 21:18 [Buildroot] [PATCH 0/2] Fix fail2ban Angelo Compagnucci
2024-04-19 21:18 ` [Buildroot] [PATCH 2/2] package/pkg-python: fix pep517 data files installation Angelo Compagnucci

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=20240419213216.518041-3-angelo.compagnucci@gmail.com \
    --to=angelo.compagnucci@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=thomas.petazzoni@bootlin.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.