Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 2014 13:36:00 +0000 (UTC)
From:      Raphael Kubo da Costa <rakuco@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r345091 - in head/databases/akonadi: . files
Message-ID:  <201402191336.s1JDa04I049910@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rakuco
Date: Wed Feb 19 13:36:00 2014
New Revision: 345091
URL: http://svnweb.freebsd.org/changeset/ports/345091
QAT: https://qat.redports.org/buildarchive/r345091/

Log:
  Add upstream patch to fix the build with clang 3.4.
  
  clang 3.4 is pickier and refuses to work when passed flags it does not
  understand, such as -fno-check-new in this case.
  
  PR:		ports/186873

Added:
  head/databases/akonadi/files/patch-git_938e9231   (contents, props changed)
Modified:
  head/databases/akonadi/Makefile

Modified: head/databases/akonadi/Makefile
==============================================================================
--- head/databases/akonadi/Makefile	Wed Feb 19 13:19:30 2014	(r345090)
+++ head/databases/akonadi/Makefile	Wed Feb 19 13:36:00 2014	(r345091)
@@ -3,6 +3,7 @@
 
 PORTNAME=	akonadi
 PORTVERSION=	1.11.0
+PORTREVISION=	1
 CATEGORIES=	databases kde
 MASTER_SITES=	KDE/stable/${PORTNAME}/src
 DIST_SUBDIR=	KDE

Added: head/databases/akonadi/files/patch-git_938e9231
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/akonadi/files/patch-git_938e9231	Wed Feb 19 13:36:00 2014	(r345091)
@@ -0,0 +1,22 @@
+commit 938e923143364a2786a0b5bd3e303b1dcd82dfe3
+Author: Dan Vrátil <dvratil@redhat.com>
+Date:   Sun Dec 22 19:25:17 2013 +0100
+
+    Remove -fno-check-new from CXX_FLAGS
+    
+    This flag is not supported by Clang and generates a warning or build error
+    when using Clang. The overhead of non-null check should be minimal.
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e18608a..f22921c 100644
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -241,7 +241,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_C_COMPILER MATCHES "icc" OR (CMAKE_CXX_COMP
+ 
+   # more aggressive warnings and C++11 support
+   set(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS} -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -Wextra -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common")
+-  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wnon-virtual-dtor -Wundef -Wcast-align -Wchar-subscripts -Wall -Wextra -Wpointer-arith -Wformat-security -fno-check-new -fno-common")
++  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wnon-virtual-dtor -Wundef -Wcast-align -Wchar-subscripts -Wall -Wextra -Wpointer-arith -Wformat-security -fno-common")
+ 
+   # debugfull target
+   set(CMAKE_CXX_FLAGS_DEBUGFULL "-g3 -fno-inline" CACHE STRING "Flags used by the C++ compiler during debugfull builds." FORCE)



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