unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* automake's .el support vs. recent loss of byte-compile-dest-file
@ 2017-11-23  4:41 Jim Meyering
  2017-11-23  4:56 ` Paul Eggert
  0 siblings, 1 reply; 19+ messages in thread
From: Jim Meyering @ 2017-11-23  4:41 UTC (permalink / raw)
  To: emacs-devel

Hello,

In May, this happened:

https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=233cfb0ea93ecdd2b63298be4243059e2e7a91fd

  commit 233cfb0ea93ecdd2b63298be4243059e2e7a91fd
  Author: Glenn Morris <rgm@gnu.org>
  Date:   Sat May 6 18:01:34 2017 -0700

      Remove obsolete method of changing byte-compile-dest-file

      * lisp/emacs-lisp/bytecomp.el (byte-compile-dest-file):
      Define unconditionally.

That broke automake's .el.elc rule, as used in any automake-using
project that distributes an .el file. I noticed this because I want to
make a new release of GNU idutils (which distributes idutils.el). With
emacs built from that commit or newer, "make distcheck" now fails,
because the source is in a read-only directory, and the rule's attempt
to tell the byte-compiler to put the output in the current (writable)
directory is ignored. Hence the write fails, and "make distcheck" fails.

As for the automake-emitted rule, here's the code:

  https://git.savannah.gnu.org/cgit/automake.git/tree/lib/am/lisp.am#n44

I can make it work with this automake change:

-           --eval "(defun byte-compile-dest-file (f) \"$@\")" \
+           --eval "(setq byte-compile-dest-file-function (lambda (_) \"$@\"))" \

But that will fail for those lacking byte-compile-dest-file-function,
which was introduced in 23.1 (2009).

Do you think it's worth supporting pre-23 emacs? If so, what's the best
way to make it work both before and after that May change?

Thanks,
Jim



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2017-12-17 15:33 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-23  4:41 automake's .el support vs. recent loss of byte-compile-dest-file Jim Meyering
2017-11-23  4:56 ` Paul Eggert
2017-11-23  5:02   ` Jim Meyering
2017-11-23  6:34     ` Eli Zaretskii
2017-11-23 16:13       ` Jim Meyering
2017-11-23 16:37         ` Eli Zaretskii
2017-11-27  1:17           ` Jim Meyering
2017-11-27 16:36             ` Eli Zaretskii
2017-11-29  3:35               ` Jim Meyering
2017-11-29  6:44                 ` Paul Eggert
2017-11-29 18:23                 ` Eli Zaretskii
2017-11-30  2:28                   ` Jim Meyering
2017-12-02 11:32                     ` Eli Zaretskii
2017-12-02 11:37               ` Eli Zaretskii
2017-12-02 11:57                 ` Eli Zaretskii
2017-12-17  0:34                   ` Jim Meyering
2017-12-17 15:33                     ` Eli Zaretskii
2017-12-04  3:18                 ` Glenn Morris
2017-12-04  3:41                   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).