eclass/elisp-common: Sync with Gentoo

It's from Gentoo commit ec8f206068b3a17275d2b1a05be162c46f0e24c0.
This commit is contained in:
Flatcar Buildbot 2024-04-08 07:14:02 +00:00 committed by Krzesimir Nowak
parent 6a968f224f
commit 6839a00067

View File

@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: elisp-common.eclass
@ -687,7 +687,7 @@ elisp-make-site-file() {
# directory.
elisp-site-regen() {
local sitelisp=${ROOT%/}${EPREFIX}${SITELISP}
local sitelisp=${EROOT}${SITELISP}
local sf i ret=0 null="" page=$'\f'
local -a sflist
@ -699,9 +699,6 @@ elisp-site-regen() {
[[ -d ${sitelisp} ]] \
|| die "elisp-site-regen: Directory ${sitelisp} does not exist"
[[ -d ${T} ]] \
|| die "elisp-site-regen: Temporary directory ${T} does not exist"
ebegin "Regenerating site-gentoo.el for GNU Emacs (${EBUILD_PHASE})"
for sf in "${sitelisp}"/site-gentoo.d/[0-9][0-9]*.el; do