From owner-freebsd-x11@freebsd.org Sun Aug 16 08:53:49 2015 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4DF1C9B9642 for ; Sun, 16 Aug 2015 08:53:49 +0000 (UTC) (envelope-from sndirsch@suse.de) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 32F16D89 for ; Sun, 16 Aug 2015 08:53:49 +0000 (UTC) (envelope-from sndirsch@suse.de) Received: by mailman.ysv.freebsd.org (Postfix) id 321AA9B9641; Sun, 16 Aug 2015 08:53:49 +0000 (UTC) Delivered-To: x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 17B7A9B9640 for ; Sun, 16 Aug 2015 08:53:49 +0000 (UTC) (envelope-from sndirsch@suse.de) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.suse.de", Issuer "DigiCert SHA2 High Assurance Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CBA2FD88 for ; Sun, 16 Aug 2015 08:53:48 +0000 (UTC) (envelope-from sndirsch@suse.de) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 867A6AD7D; Sun, 16 Aug 2015 08:38:13 +0000 (UTC) Date: Sun, 16 Aug 2015 10:38:11 +0200 From: Stefan Dirsch To: Emil Velikov Cc: mesa@packages.debian.org, Jonathan Gray , x11@FreeBSD.org, =?iso-8859-15?Q?Jean-S=E9bastien_P=E9dron?= , =?iso-8859-15?Q?Fran=E7ois?= Tigeot , riastradh@netbsd.org, Matthew Green , Jan de Groot , Andreas Radke , Igor Gnatenko Subject: Re: [RFC] Embed the mesa version in the library/binary name Message-ID: <20150816083811.GA16145@suse.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Mailman-Approved-At: Sun, 16 Aug 2015 11:30:38 +0000 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Aug 2015 08:53:49 -0000 Hi Emil On Fri, Aug 14, 2015 at 04:21:10PM +0100, Emil Velikov wrote: > Hello all, > > My name is Emil and I'm the person breaking^w fixing mesa's build > amongst others. > > 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. Thanks for informing us beforehand! > * 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. +1 > * 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 libGL.so.11.0 > * Why > A number of reasons: > - Allows multiple binaries to coexist, making the dynamic switching > between libGL.so.110.1, libGL.so.11.2.0 (mesa), libGL.so.352.14 > (nvidia) libGL.so.XX.Y (another vendor) a little bit easier. About nvidia. Benefit is small, since NVIDIA replaces half of the driver stack anyway (e.g. glx Xserver module). So you still need to make sure the right glx Xserver module is being loaded. Also the right kernel module (KMS or nvidia). And ldconfig creates the right symlink for libGL.so.1 ... > How does this sound, do you foresee any pros/cons with the above > proposal ? Any and all input is greatly appreciated, but please try to > keep your replies technical and constructive. I don't see any regression in the change. > If there are any concerns wrt the required updates (of the > build/packaging recipes) I'm willing to help out. Thanks for the offer, although I don't expect any issues here. > As I'm not sure how many of you follow mesa-dev, would you be OK if I > CC you in distro related~ish topics. > Some (not so crazy) examples: > - libEGL.so has additional dependency (via libdl) of X > - OpenCL only works with render node devices, kernel vY or later is required > - Mesa's new library libfoo.so should be shipped with libbar.so Cc'ing me in such topics would be very much appreciated! Thanks, Stefan Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE LINUX GmbH Tel: 0911-740 53 0 Maxfeldstraße 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany --------------------------------------------------------------- SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) ---------------------------------------------------------------