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 1FC6E138334 for ; Sat, 9 Mar 2019 18:18:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D11FAE0907; Sat, 9 Mar 2019 18:18:53 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 A2FF7E0907 for ; Sat, 9 Mar 2019 18:18:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 37FC6335D0E for ; Sat, 9 Mar 2019 18:18:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CCB1A4E3 for ; Sat, 9 Mar 2019 18:18:47 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1552155493.e4b9c7bfe522a0bfa760db822effe83046024d3e.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/gd/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/gd/gd-2.2.5-r2.ebuild X-VCS-Directories: media-libs/gd/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: e4b9c7bfe522a0bfa760db822effe83046024d3e X-VCS-Branch: master Date: Sat, 9 Mar 2019 18:18:47 +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: 08360ac6-1b7a-43b3-a148-2ebe9b28750b X-Archives-Hash: b925aa988221ac49d48d56a4aa0f57ee commit: e4b9c7bfe522a0bfa760db822effe83046024d3e Author: Thomas Deutschmann gentoo org> AuthorDate: Sat Mar 9 18:18:13 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sat Mar 9 18:18:13 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4b9c7bf media-libs/gd: fix build for systems without SSE support Bug: https://github.com/libgd/libgd/issues/242 Closes: https://bugs.gentoo.org/603360 Closes: https://bugs.gentoo.org/587992 Closes: https://bugs.gentoo.org/632076 Closes: https://bugs.gentoo.org/608730 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Thomas Deutschmann gentoo.org> media-libs/gd/gd-2.2.5-r2.ebuild | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/media-libs/gd/gd-2.2.5-r2.ebuild b/media-libs/gd/gd-2.2.5-r2.ebuild index 799f5b0382a..636cf3398f4 100644 --- a/media-libs/gd/gd-2.2.5-r2.ebuild +++ b/media-libs/gd/gd-2.2.5-r2.ebuild @@ -3,7 +3,7 @@ EAPI="7" -inherit autotools multilib-minimal +inherit autotools flag-o-matic multilib-minimal DESCRIPTION="Graphics library for fast image creation" HOMEPAGE="https://libgd.org/ https://www.boutell.com/gd/" @@ -16,7 +16,7 @@ SRC_URI="https://github.com/libgd/libgd/releases/download/${P}/lib${P}.tar.xz LICENSE="gd IJG HPND BSD" SLOT="2/3" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" -IUSE="fontconfig jpeg png static-libs test tiff truetype webp xpm zlib" +IUSE="cpu_flags_x86_sse fontconfig jpeg png static-libs test tiff truetype webp xpm zlib" # fontconfig has prefixed font paths, details see bug #518970 REQUIRED_USE="prefix? ( fontconfig )" @@ -59,6 +59,13 @@ src_prepare() { } multilib_src_configure() { + # bug 603360, https://github.com/libgd/libgd/blob/fd06f7f83c5e78bf5b7f5397746b4e5ee4366250/docs/README.TESTING#L65 + if use cpu_flags_x86_sse ; then + append-cflags -msse -mfpmath=sse + else + append-cflags -ffloat-store + fi + # we aren't actually {en,dis}abling X here ... the configure # script uses it just to add explicit -I/-L paths which we # don't care about on Gentoo systems.