[arch-commits] Commit in libkdcraw/trunk (PKGBUILD gcc-5.patch)

Antonio Rojas arojas at archlinux.org
Sat May 30 08:12:59 UTC 2015


    Date: Saturday, May 30, 2015 @ 10:12:58
  Author: arojas
Revision: 239896

Fix build with GCC 5

Added:
  libkdcraw/trunk/gcc-5.patch
Modified:
  libkdcraw/trunk/PKGBUILD

-------------+
 PKGBUILD    |    9 +++++++--
 gcc-5.patch |   23 +++++++++++++++++++++++
 2 files changed, 30 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-05-30 08:09:25 UTC (rev 239895)
+++ PKGBUILD	2015-05-30 08:12:58 UTC (rev 239896)
@@ -14,11 +14,16 @@
 replaces=('kdegraphics-libs')
 conflicts=('kdegraphics-libs')
 install=${pkgname}.install
-source=("http://download.kde.org/stable/applications/${pkgver}/src/${pkgname}-${pkgver}.tar.xz")
-sha1sums=('4f1b3ec3f831b8dd6c1d4b2c7c90a0f19e2acbc7')
+source=("http://download.kde.org/stable/applications/${pkgver}/src/${pkgname}-${pkgver}.tar.xz" 'gcc-5.patch')
+sha1sums=('4f1b3ec3f831b8dd6c1d4b2c7c90a0f19e2acbc7'
+          'fc5a24e05feab6481b61c37bfe83a0d4b2af4e09')
 
 prepare() {
   mkdir build
+
+# Fix build with GCC 5
+  cd $pkgname-$pkgver
+  patch -p1 -i "$srcdir"/gcc-5.patch
 }
 
 build() {

Added: gcc-5.patch
===================================================================
--- gcc-5.patch	                        (rev 0)
+++ gcc-5.patch	2015-05-30 08:12:58 UTC (rev 239896)
@@ -0,0 +1,23 @@
+From: Gilles Caulier <caulier.gilles at gmail.com>
+Date: Thu, 14 May 2015 20:54:16 +0000
+Subject: libraw 0.16.1 needs C++ exceptions rules while compilation
+X-Git-Url: http://quickgit.kde.org/?p=libkdcraw.git&a=commitdiff&h=46898ec97a0462eb08a5b6d09999450a86b27aae
+---
+libraw 0.16.1 needs C++ exceptions rules while compilation
+BUGS: 347728
+FIXED-IN: 4.11.0
+---
+
+
+--- a/libkdcraw/CMakeLists.txt
++++ b/libkdcraw/CMakeLists.txt
+@@ -3,6 +3,8 @@
+ #
+ # Redistribution and use is allowed according to the terms of the BSD license.
+ # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
++
++add_definitions(${KDE4_ENABLE_EXCEPTIONS})
+ 
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/version.h)
+ 
+



More information about the arch-commits mailing list