From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Bj=C3=B6rn?= Bidar Newsgroups: gmane.emacs.devel Subject: Re: Sharing native-lisp system load-path between builds Date: Mon, 26 Jun 2023 07:26:03 +0300 Message-ID: <87jzvqj1d0.fsf@thaodan.de> References: <871qhzjd0m.fsf@thaodan.de> <83edlzx8cy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20689"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jun 26 06:27:21 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qDdov-00056H-4i for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Jun 2023 06:27:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDdns-0008Dl-Tb; Mon, 26 Jun 2023 00:26:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDdnr-0008Db-Ob for emacs-devel@gnu.org; Mon, 26 Jun 2023 00:26:15 -0400 Original-Received: from thaodan.de ([2a03:4000:4f:f15::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDdnp-0005Qd-HT; Mon, 26 Jun 2023 00:26:15 -0400 Original-Received: from odin (dsl-trebng12-50dc76-249.dhcp.inet.fi [80.220.118.249]) by thaodan.de (Postfix) with ESMTPSA id 4E9CCD08C0D; Mon, 26 Jun 2023 07:26:07 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1687753567; bh=WSFKEA3Zy18V2C6M1kJfKiPHxzeu3OAMcl8VtUqGbfY=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=fnXzmgkKTVoNihUOO9duSfL3HXTc/pmlJWIoEg9IRvpNDJ3SiwS9nHU6Ky2gSNWU9 r80AM+fCgpntKXcfnGjQz/+++SpLKDHqNbqw5rF14P7a8T9MYyWerdBLiOAAGtXO8H env/ydyDDmVGcsFnttgbcI330Gh9vwgxLqCJQLJm0WitwUJU3kAkXyVv4QbHBTTgmQ /tjGiIkCdXu3sUKw6kIy5m7CwfS4tblmrHDWrehYFukNYmeIJ6wEFTBK6lesT7iYiR ojzckIKcY0ZFlc23ciL5nhDQ0XxATI60TNt4hMcuDKXvYnLeqPP0oexqa4YHFG3k3J U36WZ+SIxP4bm8JYTTnAVNde4wP5h+zPOfTNGvyoLSyb8340L8pX/6MHfrW/7bzBMH mOf+Zu3knq+3z5X5nIMMtRslckKLAhVCYjd6reSbxDcRmSzGUWcYGEJK4uZd3c/JMh tQjDRe0Dbi2cbzx8CCliEgfrxEJvTghOYU4mrxO6KpZKwgFkLazOuJk46/kyrUN7w4 UQ+9PiOQ5UT6wcW6Y/Pi9BQVCxohQYKsUGlAvLjCdFalIPViv5BVEgvObUe5b3z03H OROWe9IriOxU0kce8cucz14gIyH+V1gpIGyAIX6LZxNwbA7CRZeOZXlSDJsAlegIca 288HMy8+iGbwRMrwg+yAFk2k= In-Reply-To: <83edlzx8cy.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 26 Jun 2023 05:31:09 +0300") Received-SPF: pass client-ip=2a03:4000:4f:f15::1; envelope-from=bjorn.bidar@thaodan.de; helo=thaodan.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:307223 Archived-At: Eli Zaretskii writes: >> From: Bj=C3=B6rn Bidar >> Date: Mon, 26 Jun 2023 03:14:17 +0300 >>=20 >> I'm building Emacs master for OpenSUSE to provide testing. >> OpenSUSE packaging packages Emacs so that they have three builds with >> different feature sets: X11 without GTK, GTK and one build just without >> X11 or GTK. >>=20 >> This helps different users to chose their preferred builds and keeps >> build workers small for Emacs packages build. >>=20 >> The packages share the elisp, native-lisp ahead of time compilations and >> docs. >>=20 >> Recently the native-lisp load path changed to change per Emacs >> executable. > > It isn't a recent change, at least not in principle. What could have change this? >> I don't know the exact commit when this changed but it was >> between ref 3c8167ec0f9647e6fc33e65b0a0324f96cb795ee and >> d46a2fa319808963bbe8d3a90e7dbb13fcd844f5. >>=20 >> Now my questions: Is this a bug or can a different hash be used to >> determine the system load-path? It is very useful to precompile the >> lisp code once per emacs builds that share the same code. > > It's impossible to share native-compiled *.eln files between different > builds, because they depend on the primitives compiled into the build > and on the architecture of the host CPU. > So you must have a separate directory for each build configuration, > and any significant change in the Emacs C code will require > recompilation of all the *.eln files. Each build configuration is 100% the same except the optional dependencies they are build with. There's no change to any source they are build one after the other. See the spec file here: https://build.opensuse.org/package/view_file/home:Thaodan:emacs/emacs/emacs= .spec?expand=3D1