From owner-freebsd-ports@FreeBSD.ORG Sun Oct 28 00:53:32 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B99516A420 for ; Sun, 28 Oct 2007 00:53:32 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id 9095513C4A8 for ; Sun, 28 Oct 2007 00:53:31 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so964690uge for ; Sat, 27 Oct 2007 17:53:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=/ZzDGlIWu0lEwpoffJrYZ5NhCdFoIjEPbmEifwkE00g=; b=Vzr2rK3G30GEqCwDBIDSrlziYJpB6fELZdMyKL4QjFMQlOTqc92yTPK8wzaSx0MgY13MDalVhZ02xdZl/h2FC/lKtt5TnVVoZY4pkoXBTFrRixDX5r5bAflUURiH/JWco5HuAvP8h9RPq3KyiU4s4hzksbEjjWyU9Ut1gRpmb3U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GnInecn+qJTZw+DWa6RPsbp+BbH/KxCMbodkGpG73NP3ZioxLaCs7OZjEAJ8b+iAeDu4GLy9ngleaj7IqPxmM/dtDLY2UtjjmeAaGkuBQJVBh9JoIMQ8IWgVec9eswyPcaUPNnfvw3NnXHe22KupMJFraGEn0kuYZ/saeNKFyhs= Received: by 10.66.249.16 with SMTP id w16mr3069724ugh.1193532810221; Sat, 27 Oct 2007 17:53:30 -0700 (PDT) Received: by 10.67.30.5 with HTTP; Sat, 27 Oct 2007 17:53:30 -0700 (PDT) Message-ID: Date: Sat, 27 Oct 2007 22:53:30 -0200 From: "Carlos A. M. dos Santos" To: "FreeBSD Ports List" , "Alexey Dokuchaev" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071027155509.GA34300@ravenloft.kiev.ua> Cc: Subject: Re: Proposition: make x11/nvidia-driver independent of misc/compat5x X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2007 00:53:32 -0000 On 10/27/07, Carlos A. M. dos Santos wrote: > On 10/27/07, Alex Kozlov wrote: > > On Sat, Oct 27, 2007 at 11:33:46AM -0200, Carlos A. M. dos Santos wrote: > > > Hello, > > > > > > Using the patch below it is possible to make x11/nvidia-driver > > > independent of misc/compat5x, by means of some library mapping. I did > > > this successfuly on 6.x but still did not test on 7.x. I would like to > > > hear some comments before submitting a PR with a change request. > > I think this is more correct variant: > > > > $cat /etc/libmap.conf > > #nvidia-driver > > [/usr/local/lib/libGL.so.1] > > libm.so.3 libm.so.4 > > > > [/usr/local/lib/libXvMCNVIDIA.so.1] > > libc.so.5 libc.so.6 > > > > [/usr/local/lib/libXvMCNVIDIA_dynamic.so.1] > > libc.so.5 libc.so.6 > > > > [/usr/local/lib/libnvidia-cfg.so.1] > > libm.so.3 libm.so.4 > > Ah, I forgot that one. Good catch. > > > [/usr/local/lib/xorg/modules/libwfb.so] > > libm.so.3 libm.so.4 > > librpcsvc.so.2 librpcsvc.so.3 > > If I specify the full path the mapping does not work. The X server > still loades, but gives me the following message: > > dlopen: Shared object "libm.so.3" not found, required by "libwfb.so" > > Additionally, I believe the we should not specify full paths in the > mappings. If we do so, then we must provide them for both /usr/local > (Xorg 7 and above) and for /usr/X11R6. This is because the user may > still have applications linked to libGL.so.1 with the argument "-R > /usr/X11R6/lib" given to ld. libmap libmap doe not translate the path > by means of the symbolic link /usr/X11R6. ... so my patch now becomes the one provided below. Extract it piping this message to b64decode -o /dev/stdout | gzip -d > nvidia-driver.diff CC to the port maintainer now. I suppose that he subscribes the list but, well, just in case. -- Carlos A. M. dos Santos begin-base64 644 nvidia-driver.diff.gz H4sIAOfaI0cAA61V227aQBB9xl8xouXJ+AYBGktUQHFSS9yEaZqqqtDaXsMqttfympui/HvHJg1R IQmtIln24pk5Mz5nZvBZEIDir1JIeJoJladsoW0NQ4vXzGdE8VO2pqk2JHc0YCHde73iICmKch5U achjcGgCRgv0mlnDqw41XW9Jsiy/mafkkAzGXga1FhiGaTRM42If3emA8qlRbYGM90vodCRQaeyz QAI8sQA+3o+dG2vq2OPRA3xuQ1PX9XpdUgZ2b963Jtao78jtUqTWzY/3k/F05vTt6YMWMeFpHo8S kjW2kux8680HtjNDz5Fl9fHcG3Yn7XJZklUaCvqyRwdBIhpnUH5eWMJFpiC2tzRBdeyBNZpJ/nna 5HQILblbKBEVgiyoyuIX+Tvl/LZmp6IK/bqrBbIO+qXZaJp68239TiI90xLb4EI3a82DloZebYKM 97peiClBxmHHkRXN5TzTQk58mqoejwMVrXKl8ozuSuUHXwEJBYeYUj8PJT4+lhQCHoZ8w+IFhCym 4oBKM08LmRuRpAA1jyCPXpQ+QHxj9+0ujBMaXw8Q0U1Jujt2/ImW64EquGr8OrbmWXNbvVR6Ol+c kT5HfaTZCxbvjf73x+2VPF3FJnAR9r+T56Y08cTay+21ve/hRf1fqr1dvy7D7Xr4ZVS4vkJYkbax r6M4N8+U44A+93cxiZj3zllm2ML7xiUuX1MgKcUW9/KhSneAG+AqpbTn9KGpboHE/qObSz2yEjSf gCPIPV0MIZOUYzvhvLi7P3Tm+O6KhRkOTvoE3lC36nGtYAf5LBX++bAxUewD2LBsCd/t2df51dSy MH7evZ60d1RUIcK9DmKFSfLAJVlTCcgiUe843NE0piFE3F/hH1C+gnGH+MU3sVhkJMRfVRAs9pCB YgryqA0LQwl8ij3rA24qllUBC8+R93P+CPuEVxRX9umaIQ6mLqsAY6QpVaTf1wNzbSUHAAA= ====