@@ -7,16 +7,6 @@
#
################################################################################
-# Download method commands
-export CURL := $(call qstrip,$(BR2_CURL))
-export WGET := $(call qstrip,$(BR2_WGET))
-export SVN := $(call qstrip,$(BR2_SVN))
-export CVS := $(call qstrip,$(BR2_CVS))
-export BZR := $(call qstrip,$(BR2_BZR))
-export GIT := $(call qstrip,$(BR2_GIT))
-export HG := $(call qstrip,$(BR2_HG))
-export SCP := $(call qstrip,$(BR2_SCP))
-export SFTP := $(call qstrip,$(BR2_SFTP))
export LOCALFILES := $(call qstrip,$(BR2_LOCALFILES))
# Version of the format of the archives we generate in the corresponding
@@ -118,6 +108,15 @@ define DOWNLOAD
$(Q)$(DOWNLOAD_SET_UMASK) $(EXTRA_ENV) \
$($(PKG)_DL_ENV) \
TAR="$(TAR)" \
+ CURL="$(call qstrip,$(BR2_CURL))" \
+ WGET="$(call qstrip,$(BR2_WGET))" \
+ SVN="$(call qstrip,$(BR2_SVN))" \
+ CVS="$(call qstrip,$(BR2_CVS))" \
+ BZR="$(call qstrip,$(BR2_BZR))" \
+ GIT="$(call qstrip,$(BR2_GIT))" \
+ HG="$(call qstrip,$(BR2_HG))" \
+ SCP="$(call qstrip,$(BR2_SCP))" \
+ SFTP="$(call qstrip,$(BR2_SFTP))" \
BR_NO_CHECK_HASH_FOR="$(if $(BR2_DOWNLOAD_FORCE_CHECK_HASHES),,$(BR_NO_CHECK_HASH_FOR))" \
flock $($(PKG)_DL_DIR)/.lock $(DL_WRAPPER) \
-c '$($(PKG)_DL_VERSION)' \
Exporting the download variables can cause unfortunate name clashes, as occurred with the SCP variable used by Binman for compiling U-Boot [1]. Do not globally export the package download commands anymore; instead, pass them to the dl-wrapper environment. [1] https://lore.kernel.org/buildroot/a023971c7c8bfa4826a9a8721500c7ff@free.fr/T/ Cc: Julien Olivain <ju.o@free.fr> Suggested-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- Changes v1 -> v2: - Drop the -C option package/pkg-download.mk | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-)