From owner-freebsd-stable@FreeBSD.ORG Sat Jan 7 07:26:01 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4DF0106566B for ; Sat, 7 Jan 2012 07:26:01 +0000 (UTC) (envelope-from ari@ish.com.au) Received: from fish.ish.com.au (eth5921.nsw.adsl.internode.on.net [59.167.240.32]) by mx1.freebsd.org (Postfix) with ESMTP id 730508FC13 for ; Sat, 7 Jan 2012 07:26:01 +0000 (UTC) Received: from [10.29.62.5] (port=61224 helo=Aris-MacBook-Pro.local) by fish.ish.com.au with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76) (envelope-from ) id 1RjQTa-0001ON-23 for freebsd-stable@freebsd.org; Sat, 07 Jan 2012 18:14:03 +1100 X-CTCH-RefID: str=0001.0A150205.4F07F0BB.0020,ss=1,re=0.000,fgs=0 Message-ID: <4F07F0BC.7060309@ish.com.au> Date: Sat, 07 Jan 2012 18:14:04 +1100 From: Aristedes Maniatis User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0) Gecko/20111222 Thunderbird/10.0 MIME-Version: 1.0 To: freebsd-stable Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: freebsd-update problems X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jan 2012 07:26:01 -0000 Freebsd-update is both an excellent tool, but also sadly lacking in some ways, mostly documentation. Let's look at a recent experience... ----------------- # uname -a FreeBSD splash.internal 8.1-RELEASE-p5 FreeBSD 8.1-RELEASE-p5 #0: Tue Sep 27 16:49:00 UTC 2011 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 # freebsd-update fetch Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 8.1-RELEASE from update5.FreeBSD.org... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files... done. The following files are affected by updates, but no changes have been downloaded because the files have been modified locally: /var/db/mergemaster.mtree No updates needed to update system to 8.1-RELEASE-p8. ----------------- Some problems: 1. I am clearly running 8.2-p5, but the final message says "no updates needed". That's clearly not correct since p5 < p8. And running uname again after this results in still seeing p5. My guess is that the message should say: No update will be applied until you merge the locally modified files, OR Or else, freebsd-update is just broken and refuses to update the system properly for an unknown reason. 2. I didn't touch mergemaster.mtree manually. Well, I don't think I did. But even if I had, could the tool give me some clue as to how to proceed from here? Do I now have to go back to csup to update my system and never be able to use freebsd-update again? Is there a trick to fool freebsd-update into overwriting this file which I don't think I touched? It would be nice if freebsd-update could be more helpful about what the user should do next when it finds an error. Thanks Ari -- --------------------------> Aristedes Maniatis ish http://www.ish.com.au Level 1, 30 Wilson Street Newtown 2042 Australia phone +61 2 9550 5001 fax +61 2 9550 4001 GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A