[med-svn] [opensurgsim] 01/01: Do not install the testing libraries

Paul Novotny paulnovo-guest at moszumanska.debian.org
Wed Sep 9 21:03:53 UTC 2015


This is an automated email from the git hooks/post-receive script.

paulnovo-guest pushed a commit to branch master
in repository opensurgsim.

commit 5621d9ab11055a12c083bed8beb948b7a9d7324b
Author: Paul Novotny <paul at paulnovo.us>
Date:   Wed Sep 9 17:02:32 2015 -0400

    Do not install the testing libraries
    
    These do not need to be installed in the package, but should still be
    built so the unit test can be run during the build.
---
 .../patches/dont-install-testing-libraries.patch   | 36 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 37 insertions(+)

diff --git a/debian/patches/dont-install-testing-libraries.patch b/debian/patches/dont-install-testing-libraries.patch
new file mode 100644
index 0000000..562badc
--- /dev/null
+++ b/debian/patches/dont-install-testing-libraries.patch
@@ -0,0 +1,36 @@
+Description: Do not install the libraries used for testing
+ This change prevents the OpenSurgSim testing libraries from being installed
+ and part of the package. These libraries are just used for the unit tests.
+Author: Paul Novotny <paul at paulnovo.us>
+Last-Update: 2015-09-09
+
+--- a/SurgSim/Testing/CMakeLists.txt
++++ b/SurgSim/Testing/CMakeLists.txt
+@@ -34,11 +34,10 @@
+ 	TestCube.h
+ )
+ 
+-surgsim_add_library(
++add_library(
+ 	SurgSimTesting
+ 	"${SURGSIM_TESTING_SOURCES}"
+ 	"${SURGSIM_TESTING_HEADERS}"
+-	"SurgSim/Testing"
+ )
+ add_dependencies(SurgSimTesting yaml-cpp)
+ 
+--- a/SurgSim/Testing/MlcpIO/CMakeLists.txt
++++ b/SurgSim/Testing/MlcpIO/CMakeLists.txt
+@@ -34,11 +34,10 @@
+ # The headers etc. for this do not need to be shipped, so do NOT use
+ # surgsim_add_library here.
+ 
+-surgsim_add_library(
++add_library(
+ 	MlcpTestIO
+ 	"${MLCP_IO_SOURCES}"
+ 	"${MLCP_IO_HEADERS}"
+-	"SurgSim/MlcpTestIO"
+ )
+ 
+ SET(LIBS
diff --git a/debian/patches/series b/debian/patches/series
index bb55fe7..f3a6aef 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ add-version-to-libs.patch
 backport-cb568a34f.patch
 backport-e762a2ea9.patch
 backport-d0a635981.patch
+dont-install-testing-libraries.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/opensurgsim.git



More information about the debian-med-commit mailing list