[From nobody Sat Aug 29 10:53:05 2026
Received: (at submit) by bugs.debian.org; 21 Aug 2026 08:13:01 +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=-107.4 required=4.0 tests=ALL_TRUSTED,BAYES_00,
 DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,
 FOURLA,FROMDEVELOPER,SPF_HELO_NONE,SPF_PASS,USER_IN_DKIM_WELCOMELIST
 autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 23; hammy, 150; neutral, 82; spammy,
 0. spammytokens:
 hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
 0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
 0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: &lt;rafael@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:55766)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;rafael@debian.org&gt;) id 1wxKN3-008EyJ-19
 for submit@bugs.debian.org; Fri, 21 Aug 2026 08:13:01 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Content-Transfer-Encoding:Content-Type
 :MIME-Version:Message-ID:Subject:To:From:Date:Reply-To:Cc:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=1qWUsYr0TBEAZMFhIIjW81q/qz6gMvu6b3Yu6BZtomc=; b=Mpr+6wG9QQqOa8DntVUaHfK172
 7sDLJV0zJmyhwlmGqSaCYyouLNhqHWISQ4gKHCJay2MDSnvALyOXyzJj9ydNV4LLouee2ibK2Nr8f
 cTpOBKheyjS6uuj6HfcO+1FzyKhJhhgiQD0uMNJHlGeKwEVB1qVbbzamYxQI3rdOqzwTFv/AXbhvm
 xsfkM45Hoa04EvLEKWioVKUJu+Re/BLN+j5R5xLMG4oGJW+sk90RYeI9Iu6zqo0PJu7o1keUHJK3S
 BBrGb08KfdUR/kXWgUGLFgtuEFJjf7MVLv8tMZemvW2dpYtuqKCWVe82PxqCWxKAeptlUcUEJKSxi
 AhY8XXYA==;
Received: from authenticated-user by stravinsky.debian.org with esmtpsa
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;rafael@debian.org&gt;) id 1wxKN1-00BCNf-2w
 for submit@bugs.debian.org; Fri, 21 Aug 2026 08:12:59 +0000
Received: from rafael by laboissiere.net with local (Exim 4.100-RC3)
 (envelope-from &lt;rafael@laboissiere.net&gt;) id 1wxKN0-0000000BKT9-3Odx;
 Fri, 21 Aug 2026 10:12:58 +0200
Date: Fri, 21 Aug 2026 10:12:58 +0200
From: Rafael =?utf-8?Q?Laboissi=C3=A8re?= &lt;rafael@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: astrometry.net: FTBFS with swig 4.5.0
Message-ID: &lt;aogIim17SJGAV8CU@laboissiere.net&gt;
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Organization: Debian GNU/Linux
X-Content-Language: en-us
X-Position: -208
X-Debian-User: rafael
Delivered-To: submit@bugs.debian.org

Source: astrometry.net
Version: 0.98+dfsg-1
Severity: serious
Tags: ftbfs sid forky
Justification: Policy 4.9
User: rafael@debian.org
Usertags: swig-4.5.0

Dear Maintainer,

The astrometry.net package FTBFS with swig 4.5.0, which is currently in unstable. An excerpt of the build log is shown below.

This is due to the removal of the Python 2 compatibility macros in version 4.5.0. According to the SWIG authors, these macros were retained in the generated code (pyhead.swg) solely for user typemaps. Any typemap using these macros must be updated to call the Python 3 C API directly.

Best,

Rafael Laboissière

##### Build log excerpt

util_wrap.c: In function ‘broadcast_2to2i’:
util_wrap.c:5402:19: error: implicit declaration of function ‘PyInt_FromLong’; did you mean ‘PyLong_FromLong’? [-Wimplicit-function-declaration]
 5402 |             pok = PyInt_FromLong(i);
      |                   ^~~~~~~~~~~~~~
      |                   PyLong_FromLong
util_wrap.c:5402:17: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
 5402 |             pok = PyInt_FromLong(i);
      |                 ^
util_wrap.c: In function ‘_wrap_quadfile_get_stars’:
util_wrap.c:10981:21: error: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
10981 |       PyObject *o = PyInt_FromLong(arg3[i]);
      |                     ^~~~~~~~~~~~~~
util_wrap.c: In function ‘_wrap_healpix_get_neighbours’:
util_wrap.c:15496:21: error: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
15496 |       PyObject *o = PyInt_FromLong(arg2[i]);
      |                     ^~~~~~~~~~~~~~
util_wrap.c: In function ‘_wrap_healpix_rangesearch_xyz’:
util_wrap.c:15969:21: error: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
15969 |       PyObject *o = PyInt_FromLong(il_get(result, i));
      |                     ^~~~~~~~~~~~~~
util_wrap.c: In function ‘_wrap_healpix_rangesearch_xyz_approx’:
util_wrap.c:16021:21: error: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
16021 |       PyObject *o = PyInt_FromLong(il_get(result, i));
      |                     ^~~~~~~~~~~~~~
util_wrap.c: In function ‘_wrap_healpix_rangesearch_radec_approx’:
util_wrap.c:16081:21: error: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
16081 |       PyObject *o = PyInt_FromLong(il_get(result, i));
      |                     ^~~~~~~~~~~~~~
util_wrap.c: In function ‘_wrap_healpix_rangesearch_radec’:
util_wrap.c:16141:21: error: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
16141 |       PyObject *o = PyInt_FromLong(il_get(result, i));
      |                     ^~~~~~~~~~~~~~
util_wrap.c: In function ‘_wrap_healpix_region_search’:
util_wrap.c:16226:21: error: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
16226 |       PyObject *o = PyInt_FromLong(il_get(result, i));
      |                     ^~~~~~~~~~~~~~
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
make[3]: *** [Makefile:171: _util.cpython-314-x86_64-linux-gnu.so] Error 1
make[3]: Leaving directory '/home/rafael/automate/swig-4.5.0/tmp/astrometry.net-0.98+dfsg/util'
make[2]: *** [Makefile:148: pyutil] Error 2
]