From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8FBD9138334 for ; Sun, 24 Mar 2019 18:47:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 35706E0B4C; Sun, 24 Mar 2019 18:47:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D16D2E0A68 for ; Sun, 24 Mar 2019 18:47:09 +0000 (UTC) Received: from pomiot (d202-252.icpnet.pl [109.173.202.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 50889335D30; Sun, 24 Mar 2019 18:47:08 +0000 (UTC) Message-ID: <065dcf71cdae9497ea8bab5d03a0124d3390a29e.camel@gentoo.org> Subject: Re: [gentoo-dev] the state of dev-lang/lua From: =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Date: Sun, 24 Mar 2019 19:47:04 +0100 In-Reply-To: <20190324174441.GA28150@linux1.home> References: <20190323212327.GA24656@linux1.home> <4861005.cn4WkK61Ef@pinacolada> <20190324174441.GA28150@linux1.home> Organization: Gentoo Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-9DOMKapKBdLhsIpY8i5K" User-Agent: Evolution 3.30.5 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 X-Archives-Salt: 4f56abb4-b88d-4580-9ace-02c54c5412fa X-Archives-Hash: 3d60690802334c27ef262a2f438c09c2 --=-9DOMKapKBdLhsIpY8i5K Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 2019-03-24 at 12:44 -0500, William Hubbs wrote: > On Sun, Mar 24, 2019 at 02:26:35PM +0100, Andreas K. Huettel wrote: > > Am Samstag, 23. M=C3=A4rz 2019, 22:23:27 CET schrieb William Hubbs: > > > Hi all, > > >=20 > > > Soon I will be working on fixing up the state of dev-lang/lua, and th= ere > > > are a couple of things I want to mention. > > >=20 > > > The first thing is liblua as a shared library. If you are using lua > > > internally in a program, upstream strongly recommends not linking it > > > this way; it is supposed to be statically linked into the executable. > > > Because of this, and because of the amount of custom patching we do t= o > > > maintain liblua as a shared library, I plan to stop creating the shar= ed > > > library. > > >=20 > >=20 > > Please dont. Static linking is a security nightmare. > >=20 > > I'd much rather consider removing the static library, and fix programs = broken=20 > > by that. (No matter what silly opinions lua upstream has.) >=20 > Here is what upstream says, so let me know how you interpret it. >=20 > http://www.lua.org/manual/5.3/readme.html They don't provide any rationale, and they say to use shared libraries on Windows. To me, it looks like they didn't want to figure out how to build shared libs for various unix flavors, and took the easy way out. > Also, there is this in our ebuilds: >=20 > # Using dynamic linked lua is not recommended for performance > # reasons. http://article.gmane.org/gmane.comp.lang.lua.general/18519 > # Mainly, this is of concern if your arch is poor with GPRs, like x86 > # Note that this only affects the interpreter binary (named lua), not the= lua > # compiler (built statically) nor the lua libraries (both shared and stat= ic > # are installed) >=20 > It looks like the link is dead, so I don't have any idea what > performance issues they are talking about. >=20 Probably the performance loss resulting from use of -fPIC. Which we're forcing anyway nowadays, so no loss to us. --=20 Best regards, Micha=C5=82 G=C3=B3rny --=-9DOMKapKBdLhsIpY8i5K Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEXr8g+Zb7PCLMb8pAur8dX/jIEQoFAlyX0KlfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDVF QkYyMEY5OTZGQjNDMjJDQzZGQ0E0MEJBQkYxRDVGRjhDODExMEEACgkQur8dX/jI EQq6/hAA0bTg0SOOdwxeU+L946VEk6qFYwtxdhlBFyFRbEqp0UlO9BIxDhFrtygW Ybiwvoko0RK3GIvNcP+V0QArF/doa4p/iwQmPB/daVgV/MI1cCH7MdXkvzDyNKtm rvaTvw9O9AcrHtHFtSwWgAdosrwYey32Iws9raK+wngBGLBv7mXtMqx+d2w0tMqd AGB7CzVCaC49qoiXrWIemc7DR8rp7Yk40F0/x8eec7sPyDXoMhvbOEPt664pe3Z9 zC5zehvRivC/a2DHjXCR9YJKdtURZ8eGKzKFsdLl5bnhx6eOtPAkHPHUakz2XJ8h 9/7wJdLEE/CWtBo9WtrjzIDFkYO86wIDTscBq05NuJFqil+LfXYNJ0vGm7HOUrrp 5dHo++SxT4I40bhfBJXtRkr0PctYwAE4xisKOAnF9qWp4hQZWBFhRddmbixIbmKT NdY9Ka1pZrZ3aRjx5TBsm/4QxFXbN46mpHOLEPOL1drwI4JDZleYpjoG9HVIl2kH wVOvAm/E14+SPg7q4oShpksyM7EG6t5XAObUjqYDbpF4eNBpnUgZPDdaAoDDV7ig Eu3Hit/ShO5QEs7XPFwuTVfv326p7cYz8RIeiVu6w3Gw1dueMmfLr+eCdjy0Dy1p ZtKNifK+Damx/+cVUrgj7hMYqllJa/xAaUlwyXws3RgJ3IVY1zI= =EP0Y -----END PGP SIGNATURE----- --=-9DOMKapKBdLhsIpY8i5K--