From owner-freebsd-stable@freebsd.org Wed Sep 9 18:03:56 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DA8C9A0159D for ; Wed, 9 Sep 2015 18:03:56 +0000 (UTC) (envelope-from rainer@ultra-secure.de) Received: from mail.ultra-secure.de (mail.ultra-secure.de [88.198.178.88]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3533D1C3D for ; Wed, 9 Sep 2015 18:03:54 +0000 (UTC) (envelope-from rainer@ultra-secure.de) Received: (qmail 97290 invoked by uid 89); 9 Sep 2015 18:03:50 -0000 Received: from unknown (HELO ?192.168.1.200?) (rainer@ultra-secure.de@217.71.83.52) by mail.ultra-secure.de with ESMTPA; 9 Sep 2015 18:03:50 -0000 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: pkg does bad things after upgrade from 8.4 to 9.3 From: Rainer Duffner In-Reply-To: <20150909154521.GW23144@manor.msen.com> Date: Wed, 9 Sep 2015 20:03:47 +0200 Cc: freebsd-stable@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20150908175303.GP23144@manor.msen.com> <1441745722.12994.59.camel@michaeleichorn.com> <7A1CD302-0428-4068-ACD9-146C5E03802E@ultra-secure.de> <20150909154521.GW23144@manor.msen.com> To: "Michael R. Wayne" X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Sep 2015 18:03:56 -0000 > Am 09.09.2015 um 17:45 schrieb Michael R. Wayne = : >=20 > On Tue, Sep 08, 2015 at 11:06:02PM +0200, Rainer Duffner wrote: >>=20 >>> Am 08.09.2015 um 22:55 schrieb Michael B. Eichorn = : >>>=20 >>> But you must reinstall everything. You upgraded your ABI going 8->9 = so >>> everything needs rebuilt/reinstalled. See next. >>=20 >> Exactly. >> Or unpack the compat8x package by hand. >=20 > Explain this please? If you don=E2=80=99t delete the old libraries, you don=E2=80=99t need = that. You can untar any package (it=E2=80=99s just a tar.xz). >=20 >> Or don???t delete the old libraries upon upgrading??? >=20 > We never delete the old libraries. So the old binaries function. > But, the goal is to migrate to 9.X executables over time. The > motivation for this is that upgrading something almost always breaks > things and it is MUCH easier to deal with these breakages = incrementally > over several days, rather than having everything broken at once. >=20 How about a test-system? > Note that NONE of this explains why pkg would delete ANYTHING. I > can (sorta) see that upgrading bash says I have to upgrade mutt > (but, really, it should just install a new library for bash and let = mutt > run on the old one) but can not think of a reason it would remove > it! It deletes the old packages, usually. Unless it can=E2=80=99t find a replacement. Then (IIRC), it just leaves = the package as is. This is really just a case of =E2=80=9Eyou=E2=80=99re holding it = wrong=E2=80=9C IMO. pkg has a few problems, still - but most of them are inherent to the way = and the speed that the ports-tree evolves (IMO) and you can=E2=80=99t = catch every corner case. That=E2=80=99s why you build your own packages, run your own repository = and install all the same packages on every host so that your upgrades = always work the same and you test it on a few test-servers, then the = "guinea-pig=E2=80=9C servers and then the rest. I=E2=80=99ve got a hundred (more or less) FreeBSD servers and jails with = pkg - and there=E2=80=99s been maybe a handful of structural problems = since I started using it. At some point (maybe during a rename) mysql-server was deleted but not = upgraded. Big deal, you install it again, start it, run mysql-upgrade = and all is peachy again. Compared to the nightmare of upgrading more than a handful of servers = with the old pkg_ tools, this is like a walk on the beach.