commit: 728dfaa3ea51a3779e8a99881cbfacd395125c1c Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com> AuthorDate: Thu Feb 27 16:27:02 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Mar 10 01:38:53 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=728dfaa3
sci-libs/qfits: update EAPI 7 -> 8, add missing includes Update home page, add missing includes in tests, main library and custom m4 scripts for configure. Closes: https://bugs.gentoo.org/908483 Closes: https://bugs.gentoo.org/886463 Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/40796 Signed-off-by: Sam James <sam <AT> gentoo.org> sci-libs/qfits/files/qfits-6.2.0-includes.patch | 32 +++++++++++++++++++ sci-libs/qfits/files/qfits-6.2.0-m4.patch | 36 ++++++++++++++++++++++ .../{qfits-6.2.0.ebuild => qfits-6.2.0-r1.ebuild} | 22 +++++++++---- 3 files changed, 84 insertions(+), 6 deletions(-) diff --git a/sci-libs/qfits/files/qfits-6.2.0-includes.patch b/sci-libs/qfits/files/qfits-6.2.0-includes.patch new file mode 100644 index 000000000000..7589b49301a1 --- /dev/null +++ b/sci-libs/qfits/files/qfits-6.2.0-includes.patch @@ -0,0 +1,32 @@ +Missing includes in main library and in tests +https://bugs.gentoo.org/886463 +--- a/main/dtfits.c ++++ b/main/dtfits.c +@@ -33,6 +33,7 @@ + #include <string.h> + + #include "qfits_table.h" ++#include "qfits_tools.h" + + /*----------------------------------------------------------------------------- + Define +--- a/main/qextract.c ++++ b/main/qextract.c +@@ -32,6 +32,7 @@ + #include "qfits_table.h" + #include "qfits_image.h" + #include "qfits_rw.h" ++#include "qfits_tools.h" + + /*----------------------------------------------------------------------------- + Function prototypes +--- a/test/test_pixio.c ++++ b/test/test_pixio.c +@@ -41,6 +41,7 @@ + + #include "qfits_header.h" + #include "qfits_image.h" ++#include "qfits_rw.h" + #include "qfits_md5.h" + #include "qfits_memory.h" + diff --git a/sci-libs/qfits/files/qfits-6.2.0-m4.patch b/sci-libs/qfits/files/qfits-6.2.0-m4.patch new file mode 100644 index 000000000000..99b39bdad451 --- /dev/null +++ b/sci-libs/qfits/files/qfits-6.2.0-m4.patch @@ -0,0 +1,36 @@ +Missing system inlude in self-defined autoconf tests +https://bugs.gentoo.org/908483 +--- a/m4macros/eso.m4 ++++ b/m4macros/eso.m4 +@@ -252,6 +252,7 @@ + AC_RUN_IFELSE([ + #include <stdio.h> + #include <stdarg.h> ++#include <stdlib.h> + + int + doit(char * s, ...) +@@ -701,6 +702,7 @@ + [ + AC_RUN_IFELSE([ + #include <stdarg.h> ++#include <stdlib.h> + + void f(int i, ...) + { +@@ -733,6 +735,7 @@ + [ + AC_RUN_IFELSE([ + #include <stdarg.h> ++#include <stdlib.h> + + void f(int i, ...) + { +@@ -784,6 +787,7 @@ + [ + AC_RUN_IFELSE([ + #include <stdarg.h> ++#include <stdlib.h> + + void f(int i, ...) + { diff --git a/sci-libs/qfits/qfits-6.2.0.ebuild b/sci-libs/qfits/qfits-6.2.0-r1.ebuild similarity index 55% rename from sci-libs/qfits/qfits-6.2.0.ebuild rename to sci-libs/qfits/qfits-6.2.0-r1.ebuild index 181c4777ba8a..99af0c8cacb7 100644 --- a/sci-libs/qfits/qfits-6.2.0.ebuild +++ b/sci-libs/qfits/qfits-6.2.0-r1.ebuild @@ -1,10 +1,12 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 + +inherit autotools DESCRIPTION="ESO stand-alone C library offering easy access to FITS files" -HOMEPAGE="http://www.eso.org/projects/aot/qfits/" +HOMEPAGE="https://www.eso.org/sci/software/eclipse/qfits/" SRC_URI="ftp://ftp.hq.eso.org/pub/${PN}/${P}.tar.gz" LICENSE="GPL-2" @@ -12,10 +14,18 @@ SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" IUSE="doc" -PATCHES=( "${FILESDIR}"/${P}-{ttest,open}.patch ) +PATCHES=( + "${FILESDIR}/${P}-ttest.patch" + "${FILESDIR}/${P}-open.patch" + "${FILESDIR}/${P}-includes.patch" + "${FILESDIR}/${P}-m4.patch" +) + +src_prepare() { + default -src_configure() { - econf --disable-static + # https://bugs.gentoo.org/908483 + eautoreconf } src_install() {
