pkg-download.mk: do not add a trailing slash to <PKG>_SITE
PATCH 1/1 pkg-download.mk: do not add a trailing slash to <PKG>_SITE
Fixes
http://autobuild.buildroot.net/results/734/7342b25f01d60cafc4a5422a5a1c282629f361c5/
$(dir does not strip last path separator and the wget wrapper adds a '/' between the -u argument and the filename when it reconstructs the URL, leading us to have two slashes before the filename when accessing the upstream location.
Most upstream servers ignores this, but not all - Leading to download issues from pypi.
--- package/pkg-download.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/pkg-download.mk +1 -1
@@ -82,7 +82,7 @@ endif ifeq ($(BR2_PRIMARY_SITE_ONLY),) DOWNLOAD_URIS += \ - -u $($(PKG)_SITE_METHOD)+$(dir $(call qstrip,$(1))) + -u $($(PKG)_SITE_METHOD)+$(patsubst %/,%,$(dir $(call qstrip,$(1)))) ifneq ($(call qstrip,$(BR2_BACKUP_SITE)),) DOWNLOAD_URIS += \ -u $(call getschemeplusuri,$(call qstrip,$(BR2_BACKUP_SITE)/$($(PKG)_DL_SUBDIR)),urlencode) \
Signature · 1 line
2.11.0
PATCH 1/1 pkg-download.mk: do not add a trailing slash to <PKG>_SITE
Quoted 23 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
Fixes
http://autobuild.buildroot.net/results/734/7342b25f01d60cafc4a5422a5a1c282629f361c5/$(dir does not strip last path separator and the wget wrapper adds a '/' between the -u argument and the filename when it reconstructs the URL, leading us to have two slashes before the filename when accessing the upstream location.
Most upstream servers ignores this, but not all - Leading to download issues from pypi.
Signed-off-by Peter Korsgaard <[email protected]>--- package/pkg-download.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)package/pkg-download.mk +0
-0
package/pkg-download.mk endif · line 85
Quoted 5 lines
package/pkg-download.mk +1
-1@@ -82,7 +82,7 @@ endif ifeq ($(BR2_PRIMARY_SITE_ONLY),) DOWNLOAD_URIS += \ - -u $($(PKG)_SITE_METHOD)+$(dir $(call qstrip,$(1))) + -u $($(PKG)_SITE_METHOD)+$(patsubst %/,%,$(dir $(call qstrip,$(1))))
Alternatively I *THINK* we can just use $($(PKG)_SITE) here.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 pkg-download.mk: do not add a trailing slash to <PKG>_SITE
Quoted 24 lines · Peter Korsgaard
Quoted 23 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
Fixes
http://autobuild.buildroot.net/results/734/7342b25f01d60cafc4a5422a5a1c282629f361c5/$(dir does not strip last path separator and the wget wrapper adds a '/' between the -u argument and the filename when it reconstructs the URL, leading us to have two slashes before the filename when accessing the upstream location.
Most upstream servers ignores this, but not all - Leading to download issues from pypi.
Signed-off-by Peter Korsgaard <[email protected]>--- package/pkg-download.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)package/pkg-download.mk +0
-0@@ -82,7 +82,7 @@ endif
Quoted 6 lines
package/pkg-download.mk endif · line 85
Quoted 4 lines
package/pkg-download.mk +1
-1ifeq ($(BR2_PRIMARY_SITE_ONLY),) DOWNLOAD_URIS += \ - -u $($(PKG)_SITE_METHOD)+$(dir $(call qstrip,$(1))) + -u $($(PKG)_SITE_METHOD)+$(patsubst %/,%,$(dir $(call qstrip,$(1))))Alternatively I *THINK* we can just use $($(PKG)_SITE) here.
No, the <PKG>_PATCH and <PKG>_EXTRA_DOWNLOADS variables may contain full URLs.
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 1/1 pkg-download.mk: do not add a trailing slash to <PKG>_SITE
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnout" == Arnout Vandecappelle <[email protected]> writes:
Hi,
Quoted 8 lines
Quoted 6 lines
package/pkg-download.mk endif · line 85
Quoted 4 lines
ifeq ($(BR2_PRIMARY_SITE_ONLY),)
DOWNLOAD_URIS+= \package/pkg-download.mk +1
-1- -u $($(PKG)_SITE_METHOD)+$(dir $(call qstrip,$(1))) + -u $($(PKG)_SITE_METHOD)+$(patsubst %/,%,$(dir $(call qstrip,$(1))))Alternatively I *THINK* we can just use $($(PKG)_SITE) here.
No, the <PKG>_PATCH and <PKG>_EXTRA_DOWNLOADS variables may contain full URLs.
Ahh, yes. It did seem too easy ;)
I'll add a note about this and commit, thanks.
Signature · 1 line
Bye, Peter Korsgaard