diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-04-25 01:24:50 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-04-25 01:24:50 +0200 |
commit | dba986281a22a17cb3bda851f50a5757ab17c051 (patch) | |
tree | 34953c946016c393aa2b26a6462871a51cfbe5c8 /dev-perl/Wx-Scintilla | |
parent | dev-perl/Lab-Zhinst: Version bump (diff) | |
download | gentoo-dba986281a22a17cb3bda851f50a5757ab17c051.tar.gz gentoo-dba986281a22a17cb3bda851f50a5757ab17c051.tar.bz2 gentoo-dba986281a22a17cb3bda851f50a5757ab17c051.zip |
dev-perl/Wx-Scintilla: Fix build with gcc-6, bug 612446
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-perl/Wx-Scintilla')
-rw-r--r-- | dev-perl/Wx-Scintilla/Manifest | 1 | ||||
-rw-r--r-- | dev-perl/Wx-Scintilla/Wx-Scintilla-0.390.0-r2.ebuild | 6 | ||||
-rw-r--r-- | dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.34-flags.patch | 19 | ||||
-rw-r--r-- | dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.39-gcc6.patch | 32 |
4 files changed, 54 insertions, 4 deletions
diff --git a/dev-perl/Wx-Scintilla/Manifest b/dev-perl/Wx-Scintilla/Manifest index 9fcbda6e9d0d..680eb9f3feb5 100644 --- a/dev-perl/Wx-Scintilla/Manifest +++ b/dev-perl/Wx-Scintilla/Manifest @@ -1,2 +1 @@ -DIST Wx-Scintilla-0.34-patches.tar.gz 488 SHA256 3ca51b083080d0e1943c24db04251b1a1a8961ded91d18935f850e0004152bd4 SHA512 743468ea05f78f147664bc550ad6f2869db3876085d56f86b245ba568d58dfa50d957da22a29dbe322f10c5f25001d40927fdc19a83f616778e6b6c55e75d98f WHIRLPOOL 22b241121fc202386e81eb774fcfd0e6c686bdcaf3a3af4b5056465c2d35b9c21bc849702b26e4d6e386c7ea424f827c92f41788140a6f75d4c91906f4495813 DIST Wx-Scintilla-0.39.tar.gz 848565 SHA256 d6d67528a55552bb3fda2a1f22058c6c94a05eaf632dba5331afb3390defe0ea SHA512 d9ecec347c1f1382788e5ed7708b0caf86f2ff87db0fdb2b8fa07460c96b1a7921a9402431105beee61f4627f3694a79db7515ceb76b1ae4fb3f95c807afb4d4 WHIRLPOOL 229c694683e939cc1110171945aa18cddcb989c63e33c032ae755ba878717792d88f9670f968bd989e58c62066d7e8d4035962ae58975970876a6741a8285560 diff --git a/dev-perl/Wx-Scintilla/Wx-Scintilla-0.390.0-r2.ebuild b/dev-perl/Wx-Scintilla/Wx-Scintilla-0.390.0-r2.ebuild index 58d38d6c224f..b11bb08f1896 100644 --- a/dev-perl/Wx-Scintilla/Wx-Scintilla-0.390.0-r2.ebuild +++ b/dev-perl/Wx-Scintilla/Wx-Scintilla-0.390.0-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -11,7 +11,6 @@ MODULE_VERSION=0.39 inherit wxwidgets perl-module DESCRIPTION="Scintilla source code editing component for wxWidgets" -SRC_URI+=" https://dev.gentoo.org/~tove/distfiles/dev-perl/${PN}-0.34-patches.tar.gz" LICENSE+=" HPND" SLOT="0" @@ -29,7 +28,8 @@ DEPEND="${RDEPEND} " PATCHES=( - "${WORKDIR}"/${PN}-patches/0.34-flags.patch + "${FILESDIR}"/${PN}-0.34-flags.patch + "${FILESDIR}"/${PN}-0.39-gcc6.patch ) src_configure() { diff --git a/dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.34-flags.patch b/dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.34-flags.patch new file mode 100644 index 000000000000..31b669dc6844 --- /dev/null +++ b/dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.34-flags.patch @@ -0,0 +1,19 @@ +--- a/inc/Module/Build/Scintilla/GTK.pm ++++ b/inc/Module/Build/Scintilla/GTK.pm +@@ -48,7 +48,6 @@ + $self->stc_defines, + '-c -fPIC', + '-o ' . $object_name, +- '-O2', + '-Wall', + $object_name !~ /((Plat|Scintilla)WX|scintilla)\.o/ + ? '-Wno-missing-braces -Wno-char-subscripts' +@@ -143,7 +142,7 @@ + Alien::wxWidgets->link_flags, + $Config{lddlflags}, + '-fPIC -L.', +- '-s -o ' . $dll, ++ '-o ' . $dll, + 'Scintilla.o', + '-Lblib/arch/auto/Wx/Scintilla ' . $self->stc_scintilla_link, + Alien::wxWidgets->libraries(qw(core base)), diff --git a/dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.39-gcc6.patch b/dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.39-gcc6.patch new file mode 100644 index 000000000000..269d1d483d34 --- /dev/null +++ b/dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.39-gcc6.patch @@ -0,0 +1,32 @@ +diff -ruN Wx-Scintilla-0.39.orig/wx-scintilla/src/scintilla/src/Editor.cxx Wx-Scintilla-0.39/wx-scintilla/src/scintilla/src/Editor.cxx +--- Wx-Scintilla-0.39.orig/wx-scintilla/src/scintilla/src/Editor.cxx 2012-09-04 12:20:46.000000000 +0200 ++++ Wx-Scintilla-0.39/wx-scintilla/src/scintilla/src/Editor.cxx 2017-04-25 01:20:51.586427196 +0200 +@@ -11,6 +11,7 @@ + #include <ctype.h>
+ #include <assert.h>
+
++#include <cmath>
+ #include <string>
+ #include <vector>
+ #include <map>
+@@ -989,7 +990,7 @@ + // Try to optimise small scrolls
+ #ifndef UNDER_CE
+ int linesToMove = topLine - topLineNew;
+- bool performBlit = (abs(linesToMove) <= 10) && (paintState == notPainting);
++ bool performBlit = (std::abs(linesToMove) <= 10) && (paintState == notPainting);
+ willRedrawAll = !performBlit;
+ #endif
+ SetTopLine(topLineNew);
+@@ -5868,9 +5869,9 @@ + }
+
+ static bool Close(Point pt1, Point pt2) {
+- if (abs(pt1.x - pt2.x) > 3)
++ if (std::abs(pt1.x - pt2.x) > 3)
+ return false;
+- if (abs(pt1.y - pt2.y) > 3)
++ if (std::abs(pt1.y - pt2.y) > 3)
+ return false;
+ return true;
+ }
|