svn commit: r421953 - head/audio/clementine-player
Dimitry Andric
dim at FreeBSD.org
Mon Sep 12 19:41:13 UTC 2016
Author: dim (src committer)
Date: Mon Sep 12 19:41:12 2016
New Revision: 421953
URL: https://svnweb.freebsd.org/changeset/ports/421953
Log:
Fix build of audio/clementine-player with clang 3.9.0
Clang 3.9.0 has a new warning about undefined template variables, which
is triggered by including cryptopp headers in the spotify blob
downloader:
In file included from /wrkdirs/usr/ports/audio/clementine-player/work/Clementine-1.3.1/src/internet/spotify/spotifyblobdownloader.cpp:43:
/usr/local/include/cryptopp/pkcspad.h:74:53: error: instantiation of variable 'CryptoPP::PKCS_DigestDecoration<CryptoPP::SHA512>::decoration' required here, but no definition is available [-Werror,-Wundefined-var-template]
return HashIdentifier(PKCS_DigestDecoration<H>::decoration, PKCS_DigestDecoration<H>::length);
^
This warning could be silenced by hacking on cryptopp, but just suppress
it for now.
Approved by: sbruno (maintainer)
PR: 212343
MFH: 2016Q3
Modified:
head/audio/clementine-player/Makefile
Modified: head/audio/clementine-player/Makefile
==============================================================================
--- head/audio/clementine-player/Makefile Mon Sep 12 19:35:05 2016 (r421952)
+++ head/audio/clementine-player/Makefile Mon Sep 12 19:41:12 2016 (r421953)
@@ -198,4 +198,10 @@ VISUALISATION_CMAKE_OFF=-DENABLE_VISUALI
WIIMOTEDEV_CMAKE_ON= -DENABLE_WIIMOTEDEV=ON
WIIMOTEDEV_CMAKE_OFF= -DENABLE_WIIMOTEDEV=OFF
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 39
+CXXFLAGS+= -Wno-undefined-var-template
+.endif
+
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list