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 067D7139085 for ; Thu, 5 Jan 2017 21:47:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 678E7E0AC9; Thu, 5 Jan 2017 21:47:13 +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-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 45AA4E0AC9 for ; Thu, 5 Jan 2017 21:47:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 6CCE3341229 for ; Thu, 5 Jan 2017 21:47:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 114C32601 for ; Thu, 5 Jan 2017 21:47:11 +0000 (UTC) From: "Paweł Hajdan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Paweł Hajdan" Message-ID: <1483652807.5c95a4a832157104ea5e5307faf0bdf1bb59a1c4.phajdan.jr@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-56.0.2924.21.ebuild www-client/chromium/files/chromium-glibc-2.24.patch X-VCS-Directories: www-client/chromium/ www-client/chromium/files/ X-VCS-Committer: phajdan.jr X-VCS-Committer-Name: Paweł Hajdan X-VCS-Revision: 5c95a4a832157104ea5e5307faf0bdf1bb59a1c4 X-VCS-Branch: master Date: Thu, 5 Jan 2017 21:47:11 +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: f9f9d0b5-d11c-427a-af2f-c76347ab5400 X-Archives-Hash: 7cd90d9bdb5da7c4ead0e8e993e3135d commit: 5c95a4a832157104ea5e5307faf0bdf1bb59a1c4 Author: Pawel Hajdan, Jr gentoo org> AuthorDate: Thu Jan 5 21:42:53 2017 +0000 Commit: Paweł Hajdan gentoo org> CommitDate: Thu Jan 5 21:46:47 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c95a4a8 www-client/chromium: fix build with glibc-2.24 This addresses bug #594070 by iGentoo . The issue has already been fixed upstream for M57, this is a backport. www-client/chromium/chromium-56.0.2924.21.ebuild | 3 ++- www-client/chromium/files/chromium-glibc-2.24.patch | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/www-client/chromium/chromium-56.0.2924.21.ebuild b/www-client/chromium/chromium-56.0.2924.21.ebuild index edaa776..17cd0d0 100644 --- a/www-client/chromium/chromium-56.0.2924.21.ebuild +++ b/www-client/chromium/chromium-56.0.2924.21.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 # $Id$ @@ -163,6 +163,7 @@ PATCHES=( "${FILESDIR}/${PN}-system-ffmpeg-r4.patch" "${FILESDIR}/${PN}-system-jinja-r14.patch" "${FILESDIR}/${PN}-widevine-r1.patch" + "${FILESDIR}/${PN}-glibc-2.24.patch" ) pre_build_checks() { diff --git a/www-client/chromium/files/chromium-glibc-2.24.patch b/www-client/chromium/files/chromium-glibc-2.24.patch new file mode 100644 index 00000000..f7bfd81 --- /dev/null +++ b/www-client/chromium/files/chromium-glibc-2.24.patch @@ -0,0 +1,15 @@ +--- a/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp.orig 2017-01-05 20:50:56.329369189 +0000 ++++ b/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp 2017-01-05 20:51:32.926099779 +0000 +@@ -242,6 +242,12 @@ + ASSERT(!(len & kSystemPageOffsetMask)); + #if OS(POSIX) + int ret = madvise(addr, len, MADV_FREE); ++ if (ret != 0 && errno == EINVAL) { ++ // MADV_FREE only works on Linux 4.5+ . If request failed, ++ // retry with older MADV_DONTNEED . Note that MADV_FREE ++ // being defined at compile time doesn't imply runtime support. ++ ret = madvise(addr, len, MADV_DONTNEED); ++ } + RELEASE_ASSERT(!ret); + #else + setSystemPagesInaccessible(addr, len);