From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 11284139694 for ; Fri, 26 May 2017 21:01:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 64C5D21C1EB; Fri, 26 May 2017 21:01:22 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 378F621C1EB for ; Fri, 26 May 2017 21:01:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3F41B34168E for ; Fri, 26 May 2017 21:01:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 44724746A for ; Fri, 26 May 2017 21:01:08 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1495832377.0d940d0376a6c8a7d0724db71d830138a2474c16.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-misc/repsnapper/, sci-misc/repsnapper/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-misc/repsnapper/files/repsnapper-2.4a_p0-gcc6.patch sci-misc/repsnapper/files/std_abs.patch sci-misc/repsnapper/repsnapper-2.4a_p0.ebuild sci-misc/repsnapper/repsnapper-9999.ebuild X-VCS-Directories: sci-misc/repsnapper/ sci-misc/repsnapper/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 0d940d0376a6c8a7d0724db71d830138a2474c16 X-VCS-Branch: master Date: Fri, 26 May 2017 21:01:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 7a56d1ce-cc92-4986-8ab5-8f70c1320f41 X-Archives-Hash: 451bc8bfdd8f747122420a5e7f7b2d0b commit: 0d940d0376a6c8a7d0724db71d830138a2474c16 Author: Peter Levine gmail com> AuthorDate: Thu May 25 04:41:09 2017 +0000 Commit: David Seifert gentoo org> CommitDate: Fri May 26 20:59:37 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d940d03 sci-misc/repsnapper: Fix building with GCC-6 Bug: https://bugs.gentoo.org/show_bug.cgi?id=594474 Package-Manager: Portage-2.3.6, Repoman-2.3.2 Closes: https://github.com/gentoo/gentoo/pull/4753 .../repsnapper/files/repsnapper-2.4a_p0-gcc6.patch | 54 ++++++++++++++++++++++ sci-misc/repsnapper/files/std_abs.patch | 11 ----- sci-misc/repsnapper/repsnapper-2.4a_p0.ebuild | 4 +- sci-misc/repsnapper/repsnapper-9999.ebuild | 4 +- 4 files changed, 57 insertions(+), 16 deletions(-) diff --git a/sci-misc/repsnapper/files/repsnapper-2.4a_p0-gcc6.patch b/sci-misc/repsnapper/files/repsnapper-2.4a_p0-gcc6.patch new file mode 100644 index 00000000000..80a3c56eb86 --- /dev/null +++ b/sci-misc/repsnapper/files/repsnapper-2.4a_p0-gcc6.patch @@ -0,0 +1,54 @@ +From f6a411fa829f144800d123c1256d7d7648736437 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tiago=20St=C3=BCrmer=20Daitx?= +Date: Thu, 1 Sep 2016 00:02:48 -0300 +Subject: [PATCH 1/2] replace abs() with std::abs() for gcc6 compatibility +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Building with GCC 6 fails with "call of overloaded ‘abs(double)’ is +ambiguous" - for some reason only on PowerPC and PPC64. +--- + libraries/amf/amftools-code/include/STL_File.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libraries/amf/amftools-code/include/STL_File.h b/libraries/amf/amftools-code/include/STL_File.h +index 0bc01bed..2d9d656f 100644 +--- a/libraries/amf/amftools-code/include/STL_File.h ++++ b/libraries/amf/amftools-code/include/STL_File.h +@@ -89,7 +89,7 @@ class aWeldVertex { + Vec3D v; + int OrigIndex; + +- static inline bool IsSoftLessThan(const aWeldVertex& v1, const aWeldVertex& v2){if(abs(v1.v.z - v2.v.z) <= WeldThresh){ if(abs(v1.v.y - v2.v.y) <= WeldThresh){ return v1.v.x < v2.v.x-WeldThresh;}else return (v1.v.y < v2.v.y-WeldThresh);} else return (v1.v.z < v2.v.z-WeldThresh); } //Is less then (generates a "hash" for sorting vertices by z for set ++ static inline bool IsSoftLessThan(const aWeldVertex& v1, const aWeldVertex& v2){if(std::abs(v1.v.z - v2.v.z) <= WeldThresh){ if(std::abs(v1.v.y - v2.v.y) <= WeldThresh){ return v1.v.x < v2.v.x-WeldThresh;}else return (v1.v.y < v2.v.y-WeldThresh);} else return (v1.v.z < v2.v.z-WeldThresh); } //Is less then (generates a "hash" for sorting vertices by z for set + static double WeldThresh; //weld threshold for importing from STL + }; + + +From 93c81e3794a3eb7c2b7c7611803a3107fb25027b Mon Sep 17 00:00:00 2001 +From: "Ying-Chun Liu (PaulLiu)" +Date: Wed, 4 Jan 2017 13:50:56 +0800 +Subject: [PATCH 2/2] Fix FTBFS for glibmm Glib::RefPtr + +Now we can use operator RefPtr::operator bool() to test if it is NULL. +RefPtr::operator== can not work on int. + +Signed-off-by: Ying-Chun Liu (PaulLiu) +--- + src/model.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/model.cpp b/src/model.cpp +index ee559c47..22f0bb39 100644 +--- a/src/model.cpp ++++ b/src/model.cpp +@@ -181,7 +181,7 @@ vector Model::ReadShapes(Glib::RefPtr file, + uint max_triangles) + { + vector shapes; +- if (file==0) return shapes; ++ if (!file) return shapes; + File sfile(file); + vector< vector > triangles; + vector shapenames; diff --git a/sci-misc/repsnapper/files/std_abs.patch b/sci-misc/repsnapper/files/std_abs.patch deleted file mode 100644 index 35aefe92700..00000000000 --- a/sci-misc/repsnapper/files/std_abs.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- libraries/amf/amftools-code/include/STL_File.h.orig 2016-09-21 08:35:10.600313039 +0200 -+++ libraries/amf/amftools-code/include/STL_File.h 2016-09-21 08:35:58.303647256 +0200 -@@ -89,7 +89,7 @@ - Vec3D v; - int OrigIndex; - -- static inline bool IsSoftLessThan(const aWeldVertex& v1, const aWeldVertex& v2){if(abs(v1.v.z - v2.v.z) <= WeldThresh){ if(abs(v1.v.y - v2.v.y) <= WeldThresh){ return v1.v.x < v2.v.x-WeldThresh;}else return (v1.v.y < v2.v.y-WeldThresh);} else return (v1.v.z < v2.v.z-WeldThresh); } //Is less then (generates a "hash" for sorting vertices by z for set -+ static inline bool IsSoftLessThan(const aWeldVertex& v1, const aWeldVertex& v2){if(std::abs(v1.v.z - v2.v.z) <= WeldThresh){ if(std::abs(v1.v.y - v2.v.y) <= WeldThresh){ return v1.v.x < v2.v.x-WeldThresh;}else return (v1.v.y < v2.v.y-WeldThresh);} else return (v1.v.z < v2.v.z-WeldThresh); } //Is less then (generates a "hash" for sorting vertices by z for set - static double WeldThresh; //weld threshold for importing from STL - }; - diff --git a/sci-misc/repsnapper/repsnapper-2.4a_p0.ebuild b/sci-misc/repsnapper/repsnapper-2.4a_p0.ebuild index 330b26a5619..26bbc8eb54b 100644 --- a/sci-misc/repsnapper/repsnapper-2.4a_p0.ebuild +++ b/sci-misc/repsnapper/repsnapper-2.4a_p0.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 @@ -30,7 +30,7 @@ RDEPEND=${DEPEND} src_prepare() { epatch "${FILESDIR}/std-c11.patch" - epatch "${FILESDIR}/std_abs.patch" + epatch "${FILESDIR}/${P}-gcc6.patch" eautoreconf append-cxxflags -std=c++11 } diff --git a/sci-misc/repsnapper/repsnapper-9999.ebuild b/sci-misc/repsnapper/repsnapper-9999.ebuild index c4264c5a53e..43bd03528bb 100644 --- a/sci-misc/repsnapper/repsnapper-9999.ebuild +++ b/sci-misc/repsnapper/repsnapper-9999.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 @@ -24,8 +24,6 @@ DEPEND=" RDEPEND=${DEPEND} src_prepare() { - epatch "${FILESDIR}/std-c11.patch" - epatch "${FILESDIR}/std_abs.patch" eautoreconf append-cxxflags -std=c++11 }