From owner-svn-src-all@FreeBSD.ORG Mon Apr 18 21:15:02 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06E69106564A; Mon, 18 Apr 2011 21:15:02 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id C69488FC1A; Mon, 18 Apr 2011 21:15:01 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 66FBE46B42; Mon, 18 Apr 2011 17:15:01 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id EDD7E8A01B; Mon, 18 Apr 2011 17:15:00 -0400 (EDT) From: John Baldwin To: Warner Losh Date: Mon, 18 Apr 2011 17:05:18 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <201104172103.p3HL3Ntb049564@svn.freebsd.org> <201104181448.39401.jhb@freebsd.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201104181705.18809.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Mon, 18 Apr 2011 17:15:01 -0400 (EDT) Cc: svn-src-head@freebsd.org, Roman Divacky , src-committers@freebsd.org, Dimitry Andric , svn-src-all@freebsd.org Subject: Re: svn commit: r220755 - in head: . contrib/gcc/doc contrib/gcc/objc contrib/libobjc etc/mtree gnu/lib gnu/lib/libobjc gnu/usr.bin/cc gnu/usr.bin/cc/cc1obj gnu/usr.bin/cc/cc_tools gnu/usr.bin/cc/doc s... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2011 21:15:02 -0000 On Monday, April 18, 2011 4:02:10 pm Warner Losh wrote: > > On Apr 18, 2011, at 12:48 PM, John Baldwin wrote: > > > On Monday, April 18, 2011 1:06:42 pm Warner Losh wrote: > >> > >> On Apr 18, 2011, at 1:01 AM, Roman Divacky wrote: > >> > >>> please mark this in src/UPDATING, maybe bump freebsd_version too? > >> > >> Please do not bump freebsd_version just for this. Ports wishing to know can go off the last bump, if there are any. > >> > >> Every freebsd_version bump forces rebuilding all modules and such and is a pita. > > > > No, what it breaks is building a module with a newer source tree than your > > running kernel and trying to kldload it. That is never really supported, > > but the kernel only notices when a version bump happens. The real fix there > > is to run a kernel + modules that are in sync on test boxes. > > The problem is that this is a technical solution that precludes me from saying "look, I know that this will be OK, so let me do it" I know nothing has changed that would cause a problem. We could easily support some sort of cpp #define to disable the automatic MODULE_DEPEND() on the kernel. Then you could use 'make DEBUG_FLAGS="-DDISABLE_KERNEL_VERSION"' or whatever the variable is called when building your kernel modules. You could even have a DISABLE_KERNEL_VERSION make variable that adds that to CFLAGS in bsd.kmod.mk and then set it to yes in your /etc/make.conf. However, for normal users I think the precaution against loading an 8.x kld on 7 is worth it. -- John Baldwin