From: Thomas Petazzoni Date: Tue, 1 May 2018 23:01:42 +0200 Subject: [Buildroot] [PATCH 2/2] core/pkg-infra: don't enforce site-method for extra downloads In-Reply-To: <58a86c2e2f56abb66012e88c26f5e8c1d6737a2d.1524685305.git.yann.morin.1998@free.fr> References: <58a86c2e2f56abb66012e88c26f5e8c1d6737a2d.1524685305.git.yann.morin.1998@free.fr> Message-ID: <20180501230142.6f40e946@windsurf.home> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello, On Wed, 25 Apr 2018 21:41:53 +0200, Yann E. MORIN wrote: > The site method only ever applies to the main download, while extra > downloads are always to be fetches with wget. > > However, the site method is prepended to the URL from within the > DOWNLOAD macro (well, a variable evaluated in the DOWNLOAD macro), > which is called for each download of a package, thus effectively > prepending the site method to all downloads, even the extra ones (and > the patches). > > We fix that by prepending the site method from within the > generic-package infra, so that it only applies to the main download. > > For that, we move the main _SOURCE out of the foreach loop, so that > we can prepend the site-method to it, without impacting the other > downloads. > > Reported-by: Luca Ceresoli > Signed-off-by: "Yann E. MORIN" > Cc: Luca Ceresoli > Cc: Thomas Petazzoni > Cc: Maxime Hadjinlian > --- > package/pkg-download.mk | 2 +- > package/pkg-generic.mk | 3 ++- > 2 files changed, 3 insertions(+), 2 deletions(-) Applied to master, thanks. Thomas -- Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com