[Buildroot] [PATCH 5/8] core/show-info: report whether a package is overriden

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat Apr 11 08:36:02 UTC 2020


On Sat, 11 Apr 2020 10:12:30 +0200
"Yann E. MORIN" <yann.morin.1998 at free.fr> wrote:

> When a package is overridden, the download, extract, and patch
> stampfiles are replaced by a single rsync stampfile.
> 
> People (and scripts) who want to report on the current status of the
> build, will want to know what stamp file to look at.
> 
> Expose in show-info whether the package is overridden or not.
> 
> We do not expose the override location, because this is a purely-local
> information, and show info should never contain such local information
> (the output of show-info can be shared). Besides, that information is
> already known by the user, as they passed it to Buildroot via local.mk
> to begin with.
> 
> Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
> Cc: Vadim Kochan <vadim4j at gmail.com>
> Cc: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
> Cc: Arnout Vandecappelle <arnout at mind.be>
> Cc: eeppeliteloop at gmail.com
> ---
>  package/pkg-utils.mk | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/package/pkg-utils.mk b/package/pkg-utils.mk
> index 66504d0be2..98e3ede3d1 100644
> --- a/package/pkg-utils.mk
> +++ b/package/pkg-utils.mk
> @@ -100,6 +100,7 @@ define _json-info-pkg
>  		"virtual": false$(comma)
>  		$(call _json-info-pkg-details,$(1)) \
>  	)
> +	"overriden": $(if $($(1)_OVERRIDE_SRCDIR),true,false),

I don't have a good suggestion, but I'm not sure "overriden" is the
most appropriate term. Indeed, the download/extract/patch steps are
also replaced by a rsync step for packages that use _SITE_METHOD =
local, and such packages are not "overriden".

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list