[Debian-med-packaging] Bug#821959: gdcm: FTBFS on hurd, but previously did

Tobias Frost tobi at coldtobi.de
Thu Apr 21 14:39:51 UTC 2016


Source: gdcm
Followup-For: Bug #821959

Thanks Mathieu, that was it!

Now builds fine on hurd, I used this patch:

(note, as the package builds quite long, I did not check if the first part is required)

$cat debian/patches/08_java_15.patch
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -524,8 +524,8 @@
   option(GDCM_USE_JPEGLS "Build GDCM with JPEG-LS support" ON)
   mark_as_advanced(GDCM_USE_JPEGLS)
   if(GDCM_WRAP_JAVA)
-    set(GDCM_JAVA_SOURCE_VERSION "1.7" CACHE STRING "javac source version")
-    set(GDCM_JAVA_TARGET_VERSION "1.7" CACHE STRING "javac target version")
+    set(GDCM_JAVA_SOURCE_VERSION "1.5" CACHE STRING "javac source version")
+    set(GDCM_JAVA_TARGET_VERSION "1.5" CACHE STRING "javac target version")
     mark_as_advanced(GDCM_JAVA_SOURCE_VERSION GDCM_JAVA_TARGET_VERSION)
   endif()
   if(GDCM_WRAP_CSHARP)
--- a/Wrapping/Java/CMakeLists.txt
+++ b/Wrapping/Java/CMakeLists.txt
@@ -14,7 +14,7 @@

 # $ export JAVA_HOME=/usr/lib/j2sdk1.6-sun/
 # $ export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/
-find_package(Java 1.7 REQUIRED) # javac, jar
+find_package(Java 1.5 REQUIRED) # javac, jar
 find_package(JNI REQUIRED)
 include_directories(
   ${JNI_INCLUDE_DIRS}



-- System Information:
Debian Release: 8.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.0.5-revert-done (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)



More information about the Debian-med-packaging mailing list