* [Buildroot] [PATCH] core/download: fix source check for git method
@ 2017-05-12 15:54 Yann E. MORIN
2017-05-13 13:14 ` Thomas Petazzoni
2017-05-15 12:09 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Yann E. MORIN @ 2017-05-12 15:54 UTC (permalink / raw)
To: buildroot
Running foo-source-check on packages retrieved from git fails.
This is because there is no associated stamp file, so we do not have a
rule-assignment that sets PKG for foo-source-check.
But it does not make sense to have a stamp file at all, because
source-check is not supposed to change anything: the status after is
exactly the same as before; nothing is downlaoded, so there is no
progress (whatsoever) to memorise.
Fix that by just defining PKG in the source-check rule definition.
Fixes #9796.
Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/pkg-generic.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index 3b26e6b483..f474704980 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -694,6 +694,7 @@ $(1)-legal-source: $$($(2)_TARGET_ACTUAL_SOURCE)
endif # actual sources != sources
endif # actual sources != ""
+$(1)-source-check: PKG=$(2)
$(1)-source-check:
$$(foreach p,$$($(2)_ALL_DOWNLOADS),$$(call SOURCE_CHECK,$$(p))$$(sep))
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] core/download: fix source check for git method
2017-05-12 15:54 [Buildroot] [PATCH] core/download: fix source check for git method Yann E. MORIN
@ 2017-05-13 13:14 ` Thomas Petazzoni
2017-05-15 12:09 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-05-13 13:14 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 12 May 2017 17:54:29 +0200, Yann E. MORIN wrote:
> Running foo-source-check on packages retrieved from git fails.
>
> This is because there is no associated stamp file, so we do not have a
> rule-assignment that sets PKG for foo-source-check.
>
> But it does not make sense to have a stamp file at all, because
> source-check is not supposed to change anything: the status after is
> exactly the same as before; nothing is downlaoded, so there is no
> progress (whatsoever) to memorise.
>
> Fix that by just defining PKG in the source-check rule definition.
>
> Fixes #9796.
>
> Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> package/pkg-generic.mk | 1 +
> 1 file changed, 1 insertion(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] core/download: fix source check for git method
2017-05-12 15:54 [Buildroot] [PATCH] core/download: fix source check for git method Yann E. MORIN
2017-05-13 13:14 ` Thomas Petazzoni
@ 2017-05-15 12:09 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2017-05-15 12:09 UTC (permalink / raw)
To: buildroot
>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:
> Running foo-source-check on packages retrieved from git fails.
> This is because there is no associated stamp file, so we do not have a
> rule-assignment that sets PKG for foo-source-check.
> But it does not make sense to have a stamp file at all, because
> source-check is not supposed to change anything: the status after is
> exactly the same as before; nothing is downlaoded, so there is no
> progress (whatsoever) to memorise.
> Fix that by just defining PKG in the source-check rule definition.
> Fixes #9796.
> Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Committed to 2017.02.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-15 12:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-12 15:54 [Buildroot] [PATCH] core/download: fix source check for git method Yann E. MORIN
2017-05-13 13:14 ` Thomas Petazzoni
2017-05-15 12:09 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox