From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: emacs-guix invalid byte opcode: op=183 ptr=25 Date: Thu, 28 Feb 2019 14:28:25 +0100 Message-ID: <878sy0qbye.fsf@ambrevar.xyz> References: <20190228.192814.35659745992274650.kumagusu08@gmail.com> <87ef7sqjvz.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:35940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzLjz-00088A-6d for help-guix@gnu.org; Thu, 28 Feb 2019 08:28:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzLjx-0006on-MB for help-guix@gnu.org; Thu, 28 Feb 2019 08:28:46 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:44109) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gzLjx-0006gF-Ca for help-guix@gnu.org; Thu, 28 Feb 2019 08:28:45 -0500 In-reply-to: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: zimoun Cc: help-guix --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Zimoun, you are correct, Guix Emacs packages will only work with the Emacs = that is used in the build system, which corresponds to the `emacs` package. With Guix, Emacs packages don't have Emacs as an input, so it's perfectly p= ossible to install Emacs packages along the wrong version of Emacs. I think this is a= problem. The problem is not specific to Emacs though, anything that is byte-compile= d has the same shortcoming. Some build systems have a variable for the compiler,= so it's easy to change it and recompile all packages for a new compiler. The emacs-build-system does not do that though, see emacs-build-system.scm: =2D-8<---------------cut here---------------start------------->8--- (define* (build #:key outputs inputs #:allow-other-keys) "Compile .el files." (let* ((emacs (string-append (assoc-ref inputs "emacs") "/bin/emacs")) (out (assoc-ref outputs "out")) (elpa-name-ver (store-directory->elpa-name-version out)) (el-dir (string-append out %install-suffix "/" elpa-name-ver))) (setenv "SHELL" "sh") (parameterize ((%emacs emacs)) (emacs-byte-compile-directory el-dir)))) =2D-8<---------------cut here---------------end--------------->8--- Thoughts? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlx34fkACgkQm9z0l6S7 zH9eRQgAhTFYg3M5hAP/5HDc7KIltdBxcOsmUp8NpBoMB00XHfbIVMFTpErrpnAF uNdlw7U1cGE/FTHIfSFveW+kx/mPKznihlnJrClv3acgclFNsoPVNvcXt9jUsdpZ b8n7KI9Va5+TUYUEkMCNsO8tPzIgZqfTGBg/zUJSYIJWpnbgT+i7q58GPcdkau+s 6vI+Jd4neL+boHKezIdlorkxq4P3rRNAbqKsYvbNFw6ZuwrSfJDgYZ7/FqjSxkO6 xKm6wWcNspCM72fffwFpSfDKWdR8hCYnFZe1Z+D5eZRSyFwp453kdZqwrhVm8esP uEoiYzXev1EAtMPv6p2rMUWcgmH5Jg== =1M1V -----END PGP SIGNATURE----- --=-=-=--