From nobody Thu Sep 5 09:38:20 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 4WzvRz04NTz5W4rV for ; Thu, 05 Sep 2024 09:38:23 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WzvRy6h7wz4sLK; Thu, 5 Sep 2024 09:38:22 +0000 (UTC) (envelope-from bapt@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725529102; 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=/oBGg0fJfuupLTu0hiecQ1nOuyqXKNfSYsjQeGgbQD4=; b=gXFngZQF3hqGI2fDqitvLsQrd8qPvGa/WcAilGdhsJTbopEhtYuupwtgyIMhfSVtcCvHmR ZM76N64Xwuq8vCQkE/6x8p2fDinPuUfskX5lcRP51KqicSvfoYk5Wc2xDOEukzcH/4Nb70 oxqx4q9E2wUctpx4mYbRmhmr7oz6pLgvMYOXkBmslhrHip8lKRZ6qIW8S3+nfbAuzA9i6G dDm74tdF+4TgM1Cn8MySdI/zTeCaIL4nQio1nYZ9P6hr9zhZnf5fT3GCfyDYdcDzdktxiN PBB1fgLLZbMZO6tAmWQrR0SfcKPZsbn5SPIWYrzQnmPl3LLB6sBtLXft8GAZpA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725529102; a=rsa-sha256; cv=none; b=ZpBC67sd4G6shtILb5whkgAZI4Zd/Vu+14xuJogDFXBNdheGluhtkM4+fglqvVFUtMCEZV GfveDsu0VNxUHgn4HdJLNMCtggMj5dhGxxb9t7sPx86ov0hCc29j3CiRPFugPAqe2v6u72 IPxfvCwf+vdyDN1tqjYYvvgVUwQPQXJwE0kC0dZsmzueVstClRnV4j+qkEnn5yK+S+bJn9 asrfJi0vcAcDszbAkAgtWiA67nhsZbXyEIFlDupPlpP2eUPyWH0LF3HI2DLGItqv7zreUe YA5nBEuzICx+suciwgyE8zVDpssdicCEaZBd6J/uqlNS29wh1k/RI27SGoMTGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725529102; 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=/oBGg0fJfuupLTu0hiecQ1nOuyqXKNfSYsjQeGgbQD4=; b=v4ynJCFrX/5H/kUcpwUngSgN+yAvSQDmWOrJB61ijQicKr/xcTKfJgplIehLa04S0IM4ld chHTljTOTe0C3dTFigUglhVDasRklD8+8u3uvCxvMKvSO1CY+NT31A2kSAnVuBgO8oER/q kc6mtVS9t3ZY04W3Zs0s2SP/4IAP1A3UMgnDy4lRv+jGLux/51YOHaYiLJ+D+lg7Yhbc8h QM2Fs6naaYX9Bw05SC01bqfrJ8QYJgnyscxC40uknFSwnjqXImy6KvQdxkJktLhwUxk1s0 k+jQgdaJqNIj9lnoXOURk30L2qHqBkAYrHpn6rELR4j6GxzMvtaERrDBFWzN+w== Received: from aniel.nours.eu (nours.eu [176.31.115.77]) (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) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WzvRy5cRBz13m1; Thu, 5 Sep 2024 09:38:22 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: by aniel.nours.eu (Postfix, from userid 1001) id E0759239D23; Thu, 5 Sep 2024 11:38:20 +0200 (CEST) Date: Thu, 5 Sep 2024 11:38:20 +0200 From: Baptiste Daroussin To: Ronald Klop Cc: ports@freebsd.org Subject: Re: what is pkg annotation ports_top_git_hash? Message-ID: References: <49087598.3516.1725528634407@localhost> 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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49087598.3516.1725528634407@localhost> 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