[proj] 03/07: Add patch by Alexis Bienvenüe to make nad2bin output reproducible.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Mon May 23 21:21:11 UTC 2016


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

sebastic pushed a commit to branch master
in repository proj.

commit dd2e98b127bac4d18f4e23e97600b8dde7819dc0
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Mon May 23 20:52:45 2016 +0200

    Add patch by Alexis Bienvenüe to make nad2bin output reproducible.
---
 debian/changelog                                 |  2 ++
 debian/patches/nad2bin-reproducible-header.patch | 18 ++++++++++++++++++
 debian/patches/series                            |  1 +
 3 files changed, 21 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 614692e..ffff4ce 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ proj (4.9.2-3) UNRELEASED; urgency=medium
 
   * Update Homepage URL for move to GitHub.
   * Bump Standards-Version to 3.9.8, no changes.
+  * Add patch by Alexis Bienvenüe to make nad2bin output reproducible.
+    (closes: #825088)
 
  -- Bas Couwenberg <sebastic at debian.org>  Mon, 23 May 2016 20:28:01 +0200
 
diff --git a/debian/patches/nad2bin-reproducible-header.patch b/debian/patches/nad2bin-reproducible-header.patch
new file mode 100644
index 0000000..f3eae08
--- /dev/null
+++ b/debian/patches/nad2bin-reproducible-header.patch
@@ -0,0 +1,18 @@
+Description: Makes nad2bin output reproducible
+ Init CTABLE.id char[80] variable with zeroes, so that nad2bin output does
+ not depend on memory state before call, and hence be reproducible.
+Author: Alexis Bienvenüe <pado at passoire.fr>
+Bug-Debian: https://bugs.debian.org/825088
+Forwarded: https://github.com/OSGeo/proj.4/pull/381
+Applied-Upstream: https://github.com/OSGeo/proj.4/commit/a112ea3172e89230fa307567be3d70e286b1eeb5
+
+--- a/src/nad2bin.c
++++ b/src/nad2bin.c
+@@ -98,6 +98,7 @@ int main(int argc, char **argv) {
+ /*      Read the ASCII Table                                            */
+ /* ==================================================================== */
+ 
++    memset(ct.id,0,MAX_TAB_ID);
+     if ( NULL == fgets(ct.id, MAX_TAB_ID, stdin) ) {
+         perror("fgets");
+         exit(1);
diff --git a/debian/patches/series b/debian/patches/series
index bff8025..56c84b9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 manpage-typos.patch
 GTX-grids-ignore-shift-values-whose-abs-value-is-gt-1000.patch
+nad2bin-reproducible-header.patch

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



More information about the Pkg-grass-devel mailing list