package/owfs: fixup Python sysconfigdata for per-package directories
PATCH 1/1 package/owfs: fixup Python sysconfigdata for per-package directories
This is needed so that building the owfs Python module uses the gcc from owfs per-package directory, and not the one from the python per-package directory.
Fixes:
http://autobuild.buildroot.net/results/0d582dda367507991a4c38141db36b0fa8e47e67/
--- package/owfs/owfs.mk | 10 ++++++++++ 1 file changed, 10 insertions(+)
package/owfs/owfs.mk +10 -0
@@ -87,6 +87,16 @@ OWFS_DEPENDENCIES += python host-swig # Patching owfs to do the right thing is not trivial, it's much easier to # override the PYSITEDIR variable in make. OWFS_EXTRA_MAKE_OPTS += PYSITEDIR=/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages + +ifeq ($(BR2_PER_PACKAGE_DIRECTORIES),y) +define OWFS_FIXUP_PYTHON_SYSCONFIGDATA + find $(HOST_DIR)/lib/python* $(STAGING_DIR)/usr/lib/python* \ + -name "_sysconfigdata*.py" | xargs --no-run-if-empty \ + $(SED) "s:$(PER_PACKAGE_DIR)/[^/]\+/:$(PER_PACKAGE_DIR)/owfs/:g" +endef +OWFS_PRE_CONFIGURE_HOOKS += OWFS_FIXUP_PYTHON_SYSCONFIGDATA +endif + else OWFS_CONF_OPTS += --disable-owpython --without-python endif
Signature · 1 line
2.24.1
PATCH 1/1 package/owfs: fixup Python sysconfigdata for per-package directories
Quoted 18 lines · Thomas Petazzoni
This is needed so that building the owfs Python module uses the gcc from owfs per-package directory, and not the one from the python per-package directory.
Fixes:
http://autobuild.buildroot.net/results/0d582dda367507991a4c38141db36b0fa8e47e67/
Signed-off-by Thomas Petazzoni <[email protected]>--- package/owfs/owfs.mk | 10 ++++++++++ 1 file changed, 10 insertions(+)package/owfs/owfs.mk +0
-0
package/owfs/owfs.mk OWFS_DEPENDENCIES += python host-swig · line 95
Quoted 9 lines
package/owfs/owfs.mk +6
-0@@ -87,6 +87,16 @@ OWFS_DEPENDENCIES += python host-swig # Patching owfs to do the right thing is not trivial, it's much easier to # override the PYSITEDIR variable in make. OWFS_EXTRA_MAKE_OPTS += PYSITEDIR=/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages + +ifeq ($(BR2_PER_PACKAGE_DIRECTORIES),y) +define OWFS_FIXUP_PYTHON_SYSCONFIGDATA + find $(HOST_DIR)/lib/python* $(STAGING_DIR)/usr/lib/python* \ + -name "_sysconfigdata*.py" | xargs --no-run-if-empty \ + $(SED) "s:$(PER_PACKAGE_DIR)/[^/]\+/:$(PER_PACKAGE_DIR)/owfs/:g"
Why is this needed for owfs and not for all the other python packages?
I wanted to look at the autobuild failure but unfortunately it seems the server
is unresponsive...
Regards,
Arnout
Quoted 8 lines
package/owfs/owfs.mk +4
-0+endef +OWFS_PRE_CONFIGURE_HOOKS += OWFS_FIXUP_PYTHON_SYSCONFIGDATA +endif + else OWFS_CONF_OPTS += --disable-owpython --without-python endif
PATCH 1/1 package/owfs: fixup Python sysconfigdata for per-package directories
Hello Arnout,
Quoted 1 line · On Tue, 18 Feb 2020 09:42:25 +0100 Arnout Vandecappelle <[email protected]> wrote:
Why is this needed for owfs and not for all the other python packages?
Well:
https://patchwork.ozlabs.org/patch/1239695/
is doing exactly the same thing in the python-package infra for all other Python packages.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 package/owfs: fixup Python sysconfigdata for per-package directories
Quoted 5 lines · Thomas Petazzoni
Hello Arnout,
On Tue, 18 Feb 2020 09:42:25 +0100
Arnout Vandecappelle <[email protected]> wrote:
Quoted 8 lines
Quoted 1 line
Why is this needed for owfs and not for all the other python packages?
Well:
https://patchwork.ozlabs.org/patch/1239695/
is doing exactly the same thing in the python-package infra for all other Python packages.
Ha! Good that I asked, it seems my imap cache was corrupted or something...
In that case: looks good to me. Or rather, feels like a hack but I don't have
any better ideas :-)
Regards,
Arnout
PATCH 1/1 package/owfs: fixup Python sysconfigdata for per-package directories
In reply to Thomas PetazzoniQuoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
This is needed so that building the owfs Python module uses the gcc from owfs per-package directory, and not the one from the python per-package directory.
Fixes:
http://autobuild.buildroot.net/results/0d582dda367507991a4c38141db36b0fa8e47e67/
Signed-off-by Thomas Petazzoni <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard