Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-astropy for openSUSE:Factory checked in at 2026-05-14 21:45:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-astropy (Old) and /work/SRC/openSUSE:Factory/.python-astropy.new.1966 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-astropy" Thu May 14 21:45:07 2026 rev:66 rq:1353163 version:7.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-astropy/python-astropy.changes 2026-01-02 14:31:05.138810381 +0100 +++ /work/SRC/openSUSE:Factory/.python-astropy.new.1966/python-astropy.changes 2026-05-14 21:45:10.500072396 +0200 @@ -1,0 +2,5 @@ +Wed May 13 11:13:27 UTC 2026 - Markéta Machová <[email protected]> + +- Add upstream posix-c-source.patch to fix build + +------------------------------------------------------------------- New: ---- posix-c-source.patch ----------(New B)---------- New: - Add upstream posix-c-source.patch to fix build ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-astropy.spec ++++++ --- /var/tmp/diff_new_pack.qD0fNc/_old 2026-05-14 21:45:11.372108356 +0200 +++ /var/tmp/diff_new_pack.qD0fNc/_new 2026-05-14 21:45:11.376108521 +0200 @@ -59,6 +59,8 @@ # Mark wcs headers as false positives for devel-file-in-non-devel-package # These are used by the python files so they must be available. Source100: python-astropy-rpmlintrc +# PATCH-FIX-UPSTREAM https://github.com/astropy/astropy/pull/19341 fix "_POSIX_C_SOURCE redefined" error and warnings +Patch0: posix-c-source.patch # https://docs.astropy.org/en/stable/install.html#requirements BuildRequires: %{python_module Cython >= 3 with %python-Cython < 4} BuildRequires: %{python_module devel >= 3.11} ++++++ posix-c-source.patch ++++++ >From 26ec157c57f1bb9468f992466cf886b6f0eb556a Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <[email protected]> Date: Fri, 27 Feb 2026 10:06:05 -0500 Subject: [PATCH] Backport PR #19340: fix "_POSIX_C_SOURCE redefined" error and warnings --- astropy/convolution/src/convolve.c | 4 ++-- astropy/cosmology/_src/signature_deprecations.c | 2 +- astropy/utils/xml/src/iterparse.c | 2 +- astropy/wcs/include/astropy_wcs/pyutil.h | 3 +-- astropy/wcs/src/pyutil.c | 7 +++---- astropy/wcs/src/str_list_proxy.c | 2 +- astropy/wcs/src/unit_list_proxy.c | 2 +- astropy/wcs/src/wcslib_celprm_wrap.c | 6 +++--- astropy/wcs/src/wcslib_prjprm_wrap.c | 6 +++--- astropy/wcs/src/wcslib_wrap.c | 6 +++--- 10 files changed, 19 insertions(+), 21 deletions(-) diff --git a/astropy/convolution/src/convolve.c b/astropy/convolution/src/convolve.c index 8d66753c921c..07d7aed17030 100644 --- a/astropy/convolution/src/convolve.c +++ b/astropy/convolution/src/convolve.c @@ -25,14 +25,14 @@ */ +#include "convolve.h" + #include <assert.h> #include <math.h> #include <stdbool.h> #include <stdlib.h> #include <stddef.h> -#include "convolve.h" - #ifdef _OPENMP #include <omp.h> #endif diff --git a/astropy/cosmology/_src/signature_deprecations.c b/astropy/cosmology/_src/signature_deprecations.c index 6293d21d1059..fbcdce2adeaa 100644 --- a/astropy/cosmology/_src/signature_deprecations.c +++ b/astropy/cosmology/_src/signature_deprecations.c @@ -3,8 +3,8 @@ // MIT. see licenses/POSITIONAL_DEFAULTS.rst -#include <stdio.h> // snprintf #include <Python.h> +#include <stdio.h> // snprintf #include <structmember.h> #define SINCE_CHAR_SIZE 32 diff --git a/astropy/utils/xml/src/iterparse.c b/astropy/utils/xml/src/iterparse.c index f932f74550f0..b948bec86d5e 100644 --- a/astropy/utils/xml/src/iterparse.c +++ b/astropy/utils/xml/src/iterparse.c @@ -22,12 +22,12 @@ * library. ******************************************************************************/ +#include <Python.h> #include <stdio.h> #include <string.h> // memcpy #ifndef _MSC_VER # include <unistd.h> // read #endif -#include <Python.h> #include "structmember.h" #include "expat.h" diff --git a/astropy/wcs/include/astropy_wcs/pyutil.h b/astropy/wcs/include/astropy_wcs/pyutil.h index 13744207d20b..9122a3fbcfd5 100644 --- a/astropy/wcs/include/astropy_wcs/pyutil.h +++ b/astropy/wcs/include/astropy_wcs/pyutil.h @@ -6,12 +6,11 @@ #ifndef __PYUTIL_H__ #define __PYUTIL_H__ +#include <Python.h> #include "util.h" #define PY_ARRAY_UNIQUE_SYMBOL astropy_wcs_numpy_api -#include <Python.h> - #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #include <numpy/arrayobject.h> #include <numpy/npy_math.h> diff --git a/astropy/wcs/src/pyutil.c b/astropy/wcs/src/pyutil.c index 0b23eede6dfe..5418de2da75d 100644 --- a/astropy/wcs/src/pyutil.c +++ b/astropy/wcs/src/pyutil.c @@ -5,14 +5,13 @@ #define NO_IMPORT_ARRAY -#include <stdlib.h> // malloc, free -#include <string.h> // memcpy - /* util.h must be imported first */ #include "astropy_wcs/pyutil.h" - #include "astropy_wcs/docstrings.h" +#include <stdlib.h> // malloc, free +#include <string.h> // memcpy + #include "wcsfix.h" #include "wcshdr.h" #include "wcsprintf.h" diff --git a/astropy/wcs/src/str_list_proxy.c b/astropy/wcs/src/str_list_proxy.c index 3e5a31f3d27e..c0d283fa1c76 100644 --- a/astropy/wcs/src/str_list_proxy.c +++ b/astropy/wcs/src/str_list_proxy.c @@ -5,8 +5,8 @@ #define NO_IMPORT_ARRAY -#include <stdlib.h> // malloc, free #include "astropy_wcs/pyutil.h" +#include <stdlib.h> // malloc, free /*************************************************************************** * List-of-strings proxy object diff --git a/astropy/wcs/src/unit_list_proxy.c b/astropy/wcs/src/unit_list_proxy.c index 4657534da992..169815ed6398 100644 --- a/astropy/wcs/src/unit_list_proxy.c +++ b/astropy/wcs/src/unit_list_proxy.c @@ -5,9 +5,9 @@ #define NO_IMPORT_ARRAY -#include <string.h> // strncmp #include "astropy_wcs/pyutil.h" #include "astropy_wcs/str_list_proxy.h" +#include <string.h> // strncmp /*************************************************************************** * List-of-units proxy object diff --git a/astropy/wcs/src/wcslib_celprm_wrap.c b/astropy/wcs/src/wcslib_celprm_wrap.c index 0b392bbc6a65..e00c1809f7a8 100644 --- a/astropy/wcs/src/wcslib_celprm_wrap.c +++ b/astropy/wcs/src/wcslib_celprm_wrap.c @@ -1,11 +1,11 @@ #define NO_IMPORT_ARRAY -#include <stdlib.h> // calloc, malloc, free -#include <string.h> // memcpy - #include "astropy_wcs/wcslib_celprm_wrap.h" #include "astropy_wcs/wcslib_prjprm_wrap.h" +#include <stdlib.h> // calloc, malloc, free +#include <string.h> // memcpy + #include <wcs.h> #include <wcsprintf.h> #include <cel.h> diff --git a/astropy/wcs/src/wcslib_prjprm_wrap.c b/astropy/wcs/src/wcslib_prjprm_wrap.c index d8575f7411cd..7fcef537a087 100644 --- a/astropy/wcs/src/wcslib_prjprm_wrap.c +++ b/astropy/wcs/src/wcslib_prjprm_wrap.c @@ -1,12 +1,12 @@ #define NO_IMPORT_ARRAY +#include "astropy_wcs/wcslib_celprm_wrap.h" +#include "astropy_wcs/wcslib_prjprm_wrap.h" + #include <math.h> #include <float.h> #include <stdlib.h> // calloc, malloc, free #include <string.h> // memcpy, strlen, strncpy -#include "astropy_wcs/wcslib_celprm_wrap.h" -#include "astropy_wcs/wcslib_prjprm_wrap.h" - #include <wcs.h> #include <wcsprintf.h> #include <prj.h> diff --git a/astropy/wcs/src/wcslib_wrap.c b/astropy/wcs/src/wcslib_wrap.c index 5c21d3707edf..b0c8a8027266 100755 --- a/astropy/wcs/src/wcslib_wrap.c +++ b/astropy/wcs/src/wcslib_wrap.c @@ -5,9 +5,6 @@ #define NO_IMPORT_ARRAY -#include <stdlib.h> // calloc, malloc, free -#include <string.h> // memset, strlen, strncpy - #include "astropy_wcs/wcslib_wrap.h" #include "astropy_wcs/wcslib_auxprm_wrap.h" #include "astropy_wcs/wcslib_prjprm_wrap.h" @@ -18,6 +15,9 @@ #include "astropy_wcs/unit_list_proxy.h" #include <structmember.h> /* from Python */ +#include <stdlib.h> // calloc, malloc, free +#include <string.h> // memset, strlen, strncpy + #include <wcs.h> #include <wcsfix.h> #include <wcshdr.h>
