From owner-freebsd-questions@FreeBSD.ORG Fri Nov 1 16:50:18 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E5D5C99F for ; Fri, 1 Nov 2013 16:50:18 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 94A5029DB for ; Fri, 1 Nov 2013 16:50:18 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id rA1GdBLc055672; Fri, 1 Nov 2013 10:39:11 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Message-ID: <5273D92F.1030004@dreamchaser.org> Date: Fri, 01 Nov 2013 10:39:11 -0600 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130730 Thunderbird/17.0.7 MIME-Version: 1.0 To: Shane Ambler Subject: Re: headers in /usr/include are 9.1 but /usr/src/sys are 9.0 References: <52673D72.9080606@dreamchaser.org> <5267E5F1.7030202@ShaneWare.Biz> In-Reply-To: <5267E5F1.7030202@ShaneWare.Biz> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Fri, 01 Nov 2013 10:39:12 -0600 (MDT) Cc: FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: freebsd@dreamchaser.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2013 16:50:19 -0000 On 10/23/13 09:06, Shane Ambler wrote: > On 23/10/2013 13:37, Gary Aitken wrote: >> Using the generic kernel. Some time ago I upgraded from 9.0 to 9.1 >> using freebsd-update. >> >> originally, under 9.0, I had lsof installed (from ports). >> >> Some time after all that I tried to reinstall sysutils/lsof and >> couldn't. I wasn't desperate and ignored it... >> >> Looking into it further, the problem appears to be the result of >> /usr/src/sys/sys/ containing 9.0.0 versions, and /usr/include/sys/ >> containing 9.1.0 versions. >> >> I didn't think I had system source installed, but apparently I did. I >> have vague recollections of telling the upgrade process not to >> upgrade the source because I didn't think I had it installed; but >> maybe it doesn't even ask. I'm not really familiar with the process >> and it was a while back. >> >> Anyhow... >> >> 1. Is /usr/src/sys/sys always present? > > No. The system source files are optional. > >> 2. Do ports normally use headers from /usr/src/sys/sys instead of >> /usr/include/sys if /usr/src/sys/sys is present? > > As I understand it the ports that would use /usr/src are ones that > compile kernel modules. lsof would be an exception as I believe it > accesses data structures from the running system to collect it's > information, which are defined in the system sources. lsof should be > compiled against the current system and complains when it isn't. > >> 3. What's the best way to fix this? freebsd-update fetch? > > freebsd-update is configured in /etc/freebsd-update.conf you should find > an entry for Components which should contain src then update. > > Another option if you have subversion installed is to checkout the > source tree straight from the svn servers. Finally got back to this. My freebsd-update.conf contains: Components src world kernel I just did freebsd-update fetch freebsd-update install and the source tree was not updated. Apparently it thinks the source is supposed to stay at 9.0.0 for some reason. If I do an upgrade to 9.1 again, from a 9.1 system, will it upgrade only those components which need upgrading, which in this case should be nothing except src? Will it force an upgrade of the src? It would be handy if there were an option to show what work would be done without actually doing it. Gary