Bug#1144324: swig: Causes GDAL to FTBFS

Sebastiaan Couwenberg <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.rc
Message-ID <[email protected]>
Control: tags -1 patch

On 8/13/26 8:21 PM, Bas Couwenberg wrote:
> The pycontainer patch seems to be the culprit:
> 
> "
>   I can't reproduce the issue with SWIG 4.5.0 built from official SWIG tarballs, but looking at https://salsa.debian.org/debian/swig/-/blob/debian/master/debian/patches/include-pycontainer.patch , I believe it is the reason of the failure as it unconditionnally includes a SWIG .swg file only meant for C++. This patch to the SWIG package looks wrong to me
> "

Dropping include-pycontainer.patch (e.g. as per the attached patch) is confirmed the fix the issue.

Has the issue been discussed with upstream or the patch forwarded? They likely can suggest a better fix.

I don't know if it's possible to make the include conditional for C++, that might be a good alternative too.

Kind Regards,

Bas

-- 
  PGP Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
0001-Drop-include-pycontainer.patch.patch (text/x-patch, 2.3 KB)
From f1d743311f0a55ee7a6ad8d7a6d461d94fb94e3d Mon Sep 17 00:00:00 2001
From: Bas Couwenberg <[email protected]>
Date: Fri, 14 Aug 2026 06:27:04 +0200
Subject: Drop include-pycontainer.patch.

---
 debian/changelog                         |  7 +++++++
 debian/patches/include-pycontainer.patch | 21 ---------------------
 debian/patches/series                    |  1 -
 3 files changed, 7 insertions(+), 22 deletions(-)
 delete mode 100644 debian/patches/include-pycontainer.patch

diff --git a/debian/changelog b/debian/changelog
index a445207c2..379956f37 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+swig (4.5.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Drop include-pycontainer.patch.
+
+ -- Bas Couwenberg <[email protected]>  Fri, 14 Aug 2026 06:26:50 +0200
+
 swig (4.5.0-1) unstable; urgency=medium
 
   * New upstream version 4.5.0
diff --git a/debian/patches/include-pycontainer.patch b/debian/patches/include-pycontainer.patch
deleted file mode 100644
index 0cfc9ae9b..000000000
--- a/debian/patches/include-pycontainer.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-Description: Include file pycontainer.swg in python.swg
- This patch seems to be necessary to build the Debian package xdmf.
- See Bug#1024555 (https://bugs.debian.org/1024555). It effectively
- replaces the old patch
- 0005-Revert-Use-PyObject-instead-of-PySliceObject-through.patch
-Author: Rafael Laboissière <[email protected]>
-Forwarded: no
-Last-Modified: 2026-08-12
-
---- swig-4.5.0.orig/Lib/python/python.swg
-+++ swig-4.5.0/Lib/python/python.swg
-@@ -55,3 +55,9 @@
-  * For backward compatibility
-  * ------------------------------------------------------------ */
- %include <pybackward.swg>
-+
-+/* ------------------------------------------------------------
-+ * This seems to be necessary to build the Debian package xdmf.
-+ * See Bug#1024555 (https://bugs.debian.org/1024555)
-+ * ------------------------------------------------------------ */
-+%include <pycontainer.swg>
diff --git a/debian/patches/series b/debian/patches/series
index 3b470d3e8..1261dafbf 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,4 +2,3 @@ ccache_program_transform.patch
 ccache-rename.diff
 ccache-use-cppflags
 help2man-ccache.patch
-include-pycontainer.patch
-- 
2.47.3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.