Source: cfitsio Version: 4.0.0-1 Severity: important Tags: patch User: debian-h...@lists.debian.org Usertags: hurd
Hi, gdal (3.4.1+dfsg-1, etc) FTBFS on hurd-i386 due to missing support for GNU/Hurd in cfitsio (4.0.0-1). Attached is an updated patch of 03-off_t.diff, modifying fitsio.h to achieve a successful build of gdal with the updated libcfitsio9 and libcfitsio-dev packages. Thanks!
Index: cfitsio-4.0.0/fitsio.h =================================================================== --- cfitsio-4.0.0.orig/fitsio.h +++ cfitsio-4.0.0/fitsio.h @@ -70,7 +70,7 @@ SERVICES PROVIDED HEREUNDER." # define _MIPS_SZLONG 64 #endif -#if defined(linux) || defined(__APPLE__) || defined(__sgi) +#if defined(__linux__) || defined(__APPLE__) || defined(__sgi) || defined(__GNU__) # include <sys/types.h> /* apparently needed on debian linux systems */ #endif /* to define off_t */ @@ -84,10 +84,11 @@ SERVICES PROVIDED HEREUNDER." /* on whether _LARGEFILE_SOURCE is defined in sys/feature_tests.h */ /* (at least on Solaris platforms using cc) */ -/* Debian systems require: "(defined(linux) && defined(__off_t_defined))" */ +/* Debian systems require: "(defined(__linux__) && defined(__off_t_defined))" */ /* the mingw-w64 compiler requires: "(defined(__MINGW32__) && defined(_OFF_T_DEFINED))" */ #if defined(_OFF_T) \ - || (defined(linux) && defined(__off_t_defined)) \ + || (defined(__linux__) && defined(__off_t_defined)) \ + || (defined(__GNU__) && defined(__off_t_defined)) \ || (defined(__MINGW32__) && defined(_OFF_T_DEFINED)) \ || defined(_MIPS_SZLONG) || defined(__APPLE__) || defined(_AIX) # define OFF_T off_t