From owner-freebsd-x11@freebsd.org Fri Aug 14 17:52:11 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 26FAA9B8CA7 for ; Fri, 14 Aug 2015 17:52:11 +0000 (UTC) (envelope-from i.gnatenko.brain@gmail.com) 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 0071C1632 for ; Fri, 14 Aug 2015 17:52:11 +0000 (UTC) (envelope-from i.gnatenko.brain@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id F41669B8CA6; Fri, 14 Aug 2015 17:52:10 +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 D9D079B8CA5 for ; Fri, 14 Aug 2015 17:52:10 +0000 (UTC) (envelope-from i.gnatenko.brain@gmail.com) Received: from mail-lb0-x232.google.com (mail-lb0-x232.google.com [IPv6:2a00:1450:4010:c04::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5C3761631 for ; Fri, 14 Aug 2015 17:52:10 +0000 (UTC) (envelope-from i.gnatenko.brain@gmail.com) Received: by lbbtg9 with SMTP id tg9so50058677lbb.1 for ; Fri, 14 Aug 2015 10:52:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=wSoa9w3IY92I1F6J8vI6srz6K9MH3Cn2Wsgmow/Ju+Y=; b=NdosU9YWU3GQoblrGbImmmV0xl4Sxan3jczsTYLb+tJEqRvszB7BaqbTeKk0LJz2zW CJ0htluv609rjwhPZFU8b9JYFbGoXlz26aURhkE2Oplxnc5v43RZpkh75tQqG9Zmd3hu nM5zdKk4UwkuziieefMPJyRxUpuAfxb8kMEFfWxT+KbpvYYKC+hYunAQOPQeqwLzhU1V 7cSOwZ4X9ea0J68d8uslPfyZx2jwprrSF2JVAxAS03wU4kjg9mVdB2ei5d5rm3h+41Eq 8ugw4+Yhu1yMfczmT8gjkuEWq+5sCsjSb6IuJtACuVd6zCgOVJ6EWs0p97Prpk4hpKIu Lsng== MIME-Version: 1.0 X-Received: by 10.152.8.38 with SMTP id o6mr45224803laa.116.1439574728031; Fri, 14 Aug 2015 10:52:08 -0700 (PDT) Sender: i.gnatenko.brain@gmail.com Received: by 10.25.162.21 with HTTP; Fri, 14 Aug 2015 10:52:07 -0700 (PDT) Received: by 10.25.162.21 with HTTP; Fri, 14 Aug 2015 10:52:07 -0700 (PDT) In-Reply-To: References: Date: Fri, 14 Aug 2015 20:52:07 +0300 X-Google-Sender-Auth: Xe58x3uT_7Sy73H-v9GSXatS11s Message-ID: Subject: Re: [RFC] Embed the mesa version in the library/binary name From: Igor Gnatenko To: Emil Velikov Cc: riastradh@netbsd.org, Stefan Dirsch , Andreas Radke , Jan de Groot , Jonathan Gray , =?UTF-8?Q?Fran=C3=A7ois_Tigeot?= , Matthew Green , =?UTF-8?B?SmVhbi1Tw6liYXN0aWVuIFDDqWRyb24=?= , mesa@packages.debian.org, x11@freebsd.org, mesa-owner X-Mailman-Approved-At: Fri, 14 Aug 2015 18:56:55 +0000 Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Fri, 14 Aug 2015 17:52:11 -0000 On Aug 14, 2015 6:21 PM, "Emil Velikov" 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. > > Other suggestions and ideas are welcome but please keep the version to X.Y > > > * Why > A number of reasons: > - The binary driver by Nvidia has been using this approach for years. > - It provides quick and easy feedback in traces > - In most cases, one can easily establish if the distro provided > library is overwritten. > - 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. > - OpenBSD, Solaris(?) use sunos 4 style versioning -> .so.major.minor > > > 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'm fully agree with proposal, but one question. How much libs/programs links against libGL or other libs? I mean how much programs we will rebuild every release? > > If there are any concerns wrt the required updates (of the > build/packaging recipes) I'm willing to help out. > > > 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 I would be happy to be CCed. > > > Thanks > Emil