From owner-freebsd-current@FreeBSD.ORG Fri Jan 19 18:12:32 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A86DC16A401 for ; Fri, 19 Jan 2007 18:12:32 +0000 (UTC) (envelope-from SRS1=bbdd40e8c34c09456d4044abde7b940503d33709=es.net==bbdd40e8c34c09456d4044abde7b940503d33709=220=es.net=oberman@es.net) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.freebsd.org (Postfix) with ESMTP id 8CC8A13C459 for ; Fri, 19 Jan 2007 18:12:32 +0000 (UTC) (envelope-from SRS1=bbdd40e8c34c09456d4044abde7b940503d33709=es.net==bbdd40e8c34c09456d4044abde7b940503d33709=220=es.net=oberman@es.net) Received: from postal4.es.net (postal4.es.net [198.124.252.66]) by postal1.es.net (Postal Node 1) with ESMTP (SSL) id YSA23039 for ; Fri, 19 Jan 2007 09:59:39 -0800 Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by postal4.es.net (Postal Node 4) with ESMTP (SSL) id YSA26635 for ; Fri, 19 Jan 2007 09:59:35 -0800 Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id YSA80433; Fri, 19 Jan 2007 09:59:33 -0800 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 82E1245053; Fri, 19 Jan 2007 09:59:33 -0800 (PST) To: "Bartek Dedersen" In-Reply-To: Your message of "Fri, 19 Jan 2007 17:40:29 +0100." Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1169229573_82965P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 19 Jan 2007 09:59:33 -0800 From: "Kevin Oberman" Message-Id: <20070119175933.82E1245053@ptavv.es.net> Cc: freebsd-current@freebsd.org Subject: Re: Updating the ports from STABLE to CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2007 18:12:32 -0000 --==_Exmh_1169229573_82965P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Date: Fri, 19 Jan 2007 17:40:29 +0100 > From: "Bartek Dedersen" > Sender: owner-freebsd-current@freebsd.org > > Hi. > > I thought of trying out the bleeding edge and hoped my knowledge of > BSD is high enough to handle it without any major problems. > > But: I installed FreeBSD-6.1 with the provided ISO package available > on freebsd.org. Some packages were installed via pkg_add. After one > week, the technician of the German telecommunication firm managed to > visit me and put his finger on the cables in the cellar. Well, I > thought of upgrading some packages with the ports-subsystem. It was > pretty easy and nice. But then I wanted more and installed CURRENT > from the CVS-source. Some buildworlds and kernel configuration later, > I had a 7.0 Current. Ok, after a startx I got some error that libXmmu > cannot be found. Ok, so I tried to recompile xorg-libraries. Ok, but > there were lots of broken packages due to a filesystem breakdown after > a kernel panic. > Well, I tried to delete it with pkg_delete -f and it worked. Now, I am > recompiling it from the updated ports-collection. > > Do I have to expect more failures and do I see an upcoming recompiling > week due to broken libraries which do not work on CURRENT? Is it more > useful to reinstall BSD from scratch and update it first? > > I know, CURRENT is not for productive use but I need something to put > my fingers on. Maybe I will learn. > > Is there a command to recompile, deinstall and reinstall every > installed package from the ports-system? If not, it will be hell. Welcome to the world of the bleeding edge. The problem you are seeing is probably a result of the changing APIs and ABIs in current. The effect of this is that ports will need to be rebuilt fairly often and the libraries to which they are linked change. The ABI is frozen within a major version and compatibility shims are built to allow binaries from older versions to run after a new version is released, but while it is still "current", there is no alternative to frequent re-builds of ports. In the future (post V7), it is hoped that symbol versioning will eliminate this problem and make running current easier. There are two tools that can make life easier by automating much of this. You should install sysutils/portupgrade and sysutils/portmanager. These do similar things to maintain ports, but in different ways. I have only used portupgrade, but have seen reports that portmanager has some advantages at the cost of more time spent in the initial setup. Another import detail is that you update the ports tree and, if you initially installed the ports tree from the install media, you need to 'rm -rf /usr/ports/*' and then download a full clean tree with csup. csup will delete old files only if it knows about them and it will not know about any that were not fetched by csup. This can result in broken ports. Good luck! -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 --==_Exmh_1169229573_82965P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) Comment: Exmh version 2.5 06/03/2002 iD8DBQFFsQcFkn3rs5h7N1ERAm+DAJ42TIEDAILBuv0/ANvsqRG4EUqjfgCcDl3g +x2mMsctN1ahlw503pZ5Q8k= =XvTC -----END PGP SIGNATURE----- --==_Exmh_1169229573_82965P--