From owner-freebsd-pkgbase@freebsd.org Fri Sep 27 09:30:54 2019 Return-Path: Delivered-To: freebsd-pkgbase@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 550D4FC931 for ; Fri, 27 Sep 2019 09:30:54 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46fmkP18dCz4Zdb; Fri, 27 Sep 2019 09:30:52 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id d59c0326; Fri, 27 Sep 2019 11:30:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=4LrJ8Mgi4pjfMpigKgsOMpxKGhU=; b=bu7Vpdn96RSIQUMU0wOx4Q/DDWP+ gNXMK3B9mW+zyrtA9Y2N9rB0QYcRWGA++sTLoH47CQaUTd7Kp+WceP93nUdsbD6N fHEuEsDK/XlD+q7D16fV9vB/72koh8QSG9lmj315TJ2GT+FEygHPkKB2gIzJwqZ1 Yfv16mHybS6DbsA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=CBisusjdhMm6eAdbgQYisFydsKYzlyRffkTDlV04d8QPCDZ7zhq+2ED4 k+GpTuudtwZqVOgYKLlmC1yDGn6INIun6KTTB9jeLm3v0NLpCQuEt/ghRe8aVIXz ftZkY86Ep+lyS/fqQiG5I46dqXyRvHTwb6YiPDsbNCNnDgeHvDs= Received: from sonic.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 45edd210 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Fri, 27 Sep 2019 11:30:45 +0200 (CEST) Date: Fri, 27 Sep 2019 11:30:45 +0200 From: Emmanuel Vadot To: Matthew Seaman Cc: freebsd-pkgbase@freebsd.org Subject: Re: Updating to HEAD removes /etc/rc.subr? Message-Id: <20190927113045.37d90bd951703b91cf7bc28a@bidouilliste.com> In-Reply-To: <3d573098-afea-4ec0-9e97-8b4006f3b87e@FreeBSD.org> References: <4af45a07-acf9-2f77-f0ff-92aa51987fda@FreeBSD.org> <3d573098-afea-4ec0-9e97-8b4006f3b87e@FreeBSD.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46fmkP18dCz4Zdb X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=bu7Vpdn9; dmarc=none; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.177.182 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [1.45 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mail]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; MV_CASE(0.50)[]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_SPAM_MEDIUM(0.60)[0.597,0]; NEURAL_HAM_LONG(-0.62)[-0.616,0]; IP_SCORE(0.37)[ip: (-0.78), ipnet: 212.83.160.0/19(2.50), asn: 12876(0.13), country: FR(-0.00)]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-pkgbase@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Packaging the FreeBSD base system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Sep 2019 09:30:54 -0000 Hello Matthew, On Sat, 21 Sep 2019 11:47:05 +0200 Matthew Seaman wrote: > On 21/09/2019 10:16, Matthew Seaman wrote: > > On 21/09/2019 09:59, Matthew Seaman wrote: > >> So, I have a VM running current which I maintain by building packages. > >> On doing a routine update, I see the following: > >> > >> ``` > >> codling:~:# etcupdate > >> Warnings: > >> Removed file changed: /etc/rc.d/growfs > >> Removed file changed: /etc/rc.subr > >> ``` > >> > >> Looks like there were quite a lot of changes in the packaging layout > >> between the last time I updated (Git says: b31afabd4c1-c262274(master)) > >> and yesterday when I pulled the latest source from git. One of those > >> changes is that there seems to be a new FreeBSD-rc base package: > >> > >> ``` > >> codling:/usr/src:# pkg install FreeBSD-rc > >> Updating FreeBSD repository catalogue... > >> pkg: http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/meta.txz: No address > >> record > >> repository FreeBSD has no meta file, using default settings > >> FreeBSD repository is up to date. > >> Updating base repository catalogue... > >> base repository is up to date. > >> All repositories are up to date. > >> Checking integrity... done (0 conflicting) > >> The following 1 package(s) will be affected (of 0 checked): > >> > >> New packages to be INSTALLED: > >> FreeBSD-rc: 13.0.s20190920215733 [base] > >> > >> Number of packages to be installed: 1 > >> > >> Proceed with this action? [y/N]: y > >> [1/1] Installing FreeBSD-rc-13.0.s20190920215733... > >> [1/1] Extracting FreeBSD-rc-13.0.s20190920215733: 100% > >> ``` > >> > >> Unfortunately it didn't get installed as part of the routine update. > >> > >> Easily fixed (as above), but now I'm wondering what other packages I > >> should have installed but don't. Is there a meta-port or some such that > >> will ensure my FreeBSD system has all the essentials needed to boot? > >> > > > > Seems that the bootloader also goes missing in much the same way... > > > > ``` > > codling:/usr/home/matthew:# pkg search -x '^FreeBSD.*boot' > > FreeBSD-bootloader-13.0.s20190920215733 Bootloader > > codling:/usr/home/matthew:# pkg info -x '^FreeBSD.*boot' > > pkg: No package(s) matching ^FreeBSD.*boot > > codling:/usr/home/matthew:# pkg install FreeBSD-bootloader > > Updating FreeBSD repository catalogue... > > FreeBSD repository is up to date. > > Updating base repository catalogue... > > base repository is up to date. > > All repositories are up to date. > > Checking integrity... done (0 conflicting) > > The following 1 package(s) will be affected (of 0 checked): > > > > New packages to be INSTALLED: > > FreeBSD-bootloader: 13.0.s20190920215733 [base] > > > > Number of packages to be installed: 1 > > > > The process will require 4 MiB more space. > > > > Proceed with this action? [y/N]: y > > [1/1] Installing FreeBSD-bootloader-13.0.s20190920215733... > > [1/1] Extracting FreeBSD-bootloader-13.0.s20190920215733: 100% > > ``` > > > > Ooops. > > > > Oh, and it replaced /etc/master.passwd and /etc/mail/aliases with the > default versions. Thank heavens for /var/backups > > Double oops. Nothing particularly disastrous, so long as you're > expecting the breakage and know how to fix things. > > Cheers, > > Matthew So, a number of changes append recently in pkgbase world. The first is that some packages were removed (content merged into other packages) and other were created (content moved from existing packages to the new one). Both case are problematic for people who use pkgbase (and you shouldn't use it unless for dev/test right now) as new packages aren't installed automatically (unless if they are dependancies of existing packages) and old packages that don't exist anymore aren't deleted (I think that pkg autoremove might do the right thing for this). The second one is that a lot of files were not packaged (like master.passwd and related files), they are now and marked as config file so pkg will do a 3-way-merge on them. But pkg used to blindly overwrite a file if it wasn't part of any packaged before, this is now fixed with https://github.com/freebsd/pkg/commit/344fc3c32556af7bb9dc5899edcc857f7c0fce0f The old files will be copied into .pkgsave I also noticed that you are using etcupdate, do not use it, it will just cause more problems. All config files are taggued in the package and pkg will update them. But if you found some config file that aren't taggued please tell me and I'll fix those. (same comment for mergemaster, both are tools that are deprecated by pkgbase). Cheers, -- Emmanuel Vadot