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 66B51139085 for ; Sun, 29 Jan 2017 22:27:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AE61E145F6; Sun, 29 Jan 2017 22:27:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 884D5145F6 for ; Sun, 29 Jan 2017 22:27:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2F935341293 for ; Sun, 29 Jan 2017 22:27:15 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6127D3A3E for ; Sun, 29 Jan 2017 22:27:13 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1485728829.cafd6ad57a34ab75bcd488be996019dc6c3f8268.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/chromium/files/, www-client/chromium/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-client/chromium/chromium-57.0.2987.8.ebuild www-client/chromium/files/chromium-FORTIFY_SOURCE.patch X-VCS-Directories: www-client/chromium/files/ www-client/chromium/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: cafd6ad57a34ab75bcd488be996019dc6c3f8268 X-VCS-Branch: master Date: Sun, 29 Jan 2017 22:27:13 +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: 2b872e66-734b-4374-9903-07cfb37a7057 X-Archives-Hash: eb1c0f2739f58ca51a7a0891ee97921a commit: cafd6ad57a34ab75bcd488be996019dc6c3f8268 Author: Mike Gilbert gentoo org> AuthorDate: Sun Jan 29 22:26:22 2017 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Sun Jan 29 22:27:09 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cafd6ad5 www-client/chromium: fix warnings about _FORTIFY_SOURCE being redefined Package-Manager: Portage-2.3.3_p42_p324477, Repoman-2.3.1_p35_p324477 www-client/chromium/chromium-57.0.2987.8.ebuild | 1 + .../chromium/files/chromium-FORTIFY_SOURCE.patch | 27 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/www-client/chromium/chromium-57.0.2987.8.ebuild b/www-client/chromium/chromium-57.0.2987.8.ebuild index 139ec0c..8613930 100644 --- a/www-client/chromium/chromium-57.0.2987.8.ebuild +++ b/www-client/chromium/chromium-57.0.2987.8.ebuild @@ -158,6 +158,7 @@ For other desktop environments, try one of the following: PATCHES=( "${FILESDIR}/${PN}-system-ffmpeg-r4.patch" "${FILESDIR}/${PN}-widevine-r1.patch" + "${FILESDIR}/${PN}-FORTIFY_SOURCE.patch" ) pre_build_checks() { diff --git a/www-client/chromium/files/chromium-FORTIFY_SOURCE.patch b/www-client/chromium/files/chromium-FORTIFY_SOURCE.patch new file mode 100644 index 00000000..c6477d6 --- /dev/null +++ b/www-client/chromium/files/chromium-FORTIFY_SOURCE.patch @@ -0,0 +1,27 @@ +Drop _FORTIFY_SOURCE=2 from defines + +Gentoo toolchains enable this by default. Removing this prevents spammy +warnings about the macro being redefined. + +--- a/build/config/compiler/BUILD.gn ++++ b/build/config/compiler/BUILD.gn +@@ -1069,19 +1069,6 @@ config("chromium_code") { + "__STDC_FORMAT_MACROS", + ] + +- if (!is_debug && !using_sanitizer && +- (!is_linux || !is_clang || is_official_build)) { +- # _FORTIFY_SOURCE isn't really supported by Clang now, see +- # http://llvm.org/bugs/show_bug.cgi?id=16821. +- # It seems to work fine with Ubuntu 12 headers though, so use it in +- # official builds. +- # +- # Non-chromium code is not guaranteed to compile cleanly with +- # _FORTIFY_SOURCE. Also, fortified build may fail when optimizations are +- # disabled, so only do that for Release build. +- defines += [ "_FORTIFY_SOURCE=2" ] +- } +- + if (is_mac || is_ios) { + cflags_objc = [ "-Wobjc-missing-property-synthesis" ] + cflags_objcc = [ "-Wobjc-missing-property-synthesis" ]