[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [RFC] Embed the mesa version in the library/binary name



On Aug 14 2015 or thereabouts, Emil Velikov wrote:
> On 14 August 2015 at 20:47, Rob Clark <rclark@redhat.com> wrote:
> > On Aug 14 2015 or thereabouts, Igor Gnatenko wrote:
> >> On Aug 14, 2015 6:21 PM, "Emil Velikov" <emil.l.velikov@gmail.com> wrote:
> >> >
> >> > Hello all,
> >> Hi,
> >> >
> >> > My name is Emil and I'm the person breaking^w fixing mesa's build
> >> > amongst others.
> >> Yes, we know :D
> >> >
> >> > A while back I had this idea of renaming the libraries provided by
> >> > mesa to include the actual version number. Prior to doing anything
> >> > "crazy" I've decided to seek your feedback.
> >> >
> >> >
> >> > * What
> >> > The idea is to rename (ideally) all of the versioned libraries.
> >> > Unversioned ones such as radeonsi_dri.so will remain as is.
> >> >
> >> > Note: the soname and symlinks will stay to avoid breaking compatibility.
> >> >
> >> >
> >> > * How
> >> > While I haven't fully decided on the exact approach I'm thinking of
> >> > something like:
> >> > libGL.so.1.0.0 -> libGL.so.11.0 or libGL.so.110.1 or libGL.so.11.01
> >> I'd like to see 11.0 for 11.0, 11.1 for 11.1 and etc.
> >
> > Adam probably knows better, but I thought libGL.so/.1/
> These files are symlinks to the actual library and will not be renamed.
> 
> >.1.2.0 as part of
> > the linux/unix GL ABI?  So not really sure that it is something we can
> > actually change.
> >
> I'm fairly confident it's not part of the ABI. I've been through the
> documentation five+ times, solely looking for it and did not see any
> hints, let alone explicit statement. Not to mention that nvidia has
> been using this approach since dawn of time. Even their oldest legacy
> driver 71.x (one supporting Geforce 256) uses it.

Ok, if it is just a matter of adding symlinks, and apps can still link
against libGL.so or libGL.so.1 or whatever, it seems fine.  And I guess
if nv is doing it, then it is probably not non-compliant.

Anyways, I'm defn not the expert in such things, but I think there is
some expectation that apps can link against a driver agnostic shared lib
path an expect things to work with other drivers.. (ofc having an icd
seems like it would be a good thing, so hopefully libOpenGL actually
happens some day)

BR,
-R


> 
> > That said, with the libOpenGL stuff we could probably do something
> > better.
> >
> That does not prevent us from doing minor tweaks :)
> 
> Cheers,
> Emil


Reply to: