From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jca+emacs@wxcvbn.org (=?utf-8?Q?J=C3=A9r=C3=A9mie_Courr=C3=A8ges-Ang?= =?utf-8?Q?las?=) Newsgroups: gmane.emacs.devel Subject: Re: Google Summer of Code - some ideas Date: Mon, 22 Apr 2013 22:39:37 +0200 Message-ID: <877gju1era.fsf@moo.wxcvbn.org> References: <83d2tmxvz5.fsf@gnu.org> <87bo961fu6.fsf@moo.wxcvbn.org> <83a9oqxq96.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1366663223 9306 80.91.229.3 (22 Apr 2013 20:40:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Apr 2013 20:40:23 +0000 (UTC) Cc: aurelien.aptel+emacs@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 22 22:40:27 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UUNXE-0005QA-Hb for ged-emacs-devel@m.gmane.org; Mon, 22 Apr 2013 22:40:24 +0200 Original-Received: from localhost ([::1]:43383 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUNXE-0006Ph-66 for ged-emacs-devel@m.gmane.org; Mon, 22 Apr 2013 16:40:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUNX9-0006KA-6k for emacs-devel@gnu.org; Mon, 22 Apr 2013 16:40:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUNX4-000562-C2 for emacs-devel@gnu.org; Mon, 22 Apr 2013 16:40:19 -0400 Original-Received: from [2001:910:112c::a0a:4] (port=40321 helo=coloc.wxcvbn.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUNX0-00054h-T3; Mon, 22 Apr 2013 16:40:11 -0400 Original-Received: by coloc.wxcvbn.org (Postfix, from userid 10) id AD893809B9; Mon, 22 Apr 2013 22:40:08 +0200 (CEST) Original-Received: from moo.wxcvbn.org (localhost [127.0.0.1]) by wxcvbn.org (8.14.7/8.14.7) with ESMTP id r3MKdb9I015579; Mon, 22 Apr 2013 22:39:37 +0200 (CEST) Original-Received: (from jca@localhost) by moo.wxcvbn.org (8.14.7/8.14.5/Submit) id r3MKdbVS031249; Mon, 22 Apr 2013 22:39:37 +0200 (CEST) Mail-Followup-To: Eli Zaretskii , aurelien.aptel+emacs@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org In-Reply-To: <83a9oqxq96.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 22 Apr 2013 23:30:13 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:910:112c::a0a:4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:159133 Archived-At: Eli Zaretskii writes: >> From: jca+emacs@wxcvbn.org (J=C3=A9r=C3=A9mie Courr=C3=A8ges-Anglas) >> Cc: Aur=C3=A9lien Aptel , >> monnier@iro.umontreal.ca, emacs-devel@gnu.org >> Date: Mon, 22 Apr 2013 22:16:17 +0200 >>=20 >> I'm probably not knowledgeable enough about this subject, but... is it >> really easier to get this (raw dlopening) right? If my Emacs build >> dlopens gnutls with a major 39, and a few days later my system gets >> a 40th gnutls major version because of ABI change, then I will run into >> problems. And I can't count on my package tools dependancy system to >> notice the ABI change, unless I artificially encode the dependancy on >> gnutls or take care to bump my Emacs package to force a rebuild. >>=20 >> Perhaps are there workarounds or methods to implement this safely in >> Emacs, but I fear that it would make life harder for some users and >> packagers. > > Emacs already has a solution for all this, in the MS-Windows build > (which already loads these libraries dynamically). So what's needed > is to use the same arrangement on other platforms, which currently > link statically against these libraries. I think you meant "link dynamically", not "statically". > In nutshell, the version against which Emacs was compiled is recorded > at build time, and then tested against the library at load time. I trust you that there must have good reasons to do this on "windows", but I fail to see the bonus on Unix-like distros out there that have proper package / library / dependancies management. Startup time? Not failing at startup if a shared lib that we linked against isn't present anymore? I'm a bit late at this discussion, so please forgive me if this has already been discussed. Aur=C3=A9lien: I trimmed you from the CC list since gmail doesn't seem to like my ipvsh^Wipv6 prefix... --=20 J=C3=A9r=C3=A9mie Courr=C3=A8ges-Anglas PGP Key fingerprint: 61DB D9A0 00A4 67CF 2A90 8961 6191 8FBF 06A1 1494