]> git.pld-linux.org Git - packages/plplot.git/commitdiff
- disable tests requiring DISPLAY
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 17 Mar 2014 08:44:06 +0000 (09:44 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 17 Mar 2014 08:44:06 +0000 (09:44 +0100)
tk needs X11 display to run, thus making all tests that requires
loding/running it unusable on builders
Just remove them as workaround, leaving only the one that verifies
library sonames

plplot-no-DISPLAY.patch [new file with mode: 0644]
plplot.spec

diff --git a/plplot-no-DISPLAY.patch b/plplot-no-DISPLAY.patch
new file mode 100644 (file)
index 0000000..da3fc19
--- /dev/null
@@ -0,0 +1,90 @@
+--- plplot-5.10.0/cmake/modules/tcl-related.cmake~     2014-01-12 04:12:25.000000000 +0100
++++ plplot-5.10.0/cmake/modules/tcl-related.cmake      2014-03-17 09:38:33.214584768 +0100
+@@ -268,45 +268,10 @@
+       message(STATUS "Looking for wish - found")
+       message(STATUS "TK_WISH = ${TK_WISH}")
+       if(NOT PLPLOT_TK_VERSION)
+-      file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/CheckTK_VERSION.tcl "puts -nonewline [package require Tk]; exit")
+-      # Find Tk version via wish or fail.
+-      execute_process(
+-        COMMAND ${TK_WISH} ${CMAKE_CURRENT_BINARY_DIR}/CheckTK_VERSION.tcl
+-        RESULT_VARIABLE TK_RC
+-        OUTPUT_VARIABLE _plplot_tk_version
+-        )
+-      if(NOT TK_RC)
+-        message(STATUS "Looking for Tk version with wish - found")
+-        # Store result in cached variable so it will be remembered
+-          # when cmake is re-run, but use type of STRING rather than
+-          # INTERNAL to allow users to specify the value with a
+-          # -DPLPLOT_TK_VERSION:STRING=<whatever> on the command
+-          # line for those rare cases when "package require Tk"
+-          # would error out due to some wish issue.
+-        set(PLPLOT_TK_VERSION ${_plplot_tk_version}
++        set(PLPLOT_TK_VERSION ${PLPLOT_TCL_VERSION}
+           CACHE STRING "Tk version found by wish"
+           )
+-        if(PLPLOT_TCL_VERSION STREQUAL PLPLOT_TK_VERSION)
+-          # Cross check that wish finds the same Tcl version as tclsh.
+-          execute_process(
+-            COMMAND ${TK_WISH} ${CMAKE_CURRENT_BINARY_DIR}/CheckTCL_VERSION.tcl
+-            RESULT_VARIABLE TCL_RC
+-            OUTPUT_VARIABLE _plplot_tcl_version
+-            )
+-
+-          if(NOT TCL_RC AND _plplot_tcl_version STREQUAL PLPLOT_TCL_VERSION)
+-            # Cross check that tclsh finds the same Tk version as wish.
+-            execute_process(
+-              COMMAND ${TCL_TCLSH} ${CMAKE_CURRENT_BINARY_DIR}/CheckTK_VERSION.tcl
+-              RESULT_VARIABLE TK_RC
+-              OUTPUT_VARIABLE _plplot_tk_version
+-              )
+-            if(NOT TK_RC AND _plplot_tk_version STREQUAL PLPLOT_TK_VERSION)
+-              message(STATUS "Tcl and Tk versions found by both tclsh and wish are identical")
+-              # Sanity checking of Tk version consistency _if_ a Tk
+-              # version string can be extracted from the Tk library
+-              # name.
+               get_filename_component(library_name ${TK_LIBRARY} NAME)
+               string(REGEX MATCH "[0-9]+[.]?[0-9]+" library_version ${library_name})
+               if(library_version)
+@@ -323,40 +288,6 @@
+    library name is not consistent with PLPLOT_TK_VERSION = ${PLPLOT_TK_VERSION}")
+                 endif(NOT truncated_version STREQUAL library_version)
+               endif(library_version)
+-            elseif(TK_RC)
+-              message(STATUS "Looking for Tk version with tclsh - not found")
+-              message(STATUS "WARNING: setting ENABLE_tk to OFF")
+-              set(ENABLE_tk OFF CACHE BOOL "Enable Tk bindings" FORCE)
+-            else(NOT TK_RC AND _plplot_tk_version STREQUAL PLPLOT_TK_VERSION)
+-              message(STATUS "Tk version = ${_plplot_tk_version} found by tclsh is not consistent with
+-   Tk version = ${PLPLOT_TK_VERSION} found by wish"
+-                )
+-              message(STATUS "WARNING: setting ENABLE_tk to OFF")
+-              set(ENABLE_tk OFF CACHE BOOL "Enable Tk bindings" FORCE)
+-            endif(NOT TK_RC AND _plplot_tk_version STREQUAL PLPLOT_TK_VERSION)
+-          elseif(TCL_RC)
+-            message(STATUS "Looking for Tcl version with wish - not found")
+-            message(STATUS "WARNING: setting ENABLE_tk to OFF")
+-            set(ENABLE_tk OFF CACHE BOOL "Enable Tk bindings" FORCE)
+-          else(NOT TCL_RC AND _plplot_tcl_version STREQUAL PLPLOT_TCL_VERSION)
+-            message(STATUS "Tcl version = ${_plplot_tcl_version} found by wish is not consistent with
+-   Tcl version = ${PLPLOT_TCL_VERSION} found by tclsh"
+-              )
+-            message(STATUS "WARNING: setting ENABLE_tk to OFF")
+-            set(ENABLE_tk OFF CACHE BOOL "Enable Tk bindings" FORCE)
+-          endif(NOT TCL_RC AND _plplot_tcl_version STREQUAL PLPLOT_TCL_VERSION)
+-        else(PLPLOT_TCL_VERSION STREQUAL PLPLOT_TK_VERSION)
+-          message(STATUS "Tk version = ${PLPLOT_TK_VERSION} found by wish is not consistent with 
+-   Tcl version = ${PLPLOT_TCL_VERSION} found by tclsh"
+-            )
+-          message(STATUS "WARNING: setting ENABLE_tk to OFF")
+-          set(ENABLE_tk OFF CACHE BOOL "Enable Tk bindings" FORCE)
+-        endif(PLPLOT_TCL_VERSION STREQUAL PLPLOT_TK_VERSION)
+-      else(NOT TK_RC)
+-        message(STATUS "Looking for Tk version with wish - not found")
+-        message(STATUS "WARNING: setting ENABLE_tk to OFF")
+-        set(ENABLE_tk OFF CACHE BOOL "Enable Tk bindings" FORCE)
+-      endif(NOT TK_RC)
+       else(NOT PLPLOT_TK_VERSION)
+       set(TK_RC 0)
+       endif(NOT PLPLOT_TK_VERSION)
index d8d6a65b7a6f370b9561c3560defaff7ad6dfbe6..2a8b92efce39733906b69f65f88066dfee831ed5 100644 (file)
@@ -29,6 +29,7 @@ Source0:      http://downloads.sourceforge.net/plplot/%{name}-%{version}.tar.gz
 # Source0-md5: ece8c0b4d5cd815968a6d56bed0fbe7b
 Patch0:                %{name}-octave.patch
 Patch1:                %{name}-qhull.patch
+Patch2:                %{name}-no-DISPLAY.patch
 Patch4:                %{name}-nofonts.patch
 Patch5:                %{name}-adadirs.patch
 Patch6:                %{name}-ocamldir.patch
@@ -592,6 +593,7 @@ Biblioteka PLplot - przykłady do wiązania dla Pythona.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
This page took 0.149942 seconds and 4 git commands to generate.