Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Jul 2011 19:58:49 -0500
From:      Stephen Montgomery-Smith <stephen@missouri.edu>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        "danfe@FreeBSD.org" <danfe@FreeBSD.org>, "x11@FreeBSD.org" <x11@FreeBSD.org>
Subject:   Re: x11/nvidia-driver incompatible with portmaster?
Message-ID:  <4E0FBEC9.2000304@missouri.edu>
In-Reply-To: <4E0FBC2A.9090809@FreeBSD.org>
References:  <4E0796A6.3040909@missouri.edu> <4E07A18B.2010205@FreeBSD.org> <4E0F90C6.5020704@missouri.edu> <4E0FB406.4040308@FreeBSD.org> <4E0FB86B.7020700@missouri.edu> <4E0FBC2A.9090809@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 07/02/2011 07:47 PM, Doug Barton wrote:
> On 07/02/2011 17:31, Stephen Montgomery-Smith wrote:
>> On 07/02/2011 07:12 PM, Doug Barton wrote:
>>> On 07/02/2011 14:42, Stephen Montgomery-Smith wrote:
>>>> Are x11-server/x11-server and x11/nvidia-driver together incompatible
>>>> with portmaster?
>>>>
>>>> If you install x11-server/xorg-server, and then install
>>>> x11/nvidia-driver, then "pkg_delete -f" and reinstall xorg-server, then
>>>> it seems to me that x11/nvidia-driver will be broken, because
>>>> xorg-server will overwrite lib/xorg/modules/extensions/libgl.*, and
>>>> nvidia-driver also writes these files.
>>>>
>>>> I know that x11/nvidia-driver restores the libgl.* files when it is
>>>> deinstalled. But it is portmaster's use of "pkg_delete -f" that concerns
>>>> me.
>>>
>>> This is a known problem, and has nothing to do with portmaster. If you
>>> deinstall nvidia-driver first it restores the xorg-server files to the
>>> prior state. If you do xorg-server first, doing the install of
>>> nvidia-driver with -DFORCE_PKG_REGISTER (without deinstalling first)
>>> should do the trick.
>>>
>>>
>>> hth,
>>>
>>> Doug
>>>
>>
>> Yes, I knew the solution.
>>
>> But I was really offering this as a reason to have some kind of
>> "NO_REINSTALL" flag, or something similar. Something that tells
>> portmaster that it shouldn't deinstall xorg-server without deinstalling
>> nvidia-driver first.
>
> It wouldn't be a NO_REINSTALL case (unless I'm missing something) but
> you're right that we don't have a way to represent "Don't deinstall this
> port if that port is installed."
>

You are correct.  It wouldn't be NO_REINSTALL.

But would you guys be interested in some creative way to make this work? 
  Perhaps xorg-server could be modified to first check "pkg_info | grep 
nvidia-driver", and if this comes up true, then the xorg-server port and 
package would not install libgl.*.

I could do something like this, but before I work on it and put forth a 
proof of concept, I would first like to hear good reasons why I this 
might be a bad idea.

Thanks, Stephen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E0FBEC9.2000304>