From: Arnout Vandecappelle Date: Sun, 14 Oct 2012 05:17:34 +0000 (+0000) Subject: pkg-infra: correct the source name for host-only packages X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=79bfcd556027901;p=buildroot.git pkg-infra: correct the source name for host-only packages Host-only package that don't define their _SOURCE variable would default to host--.tar.gz. It's more logical to remove the host- prefix in this case. This problem is most apparent with host-only packages downloaded from version control, because they never define _SOURCE. Reported by Thomas Petazzoni and initial analysis by Luca Ceresoli. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) Acked-by: Thomas Petazzoni Tested-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index ffe7dfbc5f..270da60c62 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -231,7 +231,7 @@ ifndef $(2)_SOURCE ifdef $(3)_SOURCE $(2)_SOURCE = $($(3)_SOURCE) else - $(2)_SOURCE ?= $$($(2)_BASE_NAME).tar.gz + $(2)_SOURCE ?= $$($(2)_RAWNAME)-$$($(2)_VERSION).tar.gz endif endif