From owner-freebsd-questions@freebsd.org Wed Mar 24 04:12:19 2021 Return-Path: Delivered-To: freebsd-questions@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 392FF5A835C for ; Wed, 24 Mar 2021 04:12:19 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-oo1-xc2e.google.com (mail-oo1-xc2e.google.com [IPv6:2607:f8b0:4864:20::c2e]) (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 4F4vvk434vz3D06 for ; Wed, 24 Mar 2021 04:12:18 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-oo1-xc2e.google.com with SMTP id h3-20020a4ae8c30000b02901b68b39e2d3so5500173ooe.9 for ; Tue, 23 Mar 2021 21:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EFyQHhscQ87cqXKRlRPWH8V0Gp0QduIyEhUJwBCOFYw=; b=Hwl+LcCvdvRZoqQgx7wX75CiGN1mQWIE3mxPYfDgeRVglP35L/QTlHDjNqVdqxAOOn gLYk38ilEjn0ykcSFPRIm/pHC9i2HP9+kW2K/qvra0xlZJg+vxxQGh+E3AI5pY9Hk0YB Df7CNs2fcL0FrC87nmyrfZimnYhgET4axokwTxUcsp6bVEfLnb3B8gaZMzUeI+OfZDWc ltVT8V1jV9SMNeJ6Llcb/74x/iacs095IPiIB++t3ddztqS5rgLwpK7VwGdwTuZqL0ox fmCpVNDqaikF8GAkVZf5fn/+p13YRqTfcR5a1L9ur+yHk+AfwdWTd1I4Yd8Pm6A2NknY kP2Q== 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=EFyQHhscQ87cqXKRlRPWH8V0Gp0QduIyEhUJwBCOFYw=; b=CinUk32zZQHBuUfAJd+cogJj4Fk5yMA1f4B73JYpXqUba8lTLVBmYDIYbpnhEg4Mqs V0otC2yTN14VY8M9LcS1+Si5eb/aaGhuY2vzUb3Qy3fYg03FhVtTi8pmAOcfO/nwFKDo LTtDAmxJ5rli/3eOe6fE0hMjUj6plK2vZT3djF4CJPBgVsEAfom2kL3vmdactrlgBtye 6jucSIYhFIRMFD5bV1/cp1ELFUkm7a4qJ5XCu5/JpPzjBIoCpgf2bF3t+BA8a9tZTX5J n33tB4ZSEba3wbAlLP0+GwOCef/0743Tj8/vkLxywfLXR6YQ57cic8EaXp/kdVqZVCg0 FbHA== X-Gm-Message-State: AOAM532qmFlVDcW5ODa5VlmakvLQfgubGraRIByaDLMbMML9Hu1dfHPW fpjQtySSD/ZYslfi6wcwRrS2pvA/m+Ihw5zhMXXd4QkwSeAsVw== X-Google-Smtp-Source: ABdhPJxNF6t5KyT1UR9GE8cUHAo9E0mO64asX7iVuq8E40WZjxiMxq7MiYYWZIMO1rMW1swIFouK/zBBohWvFPWN9W0= X-Received: by 2002:a4a:d88a:: with SMTP id b10mr1041868oov.29.1616559137174; Tue, 23 Mar 2021 21:12:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kevin Oberman Date: Tue, 23 Mar 2021 21:12:01 -0700 Message-ID: Subject: Re: Adding /usr/src using freebsd-update To: Doug Denault Cc: Valeri Galtsev , "freebsd-questions@freebsd.org" X-Rspamd-Queue-Id: 4F4vvk434vz3D06 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Hwl+LcCv; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2607:f8b0:4864:20::c2e as permitted sender) smtp.mailfrom=kob6558@gmail.com X-Spamd-Result: default: False [-3.70 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::c2e:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::c2e:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::c2e:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2021 04:12:19 -0000 On Tue, Mar 23, 2021 at 8:45 AM Doug Denault wrote: > On Sat, 20 Mar 2021, Valeri Galtsev wrote: > > > > > > >> On Mar 20, 2021, at 9:42 PM, Doug Denault wrote: > >> > >> My motivation for wanting to do this is basically because updating > >> 11.3-->12.2 broke my Lenovo Ideapad. This is a "well known" and > >> apparently has a workaround but I could not find a combination that > >> worked following the very helpful suggestion out of the X11 mailing > list > >> or google. What did work was 13.0-RC2. Out of the box following > UPDATING > >> and pkg notes. Whatever the issue was it was obviously complex > involving > >> the interaction of several components in Xorg, FreeBSD and whether or > >> nor EFI booting was used. All except the last one are perfectly > obvious. > >> I only mention this as background for why not use git or subversion > (for > >> a while anyway). > >> > >> The fix required that kernel sources be available. On the Lenovo that > >> happened not to be a problem. On another laptop I did not have /usr/src > >> so freebsd-update did not add/update it and I saw no option to add > >> /usr/src. The conf file apparently says take care of it if it is there. > > > > Did you try to use svn? Something in lines > > > > svn co https://svn0.us-east.freebsd.org/base/releng/12.2 /usr/src > > > > (confessing: I?m lazy guy, and about a week or so ago I still used svn, > > successfully). > > First Thank you for the suggestion. Re Lazy, me too, hence looking for an > "easy" answer. The svn port had similar [non]success. On the system in > question this was an "I wonder if this works". I have 500+ packages on > this > workstation and have not yet added gimp, yet so there is no need for more > interlocking dependencies. On a Lenovo laptop src was required to install > the drm package required in 13.0 to make it work. Happily it was already > there. > > >> On my HP no /usr/src. I did a package add for git adding 32 required > >> packages and the installed failed to deliver a working git command. So > >> on to subversion with similar results. This with 12.2. > >> > >> As I had already updated to 12.2 and it was working I removed all > >> packages, copied a 12.1 /usr/src from another server and did a fetch. > >> This added in the files new to 12.2 and did report doing anything else, > >> so I rather doubt this is a "good" version of the src tree. > >> > >> All of the above for my real question. since I had a number of 11.3 > >> /usr/src trees, if I had just added that before doing an upgrade I > think > >> that will work. Correct? > >> > > > > I would just move existing /usr/src off the way (rename) and pull fresh > > new of the release you need (say, using svn command if git doesn?t work > > on that machine for whatever reason). > > Probably a good idea. On the servers we go the poudriere route. On > workstations I have never gotten xorg to build and usually do not have the > time to see if it will work this time. I will probably continue my thought > experiement when the workstation morphs to 13. > > I will learn git going forward. I would be nice if for the non internals > folks if this could just be done via the browser. I have no idea if that's > even possible > > > Valeri > > > > > _____ > Douglas Denault > http://www.safeport.com > doug@safeport.com > Voice: 301-217-9220 > Fax: 301-217-9277 > Your point is exactly the one I made back when the last security advisory came out. That led to a long discussion which led to the addition of the sequence number to the hash. All future security and erratas will show the sequence number to resolve the issue. Search for a thread on the stable@ mail archive with a subject of "How do I know if my 13-stable has security patches?" It was the discussion and includes several ways at determining the answer from just the hashes. None are pretty though all are clever, but they won't be needed in the future. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683