From 3be26f764c543093cba74e76b16f84d5fa609e6e Mon Sep 17 00:00:00 2001 From: JkktBkkt Date: Mon, 16 Jun 2025 04:42:45 +0300 Subject: [PATCH] cfitsio: fix distfiles, fix musl build. --- .../restore_gethostbyname_declaration.patch | 15 +++++++++++++++ srcpkgs/cfitsio/template | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/cfitsio/patches/restore_gethostbyname_declaration.patch diff --git a/srcpkgs/cfitsio/patches/restore_gethostbyname_declaration.patch b/srcpkgs/cfitsio/patches/restore_gethostbyname_declaration.patch new file mode 100644 index 00000000000..fb4952dd8df --- /dev/null +++ b/srcpkgs/cfitsio/patches/restore_gethostbyname_declaration.patch @@ -0,0 +1,15 @@ +Adapted from: https://cgit.freebsd.org/ports/tree/astro/cfitsio/files/patch-configure?id=6068c041405c834cf6b223921f12671c9bc7c4df +Reference: https://cgit.freebsd.org/ports/commit/astro/cfitsio/Makefile?id=7eda11c87c30c735058e9393d54b631a74cf566a +diff --git a/configure b/configure +index fc5b8712251..d6f39e056b2 100755 +--- a/configure ++++ b/configure +@@ -18925,8 +18925,6 @@ fi + if test "x$BUILD_REENTRANT" = xyes; then + printf "%s\n" "#define _REENTRANT 1" >>confdefs.h + +- printf "%s\n" "#define _XOPEN_SOURCE 700" >>confdefs.h +- + # Additional definition needed to get 'union semun' when using + # _XOPEN_SOURCE on a Mac: + if test "x$EXT" = xdarwin; then diff --git a/srcpkgs/cfitsio/template b/srcpkgs/cfitsio/template index b9880e2bf8b..95f18e3bf8f 100644 --- a/srcpkgs/cfitsio/template +++ b/srcpkgs/cfitsio/template @@ -1,7 +1,7 @@ # Template file for 'cfitsio' pkgname=cfitsio version=4.6.2 -revision=1 +revision=2 build_style=gnu-configure configure_args="--enable-reentrant" makedepends="libcurl-devel" @@ -9,7 +9,7 @@ short_desc="Library for reading and writing data files in FITS data format" maintainer="Helmut Pozimski " license="custom:NASA license" homepage="https://heasarc.gsfc.nasa.gov/fitsio/" -distfiles="http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/${pkgname}-${version}.tar.gz" +distfiles="https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/${pkgname}-${version}.tar.gz" checksum=66fd078cc0bea896b0d44b120d46d6805421a5361d3a5ad84d9f397b1b5de2cb if [ -z "$CROSS_BUILD" ]; then