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 581BB138334 for ; Wed, 17 Oct 2018 12:48:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3C1A6E0886; Wed, 17 Oct 2018 12:48:28 +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 16910E0886 for ; Wed, 17 Oct 2018 12:48:27 +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 9C19E335CEB for ; Wed, 17 Oct 2018 12:48:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 579AA42C for ; Wed, 17 Oct 2018 12:48:24 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1539780501.432f45bd8ece2a10ea64b7b07f951d0ac6aa0666.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/x265/files/, media-libs/x265/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/x265/files/x265-2.9-detect512.patch media-libs/x265/x265-2.9.ebuild X-VCS-Directories: media-libs/x265/files/ media-libs/x265/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 432f45bd8ece2a10ea64b7b07f951d0ac6aa0666 X-VCS-Branch: master Date: Wed, 17 Oct 2018 12:48:24 +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: 670dd673-8e3d-424a-8ed5-04479e1fc129 X-Archives-Hash: b0eba98bc7d2db45988614555bf97f55 commit: 432f45bd8ece2a10ea64b7b07f951d0ac6aa0666 Author: Jeroen Roovers gentoo org> AuthorDate: Wed Oct 17 12:40:22 2018 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Wed Oct 17 12:48:21 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=432f45bd media-libs/x265: Let everybody have detect512 Upstream commit d55132eb4201 introduced detect512() but the function is defined only when X265_ARCH_X86 so the linker fails with non x86 targets: libx265.so.165: undefined reference to `x265_12bit::detect512()' libx265.so.165: undefined reference to `x265_10bit::detect512()' libx265.so.165: undefined reference to `x265::detect512()' Fix it by defining the function unconditionally. Package-Manager: Portage-2.3.51, Repoman-2.3.11 Signed-off-by: Jeroen Roovers gentoo.org> media-libs/x265/files/x265-2.9-detect512.patch | 25 +++++++++++++++++++++++++ media-libs/x265/x265-2.9.ebuild | 1 + 2 files changed, 26 insertions(+) diff --git a/media-libs/x265/files/x265-2.9-detect512.patch b/media-libs/x265/files/x265-2.9-detect512.patch new file mode 100644 index 00000000000..8437ed09b88 --- /dev/null +++ b/media-libs/x265/files/x265-2.9-detect512.patch @@ -0,0 +1,25 @@ +--- a/source/common/cpu.cpp ++++ b/source/common/cpu.cpp +@@ -110,6 +110,11 @@ + { "", 0 }, + }; + ++bool detect512() ++{ ++ return(enable512); ++} ++ + #if X265_ARCH_X86 + + extern "C" { +@@ -123,10 +128,6 @@ + #pragma warning(disable: 4309) // truncation of constant value + #endif + +-bool detect512() +-{ +- return(enable512); +-} + uint32_t cpu_detect(bool benableavx512 ) + { + diff --git a/media-libs/x265/x265-2.9.ebuild b/media-libs/x265/x265-2.9.ebuild index b62476a545d..38316ce55ea 100644 --- a/media-libs/x265/x265-2.9.ebuild +++ b/media-libs/x265/x265-2.9.ebuild @@ -31,6 +31,7 @@ PATCHES=( "${FILESDIR}/arm.patch" "${FILESDIR}/neon.patch" "${FILESDIR}/ppc64.patch" + "${FILESDIR}"/${PN}-2.9-detect512.patch ) src_unpack() {