From owner-freebsd-current@freebsd.org Tue Oct 20 17:08:42 2015 Return-Path: Delivered-To: freebsd-current@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 7A3C3A1AB1A for ; Tue, 20 Oct 2015 17:08:42 +0000 (UTC) (envelope-from john@potato.growveg.org) Received: from potato.growveg.org (potato.growveg.org [62.49.247.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 40C9D920 for ; Tue, 20 Oct 2015 17:08:41 +0000 (UTC) (envelope-from john@potato.growveg.org) Received: from john by potato.growveg.org with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1ZoZxN-000Lsz-7O for freebsd-current@freebsd.org; Tue, 20 Oct 2015 17:40:13 +0100 Date: Tue, 20 Oct 2015 17:40:13 +0100 From: John To: freebsd-current@freebsd.org Subject: is building kernel in /sys/amd64/conf depreciated in 11 ? Message-ID: <20151020164013.GA43495@potato.growveg.org> Reply-To: freebsd-current@freebsd.org Mail-Followup-To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: john X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Tue, 20 Oct 2015 17:08:42 -0000 Hi, as subject - is building kernel in /sys/amd64/conf depreciated? I can get a modified kernel to build and install in /usr/src but not in /sys/amd64/conf. I always used to be able to do this in there, then again I either used -RELEASE or -STABLE. I used to do it like this: 1. cd /sys/amd64/conf 2. cp GENERIC MYKERNEL 3. [make changes to MYKERNEL and save] 4. config MYKERNEL 5. cd ../compile/MYKERNEL 6. make cleandepend && make depend && make This fails *every time* during make. It fails at this point: Make[1]: "/storage/usr/ports/Mk/bsd.port.mk" line 1204: UNAME_r (11.0-CURRENT) and OSVERSION () do not agree on major version number. *** [all] Error code 1 make: stopped in /storage/usr/src/sys/amd64/compile/PUMPKIN The error still happens if I refresh all my sources, build a new world with a generic kernel and reboot and then try the old method again. I *can* build a custom kernel if I cd into /usr/src and do 1. make buildkernel KERNCONF=MYKERNEL 2. make installkernel KERNCONF=MYKERNEL Basically I'm asking is this change of behaviour documented and/or am I doing it wrong? thanks, -- John