From f22f37657479c7735b348dcf32c31c433068aa6a Mon Sep 17 00:00:00 2001 From: Weisson Date: Wed, 6 Sep 2023 11:12:45 +0800 Subject: [PATCH] Fix test-suits failure for sw_64. issue: https://github.com/libgd/libgd/issues/278. Signed-off-by: Weisson --- gd.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gd.spec b/gd.spec index bfc6fc8..42e7c3d 100644 --- a/gd.spec +++ b/gd.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 # requested by https://bugzilla.redhat.com/1468338 # this break gdimagefile/gdnametest: # gdimagefile/gdnametest.c:122: 255 pixels different on /tmp/gdtest.CrpdIb/img.gif @@ -9,7 +10,7 @@ Summary: A graphics library for quick creation of PNG or JPEG images Name: gd Version: 2.2.5 -Release: 7%{?prever}%{?short}%{?dist} +Release: 7%{?prever}%{?short}%{?anolis_release}%{?dist} Group: System Environment/Libraries License: MIT URL: http://libgd.github.io/ @@ -127,7 +128,7 @@ CFLAGS="$RPM_OPT_FLAGS -DDEFAULT_FONTPATH='\"\ CFLAGS="$CFLAGS -msse -mfpmath=sse" %endif -%ifarch aarch64 ppc64 ppc64le s390 s390x +%ifarch aarch64 ppc64 ppc64le s390 s390x sw_64 # workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1359680 export CFLAGS="$CFLAGS -ffp-contract=off" %endif @@ -176,6 +177,9 @@ grep %{version} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gdlib.pc %changelog +* Wed Sep 6 2023 Weisson - 2.2.5-7.0.1 +- Fix test-suits failure for sw_64. +- issue: https://github.com/libgd/libgd/issues/278. * Fri Mar 27 2020 fjanus@redhat.com - 2.2.5-7 - Fix CVE-2018-14553 - Potential Null pointer dereference in gdImageClone -- Gitee