package/scons: fix missing dependency
PATCH 1/1 package/scons: fix missing dependency
host-scons did not depend on host-python, causing build failures in some instances.
--- package/scons/scons.mk | 1 + 1 file changed, 1 insertion(+)
package/scons/scons.mk +1 -0
@@ -10,6 +10,7 @@ SCONS_LICENSE = MIT SCONS_LICENSE_FILES = LICENSE.txt SCONS_SETUP_TYPE = distutils +HOST_SCONS_DEPENDENCIES = host-python HOST_SCONS_NEEDS_HOST_PYTHON = python2 HOST_SCONS_INSTALL_OPTS = \
Signature · 1 line
2.4.3
PATCH 1/1 package/scons: fix missing dependency
Dear Brendan Heading,
Quoted 13 lines · Brendan Heading
host-scons did not depend on host-python, causing build failures in some instances.
Signed-off-by Brendan Heading <[email protected]>--- package/scons/scons.mk | 1 + 1 file changed, 1 insertion(+)package/scons/scons.mk +0
-0
package/scons/scons.mk SCONS_LICENSE = MIT · line 16
Quoted 7 lines
package/scons/scons.mk +1
-0@@ -10,6 +10,7 @@ SCONS_LICENSE = MIT SCONS_LICENSE_FILES = LICENSE.txt SCONS_SETUP_TYPE = distutils +HOST_SCONS_DEPENDENCIES = host-python HOST_SCONS_NEEDS_HOST_PYTHON = python2 HOST_SCONS_INSTALL_OPTS = \
This does not make sense: scons uses host-python-package, and the python package infrastructure automatically adds host-python as a dependency for host python packages. From package/pkg-python.mk:
ifeq ($(4),target)
$(2)_DEPENDENCIES += $$(if $$(BR2_PACKAGE_PYTHON3),host-python3 python3,host-python python) else
ifeq ($$($(2)_NEEDS_HOST_PYTHON),)
$(2)_DEPENDENCIES += $$(if $$(BR2_PACKAGE_PYTHON3),host-python3,host-python) else
ifeq ($$($(2)_NEEDS_HOST_PYTHON),python2)
$(2)_DEPENDENCIES += host-python
else ifeq ($$($(2)_NEEDS_HOST_PYTHON),python3)
$(2)_DEPENDENCIES += host-python3
else
$$(error Incorrect value '$$($(2)_NEEDS_HOST_PYTHON)' for $(2)_NEEDS_HOST_PYTHON) endif
endif # ($$($(2)_NEEDS_HOST_PYTHON),)
endif # ($(4),target)
So, maybe there's a bug in there, or your analysis of the build failure was wrong. But clearly the solution is not to add host-python as a dependency in scons.mk.
I've marked your patch as Rejected. Please explain in more details what the problem was and how we can reproduce it.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 package/scons: fix missing dependency
Quoted 9 lines · Thomas Petazzoni
Quoted 5 lines
+HOST_SCONS_DEPENDENCIES = host-python
HOST_SCONS_NEEDS_HOST_PYTHON= python2
HOST_SCONS_INSTALL_OPTS= \This does not make sense: scons uses host-python-package, and the python package infrastructure automatically adds host-python as a dependency for host python packages.
My apologies Thomas.
While I was fixing the exfat problem I ran into an issue where scons would
not run because python wasn't present. I just tried to reproduce it again
from scratch and it's no longer happening. I see from your explanation that
it should work fine.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150726/4323dc14/attachment.html>