From nobody@FreeBSD.org  Tue Aug 25 13:36:22 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 61171106568F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 25 Aug 2009 13:36:22 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 4F4B68FC29
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 25 Aug 2009 13:36:22 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7PDaL5C091417
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 25 Aug 2009 13:36:21 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n7PDaLRp091416;
	Tue, 25 Aug 2009 13:36:21 GMT
	(envelope-from nobody)
Message-Id: <200908251336.n7PDaLRp091416@www.freebsd.org>
Date: Tue, 25 Aug 2009 13:36:21 GMT
From: Martin Laabs <info@martinlaabs.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Linux emulation do not list all files/directories
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         138169
>Category:       ports
>Synopsis:       emulators/linux_base-f8: Linux emulation do not list all files/directories
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bsam
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 25 13:40:02 UTC 2009
>Closed-Date:    Tue Sep 08 09:17:02 UTC 2009
>Last-Modified:  Tue Sep  8 09:20:01 UTC 2009
>Originator:     Martin Laabs
>Release:        7.2-STABLE
>Organization:
-
>Environment:
FreeBSD pc.martinlaabs.de 7.2-STABLE FreeBSD 7.2-STABLE #1: Sat Aug 15 18:48:58 CEST 2009     martin@pc.martinlaabs.de:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
I run several applications with the linux emulation. I.e. skype, some java application with the linux jre and an proprietary (motiv based)  CAD program. And these programs show the same behavior: Some files and directories are missing when I open the file open dialogs. I can not find any regularity which file/directory is shown and which isn't. You can reproduce this behavior also with the linux sh.

Here some information about my system:

bash:~$ cat /etc/make.conf
[...]
OVERRIDE_LINUX_BASE_PORT=f8
[...]

bash:/var/db/pkg$ ls -d linux_base* linux-f8-*
linux-f8-alsa-lib-1.0.15                linux-f8-openssl-0.9.8b
linux-f8-atk-1.20.0                     linux-f8-pango-1.18.4
linux-f8-cairo-1.4.14                   linux-f8-png-1.2.22
linux-f8-expat-2.0.1                    linux-f8-tiff-3.8.2
linux-f8-gtk2-2.12.8                    linux-f8-xorg-libs-7.3_2
linux-f8-hicolor-icon-theme-0.5_1       linux_base-f8-8_11

bash:/var/db/pkg$ mount
dev/ufs/root on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ufs/tmp on /tmp (ufs, local)
/dev/ufs/usr on /usr (ufs, local, soft-updates)
/dev/ufs/var on /var (ufs, local, soft-updates)
/dev/ufs/media on /media (ufs, local, soft-updates)
/dev/ufs/home on /home (ufs, local, soft-updates)
linprocfs on /usr/compat/linux/proc (linprocfs, local)
procfs on /proc (procfs, local)


>How-To-Repeat:
bash:~$ ls -a /media
.               .snap           Hoerspiele
.              Films           Music
bash:~$ /compat/linux/bin/sh 
sh:~$ ls -a /media
.  ..
sh:~$ exit
bash:~$ 

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->bsam 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Aug 25 15:18:59 UTC 2009 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138169 

From: Boris Samorodov <bsam@ipt.ru>
To: bug-followup@FreeBSD.org,info@martinlaabs.de
Cc:  
Subject: Re: kern/138169: emulators/linux_base-f8: Linux emulation do not list all files/directories
Date: Tue, 25 Aug 2009 19:33:01 +0400

 Aha, I see a regularity. Please, remove the directory
 /compat/linux/media and see if it helps.
 
 -- 
 WBR, bsam
State-Changed-From-To: open->feedback 
State-Changed-By: bsam 
State-Changed-When: Tue Aug 25 15:46:35 UTC 2009 
State-Changed-Why:  
Awaiting for a feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138169 

From: Martin Laabs <info@martinlaabs.de>
To: Boris Samorodov <bsam@ipt.ru>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/138169: emulators/linux_base-f8: Linux emulation do not
 list all files/directories
Date: Tue, 25 Aug 2009 18:01:10 +0200

 Boris Samorodov wrote:
 > Aha, I see a regularity. Please, remove the directory
 > /compat/linux/media and see if it helps.
 
 Ah - it works.
 
 Thank you very much,
 
   Martin L.
 

From: Boris Samorodov <bsam@ipt.ru>
To: Martin Laabs <info@martinlaabs.de>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/138169: emulators/linux_base-f8: Linux emulation do not list all files/directories
Date: Tue, 25 Aug 2009 20:39:23 +0400

 On Tue, 25 Aug 2009 18:01:10 +0200 Martin Laabs wrote:
 > Boris Samorodov wrote:
 > > Aha, I see a regularity. Please, remove the directory
 > > /compat/linux/media and see if it helps.
 
 > Ah - it works.
 > Thank you very much,
 
 Thanks for the PR and the feedback.
 
 If linuxulator accesses a <directory> it is searched at (en brief):
 . /compat/linux/<directory>, if not found,
 . <directory>...
 
 But if it is found at stage 1, this directory is used.
 
 That's why all common native FreeBSD and Linux (under /compat/linux)
 got deletted at linux base ports before install. This particular
 directory (/media) was missed. BTW, this bug is presented at all
 linux_base ports. You were first to face and report it. Thanks!
 
 I'll try to fix linux base ports ASAP.
 
 -- 
 WBR, Boris Samorodov (bsam)
 Research Engineer, http://www.ipt.ru Telephone & Internet SP
 FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
State-Changed-From-To: feedback->open 
State-Changed-By: bsam 
State-Changed-When: Tue Aug 25 16:49:57 UTC 2009 
State-Changed-Why:  
A patch for linux base ports is being worked on. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138169 
State-Changed-From-To: open->closed 
State-Changed-By: bsam 
State-Changed-When: Tue Sep 8 09:16:43 UTC 2009 
State-Changed-Why:  
Linux base ports are fixed. Thanks for the report! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138169 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/138169: commit references a PR
Date: Tue,  8 Sep 2009 09:16:41 +0000 (UTC)

 bsam        2009-09-08 09:16:28 UTC
 
   FreeBSD ports repository
 
   Modified files:
     emulators/linux_base-f10 Makefile pkg-plist 
     emulators/linux_base-f7 Makefile pkg-plist 
     emulators/linux_base-f8 Makefile pkg-plist 
     emulators/linux_base-f9 Makefile pkg-plist 
     emulators/linux_base-fc4 Makefile pkg-install pkg-plist 
     emulators/linux_base-fc6 Makefile pkg-install pkg-plist 
   Log:
   Remove /compat/linux/media from linux_base ports since the native
   FreeBSD /media can not be accessed by a linux application.
   
   PR:             ports/138169
   Submitted by:   Martin Laabs <info at martinlaabs.de>
   
   Revision  Changes    Path
   1.56      +2 -2      ports/emulators/linux_base-f10/Makefile
   1.33      +0 -2      ports/emulators/linux_base-f10/pkg-plist
   1.40      +2 -2      ports/emulators/linux_base-f7/Makefile
   1.21      +0 -2      ports/emulators/linux_base-f7/pkg-plist
   1.53      +2 -2      ports/emulators/linux_base-f8/Makefile
   1.30      +0 -2      ports/emulators/linux_base-f8/pkg-plist
   1.55      +2 -2      ports/emulators/linux_base-f9/Makefile
   1.32      +0 -2      ports/emulators/linux_base-f9/pkg-plist
   1.33      +2 -2      ports/emulators/linux_base-fc4/Makefile
   1.8       +0 -1      ports/emulators/linux_base-fc4/pkg-install
   1.16      +0 -1      ports/emulators/linux_base-fc4/pkg-plist
   1.36      +2 -2      ports/emulators/linux_base-fc6/Makefile
   1.10      +0 -1      ports/emulators/linux_base-fc6/pkg-install
   1.18      +0 -1      ports/emulators/linux_base-fc6/pkg-plist
 _______________________________________________
 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"
 
>Unformatted:
