Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Sep 2016 19:41:12 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r421953 - head/audio/clementine-player
Message-ID:  <201609121941.u8CJfCv3072143@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



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