[med-svn] [dcmtk] 01/05: remove SYSTEM_PROCESSOR related things

Gert Wollny gert-guest at moszumanska.debian.org
Sun Jun 26 17:13:44 UTC 2016


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

gert-guest pushed a commit to branch master
in repository dcmtk.

commit 081fbc9c627f5f2cd54df4662034eca297f9af9a
Author: Gert Wollny <gw.fossdev at gmail.com>
Date:   Thu May 26 15:47:33 2016 +0000

    remove SYSTEM_PROCESSOR related things
---
 debian/patches/08_remove_system_processor.patch | 56 +++++++++++++++++++++++++
 debian/patches/series                           |  1 +
 2 files changed, 57 insertions(+)

diff --git a/debian/patches/08_remove_system_processor.patch b/debian/patches/08_remove_system_processor.patch
new file mode 100644
index 0000000..49c2892
--- /dev/null
+++ b/debian/patches/08_remove_system_processor.patch
@@ -0,0 +1,56 @@
+--- a/CMake/GenerateDCMTKConfigure.cmake
++++ b/CMake/GenerateDCMTKConfigure.cmake
+@@ -64,15 +64,6 @@
+ 
+ # Configure file
+ 
+-# Windows being windows, it lies about its processor type to 32 bit binaries
+-SET(SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITEW6432}")
+-IF(NOT SYSTEM_PROCESSOR)
+-  SET(SYSTEM_PROCESSOR "${CMAKE_SYSTEM_PROCESSOR}")
+-ENDIF(NOT SYSTEM_PROCESSOR)
+-# CMake doesn't provide a configure-style system type string
+-SET(CANONICAL_HOST_TYPE "${SYSTEM_PROCESSOR}-${CMAKE_SYSTEM_NAME}")
+-DCMTK_UNSET(SYSTEM_PROCESSOR)
+-
+ # Configure dictionary path and install prefix
+ IF(WIN32 AND NOT CYGWIN AND NOT MINGW)
+   # Set DCMTK_PREFIX needed within some code. Be sure that all / are replaced by \\.
+--- a/CMake/dcmtkPrepare.cmake
++++ b/CMake/dcmtkPrepare.cmake
+@@ -355,11 +355,6 @@
+   OPTION(DCMTK_FORCE_FPIC_ON_UNIX "Add -fPIC compiler flag on unix 64 bit machines to allow linking from dynamic libraries even if DCMTK is built statically" OFF)
+   MARK_AS_ADVANCED(DCMTK_FORCE_FPIC_ON_UNIX)
+ 
+-  # Setting for IA64 / x86_64 which needs -fPIC compiler flag required for shared library build on these platforms
+-  IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND DCMTK_FORCE_FPIC_ON_UNIX)
+-    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
+-    SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
+-  ENDIF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND DCMTK_FORCE_FPIC_ON_UNIX)
+ 
+ ENDIF(WIN32)
+ 
+--- a/config/include/dcmtk/config/osconfig.h.in
++++ b/config/include/dcmtk/config/osconfig.h.in
+@@ -30,9 +30,6 @@
+ /* Define if __attribute__((aligned)) supports templates */
+ #undef ATTRIBUTE_ALIGNED_SUPPORTS_TEMPLATES
+ 
+-/* Define the canonical host system type as a string constant. */
+-#undef CANONICAL_HOST_TYPE
+-
+ /* Define if char is unsigned on the C compiler */
+ #undef C_CHAR_UNSIGNED
+ 
+--- a/ofstd/libsrc/ofconapp.cc
++++ b/ofstd/libsrc/ofconapp.cc
+@@ -124,6 +124,9 @@
+ 
+ #endif // DCMTK_USE_WCHAR_T
+ 
++#define CANONICAL_HOST_TYPE "Debian"
++
++
+ 
+ void OFConsoleApplication::printHeader(const OFBool hostInfo,
+                                        const OFBool stdError)
diff --git a/debian/patches/series b/debian/patches/series
index 163610f..c7ae910 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@
 05_performance.patch
 06_soversion_abi.patch
 07_dont_export_all_executables.patch
+08_remove_system_processor.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/dcmtk.git



More information about the debian-med-commit mailing list