From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Sat, 29 Mar 2014 14:26:26 +0100 Subject: [Buildroot] [PATCH 3/6] pkg-python: support host-python dependency different from the python in the target In-Reply-To: <20140329114728.GF3227@free.fr> References: <1394057085-10399-1-git-send-email-s.martin49@gmail.com> <1394057085-10399-4-git-send-email-s.martin49@gmail.com> <20140329114728.GF3227@free.fr> Message-ID: <20140329142626.08cebfac@skate> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Dear Yann E. MORIN, On Sat, 29 Mar 2014 12:47:28 +0100, Yann E. MORIN wrote: > I thionk we should explicitly check for (empty), 'python2' or 'python3', > and abort on any other value: > > ifeq ($($(2)_FORCE_HOST_PYTHON),python2) > $(2)_DEPENDENCIES += host-python > else ifeq ($($(2)_FORCE_HOST_PYTHON),python3) > $(2)_DEPENDENCIES += host-python3 > else > $$(error Incorrect value '$($(2)_FORCE_HOST_PYTHON)' for $(2)_FORCE_HOST_PYTHON) > endif > endif Hum, most packages will *not* define _FORCE_HOST_PYTHON I believe. Or do you plan to modify all packages that depend on host-python so that they all define a value for _FORCE_HOST_PYTHON ? I believe the idea was that if _FORCE_HOST_PYTHON is not defined, then we default to whatever Python version has been selected. Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com