From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Sat, 11 Apr 2020 10:36:02 +0200 Subject: [Buildroot] [PATCH 5/8] core/show-info: report whether a package is overriden In-Reply-To: <524b53bb81ecd33c55b242d239bee93f57c6c98b.1586592741.git.yann.morin.1998@free.fr> References: <524b53bb81ecd33c55b242d239bee93f57c6c98b.1586592741.git.yann.morin.1998@free.fr> Message-ID: <20200411103602.75d8b9f2@windsurf.home> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On Sat, 11 Apr 2020 10:12:30 +0200 "Yann E. MORIN" 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 > Cc: Vadim Kochan > Cc: Thomas Petazzoni > Cc: Arnout Vandecappelle > 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