Set CMAKE_INSTALL_NAME_DIR to lib/rspamd so that shlibs are built with

correct install_name_tool -id on macOS, where this fixes CHECK_SHLIBS
(and probably runtime behavior too). While here, the patch to link with
-lrt on NetBSD has been upstreamed; remove. Bump PKGREVISION.
This commit is contained in:
schmonz 2020-08-12 20:00:30 +00:00
parent 544bc5b208
commit d2284fe0bf
3 changed files with 6 additions and 21 deletions

View file

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.68 2020/08/08 14:35:37 wiz Exp $
# $NetBSD: Makefile,v 1.69 2020/08/12 20:00:30 schmonz Exp $
DISTNAME= rspamd-2.5
PKGREVISION= 2
PKGREVISION= 3
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_GITHUB:=vstakhov/}
@ -24,10 +24,10 @@ BUILD_DEFS+= VARBASE
LUA_VERSIONS_ACCEPTED= 53
CPPFLAGS.SunOS+= -D__EXTENSIONS__
BUILDLINK_TRANSFORM.Darwin+= rm:-lrt
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/rspamd
TEST_TARGET= run-test
CMAKE_INSTALL_NAME_DIR= ${PREFIX}/lib/rspamd
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/rspamd
TEST_TARGET= run-test
RSPAMD_USER?= rspamd
RSPAMD_GROUP?= rspamd

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.33 2020/05/18 11:10:56 nia Exp $
$NetBSD: distinfo,v 1.34 2020/08/12 20:00:30 schmonz Exp $
SHA1 (rspamd-2.5.tar.gz) = e3c3afb0cbdb50763421be73d7d3cab187a8fdb5
RMD160 (rspamd-2.5.tar.gz) = a6ae3429f5b439e8067b7b50bd3b5f55d72101f5
@ -7,4 +7,3 @@ Size (rspamd-2.5.tar.gz) = 4490310 bytes
SHA1 (patch-CMakeLists.txt) = b0b0dd855351acb68793d84896101e1c424b7ded
SHA1 (patch-cmake_Toolset.cmake) = d4900720b85a8e3078c4fdaa76757fcbbd4f89bd
SHA1 (patch-contrib_fpconv_fpconv.c) = b1ec2b07570674458e69020ccbf25f0374d894f6
SHA1 (patch-src_CMakeLists.txt) = 672873307ee1f30236e53298a6c0d422c7a79b0e

View file

@ -1,14 +0,0 @@
$NetBSD: patch-src_CMakeLists.txt,v 1.3 2019/12/08 09:32:05 triaxx Exp $
--- src/CMakeLists.txt.orig 2019-11-19 17:31:43.000000000 +0000
+++ src/CMakeLists.txt
@@ -186,6 +186,9 @@ TARGET_LINK_LIBRARIES(rspamd-server lcbt
TARGET_LINK_LIBRARIES(rspamd-server rspamd-zstd)
TARGET_LINK_LIBRARIES(rspamd-server rspamd-fastutf8)
+# for shm_open
+TARGET_LINK_LIBRARIES(rspamd-server rt)
+
IF (ENABLE_CLANG_PLUGIN MATCHES "ON")
ADD_DEPENDENCIES(rspamd-server rspamd-clang)
ENDIF()