[mapcode] 01/02: Pass -fsigned-char to gcc

Stefan Fritsch sf at moszumanska.debian.org
Thu Nov 3 20:14:47 UTC 2016


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

sf pushed a commit to branch master
in repository mapcode.

commit 9e2fd882ed79e4ad6d7552f4b563989e301e51b9
Author: Stefan Fritsch <sf at sfritsch.de>
Date:   Thu Nov 3 21:11:05 2016 +0100

    Pass -fsigned-char to gcc
    
    mapcode does not seem to cope with archs where char is unsigned.
---
 debian/changelog           | 4 ++++
 debian/patches/build-fixes | 6 ++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b3b38cf..5db02e8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,11 +1,15 @@
 mapcode (2.5.1-2) UNRELEASED; urgency=medium
 
+  [ Bas Couwenberg ]
   * Team upload.
   * Fix watch file and handle common issues.
   * Restructure control file with cme.
   * Reorder fields in copyright file.
   * Drop unused get-orig-source script.
 
+  [ Stefan Fritsch ]
+  * Add -fsigned-char to fix test failures. Closes: #843084
+
  -- Bas Couwenberg <sebastic at debian.org>  Thu, 03 Nov 2016 19:20:53 +0100
 
 mapcode (2.5.1-1) unstable; urgency=medium
diff --git a/debian/patches/build-fixes b/debian/patches/build-fixes
index bfc4da1..f3d9b05 100644
--- a/debian/patches/build-fixes
+++ b/debian/patches/build-fixes
@@ -1,5 +1,6 @@
 Description: Fix build infra
- Link some libs and install targets
+ Link some libs and install targets.
+ Also add -fsigned-char as work-around for test fails (#843084)
 Author: Stefan Fritsch <sf at debian.org>
 Origin: vendor
 Forwarded: no
@@ -7,13 +8,14 @@ Last-Update: 2016-11-02
 
 --- mapcode.orig/CMakeLists.txt
 +++ mapcode/CMakeLists.txt
-@@ -65,11 +65,23 @@ set(SOURCE_FILES_UNITTEST
+@@ -65,11 +65,24 @@ set(SOURCE_FILES_UNITTEST
  set(SOURCE_FILES_UTILITY
          utility/mapcode.cpp)
  
 +set(THREADS_PREFER_PTHREAD_FLAG ON)
 +find_package(Threads REQUIRED)
 +find_library(M_LIB m)
++add_compile_options("-fsigned-char")
 +
  add_library(mapcodelib ${SOURCE_FILES_MAPCODELIB})
  target_include_directories(mapcodelib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

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



More information about the Pkg-grass-devel mailing list