[med-svn] r12482 - in trunk/packages/insighttoolkit/trunk/debian: . patches

Steven Michael Robbins smr at alioth.debian.org
Sat Oct 27 14:15:48 UTC 2012


Author: smr
Date: 2012-10-27 14:15:48 +0000 (Sat, 27 Oct 2012)
New Revision: 12482

Added:
   trunk/packages/insighttoolkit/trunk/debian/patches/bsd-hdf5.patch
Modified:
   trunk/packages/insighttoolkit/trunk/debian/changelog
   trunk/packages/insighttoolkit/trunk/debian/patches/series
Log:
Add _BSD_SOURCE to fix build failure on kfreebsd.

Modified: trunk/packages/insighttoolkit/trunk/debian/changelog
===================================================================
--- trunk/packages/insighttoolkit/trunk/debian/changelog	2012-10-27 13:14:56 UTC (rev 12481)
+++ trunk/packages/insighttoolkit/trunk/debian/changelog	2012-10-27 14:15:48 UTC (rev 12482)
@@ -3,8 +3,10 @@
   * patches/DRtest-1.diff:
   * patches/DRtest-2.diff: New.  Fixes DigitallyReconstructedRadiograph
     generation on i386.
+  
+  * patches/bsd-hdf5.patch: New.  Workaround for #686402.
 
- -- Steve M. Robbins <smr at debian.org>  Sat, 27 Oct 2012 08:13:31 -0500
+ -- Steve M. Robbins <smr at debian.org>  Sat, 27 Oct 2012 09:15:12 -0500
 
 insighttoolkit4 (4.2.1-1) unstable; urgency=low
 

Added: trunk/packages/insighttoolkit/trunk/debian/patches/bsd-hdf5.patch
===================================================================
--- trunk/packages/insighttoolkit/trunk/debian/patches/bsd-hdf5.patch	                        (rev 0)
+++ trunk/packages/insighttoolkit/trunk/debian/patches/bsd-hdf5.patch	2012-10-27 14:15:48 UTC (rev 12482)
@@ -0,0 +1,18 @@
+Description: Add _BSD_SOURCE to build itkhdf5 on kfreebsd
+ To work around bug #686402, we define _BSD_SOURCE when building on kfreebsd.
+Author: Steve Robbins <smr at debian.org>
+Forwarded: not-needed
+
+
+--- insighttoolkit4-4.2.1.orig/Modules/ThirdParty/HDF5/src/itkhdf5/CMakeLists.txt
++++ insighttoolkit4-4.2.1/Modules/ThirdParty/HDF5/src/itkhdf5/CMakeLists.txt
+@@ -360,6 +360,9 @@
+ #-----------------------------------------------------------------------------
+ IF (CMAKE_COMPILER_IS_GNUCC)
+   SET (CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS} -std=c99 -finline-functions -fno-common")
++  IF ($ENV{DEB_HOST_ARCH_OS} EQUAL "kfreebsd")
++    SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_BSD_SOURCE")
++  ENDIF ()
+ ENDIF (CMAKE_COMPILER_IS_GNUCC)
+ 
+ #-----------------------------------------------------------------------------

Modified: trunk/packages/insighttoolkit/trunk/debian/patches/series
===================================================================
--- trunk/packages/insighttoolkit/trunk/debian/patches/series	2012-10-27 13:14:56 UTC (rev 12481)
+++ trunk/packages/insighttoolkit/trunk/debian/patches/series	2012-10-27 14:15:48 UTC (rev 12482)
@@ -1,2 +1,3 @@
+bsd-hdf5.patch
 DRtest-1.diff
 DRtest-2.diff




More information about the debian-med-commit mailing list