[From nobody Mon Oct  5 16:25:06 2026
Received: (at submit) by bugs.debian.org; 24 Sep 2026 21:25:56 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-16.0 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FOURLA,
 FREEMAIL_FROM,GMAIL,HAS_PACKAGE,NML_ADSP_CUSTOM_MED,NO_RELAYS,
 XMAILER_REPORTBUG autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 13; hammy, 150; neutral, 100; spammy,
 0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
 0.000-+--X-Debbugs-Cc, 0.000-+--python3, 0.000-+--H*Ad:N*Bug,
 0.000-+--HTo:N*Debian
Return-path: &lt;herrera.hannibal84@gmail.com&gt;
Received: via submission by buxtehude.debian.org with esmtp (Exim 4.96)
 (envelope-from &lt;herrera.hannibal84@gmail.com&gt;) id 1x9qx2-00BsI8-0K
 for submit@bugs.debian.org; Thu, 24 Sep 2026 21:25:56 +0000
Content-Type: multipart/mixed; boundary=&quot;===============6952851637624218257==&quot;
MIME-Version: 1.0
From: Hannibal Herrera &lt;herrera.hannibal84@gmail.com&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: gnucap-python: Fix FTBFS with NumPy 2.0 by updating API calls and
 types
Message-ID: &lt;179028513417.52509.14760650658349216422.reportbug@Mothership.localdomain&gt;
X-Mailer: reportbug 13.2.0
Date: Thu, 24 Sep 2026 14:25:34 -0700
Delivered-To: submit@bugs.debian.org

This is a multi-part MIME message sent by reportbug.


--===============6952851637624218257==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: gnucap-python
Version: 0.0.2-1.3
Severity: normal
Tags: ftbfs patch
Followup-For: Bug #1067335
X-Debbugs-Cc: herrera.hannibal84@gmail.com

Dear Maintainer,

The attached patch updates the C/C++ extension bindings to resolve compilation errors against NumPy 2.0. It updates deprecated API calls and aligns types with the NumPy 2.x C-API specification.

-- System Information:
Debian Release: 13.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.18.33.2-microsoft-standard-WSL2 (SMP w/48 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

--===============6952851637624218257==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=&quot;gnucap-python_numpy_fix.patch&quot;

diff -Nru gnucap-python-0.0.2/debian/changelog gnucap-python-0.0.2/debian/changelog
--- gnucap-python-0.0.2/debian/changelog	2020-07-29 18:27:14.000000000 -0700
+++ gnucap-python-0.0.2/debian/changelog	2026-09-24 14:15:40.000000000 -0700
@@ -1,3 +1,9 @@
+gnucap-python (0.0.2-1.3) unstable; urgency=medium
+
+  * Fix FTBFS with modern NumPy header paths (Closes: #1067335)
+
+ -- Hannibal &lt;herrera.hannibal84@gmail.com&gt;  Thu, 24 Sep 2026 14:15:40 -0700
+
 gnucap-python (0.0.2-1.2) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru gnucap-python-0.0.2/debian/rules gnucap-python-0.0.2/debian/rules
--- gnucap-python-0.0.2/debian/rules	2020-07-29 18:21:24.000000000 -0700
+++ gnucap-python-0.0.2/debian/rules	2026-09-24 14:02:54.000000000 -0700
@@ -1,4 +1,6 @@
 #!/usr/bin/make -f
+NUMPY_INCLUDE := $(shell python3 -c &quot;import numpy; print(numpy.get_include())&quot;)
+export CPPFLAGS += -I$(NUMPY_INCLUDE)
 
 PYVERS:= $(shell py3versions -v -r debian/control)
 

--===============6952851637624218257==--
]