From 3cba237e843f745ec29a7f092cd3409c8ee34ab6 Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Wed, 6 Nov 2019 22:23:55 -0800 Subject: [PATCH] binpac: Fix shared library versioning to agree with OpenBSD expectations OpenBSD shared library names are like "libfoo.so.major.minor" and binpac was previously letting the post-release number into the name like "libbinpac.so.0.54-7", which isn't compatible with that scheme. Related to https://github.com/zeek/zeek/issues/649 --- tools/binpac/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/binpac/CMakeLists.txt b/tools/binpac/CMakeLists.txt index 46f70a27ac..3d0c01e405 100644 --- a/tools/binpac/CMakeLists.txt +++ b/tools/binpac/CMakeLists.txt @@ -7,6 +7,7 @@ string(REPLACE "." " " _version_numbers ${BINPAC_VERSION}) separate_arguments(_version_numbers) list(GET _version_numbers 0 BINPAC_VERSION_MAJOR) list(GET _version_numbers 1 BINPAC_VERSION_MINOR) +string(REGEX REPLACE "-[0-9]*$" "" BINPAC_VERSION_MINOR ${BINPAC_VERSION_MINOR}) # The SO number shall increase only if binary interface changes. set(BINPAC_SOVERSION 0)