From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1352958-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 6FB6D158086
	for <garchives@archives.gentoo.org>; Mon, 27 Dec 2021 02:17:14 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 0F5042BC007;
	Mon, 27 Dec 2021 02:17:11 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id C09E62BC007
	for <gentoo-commits@lists.gentoo.org>; Mon, 27 Dec 2021 02:17:07 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 34DC9342BD4
	for <gentoo-commits@lists.gentoo.org>; Mon, 27 Dec 2021 02:17:02 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 7F3BC1FB
	for <gentoo-commits@lists.gentoo.org>; Mon, 27 Dec 2021 02:17:00 +0000 (UTC)
From: "Georgy Yakovlev" <gyakovlev@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" <gyakovlev@gentoo.org>
Message-ID: <1640571275.28bdc8cd5088537eb0f8b7c9f8e5b18dfc6e91ba.gyakovlev@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/netdata/
X-VCS-Repository: repo/gentoo
X-VCS-Files: net-analyzer/netdata/netdata-1.32.1.ebuild
X-VCS-Directories: net-analyzer/netdata/
X-VCS-Committer: gyakovlev
X-VCS-Committer-Name: Georgy Yakovlev
X-VCS-Revision: 28bdc8cd5088537eb0f8b7c9f8e5b18dfc6e91ba
X-VCS-Branch: master
Date: Mon, 27 Dec 2021 02:17:00 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 5b7c31c5-dbc9-487c-a5a6-4b0e499cf147
X-Archives-Hash: f8847600c45a96c17d1697af587b2d77

commit:     28bdc8cd5088537eb0f8b7c9f8e5b18dfc6e91ba
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 27 02:12:19 2021 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Mon Dec 27 02:14:35 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28bdc8cd

net-analyzer/netdata: fix build on ppc64be, pass -mno-vsx

Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 net-analyzer/netdata/netdata-1.32.1.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/net-analyzer/netdata/netdata-1.32.1.ebuild b/net-analyzer/netdata/netdata-1.32.1.ebuild
index 97b373861b66..00cda3564e28 100644
--- a/net-analyzer/netdata/netdata-1.32.1.ebuild
+++ b/net-analyzer/netdata/netdata-1.32.1.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 PYTHON_COMPAT=( python{3_8,3_9,3_10} )
 
-inherit autotools fcaps linux-info python-single-r1 systemd
+inherit autotools fcaps flag-o-matic linux-info python-single-r1 systemd toolchain-funcs
 
 if [[ ${PV} == *9999 ]] ; then
 	EGIT_REPO_URI="https://github.com/netdata/${PN}.git"
@@ -92,6 +92,12 @@ src_prepare() {
 }
 
 src_configure() {
+	if use ppc64; then
+		# bundled dlib does not support vsx on big-endian
+		# https://github.com/davisking/dlib/issues/397
+		[[ $(tc-endian) == big ]] && append-flags -mno-vsx
+	fi
+
 	econf \
 		--localstatedir="${EPREFIX}"/var \
 		--with-user=netdata \