From nobody Thu Sep 5 10:06:36 2024 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wzw4Z3znXz5VPV6 for ; Thu, 05 Sep 2024 10:06:38 +0000 (UTC) (envelope-from SRS0=0v6K=QD=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wzw4Z2D5bz3xh3; Thu, 5 Sep 2024 10:06:38 +0000 (UTC) (envelope-from SRS0=0v6K=QD=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; none Date: Thu, 5 Sep 2024 12:06:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1725530796; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/K1/8rii8N4tIjeKC9TC/8bosdmJiEBK+bqK6y/t6H8=; b=pBM2wM7ARs4l3hdWUVUK74mz41S6mkGBLs54IzqwnrRKtjLQEw+4tqG7WAA4QlajIrmX9j iHH3tmTspj/tq/7lVkNGcBnLZwtqUI3SluRbq6fGNRj5RPLHJD5LhZ/cRb0hsaYOl8qR0I uLgo8Sl8YZ+UoXjFOYjS2ipPBRI/qUUdw5tDPtxfRrBMr7n18/kCVkyn0vqHGGeIOCMfY2 0JhaTBqQGIZXXbKB11XChGurKFV8fpTCoFf+icsuFAg0NHzumO9HgPEsG2gR/8I0EGFEdG f/gJqphk8IEBUa1J/jmPQnu4GPz08S092AxzK4KXFgbIWiwbkqmMNmElM8BKKA== From: Ronald Klop To: Baptiste Daroussin Cc: ports@freebsd.org Message-ID: <462416828.55.1725530796574@localhost> In-Reply-To: References: <49087598.3516.1725528634407@localhost> Subject: Re: what is pkg annotation ports_top_git_hash? List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_54_622049533.1725530796559" X-Mailer: Realworks (718.47) Importance: Normal X-Priority: 3 (Normal) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL] X-Rspamd-Queue-Id: 4Wzw4Z2D5bz3xh3 ------=_Part_54_622049533.1725530796559 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Van: Baptiste Daroussin Datum: donderdag, 5 september 2024 11:38 Aan: Ronald Klop 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

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--