summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-07-20 18:05:29 +0200
committerUlrich Müller <ulm@gentoo.org>2023-07-20 18:07:37 +0200
commit2a3b51eb21b1282891c5adea3faa483888e3e410 (patch)
tree8abc2cbd4d3e860e75dfb54270fb8893f4fb5f18 /app-emacs/magit
parentsci-geosciences/routino: bump to 3.4.1 (diff)
downloadgentoo-2a3b51eb21b1282891c5adea3faa483888e3e410.tar.gz
gentoo-2a3b51eb21b1282891c5adea3faa483888e3e410.tar.bz2
gentoo-2a3b51eb21b1282891c5adea3faa483888e3e410.zip
app-emacs/magit: Suppress warning message about missing magit-libgit
Bug: https://bugs.gentoo.org/910593 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'app-emacs/magit')
-rw-r--r--app-emacs/magit/files/magit-3.3.0-libgit-unavail.patch15
-rw-r--r--app-emacs/magit/magit-3.3.0-r4.ebuild (renamed from app-emacs/magit/magit-3.3.0-r3.ebuild)5
2 files changed, 19 insertions, 1 deletions
diff --git a/app-emacs/magit/files/magit-3.3.0-libgit-unavail.patch b/app-emacs/magit/files/magit-3.3.0-libgit-unavail.patch
new file mode 100644
index 000000000000..6373e720dffc
--- /dev/null
+++ b/app-emacs/magit/files/magit-3.3.0-libgit-unavail.patch
@@ -0,0 +1,15 @@
+Suppress warning message about missing magit-libgit
+https://bugs.gentoo.org/910593
+
+--- lisp/magit-core.el
++++ lisp/magit-core.el
+@@ -41,7 +41,8 @@
+ (require 'magit-transient)
+ (require 'magit-autorevert)
+
+-(when (magit--libgit-available-p)
++(when (and (not magit-inhibit-libgit)
++ (magit--libgit-available-p))
+ (condition-case err
+ (require 'magit-libgit)
+ (error
diff --git a/app-emacs/magit/magit-3.3.0-r3.ebuild b/app-emacs/magit/magit-3.3.0-r4.ebuild
index eaee9f6713a7..46f40464fe43 100644
--- a/app-emacs/magit/magit-3.3.0-r3.ebuild
+++ b/app-emacs/magit/magit-3.3.0-r4.ebuild
@@ -23,7 +23,10 @@ LICENSE="GPL-3+"
SLOT="0"
IUSE="libgit"
-PATCHES=( "${FILESDIR}"/${P}-inhibit-libgit.patch )
+PATCHES=(
+ "${FILESDIR}"/${P}-inhibit-libgit.patch
+ "${FILESDIR}"/${P}-libgit-unavail.patch
+)
DOCS=( ../README.md ../Documentation/AUTHORS.md ../Documentation/RelNotes )
ELISP_TEXINFO="../Documentation/*.texi"
SITEFILE="50${PN}-gentoo.el"