all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 943647d0cc671083ba3ff58196b5928176a904b4 990 bytes (raw)
name: gnu/packages/patches/kakoune-leave-manpages-uncompressed.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
Kakoune uses gzip to compress its manpages, but this saves the original time
stamp into the file. If we add --no-name to the uses of gzip then we get a
reproducible build.

--- a/src/Makefile
+++ b/src/Makefile
@@ -71,19 +71,19 @@
 	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -MD -MP -MF $(addprefix ., $(<:.cc=$(suffix).d)) -c -o $@ $<
 
 # Generate the man page
 ../doc/kak.1.gz: ../doc/kak.1.txt
 	a2x --no-xmllint -f manpage $<
-	gzip -f $(basename $<)
+	gzip -f --no-name $(basename $<)
 
 # Generate the editor's documentation pages
 # Since `a2x` won't generate man pages if some sections are missing (which we don't need),
 # we generate the pages, patch them and then compress them
 ../doc/manpages/%.gz: ../doc/manpages/%.asciidoc
 	a2x --no-xmllint -f manpage $<
 	sed -i -r -e "s,^\.TH .+,.TH KAKOUNE 1 \"\" \"\" \"$(basename $(notdir $<))\"," \
 	-e "/^\.SH \"NAME\"/{N;d;}" $(@:.gz=.1)
-	gzip -f $(@:.gz=.1)
+	gzip -f --no-name $(@:.gz=.1)
 	mv -f $(@:.gz=.1.gz) $@
 
 check: test
 test:

debug log:

solving 943647d0c ...
found 943647d0c in https://yhetil.org/guix/87o9yut3b0.fsf@zancanaro.id.au/

applying [1/1] https://yhetil.org/guix/87o9yut3b0.fsf@zancanaro.id.au/
diff --git a/gnu/packages/patches/kakoune-leave-manpages-uncompressed.patch b/gnu/packages/patches/kakoune-leave-manpages-uncompressed.patch
new file mode 100644
index 000000000..943647d0c

1:14: space before tab in indent.
 	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -MD -MP -MF $(addprefix ., $(<:.cc=$(suffix).d)) -c -o $@ $<
1:15: trailing whitespace.
 
1:18: space before tab in indent.
 	a2x --no-xmllint -f manpage $<
1:21: trailing whitespace.
 
1:26: space before tab in indent.
 	a2x --no-xmllint -f manpage $<
Checking patch gnu/packages/patches/kakoune-leave-manpages-uncompressed.patch...
Applied patch gnu/packages/patches/kakoune-leave-manpages-uncompressed.patch cleanly.
warning: squelched 4 whitespace errors
warning: 9 lines add whitespace errors.

index at:
100644 943647d0cc671083ba3ff58196b5928176a904b4	gnu/packages/patches/kakoune-leave-manpages-uncompressed.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.