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

From: Eli Zaretskii <[email-masked]>
Date: Mon, 16 May 2022 19:59:13 +0300

> 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.