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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0420215838C for ; Wed, 31 Jan 2024 13:10:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9ED38E2B11; Wed, 31 Jan 2024 13:10:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 7DD78E2B18 for ; Wed, 31 Jan 2024 13:10:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 586E4343177 for ; Wed, 31 Jan 2024 13:10:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B5AD314BE for ; Wed, 31 Jan 2024 13:10:37 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1706706634.7e7deaf82dd94cbce99e1afd93cda54013b5393b.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/zita-resampler/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/zita-resampler/zita-resampler-1.10.1.ebuild X-VCS-Directories: media-libs/zita-resampler/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 7e7deaf82dd94cbce99e1afd93cda54013b5393b X-VCS-Branch: master Date: Wed, 31 Jan 2024 13:10:37 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d1bd4868-4a21-48c0-a5ed-1aed51768b7e X-Archives-Hash: bb03fa9527184ee57ce99ba9a89d5a17 commit: 7e7deaf82dd94cbce99e1afd93cda54013b5393b Author: Alexander Tsoy tsoy me> AuthorDate: Tue Dec 19 15:00:57 2023 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Wed Jan 31 13:10:34 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e7deaf8 media-libs/zita-resampler: backport SSE2 checks to 1.10.1 Closes: https://bugs.gentoo.org/920262 Signed-off-by: Alexander Tsoy tsoy.me> Closes: https://github.com/gentoo/gentoo/pull/34341 Signed-off-by: Joonas Niilola gentoo.org> media-libs/zita-resampler/zita-resampler-1.10.1.ebuild | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/media-libs/zita-resampler/zita-resampler-1.10.1.ebuild b/media-libs/zita-resampler/zita-resampler-1.10.1.ebuild index 2e8977814e6c..7e35d5a6f7bb 100644 --- a/media-libs/zita-resampler/zita-resampler-1.10.1.ebuild +++ b/media-libs/zita-resampler/zita-resampler-1.10.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -16,7 +16,6 @@ IUSE="cpu_flags_x86_sse2 tools" RDEPEND="tools? ( media-libs/libsndfile )" DEPEND="${RDEPEND}" -BDEPEND="" HTML_DOCS="docs/." @@ -24,8 +23,14 @@ PATCHES=( "${FILESDIR}"/${PN}-1.10.1-makefile.patch ) src_compile() { tc-export CXX + # Code paths that uses intrinsics are not properly guarded by symbol checks if use cpu_flags_x86_sse2 ; then - append-cppflags "-DENABLE_SSE2" + if tc-cpp-is-true "defined(__SSE2__)" ${CFLAGS} ${CXXFLAGS} ; then + append-cppflags "-DENABLE_SSE2" + else + ewarn "SSE2 support has been disabled automatically because the" + ewarn "compiler does not support corresponding intrinsics" + fi fi emake -C source