From nobody Thu Sep 05 09:30:34 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 4WzvH66JVjz5W4V9 for ; Thu, 05 Sep 2024 09:30:42 +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 4WzvH540ykz4qhb for ; Thu, 5 Sep 2024 09:30:41 +0000 (UTC) (envelope-from SRS0=0v6K=QD=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b=vFu8m4my; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of "SRS0=0v6K=QD=klop.ws=ronald-lists@realworks.nl" designates 194.109.157.24 as permitted sender) smtp.mailfrom="SRS0=0v6K=QD=klop.ws=ronald-lists@realworks.nl" Date: Thu, 5 Sep 2024 11:30:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1725528634; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=yA8oG39Cnn6YfHBkWA7tspvh5L+HutmBI1gXqVcqiCE=; b=vFu8m4myLztTyFQcqa+617yX1vc7Vo9nKTV4G7njzJ1rg0QT9jbsYmRMJkr/fZF8I9fzld GvwtgWqPNWEk56rnb10pHWEZATBqw9S8QAmnNroblt6VCnFABpL8+wFYeMaMubQ/OIEL5t /aFVuZe0hBz6gn4FUl+CSZ2H/hzuecPzbbj6gfrqX4qgaeG6o4GOXLVMWJjMA4FUGeaPZg qKdZNIZfa7IFYufJwznROv5itmiDcCsBzxN9r7lPPDztY1ZW/i6OoYIEEhH6PEFBQdxGrA lDWRa3ix+58yKeZx8ntF3e4UKmi9N9y+T+zbzgcfWD159hwb75xpwc+bpldfJQ== From: Ronald Klop To: ports@freebsd.org Message-ID: <49087598.3516.1725528634407@localhost> Subject: 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_3515_987461859.1725528634226" X-Mailer: Realworks (718.46) Importance: Normal X-Priority: 3 (Normal) X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.20 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; FORGED_SENDER(0.30)[ronald-lists@klop.ws,SRS0=0v6K=QD=klop.ws=ronald-lists@realworks.nl]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_ZERO(0.00)[0]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[ports@freebsd.org]; FROM_NEQ_ENVFROM(0.00)[ronald-lists@klop.ws,SRS0=0v6K=QD=klop.ws=ronald-lists@realworks.nl]; TO_DN_NONE(0.00)[]; HAS_X_PRIO_THREE(0.00)[3]; DKIM_TRACE(0.00)[klop.ws:+] X-Rspamd-Queue-Id: 4WzvH540ykz4qhb ------=_Part_3515_987461859.1725528634226 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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? Regards, Ronald. ------=_Part_3515_987461859.1725528634226 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit 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?

Regards,
Ronald.
  ------=_Part_3515_987461859.1725528634226--