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 799F51396D0 for ; Mon, 25 Sep 2017 11:19:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 88394E0E1A; Mon, 25 Sep 2017 11:19:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5C83AE0E1A for ; Mon, 25 Sep 2017 11:19:02 +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 47EA7340DF9 for ; Mon, 25 Sep 2017 11:19:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 52E436AA2 for ; Mon, 25 Sep 2017 11:18:57 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1506338301.52f7b74352b325b3980c4922e980701066c79a18.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/gpsbabel/, sci-geosciences/gpsbabel/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-qt-5.9-1.patch sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-qt-5.9-2.patch sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-qt-5.9.patch sci-geosciences/gpsbabel/gpsbabel-1.5.4-r1.ebuild X-VCS-Directories: sci-geosciences/gpsbabel/ sci-geosciences/gpsbabel/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 52f7b74352b325b3980c4922e980701066c79a18 X-VCS-Branch: master Date: Mon, 25 Sep 2017 11:18:57 +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: d4412d11-bf16-4215-8dd0-13873683be09 X-Archives-Hash: 64ea8f998b99bc8530235569bfb1e1c9 commit: 52f7b74352b325b3980c4922e980701066c79a18 Author: Andreas Sturmlechner gentoo org> AuthorDate: Mon Sep 25 11:15:08 2017 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon Sep 25 11:18:21 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52f7b743 sci-geosciences/gpsbabel: Fix build with Qt-5.9 again Tested-by: Markus web.de> Gentoo-bug: 629560 Package-Manager: Portage-2.3.10, Repoman-2.3.3 ...-qt-5.9.patch => gpsbabel-1.5.4-qt-5.9-1.patch} | 0 .../gpsbabel/files/gpsbabel-1.5.4-qt-5.9-2.patch | 70 ++++++++++++++++++++++ sci-geosciences/gpsbabel/gpsbabel-1.5.4-r1.ebuild | 16 ++--- 3 files changed, 78 insertions(+), 8 deletions(-) diff --git a/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-qt-5.9.patch b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-qt-5.9-1.patch similarity index 100% rename from sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-qt-5.9.patch rename to sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-qt-5.9-1.patch diff --git a/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-qt-5.9-2.patch b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-qt-5.9-2.patch new file mode 100644 index 00000000000..ce1b0489146 --- /dev/null +++ b/sci-geosciences/gpsbabel/files/gpsbabel-1.5.4-qt-5.9-2.patch @@ -0,0 +1,70 @@ +From 604178aa8ad4d3c3ad218df24c1e9a6a1f683bb3 Mon Sep 17 00:00:00 2001 +From: Harel Mazor +Date: Tue, 24 Jan 2017 00:35:04 +0200 +Subject: [PATCH] Added geojson read capablity, moved magic strings to + constants, fixed windows compilation issues. + +--- + tef_xml.cc | 24 +++---- + +* Removed any unrelated changes except for s/windows/Qt-5.9/ compilation issues. + +diff --git a/tef_xml.cc b/tef_xml.cc +index b32d69b3..37dd85ba 100644 +--- a/tef_xml.cc ++++ b/tef_xml.cc +@@ -72,11 +72,11 @@ tef_start(xg_string args, const QXmlStreamAttributes* attrv) + bool valid = false; + + foreach(QXmlStreamAttribute attr, *attrv) { +- if (attr.name().compare("Comment", Qt::CaseInsensitive) == 0) { +- if (attr.value().compare("TourExchangeFormat", Qt::CaseInsensitive) == 0) { ++ if (attr.name().compare(QString("Comment"), Qt::CaseInsensitive) == 0) { ++ if (attr.value().compare(QString("TourExchangeFormat"), Qt::CaseInsensitive) == 0) { + valid = true; + } +- } else if (attr.name().compare("Version", Qt::CaseInsensitive) == 0) { ++ } else if (attr.name().compare(QString("Version"), Qt::CaseInsensitive) == 0) { + version = attr.value().toString().toDouble(); + } + } +@@ -95,9 +95,9 @@ tef_header(xg_string args, const QXmlStreamAttributes* attrv) + { + route = route_head_alloc(); + foreach(QXmlStreamAttribute attr, *attrv) { +- if (attr.name().compare("Name", Qt::CaseInsensitive) == 0) { ++ if (attr.name().compare(QString("Name"), Qt::CaseInsensitive) == 0) { + route->rte_name = attr.value().toString().trimmed(); +- } else if (attr.name().compare("Software", Qt::CaseInsensitive) == 0) { ++ } else if (attr.name().compare(QString("Software"), Qt::CaseInsensitive) == 0) { + route->rte_desc = attr.value().toString().trimmed(); + } + } +@@ -248,20 +248,20 @@ tef_item_start(xg_string args, const QXmlStreamAttributes* attrv) + QString attrstr = attr.value().toString(); + QByteArray attrtext = attrstr.toUtf8(); + +- if (attr.name().compare("SegDescription", Qt::CaseInsensitive) == 0) { ++ if (attr.name().compare(QString("SegDescription"), Qt::CaseInsensitive) == 0) { + wpt_tmp->shortname = attrstr.trimmed(); +- } else if (attr.name().compare("PointDescription", Qt::CaseInsensitive) == 0) { ++ } else if (attr.name().compare(QString("PointDescription"), Qt::CaseInsensitive) == 0) { + wpt_tmp->description = attrstr.trimmed(); +- } else if (attr.name().compare("ViaStation", Qt::CaseInsensitive) == 0 && +- attr.value().compare("true", Qt::CaseInsensitive) == 0) { ++ } else if (attr.name().compare(QString("ViaStation"), Qt::CaseInsensitive) == 0 && ++ attr.value().compare(QString("true"), Qt::CaseInsensitive) == 0) { + wpt_tmp->wpt_flags.fmt_use = 1; /* only a flag */ + + /* new in TEF V2 */ +- } else if (attr.name().compare("Instruction", Qt::CaseInsensitive) == 0) { ++ } else if (attr.name().compare(QString("Instruction"), Qt::CaseInsensitive) == 0) { + wpt_tmp->description = attrstr.trimmed(); +- } else if (attr.name().compare("Altitude", Qt::CaseInsensitive) == 0) { ++ } else if (attr.name().compare(QString("Altitude"), Qt::CaseInsensitive) == 0) { + wpt_tmp->altitude = attrstr.toDouble(); +- } else if (attr.name().compare("TimeStamp", Qt::CaseInsensitive) == 0) { ++ } else if (attr.name().compare(QString("TimeStamp"), Qt::CaseInsensitive) == 0) { + /* nothing for the moment */ + } + } diff --git a/sci-geosciences/gpsbabel/gpsbabel-1.5.4-r1.ebuild b/sci-geosciences/gpsbabel/gpsbabel-1.5.4-r1.ebuild index 992aea9a44c..14286808591 100644 --- a/sci-geosciences/gpsbabel/gpsbabel-1.5.4-r1.ebuild +++ b/sci-geosciences/gpsbabel/gpsbabel-1.5.4-r1.ebuild @@ -43,14 +43,14 @@ DEPEND="${RDEPEND} DOCS=( AUTHORS README.{contrib,igc,mapconverter,md,xmapwpt} ) PATCHES=( - "${FILESDIR}/${PN}-1.4.3-fix_binary_name.patch" - "${FILESDIR}/${P}-disable_statistic_uploading.patch" - "${FILESDIR}/${P}-disable_update_check.patch" - "${FILESDIR}/${P}-disable_version_check.patch" - "${FILESDIR}/${P}-use_system_shapelib.patch" - "${FILESDIR}/${P}-use_system_zlib.patch" - "${FILESDIR}/${P}-xmldoc.patch" - "${FILESDIR}/${P}-qt-5.9.patch" + "${FILESDIR}"/${PN}-1.4.3-fix_binary_name.patch + "${FILESDIR}"/${P}-disable_statistic_uploading.patch + "${FILESDIR}"/${P}-disable_update_check.patch + "${FILESDIR}"/${P}-disable_version_check.patch + "${FILESDIR}"/${P}-use_system_shapelib.patch + "${FILESDIR}"/${P}-use_system_zlib.patch + "${FILESDIR}"/${P}-xmldoc.patch + "${FILESDIR}"/${P}-qt-5.9-{1,2}.patch ) RESTRICT="test" # bug 421699