Skip to contentSkip to conversation

core/download: fix source check for git method

PATCH New Yann E. MORIN 3 participants 3 messages May 12, 2017 – May 15, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 core/download: fix source check for git method

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.

---
 package/pkg-generic.mk | 1 +
 1 file changed, 1 insertion(+)
package/pkg-generic.mk +1 -0
index 3b26e6b483..f474704980 100644
@@ -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))
 
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 core/download: fix source check for git method

Hello,

Quoted 12 lines · Yann E. MORIN

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.

Quoted 8 lines

Fixes #9796.

---
 package/pkg-generic.mk | 1 +
 1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 core/download: fix source check for git method

In reply to Yann E. MORIN
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> 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.

Quoted 7 lines

Fix that by just defining PKG in the source-check rule definition.

Fixes #9796.

Committed to 2017.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard