From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 07D7B13868A for ; Fri, 25 Jan 2013 18:47:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0946E21C060; Fri, 25 Jan 2013 18:47:08 +0000 (UTC) Received: from mail-ia0-f171.google.com (mail-ia0-f171.google.com [209.85.210.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EE0EBE056C for ; Fri, 25 Jan 2013 18:47:06 +0000 (UTC) Received: by mail-ia0-f171.google.com with SMTP id z13so1080424iaz.30 for ; Fri, 25 Jan 2013 10:47:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=e25lNW0WEMOHFYdFnKKaxC/8IHOLYlad4LAJboSQ2xY=; b=ZEehD2KcXfWOmjD5U2zPYENZDVyrAOtdHiU9aSFeha/+C+yG10lD9X1Sr8+5FPMSxU bn7haLYzuSG9+oU/vB+wdjnzF88lOh6HDfDtt5Bi3ehmoCOwrK4gPj5K+AM3PgmW5/tI DKkwYj+DfDcI/PwUnTgBF4GX/8EicV6/uyCs2k22uReeAAzDw469J214/8ZKbPIF9tTW uKjmH0y9imSE9DNdDHw0KlakYfC4bx5ePtatFna0+tRD7R/nvpQ6ke21pI7wOkwxj7sp PJmz0JgSK+yDbbqeo5ahREYXxzHwsLIaXrk4VQ/iFIqTFVR+L5f/XL3CC/EgGPryQYPK pRAw== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.50.203.37 with SMTP id kn5mr4639268igc.47.1359139625924; Fri, 25 Jan 2013 10:47:05 -0800 (PST) Sender: freemanrich@gmail.com Received: by 10.64.30.231 with HTTP; Fri, 25 Jan 2013 10:47:05 -0800 (PST) In-Reply-To: <874ni5nmtb.fsf@ist.utl.pt> References: <874ni5nmtb.fsf@ist.utl.pt> Date: Fri, 25 Jan 2013 13:47:05 -0500 X-Google-Sender-Auth: oOLw4dzcale-AOpVHbhyPed9QAE Message-ID: Subject: Re: [gentoo-dev] Re: RFC: CONFIG_CHECK_FATAL, making CONFIG_CHECKS fatal by default From: Rich Freeman To: gentoo-dev Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: 9608335f-66c9-4de9-a8e4-1fc04cf094e7 X-Archives-Hash: 522f853758e43013a86b25834a5dd94f On Fri, Jan 25, 2013 at 1:24 PM, Nuno J. Silva wrote: > Is there any syntax to check if something is either disabled or built as > a module? Very problematic. What is built in for the currently running kernel can be fairly reliably determined by grepping /proc/config.gz - IF support for that was enabled in the kernel. But, there is no guarantee that this kernel will be running on the next boot. Determining what is build as a module really requires interpreting the contents of /lib/modules - a module could have been built after the kernel was built, in which case /proc/config.gz might indicate no support even though it is supported. I don't think DEVTMPFS can be made a module, however (not sure on that). You can also check /usr/src/linux/.config, but the sources might not correspond to the running kernel, or the kernel on the next reboot, or whatever. It really is a touchy situation, hence all the emails in the thread. You can build something that will work OK 80% of the time though by checking the source tree. Part of me wonders if we should just ship a binary kernel/initramfs as an option. Then again, users could just use genkernel and get something like that anyway. My main issue with genkernel is that its default options are focused more on the install CD than ordinary use - things like tuners/multimedia/lirc and the like tend to not be enabled. I would think a typical desktop-oriented distro is going to enable as a module anything that doesn't cause breakage. Rich