aboutsummaryrefslogtreecommitdiffstats
path: root/security/libotr
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2012-10-07 15:54:18 +0800
committerdougb <dougb@FreeBSD.org>2012-10-07 15:54:18 +0800
commit63cecbb9408271f0e713e1d2ccad2478b507c699 (patch)
tree55fe4e90266faae4d6ef0a118878853d10bbec82 /security/libotr
parentf641f09c5d05ea7c19ee2962402b83de81881944 (diff)
downloadfreebsd-ports-gnome-63cecbb9408271f0e713e1d2ccad2478b507c699.tar.gz
freebsd-ports-gnome-63cecbb9408271f0e713e1d2ccad2478b507c699.tar.zst
freebsd-ports-gnome-63cecbb9408271f0e713e1d2ccad2478b507c699.zip
Work around a problem on stable/[89] with libotr generating an
"undefined reference to `__stack_chk_fail_local'" error. None of the usual remedies work (such as making sure that gcc is used instead of ld for the linker) so on those releases we simply disable that option. pointyhat logs confirm that pidgin-otr (the only consumer of libotr atm) is failing on 8 and 9 with the same configure error that I am seeing on 8, so this patch should at least allow it to build on those releases. Bump PORTREVISION for libotr to err on the side of caution. While I'm here, remove a now-spurious mod to the pidgin-otr configure.
Diffstat (limited to 'security/libotr')
-rw-r--r--security/libotr/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/security/libotr/Makefile b/security/libotr/Makefile
index c65e4856bc2f..3a39b7f28160 100644
--- a/security/libotr/Makefile
+++ b/security/libotr/Makefile
@@ -4,6 +4,7 @@ PORTNAME= libotr
PORTVERSION= 4.0.0
# Please do not bump PORTREVISION for this port unless you have
# confirmed via testing that it is necessary
+PORTREVISION= 1
CATEGORIES= security net-im net
MASTER_SITES= http://www.cypherpunks.ca/otr/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.asc
@@ -34,8 +35,15 @@ MLINKS= otr_toolkit.1 otr_parse.1 \
verify: checksum
gpg --verify ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}.asc
+.include <bsd.port.pre.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's#^pkgconfigdir .*#pkgconfigdir = ${PREFIX}/libdata/pkgconfig#' \
${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.am
-.include <bsd.port.mk>
+.if ${OSVERSION} >= 800000 && ${OSVERSION} < 1000000
+ ${REINPLACE_CMD} -e 's#OTR_CHECK_CFLAGS(.*stack-protector.*#dnl &#' \
+ ${WRKSRC}/configure.ac
+.endif
+
+.include <bsd.port.post.mk>