From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jul 1 18:10:03 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B2541065677 for ; Wed, 1 Jul 2009 18:10:03 +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 DA1C58FC28 for ; Wed, 1 Jul 2009 18:10:02 +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 n61IA2wH079104 for ; Wed, 1 Jul 2009 18:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n61IA27x079103; Wed, 1 Jul 2009 18:10:02 GMT (envelope-from gnats) Resent-Date: Wed, 1 Jul 2009 18:10:02 GMT Resent-Message-Id: <200907011810.n61IA27x079103@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexander Best Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 42B4B106564A for ; Wed, 1 Jul 2009 18:08:35 +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 168858FC08 for ; Wed, 1 Jul 2009 18:08:35 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n61I8YQD098255 for ; Wed, 1 Jul 2009 18:08:34 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n61I8Y8Z098248; Wed, 1 Jul 2009 18:08:34 GMT (envelope-from nobody) Message-Id: <200907011808.n61I8Y8Z098248@www.freebsd.org> Date: Wed, 1 Jul 2009 18:08:34 GMT From: Alexander Best To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/136229: [linux] linux_base* and /usr/compat/linux/usr/(local & X11R6) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2009 18:10:03 -0000 >Number: 136229 >Category: ports >Synopsis: [linux] linux_base* and /usr/compat/linux/usr/(local & X11R6) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jul 01 18:10:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Alexander Best >Release: 8.0-CURRENT >Organization: >Environment: FreeBSD moshnroll 8.0-CURRENT FreeBSD 8.0-CURRENT #5 r195173M: Mon Jun 29 22:11:48 CEST 2009 root@moshnroll:/usr/obj/usr/src/sys/ARUNDEL i386 >Description: a few linux apps look for certain libraries using a hardcoded path. here's the output of `/usr/local/lib/quake4/quake4.x86` e.g.: quake4.x86: libSDL-1.2.so.0 => /usr/local/lib/libSDL-1.2.so.0 (0x284dd000) libpthread.so.0 => /lib/libpthread.so.0 (0x28584000) libdl.so.2 => /lib/libdl.so.2 (0x2859e000) libX11.so.6 => /usr/local/lib/libX11.so.6 (0x285a3000) libXext.so.6 => /usr/local/lib/libXext.so.6 (0x286a4000) libz.so.1 => /lib/libz.so.1 (0x286b4000) libstdc++.so.6 => /usr/local/lib/libstdc++.so.6 (0x286c9000) libm.so.6 => /lib/libm.so.6 (0x287b9000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x287e2000) libc.so.6 => /lib/libc.so.6 (0x287f0000) /lib/ld-linux.so.2 (0x284ba000) libxcb-xlib.so.0 => /usr/local/lib/libxcb-xlib.so.0 (0x28968000) libxcb.so.1 => /usr/local/lib/libxcb.so.1 (0x2896b000) libXau.so.6 => /usr/local/lib/libXau.so.6 (0x28987000) libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6 (0x2898a000) so ports/games/linux-quake4 e.g. looks for them in "/usr/local/lib" others use "/usr/X11R6/lib". these dirs get translated into "/usr/compat/linux/${ACTUAL_DIR}". but since all libs get installed into "/usr/compat/linux/usr/lib" those apps are unable to find the libs they need and thus fail. how about changing all the linux_base* ports so they create symlinks to local and X11R6. this is how my /usr/compat/linux/usr dir looks like (`ls -la`): total 1 drwxr-xr-x 12 root wheel 512 1 Jul 19:50 . drwxr-xr-x 17 root wheel 512 28 Jun 14:57 .. lrwxr-xr-x 1 root wheel 6 1 Jul 19:50 X11R6 -> ../usr drwxr-xr-x 2 root wheel 3072 28 Jun 21:48 bin drwxr-xr-x 2 root wheel 512 7 Jun 11:04 etc drwxr-xr-x 2 root wheel 512 7 Jun 11:04 games drwxr-xr-x 2 root wheel 512 7 Jun 11:04 include drwxr-xr-x 4 root wheel 512 7 Jun 11:04 kerberos drwxr-xr-x 17 root wheel 7680 1 Jul 19:45 lib drwxr-xr-x 3 root wheel 512 7 Jun 11:05 libexec lrwxr-xr-x 1 root wheel 5 11 Jun 18:39 local -> X11R6 drwxr-xr-x 2 root wheel 512 28 Jun 21:23 sbin drwxr-xr-x 24 root wheel 512 18 Jun 00:19 share drwxr-xr-x 3 root wheel 512 7 Jun 11:04 src lrwxr-xr-x 1 root wheel 8 7 Jun 11:05 tmp -> /var/tmp >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: