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 C1834138359 for ; Sun, 20 Sep 2020 09:41:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DCC9BE087A; Sun, 20 Sep 2020 09:41:05 +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 C0E72E087A for ; Sun, 20 Sep 2020 09:41:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 45998340B25 for ; Sun, 20 Sep 2020 09:41:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BA6D3365 for ; Sun, 20 Sep 2020 09:41:02 +0000 (UTC) From: "Andreas K. Hüttel" 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 K. Hüttel" Message-ID: <1600594848.70f7e67a191e3ac05a2c7df1c4ecdaf766e4f38d.dilfridge@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/lensfun/files/, media-libs/lensfun/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/lensfun/files/lensfun-0.3.2-warnings.patch media-libs/lensfun/lensfun-0.3.2-r1.ebuild X-VCS-Directories: media-libs/lensfun/ media-libs/lensfun/files/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: 70f7e67a191e3ac05a2c7df1c4ecdaf766e4f38d X-VCS-Branch: master Date: Sun, 20 Sep 2020 09:41:02 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e4633628-dbf5-4bcd-ba73-d9dd1a1a2f10 X-Archives-Hash: 7406035004c99aa9345066eead5a9d71 commit: 70f7e67a191e3ac05a2c7df1c4ecdaf766e4f38d Author: Andreas K. Hüttel gentoo org> AuthorDate: Sun Sep 20 09:40:29 2020 +0000 Commit: Andreas K. Hüttel gentoo org> CommitDate: Sun Sep 20 09:40:48 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70f7e67a media-libs/lensfun: Fix warnings that clang turns into errors Closes: https://bugs.gentoo.org/740072 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Andreas K. Hüttel gentoo.org> .../lensfun/files/lensfun-0.3.2-warnings.patch | 48 ++++++++++++++++++++++ media-libs/lensfun/lensfun-0.3.2-r1.ebuild | 4 ++ 2 files changed, 52 insertions(+) diff --git a/media-libs/lensfun/files/lensfun-0.3.2-warnings.patch b/media-libs/lensfun/files/lensfun-0.3.2-warnings.patch new file mode 100644 index 00000000000..a1aad34d9d2 --- /dev/null +++ b/media-libs/lensfun/files/lensfun-0.3.2-warnings.patch @@ -0,0 +1,48 @@ +Adapted from upstream commit + +From 694542f350fc7c9ccafa2d9acb4d4e00e690cbdc Mon Sep 17 00:00:00 2001 +From: Sebastian Kraft +Date: Thu, 22 Dec 2016 18:51:29 +0100 +Subject: [PATCH] Fix some warnings which were introduced when swithcing to + C++11 mode + +--- + libs/lensfun/cpuid.cpp | 4 ++-- + libs/lensfun/mod-pc.cpp | 8 ++++---- + tests/test_modifier.cpp | 4 ++-- + 3 files changed, 8 insertions(+), 8 deletions(-) + +diff --git a/libs/lensfun/cpuid.cpp b/libs/lensfun/cpuid.cpp +index c435f8ac..d2d63972 100644 +--- a/libs/lensfun/cpuid.cpp ++++ b/libs/lensfun/cpuid.cpp +@@ -92,9 +92,9 @@ guint _lf_detect_cpu_features () + { + #define cpuid(cmd) \ + __asm volatile ( \ +- "push %%"R_BX"\n" \ ++ "push %%" R_BX "\n" \ + "cpuid\n" \ +- "pop %%"R_BX"\n" \ ++ "pop %%" R_BX "\n" \ + : "=a" (ax), "=c" (cx), "=d" (dx) \ + : "0" (cmd)) + +diff --git a/tests/test_modifier.cpp b/tests/test_modifier.cpp +index f087917c..ffa3d4d7 100644 +--- a/tests/test_modifier.cpp ++++ b/tests/test_modifier.cpp +@@ -78,8 +78,8 @@ void test_mod_projection_center(lfFixture* lfFix, gconstpointer data) + // check if output becomes NaN when processing geometry conversion + void test_mod_projection_borders(lfFixture* lfFix, gconstpointer data) + { +- float in[2] = {lfFix->img_width, lfFix->img_height}; +- float in2[2] = {(lfFix->img_width-1)/2, (lfFix->img_height-1)/2}; ++ float in[2] = {(float) lfFix->img_width, (float) lfFix->img_height}; ++ float in2[2] = {(float) (lfFix->img_width-1)/2, (float) (lfFix->img_height-1)/2}; + float res[2] = {0, 0}; + + lfLensType geom_types [] = {LF_RECTILINEAR, LF_PANORAMIC, LF_EQUIRECTANGULAR, LF_FISHEYE_STEREOGRAPHIC, LF_FISHEYE, LF_FISHEYE_EQUISOLID, LF_FISHEYE_ORTHOGRAPHIC, LF_FISHEYE_THOBY, LF_UNKNOWN}; +-- +2.26.2 + diff --git a/media-libs/lensfun/lensfun-0.3.2-r1.ebuild b/media-libs/lensfun/lensfun-0.3.2-r1.ebuild index 528d11db736..ef48ba8d722 100644 --- a/media-libs/lensfun/lensfun-0.3.2-r1.ebuild +++ b/media-libs/lensfun/lensfun-0.3.2-r1.ebuild @@ -34,6 +34,10 @@ DEPEND="${RDEPEND}" DOCS=( README.md docs/mounts.txt ChangeLog ) +PATCHES=( + "${FILESDIR}/${P}-warnings.patch" +) + src_configure() { local mycmakeargs=( -DCMAKE_INSTALL_DOCDIR="${EPREFIX}"/usr/share/doc/${PF}/html