Cleanup trailing slashed from FOO_SITE
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 3 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 3 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Buildroot] [PATCH 0/3] Cleanup trailing slashed from FOO_SITE
Quoted 35 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Luca" == Luca Ceresoli <[email protected]> writes:
Hi,
this small patch set cleans up the form ofFOO_SITEvariables by removing all trailing slashes.Those slashes are useless and potentially armful, which led to introducing a workaround to strip them:
commit
1cbffbd015106ea90fe49e27433375769dc1035b
Author: Shawn J. Goff <[email protected]>
Date: Fri Apr 12 09:40:30 2013 +0000eliminate double slashes caused by
FOO_SITEending in a slashWhen a
FOO_SITEvariable ends in a slash and gets joined with aFOO_SOURCEvariable like $(FOO_SITE)/$(FOO_SOURCE), the resulting URI has a double slash. While double-slashes are fine in unix paths, they are reserved in URIs - the part following '//' must be an authority.Signed-off-by Shawn J. Goff <[email protected]>Signed-off-by Peter Korsgaard <[email protected]>This series removes all these slashes and the workaround, and updates the manual which is currently suggesting an incorrect URL.
This work has been inspired by this comment from Arnout Vandecappelle:
Quoted 8 lines
Quoted 3 lines
Review
Quoted 3 lines
(quoted diff) +3
-0+else +ifneq ($$($(2)_ACTUAL_SOURCE_TARBALL),$$($(2)_SOURCE)) + $(call DOWNLOAD,$$($(2)_ACTUAL_SOURCE_SITE:/=)/$$($(2)$($(PKG)_SITE:/=)_ACTUAL_SOURCE_TARBALL))I think the $($(PKG)_SITE:/=) construct was just introduced because for some packages, the
_SITEends with a / and that should be stripped, and we were too lazy to fix the packages. Hm, looks like all the the external toolchain_SITEsend with a /...
Quoted 7 lines
(source: https://patchwork.ozlabs.org/patch/424980/)
Luca Ceresoli (3):
manual: download: remove trailing slash from packageFOO_SITERemove trailing slash from all package site URLs
Download: remove trailing slash cleanups for SITE URLs
Committed the first 2, thanks. I'll wait with the last one until you have implemented the check.
Signature · 1 line
Bye, Peter Korsgaard