diff --git a/scamp.spec b/scamp.spec index 6323063..3b82fba 100644 --- a/scamp.spec +++ b/scamp.spec @@ -1,14 +1,13 @@ -%define _legacy_common_support 1 -%global _lto_cflags %nil Name: scamp Version: 2.10.0 -Release: 8%{?dist} +Release: 9%{?dist} Summary: compute astrometric and photometric solutions from sextractor catalogs License: GPL-3.0-only URL: http://www.astromatic.net/software/scamp Source0: https://github.com/astromatic/scamp/archive/v%{version}/%{name}-%{version}.tar.gz +Patch0: wrong-pointer-i386.patch BuildRequires: make BuildRequires: gcc @@ -28,7 +27,7 @@ SCAMP is a program that computes astrometric and photometric solutions from SExtractor catalogs %prep -%setup -q +%autosetup -p1 %build @@ -51,6 +50,9 @@ sh autogen.sh %changelog +* Wed Feb 07 2024 Sergio Pascual - 2.10.0-9 +- Patch to fix compilation error in i386 + * Thu Feb 01 2024 Sergio Pascual - 2.10.0-8 - Rebuild to fix FTBS - Using SPDX license name diff --git a/wrong-pointer-i386.patch b/wrong-pointer-i386.patch new file mode 100644 index 0000000..a692408 --- /dev/null +++ b/wrong-pointer-i386.patch @@ -0,0 +1,12 @@ +diff -ur a/src/chealpixstore.c b/src/chealpixstore.c +--- a/src/chealpixstore.c 2024-02-07 12:58:16.514440921 +0100 ++++ b/src/chealpixstore.c 2024-02-07 12:58:50.243948106 +0100 +@@ -124,7 +124,7 @@ + + if (store->pixelids_size == store->npixels) { + QREALLOC(store->pixelids, +- long, store->pixelids_size * 2); ++ int64_t, store->pixelids_size * 2); + store->pixelids_size *= 2; + } + store->pixelids[store->npixels] = pixnum;