#1144963 hugin FTBFS with swig 4.5.0

#1144963#5
Date:
2026-08-20 21:35:56 UTC
From:
To:
https://buildd.debian.org/status/fetch.php?pkg=hugin&arch=arm64&ver=2025.0.1%2Bdfsg-2%2Bb2&stamp=1787084882&raw=0

...
/build/reproducible-path/hugin-2025.0.1+dfsg/src/hugin_script_interface/hpi_classes.cpp: In member function ‘int hpi::python_interface::call_hpi(const char*, PyObject*)’:
/build/reproducible-path/hugin-2025.0.1+dfsg/src/hugin_script_interface/hpi_classes.cpp:115:22: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
  115 |             result = PyInt_AsLong ( pValue ) ;
      |                      ^~~~~~~~~~~~
      |                      PyLong_AsLong
...

#1144963#10
Date:
2026-08-22 09:42:39 UTC
From:
To:
Control: tags -1 pending

Hello Adrian,

there is an patch in upstream HG that fixes this, I habe vcherrypicked
it in GIT.

However hugin currently FTBFS due to the openexr/imath breakage
(#1144763 - Thanks for your NMU). I have tried building hugin against
the pending NMU openxer version but it fails with:

[ 22%] Linking CXX executable celeste_standalone
cd /tmp/HUGIN/hugin/obj-x86_64-linux-gnu/src/celeste && /usr/bin/cmake -E cmake_link_script CMakeFiles/celeste_standalone.dir/link.txt --verbose=1
/usr/bin/x86_64-linux-gnu-ld.bfd: /usr/lib/x86_64-linux-gnu/libvigraimpex.so: undefined reference to `Imf_3_4::Header::Header(Imath_3_1::Box<Imath_3_1::Vec2<int> > const&, Imath_3_1::Box<Imath_3_1::Vec2<int> > const&, float, Imath_3_1::Vec2<float> const&, float, Imf_3_4::LineOrder, Imf_3_4::Compression)'
collect2: error: ld returned 1 exit status

Rebuilding libvigraimpex against the new openexr let the hugin build
succeed.

cu Andreas

#1144963#17
Date:
2026-08-22 10:13:22 UTC
From:
To:
Hi Andreas,

thanks.

That's not unexpected, the mouseover at [1] says for hugin
"libvigraimpex, openexr".

cu
Adrian

[1] https://release.debian.org/transitions/html/imath-3.2.html

#1144963#22
Date:
2026-08-23 09:49:22 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
hugin, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1144963@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Metzler <ametzler@debian.org> (supplier of updated hugin package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 23 Aug 2026 11:25:08 +0200
Source: hugin
Architecture: source
Version: 2025.0.1+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Debian PhotoTools Maintainers <pkg-phototools-devel@lists.alioth.debian.org>
Changed-By: Andreas Metzler <ametzler@debian.org>
Closes: 1144963
Changes:
 hugin (2025.0.1+dfsg-3) unstable; urgency=medium
 .
   * Add upstream patch to fix FTBFS against swig 4.5.0. (Closes: #1144963)
Checksums-Sha1:
 5cc2fb03a44426f920dbf07c36841aef4f432ed3 2490 hugin_2025.0.1+dfsg-3.dsc
 71a6c6b62109e61763d7480763d8bd700dd516fe 185720 hugin_2025.0.1+dfsg-3.debian.tar.xz
 d89b94ea05b2eaf79eaeb3c02ab8befaad3bbb12 17191 hugin_2025.0.1+dfsg-3_source.buildinfo
Checksums-Sha256:
 ffec743359021913d1e3e7cfbe6732b7e15334b5c99badd3f93ae9ec589b6f4f 2490 hugin_2025.0.1+dfsg-3.dsc
 a741897465c8c11fc56dc8a50f3a6806d1453a0f670b5633af77f481bf66e5e7 185720 hugin_2025.0.1+dfsg-3.debian.tar.xz
 f90a7deaa7581358fa9444ccc5ff1341c5cbf5684402a8ec3f3db82abe856a3e 17191 hugin_2025.0.1+dfsg-3_source.buildinfo
Files:
 7fbeaf111158f64f04c2f5d169cb4013 2490 graphics optional hugin_2025.0.1+dfsg-3.dsc
 8cce6028fd9a5788567911b45517a480 185720 graphics optional hugin_2025.0.1+dfsg-3.debian.tar.xz
 043a7f22d5485c2a715dc81391093e3d 17191 graphics optional hugin_2025.0.1+dfsg-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE0uCSA5741Jbt9PpepU8BhUOCFIQFAmqKvLcACgkQpU8BhUOC
FISXyw//QFMB2WfMffGBv+kcUrco13y5IpTL8Nz76jRBRg2w5ed3Ampw77c+jRn3
EecieP4U/YYLKlln3Ihzk8H1XaJy5VI0hR1fH9klo2uEBZLdh/Pd6afxdFP5BBHx
DsUfygjqHak8k0xREoMBngXk1TnQzYV6+km70j7ebd/arJe9wEbDytXPmc3uPuIC
tLr15UnjlmJnWGf3/7DWjCp3dwIyCcqrTc9hX5GhqAtOuk9UDbp0yMLJ/NoCdJsQ
F88R0GkuBury/1IJnkd/VJw7pfxkiYXHPqENiiAGi3M/fGmgocrjHgn3gMyDNZce
HRyQdnT8a7CDsL4Os0JFwH37FHaVzI/hC8ZbhO88MmIDZ1JIlGoffUNaG0RvPzu+
UajAzcrKBkjLMXxig2g/BP/i5wG+8A4cEoeUiOClA84/VHPBd4L5u6wH+u+GNKDa
1yK9W7iiNPKy1i4EfJb4h+55zLTGclvztpzrrZw25VJXrUHiJm0ypkmxbdjt5x/1
VjNzqX6L9ygWnx6+2mQ4hyGEW+Ae97XNHksiHzqhRanIRiqmef2qtFfc1QfowYwQ
LTtSIoF4renOXGefPSpVAhc78DNJg3hvErXePBSa0LeOGgVWWDVD6FmxV02EeHfU
WVitwY0Nj0aGMbQVngxVAizUf+5zpzvxTQeSA+maOKxjwBvnNrA=
=ZAxe
-----END PGP SIGNATURE-----