[med-svn] r20258 - trunk/packages/gdcm/prepare-2.6/debian/patches

Gert Wollny gert-guest at moszumanska.debian.org
Sat Oct 17 09:15:32 UTC 2015


Author: gert-guest
Date: 2015-10-17 09:15:31 +0000 (Sat, 17 Oct 2015)
New Revision: 20258

Added:
   trunk/packages/gdcm/prepare-2.6/debian/patches/vtkgdcm-sharp-siging.patch
Log:
Sign vtk c# module after compiling it

Added: trunk/packages/gdcm/prepare-2.6/debian/patches/vtkgdcm-sharp-siging.patch
===================================================================
--- trunk/packages/gdcm/prepare-2.6/debian/patches/vtkgdcm-sharp-siging.patch	                        (rev 0)
+++ trunk/packages/gdcm/prepare-2.6/debian/patches/vtkgdcm-sharp-siging.patch	2015-10-17 09:15:31 UTC (rev 20258)
@@ -0,0 +1,36 @@
+diff -ru gdcm-2.6.0.old/Utilities/VTK/AssemblyInfo.cs.in gdcm-2.6.0/Utilities/VTK/AssemblyInfo.cs.in
+--- gdcm-2.6.0.old/Utilities/VTK/AssemblyInfo.cs.in	2015-09-03 16:42:12.000000000 +0200
++++ gdcm-2.6.0/Utilities/VTK/AssemblyInfo.cs.in	2015-10-17 11:10:53.112614510 +0200
+@@ -69,5 +69,5 @@
+ // .NET Framework documentation for more information about signing.
+ // This is not required, if you don't want signing let these attributes like they're.
+ [assembly: AssemblyDelaySign(false)]
+-[assembly: AssemblyKeyFile("key.snk")]
++//[assembly: AssemblyKeyFile("key.snk")]
+ //[assembly: AssemblyKeyName("")]
+diff -ru gdcm-2.6.0.old/Utilities/VTK/CMakeLists.txt gdcm-2.6.0/Utilities/VTK/CMakeLists.txt
+--- gdcm-2.6.0.old/Utilities/VTK/CMakeLists.txt	2015-09-03 16:42:12.000000000 +0200
++++ gdcm-2.6.0/Utilities/VTK/CMakeLists.txt	2015-10-17 11:10:55.356721743 +0200
+@@ -598,7 +598,8 @@
+ 
+     add_custom_command(
+       OUTPUT ${GDCM_LIBRARY_DIR}/vtkgdcm-sharp.dll
+-      COMMAND ${CMAKE_CSHARP_COMPILER} ARGS "/t:library" "/out:${GDCM_LIBRARY_DIR}/vtkgdcm-sharp.dll" "*.cs"
++      COMMAND ${CMAKE_CSHARP_COMPILER} ARGS "/t:library" "/out:${GDCM_LIBRARY_DIR}/vtkgdcm-sharp.dll" "/keyfile:key.snk" "*.cs"
++      COMMAND "/usr/bin/sn" "-R" "${GDCM_LIBRARY_DIR}/vtkgdcm-sharp.dll" "key.snk" 
+       WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+       DEPENDS "${swig_generated_file_fullname}"
+       ${CMAKE_CURRENT_BINARY_DIR}/AssemblyInfo.cs
+@@ -740,9 +741,9 @@
+     # do not set the version on the Python module:
+     #set_target_properties(${VTKGDCM_NAME}Python PROPERTIES ${GDCM_LIBRARY_PROPERTIES})
+     target_link_libraries(${VTKGDCM_NAME}PythonD ${VTKGDCM_NAME} ${PYTHON_LIBRARY})
+-    foreach(c ${vtkgdcm_LIBS} vtkFiltering)
+-      target_link_libraries(${VTKGDCM_NAME}PythonD ${c}Python${DEXTENSION})
+-    endforeach()
++#    foreach(c ${vtkgdcm_LIBS} vtkFiltering)
++#      target_link_libraries(${VTKGDCM_NAME}PythonD ${c}Python${DEXTENSION})
++#    endforeach()
+     if(TARGET vtkPythonCore)
+       target_link_libraries(${VTKGDCM_NAME}PythonD vtkPythonCore)
+     endif()




More information about the debian-med-commit mailing list