From owner-freebsd-questions@freebsd.org Sun Mar 21 03:07:06 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 5E4305BC688 for ; Sun, 21 Mar 2021 03:07:06 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from kicp.uchicago.edu (kicp.uchicago.edu [128.135.20.70]) by mx1.freebsd.org (Postfix) with ESMTP id 4F32bs6GWJz3qY2 for ; Sun, 21 Mar 2021 03:07:05 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from [192.168.43.231] (unknown [172.58.137.96]) (Authenticated sender: galtsev) by kicp.uchicago.edu (Postfix) with ESMTPSA id DB1C74E678; Sat, 20 Mar 2021 21:57:25 -0500 (CDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: Adding /usr/src using freebsd-update From: Valeri Galtsev In-Reply-To: Date: Sat, 20 Mar 2021 21:57:23 -0500 Cc: "freebsd-questions@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Doug Denault X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Rspamd-Queue-Id: 4F32bs6GWJz3qY2 X-Spamd-Bar: ++++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=uchicago.edu (policy=none); spf=none (mx1.freebsd.org: domain of galtsev@kicp.uchicago.edu has no SPF policy when checking 128.135.20.70) smtp.mailfrom=galtsev@kicp.uchicago.edu X-Spamd-Result: default: False [6.61 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_NO_TLS_LAST(0.10)[]; RECEIVED_SPAMHAUS_PBL(0.00)[172.58.137.96:received]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[128.135.20.70:from]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:160, ipnet:128.135.0.0/16, country:US]; ARC_NA(0.00)[]; RECEIVED_SPAMHAUS_XBL(5.00)[172.58.137.96:received]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.82)[0.825]; NEURAL_HAM_LONG(-0.63)[-0.626]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; NEURAL_SPAM_MEDIUM(0.81)[0.811]; SPAMHAUS_ZRD(0.00)[128.135.20.70:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCVD_COUNT_TWO(0.00)[2]; GREYLIST(0.00)[pass,body]; MAILMAN_DEST(0.00)[freebsd-questions]; DMARC_POLICY_SOFTFAIL(0.10)[uchicago.edu : No valid SPF, No valid DKIM,none] X-Spam: Yes 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: Sun, 21 Mar 2021 03:07:06 -0000 > On Mar 20, 2021, at 9:42 PM, Doug Denault wrote: >=20 > 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). >=20 > 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=E2=80=99m lazy guy, and about a week or so ago I still = used svn, successfully). > 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. >=20 > 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. >=20 > 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? >=20 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=E2=80=99t= work on that machine for whatever reason). Valeri >=20 > _____ > Douglas Denault > http://www.safeport.com > doug@safeport.com > Voice: 301-217-9220 > Fax: 301-217-9277 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org"