Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Apr 2019 11:51:23 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r498366 - head/security/botan2
Message-ID:  <201904081151.x38BpN0i044193@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Mon Apr  8 11:51:23 2019
New Revision: 498366
URL: https://svnweb.freebsd.org/changeset/ports/498366

Log:
  security/botan2: reduce SOVERSION churn
  
  ABI isn't compatible between minor updates, so SONAME changes very
  frequently which requires rebuilding consumers.
  
  PR:		237019
  Submitted by:	Ralf van der Enden (maintainer)

Modified:
  head/security/botan2/Makefile   (contents, props changed)
  head/security/botan2/pkg-plist   (contents, props changed)

Modified: head/security/botan2/Makefile
==============================================================================
--- head/security/botan2/Makefile	Mon Apr  8 11:51:15 2019	(r498365)
+++ head/security/botan2/Makefile	Mon Apr  8 11:51:23 2019	(r498366)
@@ -29,6 +29,9 @@ CONFIGURE_ARGS=	--with-external-includedir=${PREFIX}/i
 		--cc=${COMPILER_TYPE}
 LDFLAGS+=	-pthread
 
+SHLIBVER=	${DISTVERSION:S/./ /g:[2]}
+PLIST_SUB=	SHLIBVER=${SHLIBVER}
+
 DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
 PORTDOCS=	*
 
@@ -59,6 +62,6 @@ post-patch:
 		${WRKSRC}/src/build-data/cc/clang.txt
 
 post-install:
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/botan ${STAGEDIR}${PREFIX}/lib/libbotan-2.so.9.9.0
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/botan ${STAGEDIR}${PREFIX}/lib/libbotan-2.so.${SHLIBVER}.${SHLIBVER}.0
 
 .include <bsd.port.mk>

Modified: head/security/botan2/pkg-plist
==============================================================================
--- head/security/botan2/pkg-plist	Mon Apr  8 11:51:15 2019	(r498365)
+++ head/security/botan2/pkg-plist	Mon Apr  8 11:51:23 2019	(r498366)
@@ -308,7 +308,7 @@ include/botan-2/botan/xts.h
 include/botan-2/botan/zlib.h
 lib/libbotan-2.a
 lib/libbotan-2.so
-lib/libbotan-2.so.9
-lib/libbotan-2.so.9.9.0
+lib/libbotan-2.so.%%SHLIBVER%%
+lib/libbotan-2.so.%%SHLIBVER%%.%%SHLIBVER%%.0
 %%PYTHON_SITELIBDIR%%/botan2.py
 libdata/pkgconfig/botan-2.pc



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