backported fix for hcompress

epel9
Christian Dersch 7 years ago
parent 300682b88a
commit fe2d61203f

@ -0,0 +1,12 @@
diff -Naur cfitsio/imcompress.c cfitsio.new/imcompress.c
--- cfitsio/imcompress.c 2013-11-22 21:37:42.000000000 +0100
+++ cfitsio.new/imcompress.c 2017-10-02 14:59:15.109929047 +0200
@@ -6315,7 +6315,7 @@
*/
if ((infptr->Fptr)->compress_type == HCOMPRESS_1) {
- if (*status == NUM_OVERFLOW) *status = 0;
+ if ((*status == NUM_OVERFLOW) || (*status == OVERFLOW_ERR)) *status = 0;
}
}
else if (tiledatatype == TSHORT)

@ -1,6 +1,6 @@
Name: cfitsio Name: cfitsio
Version: 3.370 Version: 3.370
Release: 9%{?dist} Release: 10%{?dist}
Summary: Library for manipulating FITS data files Summary: Library for manipulating FITS data files
Group: Development/Libraries Group: Development/Libraries
License: MIT License: MIT
@ -12,6 +12,8 @@ Patch0: cfitsio-zlib.patch
Patch1: cfitsio-noversioncheck.patch Patch1: cfitsio-noversioncheck.patch
# Some rearrangements in pkg-config file # Some rearrangements in pkg-config file
Patch2: cfitsio-pkgconfig.patch Patch2: cfitsio-pkgconfig.patch
# Backported fix for hcompress
Patch3: cfitsio-fix-hcompress-overflow.patch
BuildRequires: gcc-gfortran zlib-devel BuildRequires: gcc-gfortran zlib-devel
BuildRequires: bzip2-devel BuildRequires: bzip2-devel
@ -80,6 +82,7 @@ compression algorithm.
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1
# remove bundled zlib # remove bundled zlib
# not all the files inside zlib belong to zlib # not all the files inside zlib belong to zlib
@ -142,6 +145,9 @@ chmod 755 %{buildroot}%{_bindir}/f{,un}pack
%{_bindir}/funpack %{_bindir}/funpack
%changelog %changelog
* Mon Oct 02 2017 Christian Dersch <lupinix@mailbox.org> - 3.370-10
- Fix hcompress
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.370-9 * Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.370-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

Loading…
Cancel
Save