* [Buildroot] [PATCH] package/waf: purge trailig '/' from WAF_SITE
@ 2018-12-10 18:45 Carlos Santos
2018-12-10 19:45 ` Thomas Petazzoni
2018-12-10 21:02 ` Arnout Vandecappelle
0 siblings, 2 replies; 5+ messages in thread
From: Carlos Santos @ 2018-12-10 18:45 UTC (permalink / raw)
To: buildroot
<PKG>_SITE cannot have a trailing slash.
Signed-off-by: Carlos Santos <casantos@datacom.com.br>
---
package/waf/waf.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/waf/waf.mk b/package/waf/waf.mk
index cb738a38fd..97bc2a8963 100644
--- a/package/waf/waf.mk
+++ b/package/waf/waf.mk
@@ -6,7 +6,7 @@
WAF_VERSION = 1.9.5
WAF_SOURCE = waf-$(WAF_VERSION)
-WAF_SITE = https://waf.io/
+WAF_SITE = https://waf.io
define HOST_WAF_EXTRACT_CMDS
$(INSTALL) -D -m 0755 $(HOST_WAF_DL_DIR)/waf-$(WAF_VERSION) $(@D)/waf
--
2.14.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] package/waf: purge trailig '/' from WAF_SITE
2018-12-10 18:45 [Buildroot] [PATCH] package/waf: purge trailig '/' from WAF_SITE Carlos Santos
@ 2018-12-10 19:45 ` Thomas Petazzoni
2018-12-10 20:59 ` Arnout Vandecappelle
2018-12-10 21:02 ` Arnout Vandecappelle
1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2018-12-10 19:45 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 10 Dec 2018 16:45:59 -0200, Carlos Santos wrote:
> <PKG>_SITE cannot have a trailing slash.
>
> Signed-off-by: Carlos Santos <casantos@datacom.com.br>
Odd, why isn't our check in package/pkg-generic.mk for trailing slashes
triggering on this?
We have this:
ifeq ($$(patsubst %/,ERROR,$$($(2)_SITE)),ERROR)
$$(error $(2)_SITE ($$($(2)_SITE)) cannot have a trailing slash)
endif
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] package/waf: purge trailig '/' from WAF_SITE
2018-12-10 19:45 ` Thomas Petazzoni
@ 2018-12-10 20:59 ` Arnout Vandecappelle
2018-12-10 21:02 ` Thomas Petazzoni
0 siblings, 1 reply; 5+ messages in thread
From: Arnout Vandecappelle @ 2018-12-10 20:59 UTC (permalink / raw)
To: buildroot
On 10/12/2018 20:45, Thomas Petazzoni wrote:
> Hello,
>
> On Mon, 10 Dec 2018 16:45:59 -0200, Carlos Santos wrote:
>> <PKG>_SITE cannot have a trailing slash.
>>
>> Signed-off-by: Carlos Santos <casantos@datacom.com.br>
>
> Odd, why isn't our check in package/pkg-generic.mk for trailing slashes
> triggering on this?
>
> We have this:
>
> ifeq ($$(patsubst %/,ERROR,$$($(2)_SITE)),ERROR)
> $$(error $(2)_SITE ($$($(2)_SITE)) cannot have a trailing slash)
> endif
Because that check is within
ifeq ($$($$($(2)_KCONFIG_VAR)),y)
...
endif
and these packages are host-only packages.
It has to be within that condition, since the _SITE may be set only or
differently based on kconfig options which are only set when the package is
selected. I tested and it fails for instance on arm-trusted-firmware if that
package is not selected.
We need Config.in.host :-)
Regards,
Arnout
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] package/waf: purge trailig '/' from WAF_SITE
2018-12-10 20:59 ` Arnout Vandecappelle
@ 2018-12-10 21:02 ` Thomas Petazzoni
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2018-12-10 21:02 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 10 Dec 2018 21:59:37 +0100, Arnout Vandecappelle wrote:
> Because that check is within
>
> ifeq ($$($$($(2)_KCONFIG_VAR)),y)
> ...
> endif
>
> and these packages are host-only packages.
Aah, indeed.
> It has to be within that condition, since the _SITE may be set only or
> differently based on kconfig options which are only set when the package is
> selected. I tested and it fails for instance on arm-trusted-firmware if that
> package is not selected.
>
> We need Config.in.host :-)
Hehe, yes, we do :)
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] package/waf: purge trailig '/' from WAF_SITE
2018-12-10 18:45 [Buildroot] [PATCH] package/waf: purge trailig '/' from WAF_SITE Carlos Santos
2018-12-10 19:45 ` Thomas Petazzoni
@ 2018-12-10 21:02 ` Arnout Vandecappelle
1 sibling, 0 replies; 5+ messages in thread
From: Arnout Vandecappelle @ 2018-12-10 21:02 UTC (permalink / raw)
To: buildroot
On 10/12/2018 19:45, Carlos Santos wrote:
> <PKG>_SITE cannot have a trailing slash.
>
> Signed-off-by: Carlos Santos <casantos@datacom.com.br>
Committed to master after fixing the type in the commit title and adding an
explanation why this wasn't detected by the check in generic-package.
Regards,
Arnout
> ---
> package/waf/waf.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/waf/waf.mk b/package/waf/waf.mk
> index cb738a38fd..97bc2a8963 100644
> --- a/package/waf/waf.mk
> +++ b/package/waf/waf.mk
> @@ -6,7 +6,7 @@
>
> WAF_VERSION = 1.9.5
> WAF_SOURCE = waf-$(WAF_VERSION)
> -WAF_SITE = https://waf.io/
> +WAF_SITE = https://waf.io
>
> define HOST_WAF_EXTRACT_CMDS
> $(INSTALL) -D -m 0755 $(HOST_WAF_DL_DIR)/waf-$(WAF_VERSION) $(@D)/waf
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-12-10 21:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-10 18:45 [Buildroot] [PATCH] package/waf: purge trailig '/' from WAF_SITE Carlos Santos
2018-12-10 19:45 ` Thomas Petazzoni
2018-12-10 20:59 ` Arnout Vandecappelle
2018-12-10 21:02 ` Thomas Petazzoni
2018-12-10 21:02 ` Arnout Vandecappelle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox