From owner-freebsd-emulation@FreeBSD.ORG Mon Oct 20 11:06:50 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 241B61065684 for ; Mon, 20 Oct 2008 11:06:50 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1159E8FC2D for ; Mon, 20 Oct 2008 11:06:50 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9KB6nTF082629 for ; Mon, 20 Oct 2008 11:06:49 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9KB6ntY082625 for freebsd-emulation@FreeBSD.org; Mon, 20 Oct 2008 11:06:49 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 20 Oct 2008 11:06:49 GMT Message-Id: <200810201106.m9KB6ntY082625@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-emulation@FreeBSD.org 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: Mon, 20 Oct 2008 11:06:50 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/128160 emulation emulators/linux_base-fc4 tries to use a lot of old fed o kern/126232 emulation [linux] Linux ioctl TCGETS (0x5401) always fails o ports/121800 emulation x11-toolkits/linux-openmotif - OpenMotif upgrade to 2. o kern/97326 emulation [linux] file descriptor leakage in linux emulation o ports/91318 emulation [fix] graphics/linux_dri: works on amd64 too o kern/91293 emulation [svr4] [patch] *Experimental* Update to the SVR4 emula o kern/73777 emulation [linux] [patch] linux emulation: root dir special hand a kern/72920 emulation [linux]: path "prefixing" is not done on unix domain s o kern/41543 emulation [patch] [request] easier wine/w23 support o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/29698 emulation [linux] [patch] linux ipcs doesn'work o kern/21463 emulation [linux] Linux compatability mode should not allow setu o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 13 problems total. From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 21 04:08:21 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41AD5106567A for ; Tue, 21 Oct 2008 04:08:21 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao101.cox.net (eastrmmtao101.cox.net [68.230.240.7]) by mx1.freebsd.org (Postfix) with ESMTP id CB4818FC0C for ; Tue, 21 Oct 2008 04:08:20 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo03.cox.net ([68.1.16.126]) by eastrmmtao107.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20081021033141.NCCN8977.eastrmmtao107.cox.net@eastrmimpo03.cox.net> for ; Mon, 20 Oct 2008 23:31:41 -0400 Received: from localhost ([68.103.35.214]) by eastrmimpo03.cox.net with bizsmtp id VFXg1a0064dCcn002FXgai; Mon, 20 Oct 2008 23:31:40 -0400 X-Authority-Analysis: v=1.0 c=1 a=RdIgYvMAtHYA:10 a=Q28qOCLdyL8A:10 a=6I5d2MoRAAAA:8 a=RlCx0-FuduhrxZTv6DgA:9 a=3iz-EZ_dOZtL05cUMwgA:7 a=yWaUcKb4aNFh6KrqHUQH7r5bUM4A:4 a=4vB-4DCPJfMA:10 a=SV7veod9ZcQA:10 a=b8hG5vVbyAkA:10 X-CM-Score: 0.00 Date: Tue, 21 Oct 2008 03:31:52 -0000 To: freebsd-emulation@freebsd.org From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: User-Agent: Opera Mail/9.60 (Linux) Subject: Linux compat 2.6.16 reports time incorrect? 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: Tue, 21 Oct 2008 04:08:21 -0000 Hello folks, I have updated RELENG_7 recently, and switched to 2.6.26 and f8 at the same time. I am not sure which I am supposed to blame on. :-) Anyway, now my linux-opera M2 (mail) client reports time incorrect. So I have checked with date(1) and it does indeed report different. ---------------------------------- # /bin/date Mon Oct 20 22:28:35 CDT 2008 # /compat/linux/bin/date Tue Oct 21 03:28:38 UTC 2008 ---------------------------------- I do not remember for have to configure the date correct for Linux 2.4 stuff before I update RELENG_7 and switched to newer 2.6.16 stuff. I am wondering if I have to do that now for configure time or it's not normal? BTW: Please add me in CC, thanks! Cheers, Mezz -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 21 04:47:03 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 972CA1065671 for ; Tue, 21 Oct 2008 04:47:03 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id 966788FC12 for ; Tue, 21 Oct 2008 04:47:00 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [211.166.10.233]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id 82E5028454 for ; Tue, 21 Oct 2008 12:46:57 +0800 (CST) Received: from localhost (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 30F7EEB38D6; Tue, 21 Oct 2008 12:46:57 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id UhdHZD4h4Ut0; Tue, 21 Oct 2008 12:46:52 +0800 (CST) Received: from charlie.delphij.net (c-76-103-40-85.hsd1.ca.comcast.net [76.103.40.85]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 80662EB38B3; Tue, 21 Oct 2008 12:46:51 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=NlnStO0233Z1w0CXp0IGkJVg19C9z2uln9kqWUJpwE6GkcdPCgLGAPRxAEfYvZcUj xO4oKLohxQWuB+eJcjc7w== Message-ID: <48FD5EB8.9030405@delphij.net> Date: Mon, 20 Oct 2008 21:46:48 -0700 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.17 (X11/20080928) MIME-Version: 1.0 To: Jeremy Messenger References: In-Reply-To: X-Enigmail-Version: 0.95.7 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: Re: Linux compat 2.6.16 reports time incorrect? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2008 04:47:03 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jeremy Messenger wrote: > Hello folks, > > I have updated RELENG_7 recently, and switched to 2.6.26 and f8 at the > same time. I am not sure which I am supposed to blame on. :-) Anyway, > now my linux-opera M2 (mail) client reports time incorrect. So I have > checked with date(1) and it does indeed report different. > > ---------------------------------- > # /bin/date > Mon Oct 20 22:28:35 CDT 2008 > # /compat/linux/bin/date > Tue Oct 21 03:28:38 UTC 2008 > ---------------------------------- > > I do not remember for have to configure the date correct for Linux 2.4 > stuff before I update RELENG_7 and switched to newer 2.6.16 stuff. I am > wondering if I have to do that now for configure time or it's not normal? Looks like you don't have a proper /etc/localtime setting? I think tzsetup would help... Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkj9XrcACgkQi+vbBBjt66A8PQCfUCbiPi4HXHDDUBHqq8311cDm uwYAn2RypKDA7B654Kj5Db4zsCpibw79 =dyre -----END PGP SIGNATURE----- From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 21 06:10:55 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91CFE106567E for ; Tue, 21 Oct 2008 06:10:55 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao102.cox.net (eastrmmtao102.cox.net [68.230.240.8]) by mx1.freebsd.org (Postfix) with ESMTP id 315378FC29 for ; Tue, 21 Oct 2008 06:10:55 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao102.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20081021061054.BHMR22786.eastrmmtao102.cox.net@eastrmimpo02.cox.net>; Tue, 21 Oct 2008 02:10:54 -0400 Received: from localhost ([68.103.35.214]) by eastrmimpo02.cox.net with bizsmtp id VJAu1a0014dCcn002JAuvp; Tue, 21 Oct 2008 02:10:54 -0400 X-Authority-Analysis: v=1.0 c=1 a=l9Ycl1FpqDgA:10 a=Qn-DNt13878A:10 a=SWg00rOMAAAA:8 a=6I5d2MoRAAAA:8 a=TXb6AXZThwvEebJgUlAA:9 a=cLiiDjfZVnZAVDcw75UA:7 a=sVjpCOc-VDn4IEeA6W_SZ4aQSF4A:4 a=3_5TX_vZOqAA:10 a=4vB-4DCPJfMA:10 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 X-CM-Score: 0.00 Date: Tue, 21 Oct 2008 01:10:56 -0500 To: d@delphij.net From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 References: <48FD5EB8.9030405@delphij.net> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <48FD5EB8.9030405@delphij.net> User-Agent: Opera Mail/9.60 (Linux) Cc: freebsd-emulation@freebsd.org Subject: Re: Linux compat 2.6.16 reports time incorrect? 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: Tue, 21 Oct 2008 06:10:55 -0000 On Mon, 20 Oct 2008 23:46:48 -0500, Xin LI wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Jeremy Messenger wrote: >> Hello folks, >> >> I have updated RELENG_7 recently, and switched to 2.6.26 and f8 at the >> same time. I am not sure which I am supposed to blame on. :-) Anyway, >> now my linux-opera M2 (mail) client reports time incorrect. So I have >> checked with date(1) and it does indeed report different. >> >> ---------------------------------- >> # /bin/date >> Mon Oct 20 22:28:35 CDT 2008 >> # /compat/linux/bin/date >> Tue Oct 21 03:28:38 UTC 2008 >> ---------------------------------- >> >> I do not remember for have to configure the date correct for Linux 2.4 >> stuff before I update RELENG_7 and switched to newer 2.6.16 stuff. I am >> wondering if I have to do that now for configure time or it's not >> normal? > > Looks like you don't have a proper /etc/localtime setting? I think > tzsetup would help... I don't think so. FreeBSD's orignal /bin/date reports correct, but /compat/linux/bin/date reported different. I have downgraded Linux compat back to 2.4 and linux_base-fc4 stuff, now I have this: ---------------------------------- # /bin/date Tue Oct 21 01:03:20 CDT 2008 # /compat/linux/bin/date Tue Oct 21 01:03:23 CDT 2008 ---------------------------------- Which is correct. So.. Must be either a bug in Linux compat 2.6.16 or linux_base-f8 or it's new that I have to configure in /compat/linux/* for time stuff? Cheers, Mezz > Cheers, > - -- > Xin LI http://www.delphij.net/ > FreeBSD - The Power to Serve! > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.9 (FreeBSD) > > iEYEARECAAYFAkj9XrcACgkQi+vbBBjt66A8PQCfUCbiPi4HXHDDUBHqq8311cDm > uwYAn2RypKDA7B654Kj5Db4zsCpibw79 > =dyre > -----END PGP SIGNATURE----- -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 21 07:24:05 2008 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 566401065673; Tue, 21 Oct 2008 07:24:05 +0000 (UTC) (envelope-from stefan@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2C8CC8FC0C; Tue, 21 Oct 2008 07:24:05 +0000 (UTC) (envelope-from stefan@FreeBSD.org) Received: from freefall.freebsd.org (stefan@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9L7O5cO097180; Tue, 21 Oct 2008 07:24:05 GMT (envelope-from stefan@freefall.freebsd.org) Received: (from stefan@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9L7O5d7097176; Tue, 21 Oct 2008 07:24:05 GMT (envelope-from stefan) Date: Tue, 21 Oct 2008 07:24:05 GMT Message-Id: <200810210724.m9L7O5d7097176@freefall.freebsd.org> To: stefan@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-emulation@FreeBSD.org From: stefan@FreeBSD.org Cc: Subject: Re: ports/127018: Linuxulator incapable of using FreeBSD's LDAP environment 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: Tue, 21 Oct 2008 07:24:05 -0000 Synopsis: Linuxulator incapable of using FreeBSD's LDAP environment Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-emulation Responsible-Changed-By: stefan Responsible-Changed-When: Tue Oct 21 07:21:49 UTC 2008 Responsible-Changed-Why: Over to the emulation people. http://www.freebsd.org/cgi/query-pr.cgi?pr=127018 From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 21 08:01:37 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0DF510657D4 for ; Tue, 21 Oct 2008 08:01:36 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 962458FC24 for ; Tue, 21 Oct 2008 08:01:36 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from [85.173.17.41] (helo=moosa) by services.ipt.ru with esmtpa (Exim 4.54 (FreeBSD)) id 1KsCBG-0001dq-UN; Tue, 21 Oct 2008 12:01:31 +0400 To: "Jeremy Messenger" References: <48FD5EB8.9030405@delphij.net> From: Boris Samorodov Date: Tue, 21 Oct 2008 12:01:24 +0400 In-Reply-To: (Jeremy Messenger's message of "Tue\, 21 Oct 2008 01\:10\:56 -0500") Message-ID: <16667467@ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-emulation@freebsd.org, d@delphij.net Subject: Re: Linux compat 2.6.16 reports time incorrect? 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: Tue, 21 Oct 2008 08:01:37 -0000 On Tue, 21 Oct 2008 01:10:56 -0500 Jeremy Messenger wrote: > On Mon, 20 Oct 2008 23:46:48 -0500, Xin LI wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Jeremy Messenger wrote: > >> Hello folks, > >> > >> I have updated RELENG_7 recently, and switched to 2.6.26 and f8 at the > >> same time. I am not sure which I am supposed to blame on. :-) Anyway, > >> now my linux-opera M2 (mail) client reports time incorrect. So I have > >> checked with date(1) and it does indeed report different. > >> > >> ---------------------------------- > >> # /bin/date > >> Mon Oct 20 22:28:35 CDT 2008 > >> # /compat/linux/bin/date > >> Tue Oct 21 03:28:38 UTC 2008 > >> ---------------------------------- > >> > >> I do not remember for have to configure the date correct for Linux 2.4 > >> stuff before I update RELENG_7 and switched to newer 2.6.16 stuff. I am > >> wondering if I have to do that now for configure time or it's not > >> normal? > > > > Looks like you don't have a proper /etc/localtime setting? I think > > tzsetup would help... > I don't think so. FreeBSD's orignal /bin/date reports correct, but > /compat/linux/bin/date reported different. I have downgraded Linux > compat back to 2.4 and linux_base-fc4 stuff, now I have this: > ---------------------------------- > # /bin/date > Tue Oct 21 01:03:20 CDT 2008 > # /compat/linux/bin/date > Tue Oct 21 01:03:23 CDT 2008 > ---------------------------------- > Which is correct. So.. Must be either a bug in Linux compat 2.6.16 or > linux_base-f8 or it's new that I have to configure in /compat/linux/* > for time stuff? Ktrace/linux_kdump for "/compat/linux/bin/date" with 2.6.16 and f8 give: ----- ... 66771 date NAMI "/compat/linux/etc/localtime" 66771 date NAMI "/etc/localtime" 66771 date RET linux_open 3 66771 date CALL linux_fstat64(0x3,0xbfbfea18,0x281d7ff4) 66771 date RET linux_fstat64 0 66771 date CALL linux_fstat64(0x3,0xbfbfe868,0x281d7ff4) 66771 date RET linux_fstat64 0 66771 date CALL linux_mmap2(0,0x1000,0x3,0x22,0xffffffff,0) 66771 date RET linux_mmap2 671551488/0x28071000 66771 date CALL read(0x3,0x28071000,0x1000) 66771 date GIO fd 3 read 815 bytes "TZif\0\0\0\0\0\0\0\0\0\0\0\0" 66771 date RET read 815/0x32f 66771 date CALL read(0x3,0x28071000,0x1000) 66771 date GIO fd 3 read 0 bytes "" 66771 date RET read 0 66771 date CALL close(0x3) 66771 date RET close 0 66771 date CALL munmap(0x28071000,0x1000) 66771 date RET munmap 0 66771 date CALL linux_open(0x281ab044,0,0x1b6) 66771 date NAMI "/compat/linux/etc/localtime" 66771 date NAMI "/etc/localtime" 66771 date RET linux_open 3 66771 date CALL linux_fstat64(0x3,0xbfbfe3ac,0x281d7ff4) 66771 date RET linux_fstat64 0 66771 date CALL linux_fstat64(0x3,0xbfbfe1fc,0x281d7ff4) 66771 date RET linux_fstat64 0 66771 date CALL linux_mmap2(0,0x1000,0x3,0x22,0xffffffff,0) 66771 date RET linux_mmap2 671551488/0x28071000 66771 date CALL read(0x3,0x28071000,0x1000) 66771 date GIO fd 3 read 815 bytes "TZif\0\0\0\0\0\0\0\0\0\0\0\0" 66771 date RET read 815/0x32f 66771 date CALL read(0x3,0x28071000,0x1000) 66771 date GIO fd 3 read 0 bytes "" 66771 date RET read 0 66771 date CALL close(0x3) 66771 date RET close 0 66771 date CALL munmap(0x28071000,0x1000) 66771 date RET munmap 0 66771 date CALL linux_fstat64(0x1,0xbfbfe4b0,0x281d7ff4) 66771 date RET linux_fstat64 0 66771 date CALL linux_mmap2(0,0x1000,0x3,0x22,0xffffffff,0) 66771 date RET linux_mmap2 671551488/0x28071000 66771 date CALL linux_open(0x281ab044,0,0x1b6) 66771 date NAMI "/compat/linux/etc/localtime" 66771 date NAMI "/etc/localtime" 66771 date RET linux_open 3 66771 date CALL linux_fstat64(0x3,0xbfbfe3ac,0x281d7ff4) 66771 date RET linux_fstat64 0 66771 date CALL linux_fstat64(0x3,0xbfbfe1fc,0x281d7ff4) ... ----- The file /etc/localtime is accessed three times and every time is rejected. May be the structure of this file has been changed for linux since 2.4.2? WBR -- bsam From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 21 13:12:28 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15637106566B for ; Tue, 21 Oct 2008 13:12:28 +0000 (UTC) (envelope-from kama@pvp.se) Received: from ms1.as.pvp.se (dns.pvp.se [213.64.187.226]) by mx1.freebsd.org (Postfix) with ESMTP id CED9A8FC12 for ; Tue, 21 Oct 2008 13:12:27 +0000 (UTC) (envelope-from kama@pvp.se) Received: by ms1.as.pvp.se (Postfix, from userid 1001) id 4E9C6AD; Tue, 21 Oct 2008 14:53:01 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by ms1.as.pvp.se (Postfix) with ESMTP id 4D01DAC; Tue, 21 Oct 2008 14:53:01 +0200 (CEST) Date: Tue, 21 Oct 2008 14:53:01 +0200 (CEST) From: kama X-X-Sender: kama@ns1.as.pvp.se To: Boris Samorodov In-Reply-To: <16667467@ipt.ru> Message-ID: <20081021144454.P8907@ns1.as.pvp.se> References: <48FD5EB8.9030405@delphij.net> <16667467@ipt.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Jeremy Messenger , freebsd-emulation@freebsd.org, d@delphij.net Subject: Re: Linux compat 2.6.16 reports time incorrect? 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: Tue, 21 Oct 2008 13:12:28 -0000 On Tue, 21 Oct 2008, Boris Samorodov wrote: > On Tue, 21 Oct 2008 01:10:56 -0500 Jeremy Messenger wrote: > > On Mon, 20 Oct 2008 23:46:48 -0500, Xin LI wrote: > > > > -----BEGIN PGP SIGNED MESSAGE----- > > > Hash: SHA1 > > > > > > Jeremy Messenger wrote: > > >> Hello folks, > > >> > > >> I have updated RELENG_7 recently, and switched to 2.6.26 and f8 at the > > >> same time. I am not sure which I am supposed to blame on. :-) Anyway, > > >> now my linux-opera M2 (mail) client reports time incorrect. So I have > > >> checked with date(1) and it does indeed report different. > > >> > > >> ---------------------------------- > > >> # /bin/date > > >> Mon Oct 20 22:28:35 CDT 2008 > > >> # /compat/linux/bin/date > > >> Tue Oct 21 03:28:38 UTC 2008 > > >> ---------------------------------- > > >> > > >> I do not remember for have to configure the date correct for Linux 2.4 > > >> stuff before I update RELENG_7 and switched to newer 2.6.16 stuff. I am > > >> wondering if I have to do that now for configure time or it's not > > >> normal? > > > > > > Looks like you don't have a proper /etc/localtime setting? I think > > > tzsetup would help... > > > I don't think so. FreeBSD's orignal /bin/date reports correct, but > > /compat/linux/bin/date reported different. I have downgraded Linux > > compat back to 2.4 and linux_base-fc4 stuff, now I have this: > > > ---------------------------------- > > # /bin/date > > Tue Oct 21 01:03:20 CDT 2008 > > # /compat/linux/bin/date > > Tue Oct 21 01:03:23 CDT 2008 > > ---------------------------------- > > > Which is correct. So.. Must be either a bug in Linux compat 2.6.16 or > > linux_base-f8 or it's new that I have to configure in /compat/linux/* > > for time stuff? > Try: cp /etc/localtime /usr/compat/linux/etc/ cp /etc/resolv.conf /usr/compat/linux/etc/ I used to install gentoo as base (Not through ports) and always needed to copy these to make it work properly. /Bjorn From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 21 18:19:31 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2568F1065685 for ; Tue, 21 Oct 2008 18:19:31 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: from mail-gx0-f16.google.com (mail-gx0-f16.google.com [209.85.217.16]) by mx1.freebsd.org (Postfix) with ESMTP id 94E558FC1A for ; Tue, 21 Oct 2008 18:19:30 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: by gxk9 with SMTP id 9so5698018gxk.19 for ; Tue, 21 Oct 2008 11:19:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=5/9NeuWFltI0N7mLOyfmETOUF+qrA/5FpZ5Z6/nmChI=; b=pMeOqLssP22R48pGXAjDsRI9R41kH9KYLmtcddF199qnIPLc3KwUzkgSUwe4R2b603 w9ChrfTkxaLwRQ+oDInDcdvHte3RG+0k5iztPX5O0i8eG4/vvO21xsFfwKoOynsk8MNW /wAdJLOpmaC18V1hMrfHWNaP4Sy21cAwF1mrw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=R52pdLhiBm/vB5BNsa9dl+cuexhE2RbZuXMgMal9OQY0O4Wh5FJ1o/JmFHK15gTaCX zUQUtT96dF9ozgNY/fUqZYZIFC0ofl17jxVx2HMvME+VH5DVy3g2M2wPEBL5YdrCPXav Q74xRbfB+rbnBsL5JIbw0ijjq5iTu//3AmZfE= Received: by 10.64.76.15 with SMTP id y15mr6947925qba.92.1224611578198; Tue, 21 Oct 2008 10:52:58 -0700 (PDT) Received: from 190-177-219-242.speedy.com.ar ([190.177.219.242]) by mx.google.com with ESMTPS id 33sm10724434yxr.3.2008.10.21.10.52.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 21 Oct 2008 10:52:57 -0700 (PDT) From: Gonzalo Nemmi To: freebsd-emulation@freebsd.org Date: Tue, 21 Oct 2008 15:52:50 -0200 User-Agent: KMail/1.9.10 References: <48FD5EB8.9030405@delphij.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810211552.50986.gnemmi@gmail.com> Subject: Re: Linux compat 2.6.16 reports time incorrect? 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: Tue, 21 Oct 2008 18:19:31 -0000 On Tuesday 21 October 2008 4:10:56 am Jeremy Messenger wrote: > On Mon, 20 Oct 2008 23:46:48 -0500, Xin LI wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Jeremy Messenger wrote: > >> Hello folks, > >> > >> I have updated RELENG_7 recently, and switched to 2.6.26 and f8 at the > >> same time. I am not sure which I am supposed to blame on. :-) Anyway, > >> now my linux-opera M2 (mail) client reports time incorrect. So I have > >> checked with date(1) and it does indeed report different. > >> > >> ---------------------------------- > >> # /bin/date > >> Mon Oct 20 22:28:35 CDT 2008 > >> # /compat/linux/bin/date > >> Tue Oct 21 03:28:38 UTC 2008 > >> ---------------------------------- > >> > >> I do not remember for have to configure the date correct for Linux 2.4 > >> stuff before I update RELENG_7 and switched to newer 2.6.16 stuff. I am > >> wondering if I have to do that now for configure time or it's not > >> normal? > > > > Looks like you don't have a proper /etc/localtime setting? I think > > tzsetup would help... > > I don't think so. FreeBSD's orignal /bin/date reports correct, but > /compat/linux/bin/date reported different. I have downgraded Linux compat > back to 2.4 and linux_base-fc4 stuff, now I have this: > > ---------------------------------- > # /bin/date > Tue Oct 21 01:03:20 CDT 2008 > # /compat/linux/bin/date > Tue Oct 21 01:03:23 CDT 2008 > ---------------------------------- > > Which is correct. So.. Must be either a bug in Linux compat 2.6.16 or > linux_base-f8 or it's new that I have to configure in /compat/linux/* for > time stuff? > > Cheers, > Mezz > > > Cheers, > > - -- > > Xin LI http://www.delphij.net/ > > FreeBSD - The Power to Serve! > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v2.0.9 (FreeBSD) > > > > iEYEARECAAYFAkj9XrcACgkQi+vbBBjt66A8PQCfUCbiPi4HXHDDUBHqq8311cDm > > uwYAn2RypKDA7B654Kj5Db4zsCpibw79 > > =dyre > > -----END PGP SIGNATURE----- [gonzalo@inferna ~]% uname -a FreeBSD inferna.inferna.com.ar 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Jul 20 03:44:42 ART 2008 root@inferna.inferna.com.ar:/usr/obj/usr/src/sys/INFERNA i386 [gonzalo@inferna ~]% /bin/date Tue Oct 21 15:42:29 ARST 2008 [gonzalo@inferna ~]% /compat/linux/bin/date Tue Oct 21 15:42:30 ARST 2008 [gonzalo@inferna ~]% sysctl -a | grep linux hw.snd.compat_linux_mmap: 0 compat.linux.oss_version: 198144 compat.linux.osrelease: 2.6.16 compat.linux.osname: Linux [gonzalo@inferna ~]% pkg_info -cx linux_base Information for linux_base-fc-4_13: Comment: Base set of packages needed in Linux mode (for i386/amd64) [gonzalo@inferna ~]% I'd go for linux_base-f8 given that it seems to work ok under linux_base-fc-4_13 with 2.6.16. Regards -- Blessings Gonzalo Nemmi From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 21 18:54:16 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 041EC106566B for ; Tue, 21 Oct 2008 18:54:16 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao107.cox.net (eastrmmtao107.cox.net [68.230.240.59]) by mx1.freebsd.org (Postfix) with ESMTP id A16D68FC1A for ; Tue, 21 Oct 2008 18:54:15 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao107.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20081021185410.XFHG8977.eastrmmtao107.cox.net@eastrmimpo02.cox.net>; Tue, 21 Oct 2008 14:54:10 -0400 Received: from localhost ([68.103.35.214]) by eastrmimpo02.cox.net with bizsmtp id VWu91a0034dCcn002Wu9pQ; Tue, 21 Oct 2008 14:54:09 -0400 X-Authority-Analysis: v=1.0 c=1 a=l9Ycl1FpqDgA:10 a=Qn-DNt13878A:10 a=6I5d2MoRAAAA:8 a=yzPqVov1awBHCiSyj2cA:9 a=0_x-_wtuAAKL1ORFBzkA:7 a=L81HI4pZK30XZjWLS81SpmvtPHwA:4 a=3_5TX_vZOqAA:10 a=4vB-4DCPJfMA:10 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 X-CM-Score: 0.00 Date: Tue, 21 Oct 2008 13:54:11 -0500 To: kama From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 References: <48FD5EB8.9030405@delphij.net> <16667467@ipt.ru> <20081021144454.P8907@ns1.as.pvp.se> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <20081021144454.P8907@ns1.as.pvp.se> User-Agent: Opera Mail/9.60 (Linux) Cc: freebsd-emulation@freebsd.org, d@delphij.net Subject: Re: Linux compat 2.6.16 reports time incorrect? 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: Tue, 21 Oct 2008 18:54:16 -0000 On Tue, 21 Oct 2008 07:53:01 -0500, kama wrote: > > > On Tue, 21 Oct 2008, Boris Samorodov wrote: > >> On Tue, 21 Oct 2008 01:10:56 -0500 Jeremy Messenger wrote: >> > On Mon, 20 Oct 2008 23:46:48 -0500, Xin LI >> wrote: >> >> > > -----BEGIN PGP SIGNED MESSAGE----- >> > > Hash: SHA1 >> > > >> > > Jeremy Messenger wrote: >> > >> Hello folks, >> > >> >> > >> I have updated RELENG_7 recently, and switched to 2.6.26 and f8 at >> the >> > >> same time. I am not sure which I am supposed to blame on. :-) >> Anyway, >> > >> now my linux-opera M2 (mail) client reports time incorrect. So I >> have >> > >> checked with date(1) and it does indeed report different. >> > >> >> > >> ---------------------------------- >> > >> # /bin/date >> > >> Mon Oct 20 22:28:35 CDT 2008 >> > >> # /compat/linux/bin/date >> > >> Tue Oct 21 03:28:38 UTC 2008 >> > >> ---------------------------------- >> > >> >> > >> I do not remember for have to configure the date correct for Linux >> 2.4 >> > >> stuff before I update RELENG_7 and switched to newer 2.6.16 stuff. >> I am >> > >> wondering if I have to do that now for configure time or it's not >> > >> normal? >> > > >> > > Looks like you don't have a proper /etc/localtime setting? I think >> > > tzsetup would help... >> >> > I don't think so. FreeBSD's orignal /bin/date reports correct, but >> > /compat/linux/bin/date reported different. I have downgraded Linux >> > compat back to 2.4 and linux_base-fc4 stuff, now I have this: >> >> > ---------------------------------- >> > # /bin/date >> > Tue Oct 21 01:03:20 CDT 2008 >> > # /compat/linux/bin/date >> > Tue Oct 21 01:03:23 CDT 2008 >> > ---------------------------------- >> >> > Which is correct. So.. Must be either a bug in Linux compat 2.6.16 or >> > linux_base-f8 or it's new that I have to configure in /compat/linux/* >> > for time stuff? >> > > Try: > cp /etc/localtime /usr/compat/linux/etc/ It won't work, because if you read Boris's ktrace and you will see it reads in /etc/localtime. So if I copy it to /compat/linux/etc/localtime and it won't makes any difference, since it's same file. :-) Cheers, Mezz > cp /etc/resolv.conf /usr/compat/linux/etc/ > > I used to install gentoo as base (Not through ports) and always needed to > copy these to make it work properly. > > /Bjorn -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 21 19:49:08 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 997D01065672 for ; Tue, 21 Oct 2008 19:49:08 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao106.cox.net (eastrmmtao106.cox.net [68.230.240.48]) by mx1.freebsd.org (Postfix) with ESMTP id 4B6F48FC13 for ; Tue, 21 Oct 2008 19:49:07 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo03.cox.net ([68.1.16.126]) by eastrmmtao106.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20081021194903.RYMV4226.eastrmmtao106.cox.net@eastrmimpo03.cox.net>; Tue, 21 Oct 2008 15:49:03 -0400 Received: from localhost ([68.103.35.214]) by eastrmimpo03.cox.net with bizsmtp id VXp21a0014dCcn002Xp2f6; Tue, 21 Oct 2008 15:49:02 -0400 X-Authority-Analysis: v=1.0 c=1 a=h4HsumFQbJQA:10 a=o3z_QlbD_B4A:10 a=6I5d2MoRAAAA:8 a=bm5OqzSBA9ZxoBSl7L8A:9 a=m6UgnvtrwoSRFbsj-T0A:7 a=sUNGdb8jkEOg2VjO_lbtXCB92t8A:4 a=4vB-4DCPJfMA:10 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 X-CM-Score: 0.00 Date: Tue, 21 Oct 2008 14:48:41 -0500 To: freebsd-emulation@freebsd.org From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 References: Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: User-Agent: Opera Mail/9.60 (Linux) Cc: edwin@freebsd.org Subject: Kind of solved.. [WAS: Re: Linux compat 2.6.16 reports time incorrect?] 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: Tue, 21 Oct 2008 19:49:08 -0000 On Mon, 20 Oct 2008 22:31:52 -0500, Jeremy Messenger wrote: > Hello folks, > > I have updated RELENG_7 recently, and switched to 2.6.26 and f8 at the > same time. I am not sure which I am supposed to blame on. :-) Anyway, > now my linux-opera M2 (mail) client reports time incorrect. So I have > checked with date(1) and it does indeed report different. > > ---------------------------------- > # /bin/date > Mon Oct 20 22:28:35 CDT 2008 > # /compat/linux/bin/date > Tue Oct 21 03:28:38 UTC 2008 > ---------------------------------- > > I do not remember for have to configure the date correct for Linux 2.4 > stuff before I update RELENG_7 and switched to newer 2.6.16 stuff. I am > wondering if I have to do that now for configure time or it's not normal? I have downloaded tzdata-2008h-1.fc8.noarch.rpm and extracted it. Then copy it in /compat/linux/etc/localtime and now it works correct. Only a few seconds difference, but does not matter to me. ---------------------------------- # /bin/date Tue Oct 21 14:33:55 CDT 2008 # /compat/linux/bin/date Tue Oct 21 19:33:59 UTC 2008 # cp usr/share/zoneinfo/right/America/Cancun /compat/linux/etc/localtime # /compat/linux/bin/date Tue Oct 21 14:33:43 CDT 2008 ---------------------------------- Maybe edwin's plan of update tzcode to 2008e might help with this issue? I am hoping that his update tzcode can help linux_base-f8 to have correct time without have to use tzdata-2008h-1.fc8.noarch.rpm. http://lists.freebsd.org/pipermail/freebsd-arch/2008-September/008599.html (patches included) BTW: Add CC'ing to edwin to see if he thinks update tzcode can helps with this issue. Cheers, Mezz > BTW: Please add me in CC, thanks! > > Cheers, > Mezz -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 21 21:05:03 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDE8410657E3 for ; Tue, 21 Oct 2008 21:05:03 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 72B008FC12 for ; Tue, 21 Oct 2008 21:05:03 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KsNYA-0004sN-7l for freebsd-emulation@freebsd.org; Tue, 21 Oct 2008 20:09:54 +0000 Received: from 200.41.broadband11.iol.cz ([90.178.41.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Oct 2008 20:09:54 +0000 Received: from gamato by 200.41.broadband11.iol.cz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Oct 2008 20:09:54 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-emulation@freebsd.org From: martinko Date: Tue, 21 Oct 2008 22:09:44 +0200 Lines: 136 Message-ID: <48FE3708.8010501@users.sf.net> References: <78cb3d3f0807260841k336f20a9jce857189c55adb16@mail.gmail.com> <78cb3d3f0807270122r4d2377d9gbf4e3ed5386918fa@mail.gmail.com> <20080727121503.679bc598@deskjail> <78cb3d3f0807271003q3f5ab72dr2147cf7b1a3348fc@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 200.41.broadband11.iol.cz User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.17) Gecko/20081009 SeaMonkey/1.1.12 In-Reply-To: Sender: news Cc: freebsd-database@freebsd.org, rofug@rofug.ro, freebsd-ports@freebsd.org Subject: Re: Q: Is there any use for Oracle database port installation under Linux compat root ? 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: Tue, 21 Oct 2008 21:05:03 -0000 Chagin Dmitry wrote: > On Sun, 27 Jul 2008, Adrian Penisoara wrote: > >> Hi, >> >> On Sun, Jul 27, 2008 at 1:15 PM, Alexander Leidinger < >> Alexander@leidinger.net> wrote: >> >>> Quoting "Adrian Penisoara" (Sun, 27 Jul 2008 >>> 11:22:20 >>> +0300): >>> >>>> Hi, >>>> >>>> I am working on a FreeBSD port for Oracle's XE database package[1] >>> (Linux >>>> binaries) and I stumbled upon some issues related to USE_LINUX_PREFIX. >>>> Before going any further trying to support (as an option) installing >>>> the >>>> Oracle XE directly under the /compat/linux hierarchy (like the >>>> database/linux-oracle-instantclient-* ports are doing), I have to >>>> ask ask >>>> around the following: >>>> >>>> (1) Is there any real need/benefit to have an Oracle DB installation >>> rooted >>>> under /compat/linux (e.g. /compat/linux/usr/lib/oracle/xe/...) ? Side >>> note: >>>> in this case all shell scripts will need to be ran under >>>> /compat/linux/bin/bash. >>>> >>>> (2) How does one deal with installing manual pages and shared files >>>> with >>>> USE_LINUX_PREFIX -- do they also have to go under /compat/linux ? Using >>>> ${MANPREFIX} as a template gives wrong results in this case... >>> >>> A port has to install into LINUXPREFIX, if it is an infrastructure >>> port (no part has to go outside this location). It has to install into >>> the default location (PREFIX/LOCALBASE), if it is an enduser port. >>> That's the easy part. >> >> >> Good pointer, I was missing this bit. Thanks. >> >> >>> >>> >>> Now the classification, what is what, is the hard part. The linux >>> png/jpeg or whatever lib is for sure infrastructure. If this would land >>> in the default FreeBSD lib path, rest assured it would hurt. A linux >>> acroread port is an enduser application, a user will call it directly >>> to work with it. It also does not come with libs in the default FreeBSD >>> locations, so everything will be fine if it is installed in the default >>> location. >>> >>> For the Oracle stuff I can imagine that it is a hard question. If it >>> doesn't put libs into a FreeBSD lib directory (a subdirectory of a lib >>> directory is ok, as it will not cause immediate problems), there are no >>> immediate objections to putting it into the default FreeBSD location >>> (and as the DBA as an enduser would use it, this would fit into the >>> description above). But we also have the rule that nothing is allowed >>> to be put into the basesystem (/usr/Y instead of /usr/local/Y). Think >>> about jails where the base is mounted read-only and only additional >>> programs are in a RW part. >> >> >> In the default configuration the binaries (and I mean all of them!) >> would >> be placed under /usr/lib/oracle, since this is a hardcoded path in all >> places. >> I will also offer a "WITH_BSDHIER" option which will root the >> installation >> into /usr/local/oracle and just make a symlink under /usr/lib. Should I >> rather make this the default ? ;) >> >> There are no libraries (or other binaries for that fact) installed >> outside >> the Oracle hierarchy (this is the general strategy for Oracle RDBMS >> products >> at least). So I guess it very nicely fits into the "enduser" picture you >> describe above. I'm just wandering whether a /compat/linux rooted >> installation would make sense. >> >> I am still interested to hear opinions from Oracle DBAs/users on this >> subject -- would you need this option ? >> > > hi! > > I think that ora DBAs will tell that the best place it /home/ORAUSERNAME > and this user should have shell /compat/linux/bin/bash > > thnx! > Hi, No Oracle installation I have ever seen was installed into /home and it would be against Oracle Optimal Flexible Architecture (OFA) guidelines! /usr/local/oracle would be OK and users can move the directory tree elsewhere afterwards. Or maybe you can ask about Oracle Base directory during config/installation process, if possible. Cheers, Martin PS: Mind you that Oracle installation is usually owned by Oracle software owner user (oinstall by default) who is different from DBA/operator users (dba/oper by default). >> >>> >>> >>> In the end it comes down to what you are able to do and how hard the >>> software is to port. Maybe it is easy to install everything into >>> LINUXBASE and install a wrapper into LOCALBASE (/usr/local/bin/Y would >>> be a script with #!/compat/linux/bin/bash and start whatever is needed >>> to start /compat/linux/bin/Y). Maybe the installation of the software >>> allows to install into /usr/local/softwarename and you can make links >>> from /usr/local/bin/ to it. >>> >>> The rules for this are strong suggestions. If it is possible to do, >>> do everything you can to follow the rules, if you don't know how to >>> make something follow the rules, ask specific questions on ports if >>> someone has in idea. If there's no idea, forget the rule and try to do >>> something as close as possible to the goal of the rule (and document >>> what/why). >>> >>> Bye, >>> Alexander. >>> >>> >> Thank you for your time. >> Adrian. From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 21 21:31:31 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40D71106567A; Tue, 21 Oct 2008 21:31:31 +0000 (UTC) (envelope-from per@hedeland.org) Received: from pluto.hedeland.org (1-1-1-13a.mal.sth.bostream.se [82.182.84.27]) by mx1.freebsd.org (Postfix) with ESMTP id B63F88FC16; Tue, 21 Oct 2008 21:31:30 +0000 (UTC) (envelope-from per@hedeland.org) Received: from pluto.hedeland.org (localhost [127.0.0.1]) by pluto.hedeland.org (8.14.2/8.14.2) with ESMTP id m9LLGog3098677 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 21 Oct 2008 23:16:50 +0200 (CEST) (envelope-from per@pluto.hedeland.org) Received: (from per@localhost) by pluto.hedeland.org (8.14.2/8.14.2/Submit) id m9LLGoAB098676; Tue, 21 Oct 2008 23:16:50 +0200 (CEST) (envelope-from per) Date: Tue, 21 Oct 2008 23:16:50 +0200 (CEST) From: Per Hedeland Message-Id: <200810212116.m9LLGoAB098676@pluto.hedeland.org> To: freebsd-emulation@freebsd.org In-Reply-To: X-Scanned-By: MIMEDefang 2.63 on 82.182.84.27 Cc: mezz7@cox.net, edwin@freebsd.org Subject: Re: Kind of solved.. [WAS: Re: Linux compat 2.6.16 reports time incorrect?] 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: Tue, 21 Oct 2008 21:31:31 -0000 "Jeremy Messenger" wrote: > >It won't work, because if you read Boris's ktrace and you will see it >reads in /etc/localtime. Boris' ktrace did indeed show that (though I don't know how he deduced that the file was "rejected", rather than read three times due simply to sloppy programming) - but he didn't mention whether he got the time difference between native and Linux 'date' that you reported. > So if I copy it to /compat/linux/etc/localtime >and it won't makes any difference, since it's same file. :-) But we haven't seen a trace from *your* system - if you actually have (or had) a /compat/linux/etc/localtime file, it will of course be read and no fall-through to /etc/localtime will happen - and if /compat/linux/etc/localtime has the wrong contents, you will get the wrong output from Linux 'date'. >I have downloaded tzdata-2008h-1.fc8.noarch.rpm and extracted it. Then >copy it in /compat/linux/etc/localtime and now it works correct. Only a >few seconds difference, but does not matter to me. And if you remove it, i.e. no /compat/linux/etc/localtime at all, what is the result? Not having it would seem to be the sane solution - it's certainly the case for linux_base-fc-4. The /etc/localtime file on Linux as on FreeBSD is just a copy of (or link to) the appropriate zic-compiled Olson zone file - I can't claim to have investigated it, but changing the compiled format would seem to be out of the question, since it would wreak havoc with all the many Unix systems that use these files (and that periodically have to update them to cater to the whims of politicians all over the world). Hm, I guess it's possible that FC modified 'zic' from what comes with the Olson files (and their libc functions that read it to match) - but even that would seem incredibly unlikely I think, just asking for trouble. --Per Hedeland From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 21 21:45:08 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A30B1065671; Tue, 21 Oct 2008 21:45:08 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from postfix2-g20.free.fr (postfix2-g20.free.fr [212.27.60.43]) by mx1.freebsd.org (Postfix) with ESMTP id A95458FC1D; Tue, 21 Oct 2008 21:45:07 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from smtp7-g19.free.fr (smtp7-g19.free.fr [212.27.42.64]) by postfix2-g20.free.fr (Postfix) with ESMTP id 651A02BF3647; Tue, 21 Oct 2008 21:21:21 +0200 (CEST) Received: from smtp7-g19.free.fr (localhost [127.0.0.1]) by smtp7-g19.free.fr (Postfix) with ESMTP id C1E19B0163; Tue, 21 Oct 2008 23:21:35 +0200 (CEST) Received: from graf.pompo.net (unknown [78.225.128.39]) by smtp7-g19.free.fr (Postfix) with ESMTP id 687E5B010A; Tue, 21 Oct 2008 23:21:35 +0200 (CEST) Received: by graf.pompo.net (Postfix, from userid 1001) id EA4ED114B4; Tue, 21 Oct 2008 23:21:34 +0200 (CEST) Date: Tue, 21 Oct 2008 23:21:34 +0200 From: Thierry Thomas To: martinko Message-ID: <20081021212134.GA79808@graf.pompo.net> Mail-Followup-To: martinko , freebsd-ports@freebsd.org, freebsd-database@freebsd.org, freebsd-emulation@freebsd.org, rofug@rofug.ro References: <78cb3d3f0807260841k336f20a9jce857189c55adb16@mail.gmail.com> <78cb3d3f0807270122r4d2377d9gbf4e3ed5386918fa@mail.gmail.com> <20080727121503.679bc598@deskjail> <78cb3d3f0807271003q3f5ab72dr2147cf7b1a3348fc@mail.gmail.com> <48FE3708.8010501@users.sf.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <48FE3708.8010501@users.sf.net> X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc; y=\ipKMNm<1J>lv@PP~7Z<.t KjAnXLs: User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-STABLE i386 Organization: Kabbale Eros X-PGP: 0xC71405A2 Cc: freebsd-database@freebsd.org, freebsd-emulation@freebsd.org, rofug@rofug.ro, freebsd-ports@freebsd.org Subject: Re: Q: Is there any use for Oracle database port installation under Linux compat root ? 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: Tue, 21 Oct 2008 21:45:08 -0000 Le Mar 21 oct 08 à 22:09:44 +0200, martinko écrivait : > Hi, Hello, > No Oracle installation I have ever seen was installed into /home and it > would be against Oracle Optimal Flexible Architecture (OFA) guidelines! Agreed. > /usr/local/oracle would be OK and users can move the directory tree > elsewhere afterwards. Or maybe you can ask about Oracle Base directory > during config/installation process, if possible. I would suggest to install under $ORACLE_HOME, defaulted to: ORACLE_HOME?= ${PREFIX}/oracle (or may be ${PREFIX}/oracle${VERSION} to allow the installation of different versions) Regards, -- Th. Thomas. From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 21 22:08:32 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69CFC1065670; Tue, 21 Oct 2008 22:08:32 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao103.cox.net (eastrmmtao103.cox.net [68.230.240.9]) by mx1.freebsd.org (Postfix) with ESMTP id 1501A8FC18; Tue, 21 Oct 2008 22:08:31 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao103.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20081021220830.PMOD22820.eastrmmtao103.cox.net@eastrmimpo02.cox.net>; Tue, 21 Oct 2008 18:08:30 -0400 Received: from localhost ([68.103.35.214]) by eastrmimpo02.cox.net with bizsmtp id Va8W1a00C4dCcn002a8XpR; Tue, 21 Oct 2008 18:08:31 -0400 X-Authority-Analysis: v=1.0 c=1 a=dC0I4hcmgSwA:10 a=mQ0pKyTmDyQA:10 a=6I5d2MoRAAAA:8 a=c7JW_Fr72IjVhFYCvVsA:9 a=bqZK6xiGeW_zR8hp9HUA:7 a=K3E_yJl00OyPKG8H_FKKhm7IziwA:4 a=3bxlKQrDm0cA:10 a=4vB-4DCPJfMA:10 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 X-CM-Score: 0.00 Date: Tue, 21 Oct 2008 22:08:33 -0000 To: "Per Hedeland" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 References: <200810212116.m9LLGoAB098676@pluto.hedeland.org> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <200810212116.m9LLGoAB098676@pluto.hedeland.org> User-Agent: Opera Mail/9.60 (Linux) Cc: freebsd-emulation@freebsd.org, edwin@freebsd.org Subject: Re: Kind of solved.. [WAS: Re: Linux compat 2.6.16 reports time incorrect?] 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: Tue, 21 Oct 2008 22:08:32 -0000 On Tue, 21 Oct 2008 16:16:50 -0500, Per Hedeland wrote: > "Jeremy Messenger" wrote: >> >> It won't work, because if you read Boris's ktrace and you will see it >> reads in /etc/localtime. > > Boris' ktrace did indeed show that (though I don't know how he deduced > that the file was "rejected", rather than read three times due simply to > sloppy programming) - but he didn't mention whether he got the time > difference between native and Linux 'date' that you reported. > >> So if I copy it to /compat/linux/etc/localtime >> and it won't makes any difference, since it's same file. :-) > > But we haven't seen a trace from *your* system - if you actually have > (or had) a /compat/linux/etc/localtime file, it will of course be read > and no fall-through to /etc/localtime will happen - and if > /compat/linux/etc/localtime has the wrong contents, you will get the > wrong output from Linux 'date'. We get same trace, but only a bit different on read "TZif\0\0\0[...]" part. I ran ktrace/linux_kdump with no /compat/linux/etc/localtime and it's complete default beside of that OVERRIDE_LINUX_BASE_PORT=f8 and compat.linux.osrelease=2.6.16. http://people.freebsd.org/~mezz/date_linux_kdump.txt >> I have downloaded tzdata-2008h-1.fc8.noarch.rpm and extracted it. Then >> copy it in /compat/linux/etc/localtime and now it works correct. Only a >> few seconds difference, but does not matter to me. > > And if you remove it, i.e. no /compat/linux/etc/localtime at all, what > is the result? Not having it would seem to be the sane solution - it's > certainly the case for linux_base-fc-4. I don't have any /compat/linux/etc/localtime with both linux_base-fc-4 and linux_base-f8. The FreeBSD's tzdata is from 2004, so with linux_base-f8's tzdata 2008[a-z] does not work with FreeBSD's /etc/localtime. It's what I think this is problem for changed format in tzdata 2008[a-z], but I might be wrong. If it is indeed this problem, then it looks like we might have to add install tzdata-2008h-1.fc8.noarch.rpm and document it to tell users to copy the file by manual to have the time/date correct. Cheers, Mezz > The /etc/localtime file on Linux as on FreeBSD is just a copy of (or > link to) the appropriate zic-compiled Olson zone file - I can't claim to > have investigated it, but changing the compiled format would seem to be > out of the question, since it would wreak havoc with all the many Unix > systems that use these files (and that periodically have to update them > to cater to the whims of politicians all over the world). > > Hm, I guess it's possible that FC modified 'zic' from what comes with > the Olson files (and their libc functions that read it to match) - but > even that would seem incredibly unlikely I think, just asking for > trouble. > > --Per Hedeland -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 21 22:51:26 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BEAC1065673 for ; Tue, 21 Oct 2008 22:51:26 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id DBA698FC26 for ; Tue, 21 Oct 2008 22:51:25 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KsQ4O-0003e9-Dw for freebsd-emulation@freebsd.org; Tue, 21 Oct 2008 22:51:20 +0000 Received: from 200.41.broadband11.iol.cz ([90.178.41.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Oct 2008 22:51:20 +0000 Received: from gamato by 200.41.broadband11.iol.cz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Oct 2008 22:51:20 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-emulation@freebsd.org From: martinko Date: Wed, 22 Oct 2008 00:51:12 +0200 Lines: 48 Message-ID: References: <78cb3d3f0807260841k336f20a9jce857189c55adb16@mail.gmail.com> <78cb3d3f0807270122r4d2377d9gbf4e3ed5386918fa@mail.gmail.com> <20080727121503.679bc598@deskjail> <78cb3d3f0807271003q3f5ab72dr2147cf7b1a3348fc@mail.gmail.com> <48FE3708.8010501@users.sf.net> <20081021212134.GA79808@graf.pompo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 200.41.broadband11.iol.cz User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.17) Gecko/20081009 SeaMonkey/1.1.12 In-Reply-To: <20081021212134.GA79808@graf.pompo.net> Sender: news Cc: freebsd-database@freebsd.org, rofug@rofug.ro, freebsd-ports@freebsd.org Subject: Re: Q: Is there any use for Oracle database port installation under Linux compat root ? 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: Tue, 21 Oct 2008 22:51:26 -0000 Thierry Thomas wrote: > Le Mar 21 oct 08 à 22:09:44 +0200, martinko > écrivait : > >> Hi, > > Hello, > >> No Oracle installation I have ever seen was installed into /home and it >> would be against Oracle Optimal Flexible Architecture (OFA) guidelines! > > Agreed. > >> /usr/local/oracle would be OK and users can move the directory tree >> elsewhere afterwards. Or maybe you can ask about Oracle Base directory >> during config/installation process, if possible. > > I would suggest to install under $ORACLE_HOME, defaulted to: > > ORACLE_HOME?= ${PREFIX}/oracle > > (or may be ${PREFIX}/oracle${VERSION} to allow the installation of > different versions) > > Regards, Hallo, Well, it's a bit more complicated than that.. OFA guidelines say that $ORACLE_HOME shoud be in the form of e.g. $ORACLE_BASE/product/10.2.0/db_1 And application (DB) is installed into its $ORACLE_HOME and thus one can have many different installations of many different versions. Then there are other directories under $ORACLE_BASE that usually contain Oracle Inventory (of installed software) and DB data files etc. Usually everything under $ORACLE_BASE is created and taken care by Oracle Universal Installer (which is Java application). Another issue may be where to place oratab file. It is located in /var/opt/oracle/oratab on SunOS and in /etc/oratab on other Unixes. Cheers, Martin From owner-freebsd-emulation@FreeBSD.ORG Wed Oct 22 22:38:10 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A61E4106567F for ; Wed, 22 Oct 2008 22:38:10 +0000 (UTC) (envelope-from ady@ady.ro) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.189]) by mx1.freebsd.org (Postfix) with ESMTP id 3A0E18FC19 for ; Wed, 22 Oct 2008 22:38:09 +0000 (UTC) (envelope-from ady@ady.ro) Received: by fk-out-0910.google.com with SMTP id k31so33781fkk.11 for ; Wed, 22 Oct 2008 15:38:08 -0700 (PDT) Received: by 10.181.146.11 with SMTP id y11mr3448244bkn.5.1224713879147; Wed, 22 Oct 2008 15:17:59 -0700 (PDT) Received: by 10.181.37.7 with HTTP; Wed, 22 Oct 2008 15:17:59 -0700 (PDT) Message-ID: <78cb3d3f0810221517k780e4cafy6418c42b8c845915@mail.gmail.com> Date: Thu, 23 Oct 2008 00:17:59 +0200 From: "Adrian Penisoara" To: martinko In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <78cb3d3f0807260841k336f20a9jce857189c55adb16@mail.gmail.com> <78cb3d3f0807270122r4d2377d9gbf4e3ed5386918fa@mail.gmail.com> <20080727121503.679bc598@deskjail> <78cb3d3f0807271003q3f5ab72dr2147cf7b1a3348fc@mail.gmail.com> <48FE3708.8010501@users.sf.net> <20081021212134.GA79808@graf.pompo.net> Cc: freebsd-database@freebsd.org, freebsd-emulation@freebsd.org, rofug@rofug.ro, freebsd-ports@freebsd.org Subject: Re: Q: Is there any use for Oracle database port installation under Linux compat root ? 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: Wed, 22 Oct 2008 22:38:10 -0000 Hi, On Wed, Oct 22, 2008 at 12:51 AM, martinko wrote: > Thierry Thomas wrote: >> >> Le Mar 21 oct 08 =E0 22:09:44 +0200, martinko >> =E9crivait : >> >>> Hi, >> >> Hello, >> >>> No Oracle installation I have ever seen was installed into /home and it >>> would be against Oracle Optimal Flexible Architecture (OFA) guidelines! >> >> Agreed. >> >>> /usr/local/oracle would be OK and users can move the directory tree >>> elsewhere afterwards. Or maybe you can ask about Oracle Base directory >>> during config/installation process, if possible. >> >> I would suggest to install under $ORACLE_HOME, defaulted to: >> >> ORACLE_HOME?=3D ${PREFIX}/oracle >> >> (or may be ${PREFIX}/oracle${VERSION} to allow the installation of >> different versions) I have used a similar schema for the prefixing part, just used a different variable name. Do not confuse this with the ORACLE_HOME environment used by Oracle, what we set here is closer to the idea of ORACLE_BASE. We should not use a version field in this variable since the product version signature is further in the path (see below). >> >> Regards, > > Hallo, > > Well, it's a bit more complicated than that.. > > OFA guidelines say that $ORACLE_HOME shoud be in the form of e.g. > $ORACLE_BASE/product/10.2.0/db_1 > > And application (DB) is installed into its $ORACLE_HOME and thus one can > have many different installations of many different versions. > > Then there are other directories under $ORACLE_BASE that usually contain > Oracle Inventory (of installed software) and DB data files etc. > > Usually everything under $ORACLE_BASE is created and taken care by Oracle > Universal Installer (which is Java application). Right. See above. > > Another issue may be where to place oratab file. It is located in > /var/opt/oracle/oratab on SunOS and in /etc/oratab on other Unixes. The OracleXE packages have a hardcoded value for /etc/oratab. I'm going to leave it this way for the sake of compatibility. One more question: how usefull would it be to use the Linux (Bash) shell instead of a native (FreeBSD) shell ? Thank you for your suggestions, I'm closer to the completion of the port. Adrian. From owner-freebsd-emulation@FreeBSD.ORG Wed Oct 22 23:38:36 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED65F1065676 for ; Wed, 22 Oct 2008 23:38:36 +0000 (UTC) (envelope-from ady@ady.ro) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.186]) by mx1.freebsd.org (Postfix) with ESMTP id 8BED48FC21 for ; Wed, 22 Oct 2008 23:38:36 +0000 (UTC) (envelope-from ady@ady.ro) Received: by fk-out-0910.google.com with SMTP id k31so54457fkk.11 for ; Wed, 22 Oct 2008 16:38:34 -0700 (PDT) Received: by 10.181.150.16 with SMTP id c16mr1691153bko.150.1224718714433; Wed, 22 Oct 2008 16:38:34 -0700 (PDT) Received: by 10.181.37.7 with HTTP; Wed, 22 Oct 2008 16:38:34 -0700 (PDT) Message-ID: <78cb3d3f0810221638ua05ef45yeff0778c98b954ae@mail.gmail.com> Date: Thu, 23 Oct 2008 01:38:34 +0200 From: "Adrian Penisoara" To: freebsd-emulation , freebsd-database@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Need help diagnosing Local OS authentication issue when running OracleXE Linux 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: Wed, 22 Oct 2008 23:38:37 -0000 Hi, I am working on a FreeBSD port for the OracleXE for Linux package and I stumbled upon a collateral issue when testing the functionality of OracleXE: I am unable to manually shutdown the TNS Listener (running "lsnrctl stop"), since the listener's "Local OS authentication" appears to malfunction. This feature prevents any other OS user but the user who initially started the listener to execute administrative tasks on the listener, including shutting down the listener. The listener process is a background service and accepts commands through the standard 1521 TCP port from the administration tool. I guess there is a problem when "emulating" the Linux kernel/library calls related to OS credentials for network sockets (?). Does anyone else have clues on this ? What would be the best way to proceed analyzing the issue -- e.g. how should I trace the execution for the running listener process (and eventually compare to a trace ran on a real Linux machine) ? Thank you, Adrian Penisoara Ady (@freebsd.ady.ro) From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 23 04:38:12 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B4AD106566B for ; Thu, 23 Oct 2008 04:38:12 +0000 (UTC) (envelope-from root@dchagin.dialup.corbina.ru) Received: from contrabass.post.ru (contrabass.post.ru [85.21.78.5]) by mx1.freebsd.org (Postfix) with ESMTP id B02CF8FC1F for ; Thu, 23 Oct 2008 04:38:11 +0000 (UTC) (envelope-from root@dchagin.dialup.corbina.ru) Received: from corbina.ru (mail.post.ru [195.14.50.16]) by contrabass.post.ru (Postfix) with ESMTP id 5D92519E79; Thu, 23 Oct 2008 08:38:09 +0400 (MSD) X-Virus-Scanned: by cgpav Uf39PSi9pFi9oFi9 Received: from dchagin.dialup.corbina.ru ([78.107.232.239] verified) by corbina.ru (CommuniGate Pro SMTP 5.1.14) with ESMTPS id 1371370888; Thu, 23 Oct 2008 08:38:09 +0400 Received: from dchagin.dialup.corbina.ru (localhost.chd.net [127.0.0.1]) by dchagin.dialup.corbina.ru (8.14.3/8.14.2) with ESMTP id m9N4c71v001568; Thu, 23 Oct 2008 08:38:07 +0400 (MSD) (envelope-from root@dchagin.dialup.corbina.ru) Received: (from root@localhost) by dchagin.dialup.corbina.ru (8.14.3/8.14.2/Submit) id m9N4c24A001567; Thu, 23 Oct 2008 08:38:02 +0400 (MSD) (envelope-from root) Date: Thu, 23 Oct 2008 08:38:02 +0400 From: Chagin Dmitry To: Adrian Penisoara Message-ID: <20081023043802.GA1530@dchagin.dialup.corbina.ru> References: <78cb3d3f0810221638ua05ef45yeff0778c98b954ae@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <78cb3d3f0810221638ua05ef45yeff0778c98b954ae@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-database@freebsd.org, freebsd-emulation Subject: Re: Need help diagnosing Local OS authentication issue when running OracleXE Linux 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, 23 Oct 2008 04:38:12 -0000 On Thu, Oct 23, 2008 at 01:38:34AM +0200, Adrian Penisoara wrote: > Hi, > > I am working on a FreeBSD port for the OracleXE for Linux package > and I stumbled upon a collateral issue when testing the functionality > of OracleXE: I am unable to manually shutdown the TNS Listener > (running "lsnrctl stop"), since the listener's "Local OS > authentication" appears to malfunction. > This feature prevents any other OS user but the user who initially > started the listener to execute administrative tasks on the listener, > including shutting down the listener. The listener process is a > background service and accepts commands through the standard 1521 TCP > port from the administration tool. I guess there is a problem when > "emulating" the Linux kernel/library calls related to OS credentials > for network sockets (?). > Hi, yes, this problem well-known to us :) please, see kern/102956 for full description. I think that this PR will be closed soon. > Does anyone else have clues on this ? > What would be the best way to proceed analyzing the issue -- e.g. > how should I trace the execution for the running listener process (and > eventually compare to a trace ran on a real Linux machine) ? > -- Have fun! chd From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 23 17:58:14 2008 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67B701065674; Thu, 23 Oct 2008 17:58:14 +0000 (UTC) (envelope-from bsam@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3E0D68FC1E; Thu, 23 Oct 2008 17:58:14 +0000 (UTC) (envelope-from bsam@FreeBSD.org) Received: from freefall.freebsd.org (bsam@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9NHwEk1021739; Thu, 23 Oct 2008 17:58:14 GMT (envelope-from bsam@freefall.freebsd.org) Received: (from bsam@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9NHwDSl021735; Thu, 23 Oct 2008 17:58:13 GMT (envelope-from bsam) Date: Thu, 23 Oct 2008 17:58:13 GMT Message-Id: <200810231758.m9NHwDSl021735@freefall.freebsd.org> To: vicedar@gmail.com, bsam@FreeBSD.org, freebsd-emulation@FreeBSD.org From: bsam@FreeBSD.org Cc: Subject: Re: ports/128160: emulators/linux_base-fc4 tries to use a lot of old fedora core 4 mirrors 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, 23 Oct 2008 17:58:14 -0000 Synopsis: emulators/linux_base-fc4 tries to use a lot of old fedora core 4 mirrors State-Changed-From-To: open->closed State-Changed-By: bsam State-Changed-When: Thu Oct 23 17:57:50 UTC 2008 State-Changed-Why: A patch is committed. Thanks for the report! http://www.freebsd.org/cgi/query-pr.cgi?pr=128160 From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 23 19:10:04 2008 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D07DD1065684 for ; Thu, 23 Oct 2008 19:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BF7638FC13 for ; Thu, 23 Oct 2008 19:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9NJA4Ev072973 for ; Thu, 23 Oct 2008 19:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9NJA4D5072972; Thu, 23 Oct 2008 19:10:04 GMT (envelope-from gnats) Date: Thu, 23 Oct 2008 19:10:04 GMT Message-Id: <200810231910.m9NJA4D5072972@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: ports/128160: commit references a PR X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2008 19:10:04 -0000 The following reply was made to PR ports/128160; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/128160: commit references a PR Date: Thu, 23 Oct 2008 19:05:11 +0000 (UTC) bsam 2008-10-23 19:04:57 UTC FreeBSD ports repository Modified files: Mk bsd.sites.mk Log: Fedora Core 4,5,6 becomes absoleted versions and their official site moves to one location: http://archives.fedoraproject.org/pub/archive/fedora/linux/core/ Other Fedora versions (7 and newer) are not touched. Add the abovementioned URL to MASTER_SITE_FEDORA_LINUX (at the first place). PR: 128160 Submitted by: Savvas Radevic Revision Changes Path 1.460 +2 -1 ports/Mk/bsd.sites.mk _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 23 19:41:56 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D0E310656A5 for ; Thu, 23 Oct 2008 19:41:56 +0000 (UTC) (envelope-from datahead4@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id 2F4438FC23 for ; Thu, 23 Oct 2008 19:41:55 +0000 (UTC) (envelope-from datahead4@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so1578852uge.39 for ; Thu, 23 Oct 2008 12:41:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=XDKa5RjNmT9IW1A8QW7oDU+Z6u9CElbn40fLkRh2jTU=; b=uLzLW2ItA2gnlgR0ql7ni0FqDPWa2nqLbUaK5SmFu5AOuna8kscklfhYr/1Y+2QgpS ZxoQeEK9taoLRylqg5XIjr2fgqRr5psq8j5YtZMgZj+oZNtK99H/NKljQqzf9WobUEr2 vY3yzJlqHgysRB8Na3FLO4f67EPrh4KrNK/NY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=RrHP07Yknrl5ljHITUF/fPFzs8kv8nTt+83tmCeChbs2lfa4umF0dnRgJXRCwW0EyR WTjuY1jU5yMYJlAAC9TSRktgPJ3fbklZCymkzlX4RskxL9gucNQHvGBzgvw+xiv6EE50 GgHoingwD03FQNZWqJY3OhbPUnyeLo04CBSlw= Received: by 10.210.24.12 with SMTP id 12mr1202662ebx.42.1224790914869; Thu, 23 Oct 2008 12:41:54 -0700 (PDT) Received: by 10.210.49.15 with HTTP; Thu, 23 Oct 2008 12:41:54 -0700 (PDT) Message-ID: Date: Thu, 23 Oct 2008 14:41:54 -0500 From: Matt To: freebsd-emulation@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Using an updated x11/linux-xorg-libs port with linux_base-f8 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, 23 Oct 2008 19:41:56 -0000 Hello. What is the recommended way to build/install an updated x11/linux-xorg-libs with linux_base-f8? It was recently pointed out on the nV News forums that x11/linux-xorg-libs is using Fedora 4 libraries (see link below) and I am curious if there is a recommended way to get updated linux-xorg-libs from Fedora 8. http://www.nvnews.net/vbulletin/showthread.php?p=1817791#post1817791 Thanks, Matt From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 23 21:58:04 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6763D1065673 for ; Thu, 23 Oct 2008 21:58:04 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 22BAF8FC0A for ; Thu, 23 Oct 2008 21:58:03 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from [85.173.17.44] (helo=moosa) by services.ipt.ru with esmtpa (Exim 4.54 (FreeBSD)) id 1Kt8Bt-0004Fh-MV; Fri, 24 Oct 2008 01:58:01 +0400 To: Matt References: From: Boris Samorodov Date: Fri, 24 Oct 2008 01:57:52 +0400 In-Reply-To: (Matt's message of "Thu\, 23 Oct 2008 14\:41\:54 -0500") Message-ID: <02394655@ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-emulation@freebsd.org Subject: Re: Using an updated x11/linux-xorg-libs port with linux_base-f8 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, 23 Oct 2008 21:58:04 -0000 On Thu, 23 Oct 2008 14:41:54 -0500 Matt wrote: > What is the recommended way to build/install an updated > x11/linux-xorg-libs with linux_base-f8? It was recently pointed out > on the nV News forums that x11/linux-xorg-libs is using Fedora 4 > libraries (see link below) and I am curious if there is a recommended > way to get updated linux-xorg-libs from Fedora 8. > http://www.nvnews.net/vbulletin/showthread.php?p=1817791#post1817791 There is no official way so far. But it is planned for the near future. Stay tuned. WBR -- bsam From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 25 10:58:51 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B20F4106567B for ; Sat, 25 Oct 2008 10:58:51 +0000 (UTC) (envelope-from martin.laabs@mailbox.tu-dresden.de) Received: from mailout2.zih.tu-dresden.de (mailout2.zih.tu-dresden.de [141.30.67.73]) by mx1.freebsd.org (Postfix) with ESMTP id 70F318FC08 for ; Sat, 25 Oct 2008 10:58:51 +0000 (UTC) (envelope-from martin.laabs@mailbox.tu-dresden.de) Received: from rmc67-31.zih.tu-dresden.de ([141.30.67.31] helo=server-n) by mailout2.zih.tu-dresden.de with esmtp (Exim 4.63) (envelope-from ) id 1KtgQE-0007xK-Fn for freebsd-emulation@freebsd.org; Sat, 25 Oct 2008 12:31:06 +0200 Received: from localhost (p5B0ECAA7.dip.t-dialin.net [91.14.202.167]) by server-n (Postfix) with ESMTP id 105BA100A091 for ; Sat, 25 Oct 2008 12:31:01 +0200 (CEST) Date: Sat, 25 Oct 2008 12:31:00 +0200 To: freebsd-emulation@freebsd.org From: "Martin Laabs" Content-Type: text/plain; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: User-Agent: Opera Mail/9.51 (Linux) X-TUD-Virus-Scanned: mailout2.zih.tu-dresden.de Subject: How to implement a new linuxulator ioctl 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, 25 Oct 2008 10:58:51 -0000 Hi, as I wrote recently on -hackers I hacked libusb in a way that it is a linux binary but uses the bsd interface for low-level usb communication. I need this for a linux binary program which uses libusb. I'd like to run this with the linuxulator. However - I realized, that the ioctls of the linuxulator are wrapped. So I have to add some ioctls to the linuxulator module in that way that they are just executed as normal (nativ) system ioctls. Libusb uses only a small number of different ioctl so that it should not be very hard. However I have not found any documentation how the ioctl mapping works. (data structures, initilisation calls and so on.) So can you give me a short guideline what I have to do/add to the linuxulator? And maybe also how I can call a nativ system ioctl out of the kernel context. Thank you, Martin L. From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 25 12:16:39 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0157F1065679 for ; Sat, 25 Oct 2008 12:16:39 +0000 (UTC) (envelope-from rdivacky@lev.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id B21E78FC1A for ; Sat, 25 Oct 2008 12:16:38 +0000 (UTC) (envelope-from rdivacky@lev.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 870189CB33B; Sat, 25 Oct 2008 14:15:42 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XdY-dSxP-q4m; Sat, 25 Oct 2008 14:15:30 +0200 (CEST) Received: from lev.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id A92589CB716; Sat, 25 Oct 2008 14:15:30 +0200 (CEST) Received: (from rdivacky@localhost) by lev.vlakno.cz (8.14.2/8.14.2/Submit) id m9PCFUVB025777; Sat, 25 Oct 2008 14:15:30 +0200 (CEST) (envelope-from rdivacky) Date: Sat, 25 Oct 2008 14:15:30 +0200 From: Roman Divacky To: Martin Laabs Message-ID: <20081025121530.GA25340@freebsd.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org Subject: Re: How to implement a new linuxulator ioctl 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, 25 Oct 2008 12:16:39 -0000 On Sat, Oct 25, 2008 at 12:31:00PM +0200, Martin Laabs wrote: > Hi, > > as I wrote recently on -hackers I hacked libusb in a > way that it is a linux binary but uses the bsd interface > for low-level usb communication. I need this for a linux binary > program which uses libusb. I'd like to run this with the > linuxulator. > However - I realized, that the ioctls of the linuxulator are > wrapped. So I have to add some ioctls to the linuxulator module > in that way that they are just executed as normal (nativ) > system ioctls. > Libusb uses only a small number of different ioctl so that > it should not be very hard. However I have not found any > documentation how the ioctl mapping works. (data structures, > initilisation calls and so on.) > So can you give me a short guideline what I have to do/add to > the linuxulator? > And maybe also how I can call a nativ system ioctl out of > the kernel context. take a look at sys/compat/linux/linux_ioctl.c basically the linux_ioctl() syscall iterates over a set of ioctl handlers and if one matches (the ioctl number is within its declared range) it calls that it's all contained in the file so you should be able to find out quickly how it works good luck! roman