From owner-freebsd-emulation Fri Apr 6 7:51:43 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from xena.gsicomp.on.ca (cr677933-a.ktchnr1.on.wave.home.com [24.43.230.149]) by hub.freebsd.org (Postfix) with ESMTP id E851B37B496; Fri, 6 Apr 2001 07:51:36 -0700 (PDT) (envelope-from matt@gsicomp.on.ca) Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.11.3) with SMTP id f36EnlR12467; Fri, 6 Apr 2001 10:49:48 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <00c201c0bea9$149f7980$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: <3d@FreeBSD.ORG>, References: <20010406141120.F3E2B37B506@hub.freebsd.org> Subject: Re: Different Linux bases Date: Fri, 6 Apr 2001 10:51:36 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I have no idea which one to prefer, but it raises the question > if it would make sense to organize the emulation to > host different Linux bases. > > How dependent is the present one on RedHat? I don't think it's too dependent on anything -- just the contents of the linux_base port. > What could be nice way to tell the runtime loader > what installed Linux base to use (if there are different?) I think the shims are present via sysctl to provide details of the currently installed emulation: gabby# sysctl compat.linux compat.linux.osname: Linux compat.linux.osrelease: 2.2.12 compat.linux.oss_version: 198144 osname and osrelease could be changed to reflect the installed Linux compat installation, which we theoretically could support by having different linux_base ports -- such as a linux_rh6 port (installing to /compat/linux_rh6) and a linux_suse port (installing to /compat/linux_suse). However, only one 'Linux' emulation would be available at a time, since it's impossible to tell from a Linux executable (such as RealPlayer 8) which version of Linux to run it under, as all Linux binaries are just branded "Linux". This the same problem which plagues SVR4 emulation, which allows emulation of Solaris and SCO binaries. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message