* Re: [DistroKit] [ptxdist] [PATCH] ptxd_make_vcs_version: always use all Git tags
[not found] ` <20230926-harmony-thursday-44ea6336278d@ifak-system.com>
@ 2023-12-13 16:49 ` Roland Hieber
0 siblings, 0 replies; only message in thread
From: Roland Hieber @ 2023-12-13 16:49 UTC (permalink / raw)
To: distrokit
Just FYI; I initially sent the PTXdist patch because my DistroKit
version in /etc/issue still showed something very old with a big number
behind it, like "2019.12.0-00529-g1938a270ab52", because the recent tags
in the Git repo were non-signed tags.
- Roland
On Tue, Sep 26, 2023 at 12:13:58PM +0200, Alexander Dahl wrote:
> Hello Roland,
>
> Am Tue, Sep 26, 2023 at 10:32:05AM +0200 schrieb Roland Hieber:
> > The short-circuit results in a preference of signed tags over non-signed
> > tags. In BSPs where non-signed tags exist (e.g. DistroKit-2023.09.0)
> > that are newer than the latest signed tag (e.g. DistroKit-2019.12.0),
> > this will always lead to an unnecessarily old tag being used.
>
> Maybe this thread from 2018 can help (been there, tried that):
>
> https://lore.ptxdist.org/ptxdist/20180907100105.nleg2qmttyahcmzm@pengutronix.de/
>
> Greets
> Alex
>
> >
> > Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
> > Signed-off-by: Roland Hieber <rhi@pengutronix.de>
> > ---
> > Steffen, do you still know why you chose a plain "git describe" first?
> >
> >
> > scripts/lib/ptxd_make_vcs_version.sh | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/scripts/lib/ptxd_make_vcs_version.sh b/scripts/lib/ptxd_make_vcs_version.sh
> > index 69e486ab31a5..d59e1eba9872 100644
> > --- a/scripts/lib/ptxd_make_vcs_version.sh
> > +++ b/scripts/lib/ptxd_make_vcs_version.sh
> > @@ -7,8 +7,7 @@
> > #
> >
> > ptxd_make_vcs_version() {
> > - PTXDIST_VCS_VERSION="$(git describe 2>/dev/null || \
> > - git describe --always --tags 2>/dev/null)"
> > + PTXDIST_VCS_VERSION="$(git describe --always --tags 2>/dev/null)"
> >
> > if [ -z "${PTXDIST_VCS_VERSION}" ]; then
> > PTXDIST_VCS_VERSION="unknown"
> > --
> > 2.39.2
> >
> >
>
>
--
Roland Hieber, Pengutronix e.K. | r.hieber@pengutronix.de |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-13 16:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20230926083205.1648523-1-rhi@pengutronix.de>
[not found] ` <20230926-harmony-thursday-44ea6336278d@ifak-system.com>
2023-12-13 16:49 ` [DistroKit] [ptxdist] [PATCH] ptxd_make_vcs_version: always use all Git tags Roland Hieber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox