emacs: make sure the pinned package-build is used

package-build is also in MELPA.  Currently, two packages depend on
it.  When building such a package, package-build is added to
EMACSLOADPATH by the setup hook.  Previously, package-initialize is
called in the buildPhase of melpaBuild, which may cause package-build
from MELPA to be used instead of the pinned one depending on the
entries of EMACSLOADPATH.

This patch removes the unneeded package-initialize to make sure the
pinned package-build is used.

Accidentally, this patch reduces build time of emacsPackages from 30
minutes to 24 minutes on my machine.
This commit is contained in:
Lin Jian 2024-09-20 15:20:51 +08:00
parent 3e895f5240
commit 49a9fd3f16
No known key found for this signature in database
GPG Key ID: A6698D36434F75A5

View File

@ -1,6 +1,3 @@
(require 'package)
(package-initialize)
(require 'package-recipe)
(require 'package-build)