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 8995E138334 for ; Tue, 7 Aug 2018 07:06:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A45DEE07FE; Tue, 7 Aug 2018 07:06:06 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 33759E07FE for ; Tue, 7 Aug 2018 07:06:06 +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 A8DC8335C7F for ; Tue, 7 Aug 2018 07:06:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 45F2038E for ; Tue, 7 Aug 2018 07:06:03 +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: <1533625539.62dd0d84ce139e725fb8890b85fc1cfbff2e0c4e.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/exiv2/files/, media-gfx/exiv2/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/exiv2/exiv2-0.26_p20180319.ebuild media-gfx/exiv2/files/exiv2-0.26_p20180319-clang-fix.patch X-VCS-Directories: media-gfx/exiv2/ media-gfx/exiv2/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 62dd0d84ce139e725fb8890b85fc1cfbff2e0c4e X-VCS-Branch: master Date: Tue, 7 Aug 2018 07:06:03 +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: 1d55bcfb-6bcd-4782-aacb-93dbca8787a2 X-Archives-Hash: 71756e0553cd67fb20109ba132a9d8fe commit: 62dd0d84ce139e725fb8890b85fc1cfbff2e0c4e Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue Aug 7 00:08:53 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue Aug 7 07:05:39 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62dd0d84 media-gfx/exiv2: Fix build with clang Reported-by: David Carlos Manuelda gmail.com> Closes: https://bugs.gentoo.org/662934 Package-Manager: Portage-2.3.44, Repoman-2.3.10 media-gfx/exiv2/exiv2-0.26_p20180319.ebuild | 3 +- .../files/exiv2-0.26_p20180319-clang-fix.patch | 47 ++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/media-gfx/exiv2/exiv2-0.26_p20180319.ebuild b/media-gfx/exiv2/exiv2-0.26_p20180319.ebuild index 478ea7a79b1..eb2572dfcf3 100644 --- a/media-gfx/exiv2/exiv2-0.26_p20180319.ebuild +++ b/media-gfx/exiv2/exiv2-0.26_p20180319.ebuild @@ -48,9 +48,10 @@ DOCS=( README doc/ChangeLog doc/cmd.txt ) S="${WORKDIR}/${PN^}-${PN}-${COMMIT:0:7}" PATCHES=( - # master, pending backports for 0.26 + # 0.26 branch "${FILESDIR}"/${P}-CVE-2018-4868.patch "${FILESDIR}"/${P}-CVE-2017-18005.patch + "${FILESDIR}"/${P}-clang-fix.patch # TODO: Take to upstream "${FILESDIR}"/${PN}-0.26-fix-docs.patch "${FILESDIR}"/${PN}-0.26-tools-optional.patch diff --git a/media-gfx/exiv2/files/exiv2-0.26_p20180319-clang-fix.patch b/media-gfx/exiv2/files/exiv2-0.26_p20180319-clang-fix.patch new file mode 100644 index 00000000000..a80543a5ecd --- /dev/null +++ b/media-gfx/exiv2/files/exiv2-0.26_p20180319-clang-fix.patch @@ -0,0 +1,47 @@ +From 176ba44cc31064183fdfbce55a7dd7e6b5e2a962 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= +Date: Fri, 8 Jun 2018 23:46:04 +0200 +Subject: [PATCH] Fix C & C++ flag adding in CMakeLists.txt + +--- + CMakeLists.txt | 22 ++++++++++++---------- + 1 file changed, 12 insertions(+), 10 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 2e179bf5..98a172ed 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -74,21 +74,23 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/config/") + + if( MINGW OR UNIX ) + if (${CMAKE_CXX_COMPILER_ID} STREQUAL GNU) +- ADD_DEFINITIONS(-Wall +- -Wcast-align +- -Wpointer-arith +- -Wformat-security +- -Wmissing-format-attribute +- -Woverloaded-virtual +- -W +- ) ++ string(CONCAT WARNING_FLAGS " -Wall" ++ " -Wcast-align" ++ " -Wpointer-arith" ++ " -Wformat-security" ++ " -Wmissing-format-attribute" ++ " -Woverloaded-virtual" ++ " -W" ++ ) ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNING_FLAGS}") ++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_FLAGS}") + ENDIF() + + message(STATUS "Compiler info: ${CMAKE_CXX_COMPILER_ID} (${CMAKE_CXX_COMPILER}) ; version: ${CMAKE_CXX_COMPILER_VERSION}") + IF ( CYGWIN OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 5.0)) +- ADD_DEFINITIONS( -std=gnu++98 ) # to support snprintf ++ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++98" ) # to support snprintf + ELSE() +- ADD_DEFINITIONS( -std=c++98 ) ++ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++98" ) + ENDIF() + + ENDIF( MINGW OR UNIX ) \ No newline at end of file