GNU bug report logs - #75937
[PATCH] gnu: git-filter-repo: Update to 2.47.0.

Previous Next

Package: guix-patches;

Reported by: Nicolas Graves <ngraves <at> ngraves.fr>

Date: Thu, 30 Jan 2025 00:49:01 UTC

Severity: normal

Tags: patch

Done: Hilton Chain <hako <at> ultrarare.space>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 75937 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 75937 <at> debbugs.gnu.org
Cc: Nicolas Graves <ngraves <at> ngraves.fr>
Subject: [PATCH v2 1/2] gnu: git-filter-repo: Fix build.
Date: Thu, 30 Jan 2025 10:04:23 +0100
* gnu/packages/version-control.scm (git-filter-repo):
[arguments]<#:phases>: Adapt phase 'unpack-git-source to handle the
asciidoc.conf renamed to asciidoc.conf.in in upstream git.
* gnu/packages/patches/git-filter-repo-generate-doc.patch: Refresh
patch.
---
 .../git-filter-repo-generate-doc.patch        | 20 +++++++++----------
 gnu/packages/version-control.scm              |  7 ++++++-
 2 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/patches/git-filter-repo-generate-doc.patch b/gnu/packages/patches/git-filter-repo-generate-doc.patch
index 4535ae5bc4..baf6fd4f8f 100644
--- a/gnu/packages/patches/git-filter-repo-generate-doc.patch
+++ b/gnu/packages/patches/git-filter-repo-generate-doc.patch
@@ -1,4 +1,4 @@
-From 56e6857e71d2b2a2236625f3c8b112bd40a8b164 Mon Sep 17 00:00:00 2001
+From d44e90189f3dfc47b86a457cb3493478207fa14d Mon Sep 17 00:00:00 2001
 From: Josselin Poiret <dev <at> jpoiret.xyz>
 Date: Fri, 16 Feb 2024 00:21:06 +0800
 Subject: [PATCH] Add documentation generation.
@@ -53,13 +53,13 @@ index 0000000..d81ffbe
 +man: man1/git-filter-repo.1
 +html: html/git-filter-repo.html
 diff --git a/Makefile b/Makefile
-index a443450..d965ae5 100644
+index 3330a1d..801da8f 100644
 --- a/Makefile
 +++ b/Makefile
-@@ -20,21 +20,10 @@ test:
+@@ -21,21 +21,10 @@ test:
  fixup_locale:
  	sed -ie s%@@LOCALEDIR@@%$(localedir)% git-filter-repo
-
+ 
 -# People installing from tarball will already have man1/git-filter-repo.1 and
 -# html/git-filter-repo.html.  But let's support people installing from a git
 -# clone too; for them, just cheat and snag a copy of the built docs that I
@@ -67,7 +67,7 @@ index a443450..d965ae5 100644
 -snag_docs: Documentation/man1/git-filter-repo.1 Documentation/html/git-filter-repo.html
 +doc:
 +	$(MAKE) -C Documentation man html
-
+ 
 -Documentation/man1/git-filter-repo.1:
 -	mkdir -p Documentation/man1
 -	git show origin/docs:man1/git-filter-repo.1 >Documentation/man1/git-filter-repo.1
@@ -78,11 +78,9 @@ index a443450..d965ae5 100644
 -
 -install: snag_docs #fixup_locale
 +install: doc #fixup_locale
- 	install -Dm0755 git-filter-repo "$(DESTDIR)/$(bindir)/git-filter-repo"
- 	install -dm0755 "$(DESTDIR)/$(pythondir)"
+ 	$(INSTALL) -Dm0755 git-filter-repo "$(DESTDIR)/$(bindir)/git-filter-repo"
+ 	$(INSTALL) -dm0755 "$(DESTDIR)/$(pythondir)"
  	ln -sf "$(bindir)/git-filter-repo" "$(DESTDIR)/$(pythondir)/git_filter_repo.py"
-
-base-commit: cbc6535694380d3a3bf3e5c96410d4ce7e8de94f
---
-2.41.0
+-- 
+2.47.1
 
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 636509d6c5..09973c1f9c 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -4434,7 +4434,12 @@ (define-public git-filter-repo
                  #:source #+(package-source git))
                 (for-each
                  (cut install-file <> doc-source)
-                 (find-files "." "asciidoc\\.conf$|manpage.*\\.xsl$"))
+                 (find-files "." "asciidoc\\.conf\\.in$|manpage.*\\.xsl$"))
+                ;; These attributes are probably not needed.
+                (with-directory-excursion doc-source
+                  (substitute* "asciidoc.conf.in"
+                    (("@GIT_(VERSION|DATE)@") ""))
+                  (rename-file "asciidoc.conf.in" "asciidoc.conf"))
                 (chdir old-path)
                 (delete-file-recursively "git-source"))))
           (add-before 'build 'set-pythondir
-- 
2.48.1





This bug report was last modified 171 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.