This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository gmt.

commit e77f743b6fcfd6876d7a5467317b62a8299fb05b
Author: Bas Couwenberg <sebas...@xs4all.nl>
Date:   Thu Jul 9 20:38:51 2015 +0200

    Move `gzip -n` man page compression from rules to patch.
---
 debian/changelog                               |  1 +
 debian/patches/dont-use-timestamped-gzip.patch | 14 ++++++++++++++
 debian/patches/series                          |  1 +
 debian/rules                                   |  9 ---------
 4 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 7cf0337..0599094 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 gmt (5.1.2+dfsg1-1~exp7) UNRELEASED; urgency=medium
 
   * Add patch to append 'gmt' to the man page sections.
+  * Move `gzip -n` man page compression from rules to patch.
 
  -- Bas Couwenberg <sebas...@debian.org>  Thu, 09 Jul 2015 18:46:47 +0200
 
diff --git a/debian/patches/dont-use-timestamped-gzip.patch 
b/debian/patches/dont-use-timestamped-gzip.patch
new file mode 100644
index 0000000..4d1b823
--- /dev/null
+++ b/debian/patches/dont-use-timestamped-gzip.patch
@@ -0,0 +1,14 @@
+Description: Don't use timestamped gzip for reproducible builds.
+Author: Bas Couwenberg <sebas...@debian.org>
+
+--- a/doc/rst/CMakeLists.txt
++++ b/doc/rst/CMakeLists.txt
+@@ -111,7 +111,7 @@ if (SPHINX_FOUND)
+                       -w "${CMAKE_CURRENT_BINARY_DIR}/man.log"
+                       ${CMAKE_CURRENT_BINARY_DIR}/_source
+                       ${CMAKE_CURRENT_BINARY_DIR}/man
+-                      COMMAND ${GZIP} -9 -f 
${CMAKE_CURRENT_BINARY_DIR}/man/*.?gmt
++                      COMMAND ${GZIP} -9 -n -f 
${CMAKE_CURRENT_BINARY_DIR}/man/*.?gmt
+                       COMMENT "Building manpages...")
+               add_dependencies (docs_man docs_depends)
+       endif (GZIP)
diff --git a/debian/patches/series b/debian/patches/series
index b4d3181..7ac938a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,3 +9,4 @@ palette-typo.patch
 kfreebsd.patch
 mips.patch
 manpage-section.patch
+dont-use-timestamped-gzip.patch
diff --git a/debian/rules b/debian/rules
index 6ce94a7..51c46ae 100755
--- a/debian/rules
+++ b/debian/rules
@@ -95,15 +95,6 @@ override_dh_auto_install:
                debian/tmp/usr/lib/*/lib*.so.*.* \
                debian/tmp/usr/bin/gmt
 
-       # Recompress the manpages to not use timestamped gzip
-       for section in 1 3 5; do \
-               for manpage in 
debian/tmp/usr/share/doc/gmt/man/man$${section}/*.$${section}gmt.gz; do \
-                       if [ -e "$${manpage}" ] ; then \
-                               gunzip $${manpage} && gzip -n `echo $${manpage} 
| sed 's/.gz$$//'` ; \
-                       fi; \
-               done; \
-       done
-
 override_dh_install:
        dh_install --list-missing
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-grass/gmt.git

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to