From nobody Mon Jul 12 10:05:52 2021 X-Original-To: freebsd-pkgbase@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 3FF991243B67 for ; Mon, 12 Jul 2021 10:05:55 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mail.blih.net [212.83.155.74]) (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 (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GNfXy0RjFz4jwJ for ; Mon, 12 Jul 2021 10:05:53 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1626084352; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jE1At6VCtu7/4c+oD5dnxBTQHmC0fFtfsDEzlE80zV0=; b=Ef5fMpBALKW0+MlhEQ+UKv4k0UqD99TO4OdEug3Wqvve8AZu1y2tNx2iq6qDLHANXzhmZW sh08A2ppyDOwSFpj4ONg0V17lTf4zJvBikJ2CFwdN8sXmX3yXB+w6dETp9LA8Z+zrBB/xS tiAGicqDVZgJeHc+nhANvoO8j29Chmk= Received: from skull.home.blih.net (lfbn-idf2-1-644-4.w86-247.abo.wanadoo.fr [86.247.100.4]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 2de86a8d (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 12 Jul 2021 10:05:52 +0000 (UTC) Date: Mon, 12 Jul 2021 12:05:52 +0200 From: Emmanuel Vadot To: Chuck Tuffli Cc: freebsd-pkgbase@freebsd.org Subject: Re: best practices for updating? Message-Id: <20210712120552.88a43820aa40314755eacfae@bidouilliste.com> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4GNfXy0RjFz4jwJ X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=Ef5fMpBA; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-0.52 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.155.74/32]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[212.83.155.74:from]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; FREEFALL_USER(0.00)[manu]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.98)[0.977]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; SPAMHAUS_ZRD(0.00)[212.83.155.74:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-pkgbase] X-ThisMailContainsUnwantedMimeParts: N Hi Chuck, On Thu, 8 Jul 2021 12:03:20 -0700 Chuck Tuffli wrote: > Hi > > I'm new to pkgbase and am running into problems with pkg upgrade of > the base packages. I should note that this is my first update of base. > > I installed the system from a -CURRENT snapshot USB image and boot > strapped it using the HOWTO [1] from alpha.pkgbase.live > This process went smoothly, and the system has been running well. > Yesterday I tried to upgrade, but both attempts resulted in a > non-operational system. The first attempt did a naive pkg upgrade -r > FreeBSD-base. There were error messages indicating mismatched > libraries and other odd things. My guess was doing the upgrade in one > step failed because of an ABI mismatch between user space applications > and the kernel. > > So I rolled back to the previous boot environment upgraded the kernel > package, rebooted, and upgraded the remaining components. The kernel > upgrade seemed to work, but upgrading the user space components > resulted in a non-booting system with errors from /etc/rc about > missing /sbin/sysctl and kenv (which appears to be true). > > My question is, what step(s) did I miss when doing the upgrade? > > [1] https://alpha.pkgbase.live/howto/bootstrap.html > > --chuck > What I do on my systems is : pkg upgrade --fetch-only bectl create XXX pkg upgrade FreeBSD-kernel-generic (or FreeBSD-kernel-generic-nodebug on some machines) nextboot -o "-s" shutdown -r now pkg upgrade FreeBSD-clibs (this takes care on ABI mismatch or new syscalls) pkg upgrade FreeBSD-runtime pkg upgrade -r base There is sometimes some others step needed when we move stuff from packages to packages or creates new packages (https://cgit.freebsd.org/src/commit/UPDATING?id=1c2ab28f598a9598b3c50d9001c70ff51f88e445 is a good example of such workaround sometimes needed). Cheers, -- Emmanuel Vadot