openbsd-ports/sysutils/facter/patches/patch-lib_CMakeLists_txt
2016-06-01 07:02:02 +00:00

28 lines
1.5 KiB
Plaintext

$OpenBSD: patch-lib_CMakeLists_txt,v 1.15 2016/06/01 07:02:02 jasper Exp $
- From fbb7625c044091f5de8525e85f714999eb79e81a Mon Sep 17 00:00:00 2001
From: Jasper Lievisse Adriaanse <jasper@humppa.nl>
Date: Mon, 30 May 2016 18:56:21 +0200
Subject: [PATCH] (FACT-1432) Fixup OpenBSD networking facts
- Override library version
--- lib/CMakeLists.txt.orig Fri May 20 18:36:55 2016
+++ lib/CMakeLists.txt Mon May 30 16:42:26 2016
@@ -202,6 +202,7 @@ elseif ("${CMAKE_SYSTEM_NAME}" MATCHES "OpenBSD")
"src/facts/openbsd/collection.cc"
"src/facts/glib/load_average_resolver.cc"
"src/facts/bsd/filesystem_resolver.cc"
+ "src/facts/bsd/networking_resolver.cc"
"src/facts/bsd/uptime_resolver.cc"
"src/facts/openbsd/dmi_resolver.cc"
"src/facts/openbsd/networking_resolver.cc"
@@ -282,7 +283,7 @@ link_directories(
add_library(libfactersrc OBJECT ${LIBFACTER_COMMON_SOURCES} ${LIBFACTER_STANDARD_SOURCES} ${LIBFACTER_PLATFORM_SOURCES})
set_target_properties(libfactersrc PROPERTIES POSITION_INDEPENDENT_CODE true)
add_library(libfacter SHARED $<TARGET_OBJECTS:libfactersrc>)
-set_target_properties(libfacter PROPERTIES PREFIX "" SUFFIX ".so" IMPORT_PREFIX "" IMPORT_SUFFIX ".so.a" VERSION "${LIBFACTER_VERSION_MAJOR}.${LIBFACTER_VERSION_MINOR}.${LIBFACTER_VERSION_PATCH}")
+set_target_properties(libfacter PROPERTIES PREFIX "" SUFFIX ".so" IMPORT_PREFIX "" IMPORT_SUFFIX ".so.a" VERSION "${LIBfacter_MAJOR}.${LIBfacter_MINOR}")
if(AIX)
# On AIX we need to be built such that we are "dynamically