Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2024 12:13:52 +0200
From:      =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= <fernando.apesteguia@gmail.com>
To:        Ronald Klop <ronald-lists@klop.ws>
Cc:        Baptiste Daroussin <bapt@freebsd.org>, ports FreeBSD <ports@freebsd.org>
Subject:   Re: what is pkg annotation ports_top_git_hash?
Message-ID:  <CAGwOe2bGSEoyg8aKHLYFUGvRYECYYuZDmP38xgfr1NxgMwZQkw@mail.gmail.com>
In-Reply-To: <462416828.55.1725530796574@localhost>
References:  <49087598.3516.1725528634407@localhost> <trnugo5dp7juy2z3kg7a23jrwd4wuz7rrjrj5ffpfnyjvlkagd@snswge5n5dm4> <462416828.55.1725530796574@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000e92a3706215c8cdc
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

El jue, 5 sept 2024, 12:07, Ronald Klop <ronald-lists@klop.ws> escribi=C3=
=B3:

>
> *Van:* Baptiste Daroussin <bapt@freebsd.org>
> *Datum:* donderdag, 5 september 2024 11:38
> *Aan:* Ronald Klop <ronald-lists@klop.ws>
> *CC:* ports@freebsd.org
> *Onderwerp:* Re: what is pkg annotation ports_top_git_hash?
>
> On Thu 05 Sep 11:30, Ronald Klop wrote:
> > Hi,
> >
> > I'm looking into some metadata of a pkg.
> > I found annotation ports_top_git_hash which looks like what I'm looking
> for.
> >
> > But I found that not all pkgs in one build have the same
> 'ports_top_git_hash'.
> >
> > See for example:
> > curl -s https://pkg.freebsd.org/FreeBSD:13:aarch64/latest/data.txz |
> tar -x -f - --to-stdout data | jq '.packages[] | {origin: .origin,
> ports_top_git_hash: .annotations.ports_top_git_hash }' | jq
> .ports_top_git_hash | sort | uniq
> > "1b6eada811a"
> > "60a177caf14"
> >
> > I found a reference to this in the poudriere source code, but it didn't
> make it more clear for me.
> >
> https://github.com/freebsd/poudriere/blob/b2360d43e63e098a9afd3243f81f7fe=
8852c8965/src/share/poudriere/common.sh#L1114
> >
> > Wat does 'ports_top_git_hash' mean? Isn't it the git hash of the top
> directory of the ports tree?
>
> This the hash of the top directory of the ports tree at the moment the
> package
> was built.
>
> Best regards,
> Bapt
> ------------------------------
>
>
>
> Hi,
>
> That is what I hoped for. How can it be that one package build contains
> multiple values for this? Is that because not all packages are rebuild
> every time?
>

Do you have package seeding enabled?
At least in that case I would assume they would be different.

Cheers.


> Regards,
> Ronald.
>
>

--000000000000e92a3706215c8cdc
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">El jue, 5 sept 2024, 12:07, Ronald Klop &lt;<a href=3D=
"mailto:ronald-lists@klop.ws">ronald-lists@klop.ws</a>&gt; escribi=C3=B3:<b=
r></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border=
-left:1px #ccc solid;padding-left:1ex"><div><br>
<p><strong>Van:</strong> Baptiste Daroussin &lt;<a href=3D"mailto:bapt@free=
bsd.org" target=3D"_blank" rel=3D"noreferrer">bapt@freebsd.org</a>&gt;<br>
<strong>Datum:</strong> donderdag, 5 september 2024 11:38<br>
<strong>Aan:</strong> Ronald Klop &lt;<a href=3D"mailto:ronald-lists@klop.w=
s" target=3D"_blank" rel=3D"noreferrer">ronald-lists@klop.ws</a>&gt;<br>
<strong>CC:</strong> <a href=3D"mailto:ports@freebsd.org" target=3D"_blank"=
 rel=3D"noreferrer">ports@freebsd.org</a><br>
<strong>Onderwerp:</strong> Re: what is pkg annotation ports_top_git_hash?<=
/p>

<blockquote style=3D"padding-right:0px;padding-left:5px;margin-left:5px;bor=
der-left:#000000 2px solid;margin-right:0px">
<div id=3D"m_-6857889524667858873P">
<div id=3D"m_-6857889524667858873P.P">On Thu 05 Sep 11:30, Ronald Klop wrot=
e:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m looking into some metadata of a pkg.<br>
&gt; I found annotation ports_top_git_hash which looks like what I&#39;m lo=
oking for.<br>
&gt;<br>
&gt; But I found that not all pkgs in one build have the same &#39;ports_to=
p_git_hash&#39;.<br>
&gt;<br>
&gt; See for example:<br>
&gt; curl -s <a href=3D"https://pkg.freebsd.org/FreeBSD:13:aarch64/latest/d=
ata.txz" target=3D"_blank" rel=3D"noreferrer">https://pkg.freebsd.org/FreeB=
SD:13:aarch64/latest/data.txz</a> | tar -x -f - --to-stdout data | jq &#39;=
.packages[] | {origin: .origin, ports_top_git_hash: .annotations.ports_top_=
git_hash }&#39; | jq .ports_top_git_hash | sort | uniq<br>
&gt; &quot;1b6eada811a&quot;<br>
&gt; &quot;60a177caf14&quot;<br>
&gt;<br>
&gt; I found a reference to this in the poudriere source code, but it didn&=
#39;t make it more clear for me.<br>
&gt; <a href=3D"https://github.com/freebsd/poudriere/blob/b2360d43e63e098a9=
afd3243f81f7fe8852c8965/src/share/poudriere/common.sh#L1114" target=3D"_bla=
nk" rel=3D"noreferrer">https://github.com/freebsd/poudriere/blob/b2360d43e6=
3e098a9afd3243f81f7fe8852c8965/src/share/poudriere/common.sh#L1114</a><br>
&gt;<br>
&gt; Wat does &#39;ports_top_git_hash&#39; mean? Isn&#39;t it the git hash =
of the top directory of the ports tree?<br>
<br>
This the hash of the top directory of the ports tree at the moment the pack=
age<br>
was built.<br>
<br>
Best regards,<br>
Bapt</div>

<hr></div>
</blockquote>
<br>
<br>
Hi,<br>
<br>
That is what I hoped for. How can it be that one package build contains mul=
tiple values for this? Is that because not all packages are rebuild every t=
ime?<br></div></blockquote></div></div><div dir=3D"auto"><br></div><div dir=
=3D"auto">Do you have package seeding enabled?</div><div dir=3D"auto">At le=
ast in that case I would assume they would be different.</div><div dir=3D"a=
uto"><br></div><div dir=3D"auto">Cheers.</div><div dir=3D"auto"><br></div><=
div dir=3D"auto"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quot=
e" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">=
<div>
<br>
Regards,<br>
Ronald.<br>
=C2=A0</div></blockquote></div></div></div>

--000000000000e92a3706215c8cdc--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGwOe2bGSEoyg8aKHLYFUGvRYECYYuZDmP38xgfr1NxgMwZQkw>