[emos] 01/06: Add shared patch for SONAMES

Alastair McKinstry mckinstry at moszumanska.debian.org
Tue Jul 7 11:15:14 UTC 2015


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

mckinstry pushed a commit to branch debian/master
in repository emos.

commit 4a25e8be6439394ead9886be333c30722240e438
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Mon Jun 15 08:13:14 2015 +0100

    Add shared patch for SONAMES
---
 debian/patches/shared.patch | 49 ++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 48 insertions(+), 1 deletion(-)

diff --git a/debian/patches/shared.patch b/debian/patches/shared.patch
index f37d532..29ca305 100644
--- a/debian/patches/shared.patch
+++ b/debian/patches/shared.patch
@@ -4,7 +4,7 @@ Description: Enable building shared libs in emoslib (cmake)
  but a cleaner patch than before.
  Needs to build -fpic, -mcmodel=medium for shared, but preferably don't
  for static, so build in separate dirs.
-Last-Update: 2015-05-25
+Last-Update: 2015-06-14
 Forwarded: no
 
 Index: emoslib-4.0.3+dfsg.1/libemos-sp-shared/CMakeLists.txt
@@ -76,6 +76,15 @@ Index: emoslib-4.0.3+dfsg.1/cmake/ecbuild_add_library.cmake
 ===================================================================
 --- emoslib-4.0.3+dfsg.1.orig/cmake/ecbuild_add_library.cmake
 +++ emoslib-4.0.3+dfsg.1/cmake/ecbuild_add_library.cmake
+@@ -13,7 +13,7 @@
+ function( ecbuild_add_library_impl )
+ 
+ 	set( options NOINSTALL AUTO_VERSION )
+-	set( single_value_args TARGET TYPE COMPONENT INSTALL_HEADERS LINKER_LANGUAGE HEADER_DESTINATION VERSION OUTPUT_NAME )
++	set( single_value_args TARGET TYPE COMPONENT INSTALL_HEADERS LINKER_LANGUAGE HEADER_DESTINATION VERSION SONAME SOVERSION OUTPUT_NAME )
+ 	set( multi_value_args  SOURCES TEMPLATES LIBS INCLUDES DEPENDS PERSISTENT DEFINITIONS CFLAGS CXXFLAGS FFLAGS GENERATED CONDITION )
+ 
+ 	cmake_parse_arguments( _PAR "${options}" "${single_value_args}" "${multi_value_args}"  ${_FIRST_ARG} ${ARGN} )
 @@ -119,6 +119,15 @@ function( ecbuild_add_library_impl )
  
  		get_property( _target_pic TARGET ${_PAR_TARGET} PROPERTY POSITION_INDEPENDENT_CODE )
@@ -92,3 +101,41 @@ Index: emoslib-4.0.3+dfsg.1/cmake/ecbuild_add_library.cmake
  			if( "${CMAKE_C_COMPILER_ID}" STREQUAL "Cray" )
  				set( _PAR_CFLAGS "-fPIC -h PIC ${_PAR_CFLAGS}" )
  			endif()
+@@ -130,6 +139,13 @@ function( ecbuild_add_library_impl )
+ 			endif()
+ 		endif()
+ 
++                if (DEFINED _PAR_SOVERSION )
++                        set_target_properties( ${_PAR_TARGET} PROPERTIES SOVERSION "${_PAR_SOVERSION}" )
++                endif()
++                if (DEFINED _PAR_SONAME )
++                        set_target_properties( ${_PAR_TARGET} PROPERTIES SONAME "${_PAR_SONAME}" )
++                endif()
++
+ 		# define VERSION if requested
+ 		if( DEFINED _PAR_VERSION )
+ 			set_target_properties( ${_PAR_TARGET} PROPERTIES VERSION "${_PAR_VERSION}" )
+Index: emoslib-4.0.3+dfsg.1/libemos-dp/CMakeLists.txt
+===================================================================
+--- emoslib-4.0.3+dfsg.1.orig/libemos-dp/CMakeLists.txt
++++ emoslib-4.0.3+dfsg.1/libemos-dp/CMakeLists.txt
+@@ -16,6 +16,7 @@ ecbuild_add_library(
+   TYPE STATIC
+   TARGET      emos
+   OUTPUT_NAME "emosR64"
++  SONAME      "libemosR64.so.0d"
+   DEFINITIONS ${LIBEMOS_DEFINITIONS}
+   SOURCES     ../libemos_version.c ${emos_dp_srcs}
+   GENERATED   ../libemos_version.c )
+Index: emoslib-4.0.3+dfsg.1/libemos-sp/CMakeLists.txt
+===================================================================
+--- emoslib-4.0.3+dfsg.1.orig/libemos-sp/CMakeLists.txt
++++ emoslib-4.0.3+dfsg.1/libemos-sp/CMakeLists.txt
+@@ -21,6 +21,7 @@ ecbuild_add_library(
+   TYPE STATIC
+   TARGET      emos_sp
+   OUTPUT_NAME "emos"
++  SONAME      "libemos.so.0d"
+   DEFINITIONS ${LIBEMOS_DEFINITIONS}
+   SOURCES     ../libemos_version.c ${emos_sp_srcs}
+   GENERATED   ../libemos_version.c )

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/emos.git



More information about the debian-science-commits mailing list