media-libs/vigra: gcc-7 patch, bug #618172
authorMatthias Maier <tamiko@gentoo.org>
Thu, 14 Sep 2017 19:23:53 +0000 (14:23 -0500)
committerMatthias Maier <tamiko@gentoo.org>
Thu, 14 Sep 2017 19:24:18 +0000 (14:24 -0500)
Package-Manager: Portage-2.3.6, Repoman-2.3.3

media-libs/vigra/files/vigra-1.11.0-gcc-7.patch [new file with mode: 0644]
media-libs/vigra/vigra-1.11.0.ebuild

diff --git a/media-libs/vigra/files/vigra-1.11.0-gcc-7.patch b/media-libs/vigra/files/vigra-1.11.0-gcc-7.patch
new file mode 100644 (file)
index 0000000..4aaba64
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/include/vigra/imagecontainer.hxx b/include/vigra/imagecontainer.hxx
+index a6f0f80..636cc64 100644
+--- a/include/vigra/imagecontainer.hxx
++++ b/include/vigra/imagecontainer.hxx
+@@ -763,7 +763,7 @@ public:
+         /** swap contents of this array with the contents of other
+             (STL-Container interface)
+          */
+-    void swap(const ImagePyramid<ImageType, Alloc> &other)
++    void swap(ImagePyramid<ImageType, Alloc> &other)
+     {
+         images_.swap(other.images_);
+         std::swap(lowestLevel_, other.lowestLevel_);
index 7727e5e430cd9e3e16968b28d754f276250e1a61..2a8cb71181276cc97a091665224d0bc1a4b4c638 100644 (file)
@@ -44,13 +44,15 @@ REQUIRED_USE="
 
 DOCS=( README.md )
 
+PATCHES=(
+       "${FILESDIR}"/${P}-gcc-7.patch
+)
+
 pkg_setup() {
        use python && python_setup
 }
 
 src_prepare() {
-       default
-
        einfo "Removing shipped docs and VCS files"
        rm -rf doc || die
        rm .git* .travis.yml || die