Index: head/sysutils/facter/Makefile =================================================================== --- head/sysutils/facter/Makefile (revision 396903) +++ head/sysutils/facter/Makefile (revision 396904) @@ -1,32 +1,33 @@ # $FreeBSD$ PORTNAME= facter PORTVERSION= 3.0.2 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://downloads.puppetlabs.com/facter/ MAINTAINER= mmoll@FreeBSD.org -COMMENT= Cross-platform Ruby library for retrieving facts from OS +COMMENT= Cross-platform library for retrieving facts from OS LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libboost_system.so:${PORTSDIR}/devel/boost-libs \ libyaml-cpp.so:${PORTSDIR}/devel/yaml-cpp USE_LDCONFIG= yes USE_RUBY= yes USES= cmake compiler:c++11-lib CMAKE_ARGS+= -DMAN_PATH=${MANPREFIX}/man CONFLICTS_INSTALL= rubygem-facter-2* BROKEN_DragonFly= DragonFly is not supported upstream .include .if ${OPSYS} == FreeBSD && ${COMPILER_FEATURES:Mlibstdc++} BROKEN= Build with system libstdc++ is unsupported .endif .include Index: head/sysutils/facter/files/patch-vendor_leatherman_cmake_cflags.cmake =================================================================== --- head/sysutils/facter/files/patch-vendor_leatherman_cmake_cflags.cmake (revision 396903) +++ head/sysutils/facter/files/patch-vendor_leatherman_cmake_cflags.cmake (revision 396904) @@ -1,10 +1,19 @@ --- vendor/leatherman/cmake/cflags.cmake.orig 2015-07-21 17:31:29 UTC +++ vendor/leatherman/cmake/cflags.cmake +@@ -2,7 +2,7 @@ + # Each of our project dirs sets CMAKE_CXX_FLAGS based on these. We do + # not set CMAKE_CXX_FLAGS globally because gtest is not warning-clean. + if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") +- set(LEATHERMAN_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -Werror -Wno-unused-parameter -Wno-tautological-constant-out-of-range-compare") ++ set(LEATHERMAN_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-error") + + # Clang warns that 'register' is deprecated; 'register' is used throughout boost, so it can't be an error yet. + # The warning flag is different on different clang versions so we need to extract the clang version. @@ -21,6 +21,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL else() set(LEATHERMAN_CXX_FLAGS "${LEATHERMAN_CXX_FLAGS} -Wno-deprecated") endif() + set(LEATHERMAN_LIBRARY_FLAGS "-fPIC") elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") # maybe-uninitialized is a relatively new GCC warning that Boost 1.57 violates; disable it for now until it's available in Clang as well # it's also sometimes wrong