commit: 05c9ee005b844ab182d5066eea72ed6186736f50 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Feb 21 18:49:29 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Feb 21 18:49:29 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05c9ee00
app-emacs/elfeed: fix compat e/ emacs-31* Signed-off-by: Sam James <sam <AT> gentoo.org> app-emacs/elfeed/elfeed-3.4.2-r1.ebuild | 36 +++++++++++++++++++ .../elfeed/files/elfeed-3.4.2-byte-compile.patch | 41 ++++++++++++++++++++++ 2 files changed, 77 insertions(+) diff --git a/app-emacs/elfeed/elfeed-3.4.2-r1.ebuild b/app-emacs/elfeed/elfeed-3.4.2-r1.ebuild new file mode 100644 index 000000000000..f244545286ec --- /dev/null +++ b/app-emacs/elfeed/elfeed-3.4.2-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit elisp + +DESCRIPTION="Emacs web feeds client" +HOMEPAGE="https://github.com/skeeto/elfeed/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/skeeto/${PN}.git" +else + SRC_URI="https://github.com/skeeto/${PN}/archive/${PV}.tar.gz + -> ${P}.tar.gz" + + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="Unlicense" +SLOT="0" + +RDEPEND=" + net-misc/curl[ssl] +" + +ELISP_REMOVE="${PN}-pkg.el" + +DOCS=( NEWS.md README.md ) +SITEFILE="50${PN}-gentoo.el" + +PATCHES=( + "${FILESDIR}"/${P}-byte-compile.patch +) diff --git a/app-emacs/elfeed/files/elfeed-3.4.2-byte-compile.patch b/app-emacs/elfeed/files/elfeed-3.4.2-byte-compile.patch new file mode 100644 index 000000000000..4fc01454bc13 --- /dev/null +++ b/app-emacs/elfeed/files/elfeed-3.4.2-byte-compile.patch @@ -0,0 +1,41 @@ +https://github.com/skeeto/elfeed/commit/66cfe43dfc61d0b56d9e4e72aba3dfab0ed4bdf7 + +From 66cfe43dfc61d0b56d9e4e72aba3dfab0ed4bdf7 Mon Sep 17 00:00:00 2001 +From: Michael Herstine <[email protected]> +Date: Sun, 25 Jan 2026 10:50:50 -0800 +Subject: [PATCH] Issue 553: Remove dependency on `byte-compile-root-dir` from + elfeed.el. + +When loaded or eval'd (but not compiled), elfeed.el would reference +the variable `byte-compile-root-dir` without requiring `bytecomp` +(where it is defined). This patch simply replaces that logic +with the old Emacs idiom of `(if t (require 'thing))` to avoid +loading during byte compilation (since the require is no longer +a top-level form). + +See also Emacs bug 80219. +--- + elfeed.el | 9 ++++----- + 1 file changed, 4 insertions(+), 5 deletions(-) + +diff --git a/elfeed.el b/elfeed.el +index 029e729..d0a5302 100644 +--- a/elfeed.el ++++ b/elfeed.el +@@ -655,11 +655,10 @@ saved to your customization file." + + (provide 'elfeed) + +-(cl-eval-when (load eval) ++(unless nil + ;; run-time only, so don't load when compiling other files +- (unless byte-compile-root-dir +- (require 'elfeed-csv) +- (require 'elfeed-show) +- (require 'elfeed-search))) ++ (require 'elfeed-csv) ++ (require 'elfeed-show) ++ (require 'elfeed-search)) + + ;;; elfeed.el ends here +
