From owner-svn-ports-all@freebsd.org Mon Sep 19 23:19:00 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ED1CEBE1FC0; Mon, 19 Sep 2016 23:19:00 +0000 (UTC) (envelope-from jhale@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C89D0CA8; Mon, 19 Sep 2016 23:19:00 +0000 (UTC) (envelope-from jhale@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u8JNJ020097247; Mon, 19 Sep 2016 23:19:00 GMT (envelope-from jhale@FreeBSD.org) Received: (from jhale@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u8JNIx9u097245; Mon, 19 Sep 2016 23:18:59 GMT (envelope-from jhale@FreeBSD.org) Message-Id: <201609192318.u8JNIx9u097245@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhale set sender to jhale@FreeBSD.org using -f From: "Jason E. Hale" Date: Mon, 19 Sep 2016 23:18:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r422468 - in head/audio/libmusicbrainz5: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2016 23:19:01 -0000 Author: jhale Date: Mon Sep 19 23:18:59 2016 New Revision: 422468 URL: https://svnweb.freebsd.org/changeset/ports/422468 Log: Add visibility to C++ exceptions to prevent crashes with applications using libkcddb. PR: 211630 Submitted by: Adriaan de Groot Added: head/audio/libmusicbrainz5/files/patch-musicbrainz5-httpfetch-h.patch (contents, props changed) Modified: head/audio/libmusicbrainz5/Makefile Modified: head/audio/libmusicbrainz5/Makefile ============================================================================== --- head/audio/libmusicbrainz5/Makefile Mon Sep 19 22:53:55 2016 (r422467) +++ head/audio/libmusicbrainz5/Makefile Mon Sep 19 23:18:59 2016 (r422468) @@ -2,6 +2,7 @@ PORTNAME= libmusicbrainz PORTVERSION= 5.1.0 +PORTREVISION= 1 DISTVERSIONPREFIX= release- CATEGORIES= audio PKGNAMESUFFIX= 5 Added: head/audio/libmusicbrainz5/files/patch-musicbrainz5-httpfetch-h.patch ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/libmusicbrainz5/files/patch-musicbrainz5-httpfetch-h.patch Mon Sep 19 23:18:59 2016 (r422468) @@ -0,0 +1,81 @@ +--- include/musicbrainz5/HTTPFetch.h.orig 2016-08-06 17:10:23.956575000 +0200 ++++ include/musicbrainz5/HTTPFetch.h 2016-08-06 17:26:10.934640000 +0200 +@@ -29,11 +29,23 @@ + #include + #include + ++// Visibility patch derived from https://gcc.gnu.org/wiki/Visibility , ++// extended for clang support. ++#if (__clang__) || (__GNUC__ >= 4) ++ #define DLL_PUBLIC __attribute__ ((visibility ("default"))) ++ #define DLL_LOCAL __attribute__ ((visibility ("hidden"))) ++#else ++ #define DLL_PUBLIC ++ #define DLL_LOCAL ++#endif ++ ++ ++ + namespace MusicBrainz5 + { + class CHTTPFetchPrivate; + +- class CExceptionBase: public std::exception ++ class DLL_PUBLIC CExceptionBase: public std::exception + { + public: + CExceptionBase(const std::string& ErrorMessage, const std::string& Exception) +@@ -60,7 +72,7 @@ + * Exception thrown when an error occurs connecting to web service + */ + +- class CConnectionError: public CExceptionBase ++ class DLL_PUBLIC CConnectionError: public CExceptionBase + { + public: + CConnectionError(const std::string& ErrorMessage) +@@ -73,7 +85,7 @@ + * Exception thrown when a connection to the web service times out + */ + +- class CTimeoutError: public CExceptionBase ++ class DLL_PUBLIC CTimeoutError: public CExceptionBase + { + public: + CTimeoutError(const std::string& ErrorMessage) +@@ -86,7 +98,7 @@ + * Exception thrown when an authentication error occurs + */ + +- class CAuthenticationError: public CExceptionBase ++ class DLL_PUBLIC CAuthenticationError: public CExceptionBase + { + public: + CAuthenticationError(const std::string& ErrorMessage) +@@ -99,7 +111,7 @@ + * Exception thrown when an error occurs fetching data + */ + +- class CFetchError: public CExceptionBase ++ class DLL_PUBLIC CFetchError: public CExceptionBase + { + public: + CFetchError(const std::string& ErrorMessage) +@@ -112,7 +124,7 @@ + * Exception thrown when an invalid request is made + */ + +- class CRequestError: public CExceptionBase ++ class DLL_PUBLIC CRequestError: public CExceptionBase + { + public: + CRequestError(const std::string& ErrorMessage) +@@ -125,7 +137,7 @@ + * Exception thrown when the requested resource is not found + */ + +- class CResourceNotFoundError: public CExceptionBase ++ class DLL_PUBLIC CResourceNotFoundError: public CExceptionBase + { + public: + CResourceNotFoundError(const std::string& ErrorMessage)