Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id ABB2EC77B7C for ; Wed, 25 Jun 2025 08:19:08 +0000 (UTC) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mx.groups.io with SMTP id smtpd.web11.10422.1750839546592194839 for ; Wed, 25 Jun 2025 01:19:06 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=R1/gAOpb; spf=pass (domain: linuxfoundation.org, ip: 209.85.128.44, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-45377776935so28714525e9.3 for ; Wed, 25 Jun 2025 01:19:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1750839545; x=1751444345; darn=lists.openembedded.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=I/lOT8D/KFVRXYbv4OHg1C1wOxkzC29hcEewSD0Ra58=; b=R1/gAOpbk4qIHhzHQTguEa2mgzsudY36prx3+wj5oARCuwcxF95bAlvO6QAwr+UTK4 oWDPhXjWOBWyzEGFyhiU8B2lvRnHch9JdOgD2PodAbBtNknJeAa7GdH1YG9g/nBuFieB FVAdvgdt9PUrUUB19XhQlDrxntMuPSkQtEdEQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750839545; x=1751444345; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=I/lOT8D/KFVRXYbv4OHg1C1wOxkzC29hcEewSD0Ra58=; b=SWZMh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coifveU2vRN0VgDnkp/qv82Sv+2HGT4sxuioX36liaPB59wMg== X-Received: by 2002:a05:600c:4689:b0:450:30e4:bdf6 with SMTP id 5b1f17b1804b1-453837b27admr9412135e9.19.1750839544802; Wed, 25 Jun 2025 01:19:04 -0700 (PDT) Received: from ?IPv6:2001:8b0:aba:5f3c:f1c1:2228:ff4c:9514? ([2001:8b0:aba:5f3c:f1c1:2228:ff4c:9514]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4538234b30dsm12200615e9.12.2025.06.25.01.19.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jun 2025 01:19:04 -0700 (PDT) Message-ID: <47b30bbd84054b6ff891f6d7e74d582c9374f7fe.camel@linuxfoundation.org> Subject: Re: [OE-core] [PATCH 8/8] psmisc: fix runtime version when using git shallow tarball From: Richard Purdie To: yi.zhao@eng.windriver.com, openembedded-core@lists.openembedded.org Date: Wed, 25 Jun 2025 09:19:03 +0100 In-Reply-To: <20250624104155.559827-9-yi.zhao@windriver.com> References: <20250624104155.559827-1-yi.zhao@windriver.com> <20250624104155.559827-9-yi.zhao@windriver.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.0-1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 25 Jun 2025 08:19:08 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/219304 On Tue, 2025-06-24 at 18:41 +0800, Yi Zhao via lists.openembedded.org wrote= : > The runtime version of psmisc is generated by 'git describe' command in > misc/git-version-gen. But when using git shallow tarball, > git-version-gen can not get the correct version due to missing git > tag/commit messages. This actually breaks reproducibility, since the > generated binaries should be consistent regardless of the source code > packaging format. >=20 > Add a .tarball-version file in source directory. Then get-version-gen > can determine the version through this file instead of 'git describe' > command. >=20 > Before the fix: > root@intel-x86-64:~# pslog -V > pslog (PSmisc) UNKNOWN >=20 > After the fix: > root@intel-x86-64:~# pslog=C2=A0 -V > pslog (PSmisc) 23.7 >=20 > Signed-off-by: Yi Zhao > --- > =C2=A0meta/recipes-extended/psmisc/psmisc_23.7.bb | 1 + > =C2=A01 file changed, 1 insertion(+) Does adding the tag parameter to the url fix this? That should cause the shallow clones to fetch the tag data. Cheers, Richard