From: Pekka Paalanen Subject: Re: liboutput: thoughts about shared library on top of DRM/KMS Date: Tue, 8 Oct 2019 10:15:28 +0300 Message-ID: <20191008101528.1b447d5a@eldfell.localdomain> References: <87y2xzqimw.fsf@keithp.com> <871rvopgjj.fsf@keithp.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0597900985==" Return-path: Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by gabe.freedesktop.org (Postfix) with ESMTPS id BB1E889FA6 for ; Tue, 8 Oct 2019 07:15:40 +0000 (UTC) Received: by mail-lj1-x231.google.com with SMTP id n14so16304799ljj.10 for ; Tue, 08 Oct 2019 00:15:40 -0700 (PDT) In-Reply-To: <871rvopgjj.fsf@keithp.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Keith Packard Cc: "dri-devel@lists.freedesktop.org" List-Id: dri-devel@lists.freedesktop.org --===============0597900985== Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/EqYZTv7eThQm.+lHQNcIJgH"; protocol="application/pgp-signature" --Sig_/EqYZTv7eThQm.+lHQNcIJgH Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 07 Oct 2019 14:16:32 -0400 "Keith Packard" wrote: > Daniel Stone writes: >=20 > > I think there would be a load of value in starting with simple helpers > > which can be used independently of any larger scheme, tackling that > > list above. =20 >=20 > Yeah, a helper library that didn't enforce at tonne of policy and just > let the user glue things together on their own is probably going to be > more generally usable by existing and new systems. >=20 > I definitely like the idea of stealing the best parts of all existing > systems and trying to make them work together. >=20 > How many libraries we end up with isn't nearly as important to me as > making sure they work well together; common data types, similar style, > etc. >=20 Hi, a bunch of helpers is the more attractive idea to me too. We just have to pay attention to API/ABI instability vs. usage: we should be able to both redesign the API at will to go forward, but people will not be happy using a library that breaks ABI all the time. Libweston worked around that issue by making all major release versions parallel-installable. That means literally all files or directories have the major number in their base name. Another option would be to have a static library only. I'm not sure which one would be more attractive. If going with static-library-only, then we probably one day want to convert into a dynamic library, and then the question of whether the ABI is stable enough will arise again. Using Meson should make the static-lib-only approach very easy, downstream projects could include liboutput as a git sub-module or such. That should eliminate the version dependency issues that builds might otherwise have. Thanks, pq --Sig_/EqYZTv7eThQm.+lHQNcIJgH Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAl2cN5EACgkQI1/ltBGq qqeiIg/9G47T2CQildhOVRPwSWx8k4/m9mvNow9NbNljZ088E9Vhh8bvHSjdx/zk l8SD5WMgF9HTKzrvYaoHWTsAOWCzvISUBY6WWE7tI0Ri2yQ1BxDe4VjA8cGaPX9T WBMjoVTjLE0d4TlHC5BuGkkmi12s/7OFoNX6b3CUEZUaww48tPD87mMm4ObjOLsR 6hW81smPzR7WSRS+dl7J8wwnIOe3cp18ZmpYSuuBDPv7yUxTYvxYAwnqmnpobxmy 2oXTIMAKXFT+oG70N+oshde0ENtkdF0xCzp8pvwcqbkizigoQ/OTk9W3oB5zClQV oLGxHfDTPDuCs2etL506ZU84pmvG2PRZJ8lIXEcKfuYzf978NH4M4d9rOgXS4EmL 5ygPp3uL2UBGLtyIA/H6UVOb6B69Lqtg/SN5Gog3P/Has1D9FSYPOZV6+2NflB1o BnWYHKK3IN6/T2XzHDYg3c9Gy73/dmtXF4oUM9KsW4+tZ1jiXCi0n0i/SNtob+iD 73/zKzJD8/M9nDkvD5+AEo0scl7qAfsca2TaZ/Vbz786ocCSSqIJOqFstfQpxs6k pIxz1YhFN+3yK9k3Jnb0Bw3W6caz+qtzzmDzILjdvVaLylbidkEfm/6Gp0AyzwgZ esuj7PITbPfxeW6GMF3NUKt9I4ulZfq0vG5PbLEU+kSbljoStHk= =AVBR -----END PGP SIGNATURE----- --Sig_/EqYZTv7eThQm.+lHQNcIJgH-- --===============0597900985== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0597900985==--