From owner-freebsd-x11@freebsd.org Mon Aug 17 08:21:46 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 07F179BB7B0 for ; Mon, 17 Aug 2015 08:21:46 +0000 (UTC) (envelope-from michel@daenzer.net) 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 E064217B9 for ; Mon, 17 Aug 2015 08:21:45 +0000 (UTC) (envelope-from michel@daenzer.net) Received: by mailman.ysv.freebsd.org (Postfix) id DF1049BB7AF; Mon, 17 Aug 2015 08:21:45 +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 DEAA99BB7AE for ; Mon, 17 Aug 2015 08:21:45 +0000 (UTC) (envelope-from michel@daenzer.net) Received: from mail.gna.ch (darkcity.gna.ch [195.226.6.51]) by mx1.freebsd.org (Postfix) with ESMTP id 9F25117B8 for ; Mon, 17 Aug 2015 08:21:44 +0000 (UTC) (envelope-from michel@daenzer.net) Received: from thor (125-14-38-183.rev.home.ne.jp [125.14.38.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id 4DAE2B2048A; Mon, 17 Aug 2015 10:21:31 +0200 (CEST) Received: from localhost ([::1]) by thor with esmtp (Exim 4.86) (envelope-from ) id 1ZRFfb-0005YL-Nx; Mon, 17 Aug 2015 17:21:27 +0900 Subject: Re: [RFC] Embed the mesa version in the library/binary name To: Emil Velikov , Jonathan Gray , x11@FreeBSD.org, =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= , =?UTF-8?Q?Fran=c3=a7ois_Tigeot?= , riastradh@netbsd.org, Matthew Green , Jan de Groot , Andreas Radke , Igor Gnatenko , Stefan Dirsch References: From: =?UTF-8?Q?Michel_D=c3=a4nzer?= X-Enigmail-Draft-Status: N1110 Cc: mesa@packages.debian.org Message-ID: <55D19987.7090304@daenzer.net> Date: Mon, 17 Aug 2015 17:21:27 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.0.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 17 Aug 2015 11:20:50 +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: Mon, 17 Aug 2015 08:21:46 -0000 On 15.08.2015 00:21, Emil Velikov wrote: > > * 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 > > Other suggestions and ideas are welcome but please keep the version to X.Y Do I understand correctly that your proposal is for downstream packagers to make this change? Why not upstream? > * Why [...] > - In most cases, one can easily establish if the distro provided > library is overwritten. How so? > - 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. Not really, since ldconfig (which needs to be run after (un)installing any shared libraries) will clobber the libGL.so.1 symlink to point to the libGL.so.X.Y with the largest X.Y. Anyway, as Stefan mentioned there are many other problems preventing this, so this isn't really an argument against your proposal. > - OpenBSD, Solaris(?) use sunos 4 style versioning -> .so.major.minor FWIW, that can also be satisfied by libGL.so.1.2 . IIRC we used to ship that even on Linux, not sure when/why we switched to libGL.so.1.2.0. Maybe a side effect of adopting automake and friends. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer