Skip to content

Commit

Permalink
app-emacs/magit: Suppress warning message about missing magit-libgit
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/910593
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
  • Loading branch information
ulm committed Jul 20, 2023
1 parent b21cfa9 commit 2a3b51e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
15 changes: 15 additions & 0 deletions app-emacs/magit/files/magit-3.3.0-libgit-unavail.patch
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2a3b51e

Please sign in to comment.