From owner-freebsd-stable@freebsd.org Fri Feb 26 17:46:56 2021 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BC9585485CB for ; Fri, 26 Feb 2021 17:46:56 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DnHCg5nYQz4cm5 for ; Fri, 26 Feb 2021 17:46:55 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72d.google.com with SMTP id l132so8677813qke.7 for ; Fri, 26 Feb 2021 09:46:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GFnlpR3R/5oDr6PwAyABA9uS30juPMEoMsguUjV2VJ0=; b=iWCIVG0QW6cZMiPYjGNEvgKa3wwIAIutMR8bLFa1g/13z9998moreDFS5YGWnAkQ4c AT/MDpdYWqW7XEL8x/4fwQy/DMix6tjMUQQOW4f8YLKxmYe5dDQarHRamtAkVUAUbD9Q MI9H0VW+aFmy0ve2g3Sf07Ssok5eAcGdpbe9XW4xnIK3zKzZSvMQbA7GtVDUlzCBCL+P uJP5GqqRJ/q0+RWj9ZJHcGEGsCu2bmv53tHB3+mR1PxQHbRgAInrZgnq491XxCAuEXPH 98xKG9SHF3KDedcodtHC0Vh7jlIKq9Y0vHkax46P+xfe1O1AiAv+hJGZgqXI3EbdfxYV yqRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GFnlpR3R/5oDr6PwAyABA9uS30juPMEoMsguUjV2VJ0=; b=oroAInTiwlO76dqi8RJQHqTmxZ4g0XFhXHaHG3DujAwvi7vF77J7P++wOIcZhlLqTX ecSX0iXTbOET73aKN2IO42ly7F2646q142uyGWk2IzIE/6ptXskBgWZjYWvVDx+aXnEy YC2EJHDX7z9tXvIfg9Sbws8qXpcBlFPN0qMTjd/6CXeGbbVq9I/EHCjgCnQOAGTZyoIH og5Xpy9QJpp4GqyfGNObgLNz3bDEWtt0yRL2CnuuKqDsgdt0rk6jF+fCE9WRD4ui267Z ym9l/wYd6PXcF+5rS/eaCSFHNuhAlkSyFPwlNEiUxPki0AXvPd5M0r8gLa4OH8Mlb9or /qmg== X-Gm-Message-State: AOAM530y01u9LhJCSm6vimliJriHma6B9vut2RyvzixyE2Q+LNRnydin da5PcpPdAPziGbsIq9wrT09PznbswsGbXp/gmD25fMWQ2T/8jw== X-Google-Smtp-Source: ABdhPJz1Ny6QQX3xjZBzdfdVBbIZ/NW2YZosRPe9cE7xX5ROGB+13NxyoM+3zkRV7AMx+eCxWGHMwusYgejxNtobU8M= X-Received: by 2002:a37:a085:: with SMTP id j127mr3614934qke.206.1614361614689; Fri, 26 Feb 2021 09:46:54 -0800 (PST) MIME-Version: 1.0 References: <1748076.jFELhIj8lM@ravel> <3308997.ajJYar8FF2@ravel> <001a5401-c334-5937-4ce3-315ff89e34be@denninger.net> In-Reply-To: From: Warner Losh Date: Fri, 26 Feb 2021 10:46:43 -0700 Message-ID: Subject: Re: How do I know if my 13-stable has security patches? To: Ed Maste Cc: FreeBSD-STABLE Mailing List X-Rspamd-Queue-Id: 4DnHCg5nYQz4cm5 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=iWCIVG0Q; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::72d) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::72d:from]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::72d:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::72d:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; MAILMAN_DEST(0.00)[freebsd-stable]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2021 17:46:56 -0000 On Fri, Feb 26, 2021 at 9:35 AM Ed Maste wrote: > On Thu, 25 Feb 2021 at 15:58, Warner Losh wrote: > > > > The problem, though, can happen when you run a shallow clone or gitup to > > get the sources and build from that. In that case the v number is bogus > > (hmmm, we should omit it when we have a shallow clone maybe). > > I want to clarify one point here - the commit count is already omitted > from uname in the case of shallow clones (as Kevin Oberman > discovered). > > Shallow clones certainly have the benefit of limiting the amount of > disk space used by the clone. Does that outweigh the loss of the > commit count? > > I had a look at the size of the .git directory with different --depth > settings: > > 262M stable-13-shallow-1/.git > 262M stable-13-shallow-10/.git > 262M stable-13-shallow-100/.git > 281M stable-13-shallow-1000/.git > 807M stable-13-shallow-10000/.git > > I think we can provide a way to include the commit count as long as > we're willing to require some minimum clone depth, and will pursue > this in the next while. If this works out it will make it into > stable/13, but probably not releng/13.0. > The count is a count back to the first commit in the repo. There's not even a clear design for how to accomplish that with a subset of the repo that's been floated. It might be possible, but until we have a clearly articulated plan, it may be a bit premature to set expectations that it might happen. I'm happy to be proven wrong, of course, and once there's a clear way to accomplish this that's not fragile or a large maintenance burden on the project, I'll happily support it... Warner