Date: Thu, 28 Jan 2016 17:56:31 +0000 From: David Chisnall <theraven@FreeBSD.org> To: NGie Cooper <yaneurabeya@gmail.com> Cc: Slawa Olhovchenkov <slw@zxy.spb.ru>, Baptiste Daroussin <bapt@FreeBSD.org>, Thomas Mueller <mueller6724@bellsouth.net>, freebsd-current@freebsd.org, freebsd-pkgbase@freebsd.org Subject: Re: Packaging the FreeBSD base system with pkg(8) Message-ID: <5F8AC959-2B81-4787-AEE3-50B9650B1672@FreeBSD.org> In-Reply-To: <3A5AAF2B-F9CF-41B3-A97C-FF208803428A@gmail.com> References: <20160127223323.GG98557@FreeBSD.org> <183431.62409.bm@smtp111.sbc.mail.ne1.yahoo.com> <20160128131806.GB67200@ivaldir.etoilebsd.net> <20160128160622.GB88527@zxy.spb.ru> <A639FA8D-8922-4BA9-8C24-57B48EFACDAA@gmail.com> <20160128173836.GD88527@zxy.spb.ru> <3A5AAF2B-F9CF-41B3-A97C-FF208803428A@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 28 Jan 2016, at 17:45, NGie Cooper <yaneurabeya@gmail.com> wrote: >=20 > Also, consider that you're going to be allowing upgrades from older = RELEASE versions of the OS which might be using a fixed copy of pkgng -- = how are you going to support that? I believe that the plan is to promote the pkg tool somewhat closer to = the base system. Upgrades will do the same sort of thing that they do = currently for ports: 1. First check if the version of pkg is the latest 2. If not, upgrade it 3. Do the real upgrade The package for package is simply a tarball. It may be advantageous to = separate the pkg and pkg-static binaries into different packages, so = that pkg can always install pkg-static and pkg-static can always update = pkg. There is no guarantee that the pkg tool from X.Y can install any = packages from X+n.Y.m other than the pkg-static binary, which can then = upgrade the rest of the system. The provision of pkg-static prevents us from being in the situation that = I encountered trying to upgrade a Debian system (and ending up with a = mess requiring a full reinstall) where apt needed a newer glibc and the = glibc package needed a newer apt to install it. We will always provide = a pkg-static for every supported branch that can be installed by any = earlier version of pkg (because it=E2=80=99s just extracting a = single-file archive - and in the absolute worst case you can do this by = hand) and can install newer packages. David
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5F8AC959-2B81-4787-AEE3-50B9650B1672>