diff options
author | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2016-08-18 10:04:27 +0200 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2016-08-19 00:32:05 +1000 |
commit | efa363f501450b10d55a932a46432a1fbd2287cf (patch) | |
tree | 0c334ee046b1faa76e9a6db4ab2b7fb8f1892d4d /kde-base | |
parent | media-libs/libmtp: Removed old. (diff) | |
download | gentoo-efa363f501450b10d55a932a46432a1fbd2287cf.tar.gz gentoo-efa363f501450b10d55a932a46432a1fbd2287cf.tar.bz2 gentoo-efa363f501450b10d55a932a46432a1fbd2287cf.zip |
kde-base/kdelibs: Backport fix for shared libs bug with gcc-6
Package-Manager: portage-2.2.28
Diffstat (limited to 'kde-base')
-rw-r--r-- | kde-base/kdelibs/files/kdelibs-4.14.22-gcc6-visibility.patch | 26 | ||||
-rw-r--r-- | kde-base/kdelibs/kdelibs-4.14.22.ebuild | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/kde-base/kdelibs/files/kdelibs-4.14.22-gcc6-visibility.patch b/kde-base/kdelibs/files/kdelibs-4.14.22-gcc6-visibility.patch new file mode 100644 index 000000000000..5a98d9ccceb1 --- /dev/null +++ b/kde-base/kdelibs/files/kdelibs-4.14.22-gcc6-visibility.patch @@ -0,0 +1,26 @@ +From: David Faure <faure@kde.org> +Date: Tue, 16 Aug 2016 13:50:57 +0000 +Subject: Fix wrong value of __KDE_HAVE_GCC_VISIBILITY on systems with gcc 6. +X-Git-Url: http://quickgit.kde.org/?p=kdelibs.git&a=commitdiff&h=e9b25c7c040d8526fe8675b97d1067c8ffa7249f +--- +Fix wrong value of __KDE_HAVE_GCC_VISIBILITY on systems with gcc 6. + +Clearly the author of this regexp, in 2006, thought gcc would never +hit version 6 :-) + +REVIEW: 128697 +--- + + +--- a/cmake/modules/FindKDE4Internal.cmake ++++ b/cmake/modules/FindKDE4Internal.cmake +@@ -1221,7 +1221,7 @@ + # get the gcc version + exec_program(${CMAKE_C_COMPILER} ARGS ${CMAKE_C_COMPILER_ARG1} --version OUTPUT_VARIABLE _gcc_version_info) + +- string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}") ++ string (REGEX MATCH "[3-9]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}") + # gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the patch level, handle this here: + if (NOT _gcc_version) + string (REGEX MATCH ".*\\(GCC\\).* ([34]\\.[0-9]) .*" "\\1.0" _gcc_version "${gcc_on_macos}") + diff --git a/kde-base/kdelibs/kdelibs-4.14.22.ebuild b/kde-base/kdelibs/kdelibs-4.14.22.ebuild index f41ad2d33bb2..b31ebd697e38 100644 --- a/kde-base/kdelibs/kdelibs-4.14.22.ebuild +++ b/kde-base/kdelibs/kdelibs-4.14.22.ebuild @@ -135,6 +135,7 @@ PATCHES=( "${FILESDIR}/${PN}-4.14.20-FindQt4.patch" "${FILESDIR}/${PN}-4.14.20-strigi-optional.patch" "${FILESDIR}/${PN}-4.14.22-webkit.patch" + "${FILESDIR}/${PN}-4.14.22-gcc6-visibility.patch" ) pkg_pretend() { |