Subject: bug#55305: 28.0.50: With async nativecomp, package manager fails to load hyperbole-autoloads.el before compilation

From: Robert Weiner <[email-masked]>
Date: Mon, 16 May 2022 18:27:13 -0400

Just FYI, Hyperbole used to generate the hyperbole-autoloads.el file itself and include it in the packaged release but this broke the Elpa build process.

-- Bob

> On May 16, 2022, at 12:59 PM, Eli Zaretskii <[email-masked]> wrote:
> 
> 
>> 
>> Cc: [email-masked], [email-masked], [email-masked], [email-masked]
>> Date: Mon, 16 May 2022 12:42:44 -0400
>> From:  Stefan Monnier via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <[email-masked]>
>> 
>>> I see no harm in propagating `package-user-dir' `package-directory-list'
>>> to the async worker if it's useful, but I'm with Eli in not calling
>>> `package-activate-all' when compiling.
>> 
>> The currently discussed error happens because `hyperbole-autoloads.el`
>> was not loaded before the compilation.  Setting `package-user-dir` and
>> `package-directory-list` won't help.
> 
> But loading hyperbole-autoloads.el from the files that need it will
> help, and will solve this problem simply and without any
> complications.  Look how much energy we invested in discussing a
> problem that takes a trivial one-liner to solve.