From nobody Fri Dec 13 13:06:37 2024 X-Original-To: dev-commits-src-all@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 4Y8qNY4j68z5gYPg; Fri, 13 Dec 2024 13:06:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y8qNY49MVz4VJ2; Fri, 13 Dec 2024 13:06:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734095197; 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; bh=9yEKTrl3i+7c5ZsSC1Cb02N6EGEGZTRk6y+2jIpFJdY=; b=OQwkkYU1s66sYdh3mdN1P5bTAtCRgEosdtb4J/XoYLXAE0nRksY1VrHy66586BUEEsErgV sOa7v9sUERs0PrVs3v6raCxj4K47f4+PK0BP0rAkhHZG0XDrubQIafL7fiAbHTpEBKYo0M WqAn20crhb78gMndYAY3L3m9OXVkZeuqvhd2moqm+7i8792DyqTPew823cq2tYDyyr7TEi fqPqahGyRrVL5u12SG901vS2tPwFvNwk8aA1JsNYMgl+kD3LmvxhCZrnHC62kyRJeC91SE 4Y7mHIvRLYRQHx8IeU8MmiAiqudaWLboQSQz41ZHj3xrWT/eAFZpj/tlOOGw/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734095197; 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; bh=9yEKTrl3i+7c5ZsSC1Cb02N6EGEGZTRk6y+2jIpFJdY=; b=rgDDli4jbAy1DkK1sMl11D2hZMTpOx1v3oqyDxVcm/lMa/Man8mfN2UosL9qTnPqj9lDIq 0sVjLaZWnuOyW0vN/GHBtNazlrnX1w12uGA2Oe0SpW2mqltW+3Cr4AZ88P6fuvoHfyaP+3 9r91qz98ZJz0P8iZ/PKQJiePzgnHkqSz0gsnm+I7wks3QVD0zk7DbklMuArCWKBzmJPVFN sI8YDtVQewBQtfp/ADDr7CnTqNblAeVdImXFOWNAu4cvn/HhBebOxh+k+XbUpeEiQRHZFA i+Qm1+Amx0e11XtBVD89rMMe/MvSqkK6sd6lYR+fm6jMwVLEcViPJFX+cjRbXg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734095197; a=rsa-sha256; cv=none; b=KL0o598n59nWohxFZXT6VCrMpkojYNEcjivYCYNyNyuKxEIH380r85YrhSLf1O4IfcisiP iJ2/BMFfkw14+596WNZBI7BnXHOHgemeqYj9Ez9Ft8d6Rgi3zZM6KkHkgZPxCyurIggscQ O4B5LP9JAZO0q6MrF7BdWrQEO0QuRTgfZ3xDQU6xfGieZmdm4sNMMvKEnfQVyFgsdykCA9 y0oa1KMrTCMhwUWU47lyijPwC6zQ3JBtxb5jJ0ycUBSfZDJSv4INhtztiYUALS9h6/b+ZN Yzh+85Focoff3cygKgCLmD8DualQbYLhgVfcEN96Eap7u6szJhuiGxAb1bokLw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y8qNY3fhTzf9N; Fri, 13 Dec 2024 13:06:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4BDD6b2X011256; Fri, 13 Dec 2024 13:06:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BDD6bxu011253; Fri, 13 Dec 2024 13:06:37 GMT (envelope-from git) Date: Fri, 13 Dec 2024 13:06:37 GMT Message-Id: <202412131306.4BDD6bxu011253@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: a1097094c4c5 - main - newvers: Set explicit git revision length List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a1097094c4c5d810287aca092f4ab5f9f86a426a Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=a1097094c4c5d810287aca092f4ab5f9f86a426a commit a1097094c4c5d810287aca092f4ab5f9f86a426a Author: Pat Maddox AuthorDate: 2024-12-13 05:28:18 +0000 Commit: Ed Maste CommitDate: 2024-12-13 13:06:10 +0000 newvers: Set explicit git revision length The --short flag is configurable. Setting an explicit length supports reproducible builds. Signed-off-by: Pat Maddox Reviewed by: emaste, imp Differential revision: https://github.com/freebsd/freebsd-src/pull/1547 --- sys/conf/newvers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh index 481af5480399..6e5f0716c90d 100644 --- a/sys/conf/newvers.sh +++ b/sys/conf/newvers.sh @@ -255,7 +255,7 @@ if [ -n "$svnversion" ] ; then fi if [ -n "$git_cmd" ] ; then - git=$($git_cmd rev-parse --verify --short HEAD 2>/dev/null) + git=$($git_cmd rev-parse --verify --short=12 HEAD 2>/dev/null) if [ "$($git_cmd rev-parse --is-shallow-repository)" = false ] ; then git_cnt=$($git_cmd rev-list --first-parent --count HEAD 2>/dev/null) if [ -n "$git_cnt" ] ; then