Date: Thu, 5 Sep 2024 12:06:36 +0200 (CEST) From: Ronald Klop <ronald-lists@klop.ws> To: Baptiste Daroussin <bapt@freebsd.org> Cc: ports@freebsd.org Subject: Re: what is pkg annotation ports_top_git_hash? Message-ID: <462416828.55.1725530796574@localhost> In-Reply-To: <trnugo5dp7juy2z3kg7a23jrwd4wuz7rrjrj5ffpfnyjvlkagd@snswge5n5dm4> References: <49087598.3516.1725528634407@localhost> <trnugo5dp7juy2z3kg7a23jrwd4wuz7rrjrj5ffpfnyjvlkagd@snswge5n5dm4>
next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_54_622049533.1725530796559 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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/b2360d43e63e098a9afd3243f81f7fe8852c8965/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? Regards, Ronald. ------=_Part_54_622049533.1725530796559 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <html><head></head><body><br> <p><strong>Van:</strong> Baptiste Daroussin <bapt@freebsd.org><br> <strong>Datum:</strong> donderdag, 5 september 2024 11:38<br> <strong>Aan:</strong> Ronald Klop <ronald-lists@klop.ws><br> <strong>CC:</strong> ports@freebsd.org<br> <strong>Onderwerp:</strong> Re: what is pkg annotation ports_top_git_hash?</p> <blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px"> <div class="MessageRFC822Viewer" id="P"> <div class="TextPlainViewer" id="P.P">On Thu 05 Sep 11:30, Ronald Klop wrote:<br> > Hi,<br> ><br> > I'm looking into some metadata of a pkg.<br> > I found annotation ports_top_git_hash which looks like what I'm looking for.<br> ><br> > But I found that not all pkgs in one build have the same 'ports_top_git_hash'.<br> ><br> > See for example:<br> > curl -s <a href="https://pkg.freebsd.org/FreeBSD:13:aarch64/latest/data.txz">https://pkg.freebsd.org/FreeBSD:13:aarch64/latest/data.txz</a> | 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<br> > "1b6eada811a"<br> > "60a177caf14"<br> ><br> > I found a reference to this in the poudriere source code, but it didn't make it more clear for me.<br> > <a href="https://github.com/freebsd/poudriere/blob/b2360d43e63e098a9afd3243f81f7fe8852c8965/src/share/poudriere/common.sh#L1114">https://github.com/freebsd/poudriere/blob/b2360d43e63e098a9afd3243f81f7fe8852c8965/src/share/poudriere/common.sh#L1114</a><br> ><br> > Wat does 'ports_top_git_hash' mean? Isn'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 package<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 multiple values for this? Is that because not all packages are rebuild every time?<br> <br> Regards,<br> Ronald.<br> </body></html> ------=_Part_54_622049533.1725530796559--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?462416828.55.1725530796574>