guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 07ba811e8969f7207a072266073b15bc8e356675
Author: Andreas Enge <[email protected]>
AuthorDate: Mon Feb 9 10:16:41 2026 +0100
gnu: Remove emacs-libgit.
* gnu/packages/emacs-xyz.scm (emacs-libgit): Delete variable.
Fixes: guix/guix#5454
Change-Id: I8b56b197a6190a981c1a10b7d13dc68df424f399
---
gnu/packages/emacs-xyz.scm | 88 ----------------------------------------------
1 file changed, 88 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 4619c68e82..b823b67015 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -2390,94 +2390,6 @@ For remote processes a substitute is provided, which
communicates with Emacs
on stdout instead of using a socket as the Emacsclient does.")
(license license:gpl3+)))
-(define-public emacs-libgit
- (let ((commit "ab1a53a6a0120872e42582fc980e779d47de6d0e")
- (revision "1"))
- (package
- (name "emacs-libgit")
- (version (git-version "0.0.1" revision commit))
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/magit/libegit2")
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1fqqhc7mr9lyshqva8wqknk5kc9vr10rxdp9dkrqgwawr3lk1k5p"))
- (snippet
- #~(begin
- ;; bundled, use the one shipped with emacs instead
- (delete-file "src/emacs-module.h")))))
- ;; Use the cmake-build-system as it provides support for cross builds.
- (build-system cmake-build-system)
- (arguments
- (list
- #:configure-flags #~(list "-DUSE_SYSTEM_LIBGIT2=x")
- ;; Add the emacs-build-system byte compilation and install phases.
- #:imported-modules `(,@%cmake-build-system-modules
- (guix build emacs-build-system)
- (guix build emacs-utils))
- #:modules '((guix build cmake-build-system)
- ((guix build emacs-build-system) #:prefix emacs:)
- (guix build emacs-utils)
- (guix build utils))
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'patch-source
- (lambda _
- ;; Use Emacs 28 unibyte strings.
- ;; XXX: This now breaks if linked against Emacs <= 26, probably
- ;; also 27.
- (substitute* "src/egit-blob.c"
- (("make_string") "make_unibyte_string"))))
- (add-after 'unpack 'set-libgit--module-file
- (lambda _
- (emacs-substitute-variables "libgit.el"
- ("libgit--module-file"
- (string-append (emacs:elpa-directory #$output)
- "/libegit2.so")))))
- (add-after 'unpack 'skip-failing-tests
- ;; XXX: Skip 2 failing tests (out of 29).
- (lambda _
- (substitute* "test/submodule-test.el"
- (("\\(ert-deftest (status|ids) .*" all)
- (string-append all " (skip-unless nil)")))))
- (add-after 'unpack 'ert-number-tests
- (lambda _
- (ert-number-tests "test/repository-test.el"
- "repository-head-for-worktree")))
- (add-before 'install 'prepare-for-install
- (lambda _
- (let ((s "../source"))
- (copy-file "libegit2.so" (string-append s "/libegit2.so"))
- (chdir s))))
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((install (assoc-ref emacs:%standard-phases 'install)))
- (install #:outputs outputs
- #:include (cons "\\.so$"
- emacs:%default-include)))))
- (add-after 'unpack 'emacs-add-install-to-native-load-path
- (assoc-ref emacs:%standard-phases
'add-install-to-native-load-path))
- (add-after 'unpack 'make-autoloads
- (assoc-ref emacs:%standard-phases 'make-autoloads))
- (add-after 'unpack 'patch-el-files
- (assoc-ref emacs:%standard-phases 'patch-el-files))
- (add-after 'install 'emacs-build
- (assoc-ref emacs:%standard-phases 'build))
- (add-after 'emacs-build 'validate-compiled-autoloads
- (assoc-ref emacs:%standard-phases
'validate-compiled-autoloads)))))
- (native-inputs
- (list emacs-no-x git-minimal pkg-config))
- (inputs
- (list libgit2))
- (home-page "https://github.com/magit/libegit2")
- (synopsis "Emacs bindings for libgit2")
- (description "This is an experimental module written in C providing
-libgit2 bindings for Emacs, intended to boost the performance of Magit.")
- (license license:gpl2+))))
-
(define-public emacs-llama
(package
(name "emacs-llama")