Skip to content

Commit 7ad5814

Browse files
AkarshHCLKanishk Bansal
andauthored
Fix ptest issue for gd. (microsoft#16901)
Co-authored-by: Kanishk Bansal <kanbansal@microsoft.com>
1 parent 98f8d21 commit 7ad5814

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

SPECS/gd/gd.spec

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
%define lname libgd3
2121
Name: gd
2222
Version: 2.3.3
23-
Release: 4%{?dist}
23+
Release: 5%{?dist}
2424
Summary: A Drawing Library for Programs That Use PNG and JPEG Output
2525
License: MIT
2626
Vendor: Microsoft Corporation
@@ -121,6 +121,10 @@ XFAIL_TESTS="gdimagegrayscale/basic $XFAIL_TESTS"
121121
%endif
122122
export XFAIL_TESTS
123123
export TMPDIR=${TMPDIR:/tmp}
124+
# Known upstream issue: TIFF tests fail with newer libtiff
125+
# https://github.com/libgd/libgd/issues/900
126+
XFAIL_TESTS="$XFAIL_TESTS tiff/tiff_dpi tiff/tiff_im2im tiff/tiff_read_bw"
127+
export LD_LIBRARY_PATH=$(pwd)/src/.libs:$(pwd)/.libs:$LD_LIBRARY_PATH
124128
%make_build check
125129

126130
%install
@@ -157,6 +161,9 @@ find %{buildroot} -type f -name "*.la" -delete -print
157161
%{_libdir}/pkgconfig/gdlib.pc
158162

159163
%changelog
164+
* Mon Apr 27 2026 Akarsh Chaudhary <v-akarshc@microsoft.com> - 2.3.3-5
165+
- Fixed %%check by setting test library paths and marking unstable TIFF tests as XFAIL.
166+
160167
* Wed May 17 2023 Olivia Crain <oliviacrain@microsoft.com> - 2.3.3-4
161168
- Bumping release to re-build with newer 'libtiff' libraries.
162169

0 commit comments

Comments
 (0)