From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 24 13:45:25 2007 Return-Path: X-Original-To: freebsd-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 4178916A401 for ; Sat, 24 Mar 2007 13:45:25 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id C592813C48A for ; Sat, 24 Mar 2007 13:45:24 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5D33F.dip.t-dialin.net [84.165.211.63]) by redbull.bpaserver.net (Postfix) with ESMTP id 75BFE2E242; Sat, 24 Mar 2007 14:45:19 +0100 (CET) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by outgoing.leidinger.net (Postfix) with ESMTP id 9B3595B4817; Sat, 24 Mar 2007 14:45:16 +0100 (CET) Date: Sat, 24 Mar 2007 14:45:16 +0100 From: Alexander Leidinger To: Boris Samorodov Message-ID: <20070324144516.602bf411@Magellan.Leidinger.net> In-Reply-To: <20766435@bsam.ru> References: <58206554@bsam.ru> <20070323113654.8eiudpiv9sco80g0@webmail.leidinger.net> <20070323121140.GA91610@stud.fit.vutbr.cz> <20766435@bsam.ru> X-Mailer: Claws Mail 2.8.1 (GTK+ 2.10.9; i686-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-15.364, required 8, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14, SMILEY -0.50) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@freebsd.org Subject: Re: Linux emulation version number 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: Sat, 24 Mar 2007 13:45:25 -0000 Quoting Boris Samorodov (Fri, 23 Mar 2007 15:38:20 +0300): > On Fri, 23 Mar 2007 13:11:40 +0100 Divacky Roman wrote: > > On Fri, Mar 23, 2007 at 11:36:54AM +0100, Alexander Leidinger wrote: > > > Quoting Boris Samorodov (from Fri, 23 Mar 2007 02:36:37 > > > +0300): > > > > > > >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. > > > > > > I suggest to do it the other way around: > > > .if ${LINUX_OSRELEASE} == "2.4.2" > > > IGNORE > > > .endif > > > I dont think this is a good idea.... what if someone sets 2.2? > > Should we call them innocent? > You shouldn't skip Alexander's comments. ;-) Yes. If someone sets it to 2.2 he gets what he requests (bullshit). The goal with the port in my opinion is to prevent foot shooting for those which use the defaults. For those which (think they) know what they do, we should not put walls into their way. > > from slightly different topic... I think the version should follow these rules > > > 1) we should choose 2.6.16 as our target (we already did but its not stated much) and > > implement its FULL functionality, we're almost there lacking basically only the *at syscalls > > (which are almost here as well). when splice() (native one) is finished we should implement > > linux_splice() (a trivial wrapper) and switch to 2.6.17 or possibly 18 as our reference linux version. Sounds good. > > 2) the osrelease should be set to the number of the kernel the actual FC is shipped with if < 16 oterwise > > to 16. I don't agree. The kernel supports version X, so we announce version X. The linux kernel is not differently in this regard, and nobody disallows to use a newer kernel on a shipped FC. > > I plan to lookup what are the major differences between various linux versions and then we can change > > these numbers cause now I know only about the 2.6.16 and splice in 2.6.17 Great. Please add this info to the wiki then. > > I think this way we will get most stability because the FCs are tested with the given kernel number > > and using higher might lower stability (glibc not being tested for this kernel) and lower number > > might cripple our ability to emulate.. Most likely the glibc will not know about more recent versions of the kernel. We can talk about this later in case we stumble over a problem. > > opinions? > > You may be right. But ATM I think the best default is as Alexander > has proposed. This may change after you do what you have proposed. ;-) We should not make this more complicated. The test in the port is enough to cover the masses. Bye, Alexander. -- Darth Vader: The force is with you young Skywalker, but you are not a Jedi yet. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137