author | Antonio Rojas
<arojas@archlinux.org> 2015-05-30 08:12:58 UTC |
committer | Antonio Rojas
<arojas@archlinux.org> 2015-05-30 08:12:58 UTC |
parent | 69f11af4b16c732f96ad0eb55de28c48dc28017e |
PKGBUILD | +7 | -2 |
gcc-5.patch | +23 | -0 |
diff --git a/PKGBUILD b/PKGBUILD index 2d57556..4e9c907 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -13,11 +13,16 @@ makedepends=('cmake' 'automoc4') 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() { diff --git a/gcc-5.patch b/gcc-5.patch new file mode 100644 index 0000000..1038c55 --- /dev/null +++ b/gcc-5.patch @@ -0,0 +1,23 @@ +From: Gilles Caulier <caulier.gilles@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) + +