GNU bug report logs - #69171
[JD Smith] Moving packages out of core to ELPA

Previous Next

Package: elpa;

Reported by: Stefan Kangas <stefankangas <at> gmail.com>

Date: Sat, 17 Feb 2024 17:50:01 UTC

Severity: normal

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: JD Smith <jdtsmith <at> gmail.com>
Cc: 69171 <at> debbugs.gnu.org, Stefan Kangas <stefankangas <at> gmail.com>
Subject: bug#69171: Moving packages out of core to ELPA
Date: Sat, 24 Feb 2024 16:39:20 -0500
> Just a brief update.  I updated the version to 6.5.0 across the board, and
> squashed a few compiler complaints.  In some simple testing of idlwave-mode
> (only in the buffer for .pro files) everything seems to be working well.

Good, thanks.

> I am fairly critical of my old idea to refactor everything, but that's
> where we are.  It's a bear to compile everything without putting it on
> the load-path (I'm curious if you just append to the load-path when
> dealing with this kind of thing).

I compile using the method used in `elpa-admin`, which comes down to:

    .PRECIOUS: packages/%.elc
    packages/%.elc: packages/%.el
            @echo 'Byte compiling $<'
            @$(EMACS)                                                    \
                --eval "(setq package-directory-list                     \
                              (list \"$(abspath other-packages)\")       \
                              load-prefer-newer t                        \
                              byte-compile-debug t                       \
                              debug-on-error t                           \
                              package-user-dir \"$(abspath packages)\")" \
                -f package-initialize                                    \
                -L $(dir $@) -f batch-byte-compile $<

So, yes, of course, `-L $(dir $@)` adds the directory to the
`load-path`, but "prepend" rather than "append" (otherwise you'll end
up loading the old version built into Emacs).
I don't consider that to be a problem.


        Stefan





This bug report was last modified 258 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.