Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Apr 2019 11:08:33 +0000 (UTC)
From:      Luca Pizzamiglio <pizzamig@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r498272 - in head/net-mgmt/openbmp: . files
Message-ID:  <201904071108.x37B8XT1063636@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pizzamig
Date: Sun Apr  7 11:08:32 2019
New Revision: 498272
URL: https://svnweb.freebsd.org/changeset/ports/498272

Log:
  net-mgmt/openbmp: Fix the build with librdkafka 1.0.0
  
  Adding zstd support to librdkafka broke this port.
  Fix it.
  
  Reported by:	antoine@
  Sponsored by:	trivago N.V.

Modified:
  head/net-mgmt/openbmp/Makefile
  head/net-mgmt/openbmp/files/patch-Server_CMakeLists.txt

Modified: head/net-mgmt/openbmp/Makefile
==============================================================================
--- head/net-mgmt/openbmp/Makefile	Sun Apr  7 10:47:34 2019	(r498271)
+++ head/net-mgmt/openbmp/Makefile	Sun Apr  7 11:08:32 2019	(r498272)
@@ -4,7 +4,7 @@
 PORTNAME=	openbmp
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.14.0
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	net-mgmt
 
 MAINTAINER=	pizzamig@FreeBSD.org

Modified: head/net-mgmt/openbmp/files/patch-Server_CMakeLists.txt
==============================================================================
--- head/net-mgmt/openbmp/files/patch-Server_CMakeLists.txt	Sun Apr  7 10:47:34 2019	(r498271)
+++ head/net-mgmt/openbmp/files/patch-Server_CMakeLists.txt	Sun Apr  7 11:08:32 2019	(r498272)
@@ -1,34 +1,43 @@
---- Server/CMakeLists.txt.orig	2017-09-14 09:29:16 UTC
+--- Server/CMakeLists.txt.orig	2018-03-06 18:31:59 UTC
 +++ Server/CMakeLists.txt
-@@ -24,6 +24,14 @@ find_path(LIBYAML_CPP_INCLUDE_DIR
+@@ -24,6 +24,23 @@ find_path(LIBYAML_CPP_INCLUDE_DIR
          PATH_SUFFIXES
          include)
  
 +find_path(LIBLZ4_CPP_LIBRARY_DIR
-+		NAMES
-+		liblz4.so
++	NAMES
++	liblz4.so
 +        HINTS
 +        ${HINT_ROOT_DIR}
 +        PATH_SUFFIXES
 +        lib)
 +
++find_path(LIBZSTD_CPP_LIBRARY_DIR
++	NAMES
++	libzstd.so
++        HINTS
++        ${HINT_ROOT_DIR}
++        PATH_SUFFIXES
++        lib)
++
++
  find_library(LIBYAML_CPP_LIBRARY
          NAMES
          libyaml-cpp.a yaml-cpp
-@@ -84,6 +92,7 @@ endif()
+@@ -84,6 +101,7 @@ endif()
  # Update the include dir
  include_directories(${LIBRDKAFKA_INCLUDE_DIR} ${LIBYAML_CPP_INCLUDE_DIR} src/ src/bmp src/bgp src/bgp/linkstate src/kafka)
  #link_directories(${LIBRDKAFKA_LIBRARY})
-+link_directories(${LIBLZ4_CPP_LIBRARY_DIR})
++link_directories(${LIBLZ4_CPP_LIBRARY_DIR} ${LIBZSTD_CPP_LIBRARY_DIR})
  
  
  # Define the source files to compile
-@@ -134,7 +143,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR CMA
+@@ -134,7 +152,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR CMA
  endif()
  
  # Set the libs to link
 -set (LIBS pthread ${LIBYAML_CPP_LIBRARY} ${LIBRDKAFKA_CPP_LIBRARY} ${LIBRDKAFKA_LIBRARY} z ${SSL_LIBS} dl)
-+set (LIBS pthread ${LIBYAML_CPP_LIBRARY} ${LIBRDKAFKA_CPP_LIBRARY} ${LIBRDKAFKA_LIBRARY} z lz4 ${SSL_LIBS})
++set (LIBS pthread ${LIBYAML_CPP_LIBRARY} ${LIBRDKAFKA_CPP_LIBRARY} ${LIBRDKAFKA_LIBRARY} z lz4 zstd ${SSL_LIBS})
  
  # Set the binary
  add_executable (openbmpd ${SRC_FILES})



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904071108.x37B8XT1063636>