From owner-freebsd-x11@FreeBSD.ORG Sun Jul 3 12:45:51 2011 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3F4B106564A for ; Sun, 3 Jul 2011 12:45:51 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9BF908FC08 for ; Sun, 3 Jul 2011 12:45:51 +0000 (UTC) Received: by pvg11 with SMTP id 11so5337636pvg.13 for ; Sun, 03 Jul 2011 05:45:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=HZIT6oRSyjLVa+uJCOEsCQ+WG1AlFg0ZTwNF5WgobEU=; b=RHZJCBa6KXpltcdiuEJXBzNIwu26hKYVhe3+JqU8dRsnYOR4NLw8Nnx8Iz0igd64OA yonD8Xg+FHOVHAbyh2IY8L4Jc1b2jAHQxNvW1rqn298FB5ykuwVDReDXkTnOy9HlWUtP 6QhBZjYNiVgc3EA9x96XkkxbAwuP5odOFu5NM= MIME-Version: 1.0 Received: by 10.68.63.36 with SMTP id d4mr6483959pbs.223.1309697151028; Sun, 03 Jul 2011 05:45:51 -0700 (PDT) Received: by 10.68.64.104 with HTTP; Sun, 3 Jul 2011 05:45:50 -0700 (PDT) In-Reply-To: <20110703114104.GK48734@deviant.kiev.zoral.com.ua> References: <4E0FCDD1.7050809@missouri.edu> <4E0FD8DC.20700@missouri.edu> <20110703114104.GK48734@deviant.kiev.zoral.com.ua> Date: Sun, 3 Jul 2011 12:45:50 +0000 Message-ID: From: "b. f." To: Kostik Belousov Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-x11@FreeBSD.org" Subject: Re: x11/nvidia-driver incompatible with portmaster? X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jul 2011 12:45:51 -0000 On 7/3/11, Kostik Belousov wrote: > On Sun, Jul 03, 2011 at 03:54:15AM +0000, b. f. wrote: >> On 7/3/11, Stephen Montgomery-Smith wrote: >> > On 07/02/2011 09:02 PM, Stephen Montgomery-Smith wrote: >> >> On 07/02/2011 08:39 PM, b. f. wrote: ... > > That said, there is absolutely no need in any static linker tricks, > esp. a heavy one like filters or linker scripts. A symlink named What is the overhead of rtld filtering? > libGL.so would be enough for the static linker, pointing to any > of two libraries. And symlink libGL.so.1 would be also enough > for dynamic linker. > > The real issue with xorg-server, mesa and nvidia driver is only > the overwrite of extensions/libglx.so and lib/libGL.so.1. If > this can be somewhat solved by the packaging system, that would > be great. On my hybrid laptop I have to manually manage the > said symlinks (actually, with the rc script that verifies > the list of pci devices and arranges the symlinks). So basically, you would prefer that we: patch xorg-server so that it installs, e.g., ${PREFIX}/lib/xorg/modules/extensions/libglx-xorg.so.1 instead of ${PREFIX}/lib/xorg/modules/extensions/libglx.so.1, and points the symlink ${PREFIX}/lib/xorg/modules/extensions/libglx-xorg.so at the former; patch libGL so that it installs, e.g., ${PREFIX}/lib/libGL-mesa.so.1 instead of ${PREFIX}/lib/libGL.so.1, and points the symlink ${PREFIX}/lib/libGL.so at the former; and patch nvidia-driver so that it installs, e.g., ${PREFIX}/lib/xorg/modules/extensions/libglx-nvidia.so.1 instead of ${PREFIX}/lib/xorg/modules/extensions/libglx.so.1, and ${PREFIX}/lib/libGL-nvidia.so.1 instead of ${PREFIX}/lib/libGL.so.1; and during installation it overwrites the ${PREFIX}/lib/xorg/modules/extensions/libglx-xorg.so and ${PREFIX}/lib/libGL.so symlinks, redirecting them to the corresponding nvidia libraries; while during deinstallation it changes them to point to the mesa/xorg libraries? And corresponding redirection to handle the libtool archive file? b.