From nobody Thu Sep 05 14:34:56 2024 X-Original-To: freebsd-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 4X022B190vz5W8pY for ; Thu, 05 Sep 2024 14:34:58 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4X022B0cNGz4ZJs for ; Thu, 5 Sep 2024 14:34:58 +0000 (UTC) (envelope-from kevans@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725546898; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+TtaSr8QCEPvxvcI58XDyD/1KjTPjfeIRWx45lr443w=; b=ifFm+RpU1ja/4Wbz2w1i4WT+fFH6Qy0yRbli0hhh1SXynqg7RL8fWtvAlWjh5yQ8jEiSfW 9hv9iNUAa5X9i3n8eXkarA/APPsEOB7eY711Va3Dp8RUWKiaI4NrF6Z5T/sHFTwbqkr3Kd PpmjflkngGcKSAsc3m9sAeOGPSkNFxjLnqWcpcSg3g2o0Bc+01/W2Arx68DMJQ0m5JLUfo yY45nNTtE13HLd5frrsRp17SgbYjJXOqX6En3efGGNP8pJFF6Sg1Z+KewkoNIx7VPrREw/ QQsxF7YQ/V/AEIHgEw//Y8YrNNtetq3Ijb+J2ngdSIqU+XaoYiwZFsWp+8GOyw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725546898; a=rsa-sha256; cv=none; b=kzxQi4B79HEU/Ftmq3UvNP0XvPxRuw4PWh/l9MLtsOmw3IfqIGylR3GnNO2XqyCbvYBA2Y 9IajnV7LaLhQTSp3fmrDFsAhgfntG5hKiVV71F6SHRInryzSMxZZHbsuMAEGnK7fNqNOTH O47CdzGKOPmUKxYtIHcOwEow5giip/XJgk62bvv2lnIPj84mJs1I94lkTCN82Nnr40nA1T /HMX85+E6GwCyFusx5f9Edkofb9mi/Gtzb6AjvvlF+N5O5XOehEoEs0T5MH87Khl94V7zw fpeks5d1IWpjDxsy1Q1PsHpyqvApoAk+GHT+sFJjQc1P1zcAJZ9CIUsajXjhiQ== 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=1725546898; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+TtaSr8QCEPvxvcI58XDyD/1KjTPjfeIRWx45lr443w=; b=TmEZ44naf3HeNx3GKZBPugOfFGpm4HtYbV0r/UFxMqDcrRkPyQhFJpRD5ZQ6m/9shnZ8S9 1eYRU0mYYBHtLT0slEZ8A4c/499MZJkXR9CfQhprxqefjlROUK43+BTRG3w2G7fsEXWTbq j9xvsWeDWO9ZvioAUWTavTyS+jUiDeQyNYMrR1PyzzKYfZQvODIBnPFmSmbQU1jiSG1oXt DS0GkqsOCBhrhYISEcDfikHXwIJCp+k9iwuJkrLtCnBInNRK+YKUMuIbfalZqaTMK4vRbp RvITXpm12zGfNwv4Hitit1u4/g/IRDZ9IFcGdWlDLgKgmO4cAYEhkAsCOTXOSw== Received: from [10.9.4.95] (unknown [209.182.120.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: kevans/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4X022964bQz192k for ; Thu, 5 Sep 2024 14:34:57 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Message-ID: <932dcd19-f2ec-4609-b468-86771401ff77@FreeBSD.org> Date: Thu, 5 Sep 2024 09:34:56 -0500 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 User-Agent: Mozilla Thunderbird Subject: Re: what is pkg annotation ports_top_git_hash? To: FreeBSD Mailing List References: <49087598.3516.1725528634407@localhost> <462416828.55.1725530796574@localhost> Content-Language: en-US From: Kyle Evans In-Reply-To: <462416828.55.1725530796574@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 9/5/24 05:06, Ronald Klop wrote: > > *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? > Hi, Note that the cluster infrastructure doesn't do a fresh build every time, so you'll see packages across multiple builds that didn't need a rebuild (any kind of version/dependency bump). If you started a fresh bulk -a today, I'd expect they would all have the same annotation, but these packages carried over don't get a spurious rebuild to correct any metadata. Thanks, Kyle Evans