[Debian-med-packaging] Bug#745074: gdcm: FTBFS with Java 8: regex not supported: openjdk version "1.8.0"

Emmanuel Bourg ebourg at apache.org
Thu Apr 17 17:46:49 UTC 2014


Source: gdcm
Version: 2.4.1-2
Severity: important
User: debian-java at lists.debian.org
Usertags: openjdk-8-transition

Hi,

During a rebuild of all Java packages in sid with OpenJDK 8,
your package failed to build with the following error:


  -- Looking for stdlib.h - found
  -- Found Doxygen: /usr/bin/doxygen (found version "1.8.6") 
  -- Found SWIG: /usr/bin/swig2.0 (found suitable version "2.0.11", minimum required is "2.0.7") 
  -- Found PythonInterp: /usr/bin/python (found version "2.7.6") 
  -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.6") 
  -- Found SWIG: /usr/bin/swig2.0 (found version "2.0.11") 
  CMake Warning at CMake/FindJava.cmake:89 (message):
    regex not supported: openjdk version "1.8.0"
  
    OpenJDK Runtime Environment (build 1.8.0-b132)
  
    OpenJDK 64-Bit Server VM (build 25.0-b70, mixed mode).  Please report
  Call Stack (most recent call first):
    Wrapping/Java/CMakeLists.txt:20 (find_package)
  
  
  -- Java version .. configured successfully!
  CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
    Could NOT find Java (missing: _java_version_acceptable) (Required is at
    least version "1.5")
  Call Stack (most recent call first):
    /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
    CMake/FindJava.cmake:141 (find_package_handle_standard_args)
    Wrapping/Java/CMakeLists.txt:20 (find_package)
  
  
  -- Configuring incomplete, errors occurred!
  See also "/«PKGBUILDDIR»/obj-x86_64-linux-gnu/CMakeFiles/CMakeOutput.log".
  See also "/«PKGBUILDDIR»/obj-x86_64-linux-gnu/CMakeFiles/CMakeError.log".
  dh_auto_configure: cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None -DCMAKE_SKIP_RPATH=ON -DCMAKE_BUILD_TYPE:STRING=None -DGDCM_BUILD_APPLICATIONS=ON -DGDCM_DOCUMENTATION:BOOL=ON -DGDCM_VTK_DOCUMENTATION:BOOL=ON -DDOCUMENTATION_DOWNLOAD_VTK_TAGFILE:BOOL=OFF -DGDCM_PDF_DOCUMENTATION:BOOL=ON -DGDCM_BUILD_SHARED_LIBS:BOOL=ON -DGDCM_WRAP_PYTHON:BOOL=ON -DGDCM_WRAP_CSHARP:BOOL=1 -DGDCM_WRAP_JAVA:BOOL=ON -DGDCM_WRAP_PHP:BOOL=ON -DGDCM_USE_PVRG:BOOL=ON -DGDCM_USE_SYSTEM_PVRG:BOOL=ON -DGMCS_EXECUTABLE:FILEPATH=/usr/bin/mono-csc -DGDCM_BUILD_TESTING:BOOL=OFF -DGDCM_USE_SYSTEM_EXPAT:BOOL=ON -DGDCM_USE_SYSTEM_UUID:BOOL=ON -DGDCM_USE_SYSTEM_ZLIB:BOOL=ON -DGDCM_USE_SYSTEM_OPENJPEG:BOOL=ON -DGDCM_USE_SYSTEM_OPENSSL:BOOL=ON -DGDCM_USE_SYSTEM_CHARLS:BOOL=ON -DGDCM_USE_SYSTEM_POPPLER:BOOL=ON -DGDCM_USE_SYSTEM_LIBXML2:BOOL=ON -DGDCM_USE_SYSTEM_JSON:BOOL=ON -DGDCM_USE_PARAVIEW:BOOL=OFF -DGDCM_USE_ACTIVIZ:BOOL=ON -DGDCM_USE_SYSTEM_PAPYRUS3:BOOL=ON -DGDCM_USE_SY
STEM_SOCKETXX:BOOL=ON -DPython_ADDITIONAL_VERSIONS=2.7 -DGDCM_INSTALL_DOC_DIR:STRING=share/doc/gdcm-doc -DTAGFILES:STRING=/usr/share/doc/vtk-doc/html/vtk5.8.tag=/usr/share/doc/vtk-doc/html/ -DGDCM_INSTALL_PYTHONMODULE_DIR:STRING=lib/python/dist-packages -DGDCM_NO_PYTHON_LIBS_LINKING:BOOL=ON -DGDCM_USE_VTK:BOOL=ON returned exit code 1
  make[1]: *** [override_dh_auto_configure] Error 2
  make[1]: Leaving directory `/«PKGBUILDDIR»'
  make: *** [build] Error 2
  dpkg-buildpackage: error: debian/rules build gave error exit status 2
  --------------------------------------------------------------------------------
  Build finished at 20140406-0048


This issue is probably caused by the new output of the 'java -version' command,
OpenJDK 8 reports:

    openjdk version "1.x.0_yy"

instead of:

    java version "1.x.0_yy"


The full build log is available from:
    http://87.98.165.193/debian/openjdk8-rebuild/logs-failed-jdk8/gdcm_2.4.1-2_unstable_jdk8.log

You can download OpenJDK 8 packages for testing here:
    http://87.98.165.193/debian/openjdk-8u5-b13/



More information about the Debian-med-packaging mailing list