From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 22 23:38:56 2007 Return-Path: X-Original-To: emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3E9F516A505 for ; Thu, 22 Mar 2007 23:38:56 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.freebsd.org (Postfix) with ESMTP id B23B813C457 for ; Thu, 22 Mar 2007 23:38:55 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([85.172.12.82]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id l2MNcXDP037798 for ; Fri, 23 Mar 2007 02:38:44 +0300 (MSK) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1HUWph-0009EA-Ok for emulation@FreeBSD.org; Fri, 23 Mar 2007 02:36:37 +0300 To: emulation@FreeBSD.org From: Boris Samorodov Date: Fri, 23 Mar 2007 02:36:37 +0300 Message-ID: <58206554@bsam.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Boris Samorodov Cc: Subject: [upcomming linux_base-fc6] conditional install X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Mar 2007 23:38:56 -0000 Hi! The FC6 port doesn't install with linux.osrelease=2.4.2. Assuming that FreeBSD supports only two values (2.6.16 is the second one) I use the following line at the Makefile: ----- .include LINUX_OSRELEASE!= ${SYSCTL} -n compat.linux.osrelease .if ${LINUX_OSRELEASE} != "2.6.16" IGNORE= supported only for compat.linux.osrelease: 2.6.16 .endif ----- Something similar should be written to pkg-install script for packages sake. The Porters Handbook says it's not good to use sysctl. But such approach should be used for all upcomming fc6 ports... What do you think? Thanks. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve