Bug#1128757: tuxpaint: FTBFS with glibc 2.43 due to ISO C23 const return types

Florian Ernst <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.rc
Message-ID <aoFhGcXx9Ns3tYyj__28506.208436896$1786864055$gmane$org@fernst.no-ip.org>
Control: tags -1 fixed-upstream

On Sun, Feb 22, 2026 at 05:18:32PM +0100, Aurelien Jarno wrote:
> tuxpaint fails to build from source with glibc 2.43, currently in
> experimental. From the build log:
> 
> | src/i18n.c: In function ‘set_current_language’:
> | src/i18n.c:1239:37: error: assignment of read-only location ‘*(const char *)strchr(short_lang_prefix, 95)’
> |  1239 |     *strchr(short_lang_prefix, '_') = '\0';
> |       |                                     ^

On Mon, Aug 10, 2026 at 02:44:53PM +0200, Aurelien Jarno wrote:
> With the upload of glibc 2.43 to unstable, the packages now FTBFS in 
> unstable, hence upgrading the severity to serious.
> 
> Note that as a quick workaround, it is possible to roll back to C/C++17 
> standard using -std=c17, -std=gnu17, std=c++17 or std=gnu++17. This was 
> the default up to GCC 14, and GCC 15 changed it to C/C23.

This was fixed upstream as per
https://sourceforge.net/p/tuxpaint/tuxpaint/ci/6271edececef2a3720e5a5b4e245407cf909f034/
| Make short_lang_prefix non-const
| 
| - Glibc-2.43 does not allow assigning
| to const char pointer anymore, requiring to make
| short_lang_prefix non-const
| - See: https://bugs.gentoo.org/969855
so now tagging accordingly.

HTH,
Flo
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEBn03XtJwVyplJ26xBjdBuvXdHs4FAmqBYRkACgkQBjdBuvXd
Hs7B8BAAikcGWhRy20/wUzbfgeSCw6qlA3Qoq2Gmpx8EDlWl6tfuuoeQrLVr9bR6
My4l5HiwJ8i3VHsCEZR1deZEtEdH894SkB0xqtNoyQ5cvkJm3F2iSUFXwet8rLjV
18BV4q77iv5Jo0VdPz6ftgvzNV4KuGzd10MryDZhGnFFhojOW6zelAHMa1ZcUYqX
GEzC7e4DWlcyD8A5ZtL8veAVzYHWNgm17TJ1o6j2oe8TaZ41wa88qA8WtMtTgCq/
3tweeW5C4HPvI411Os8ZmE66uDiRX77OXAx0BiO1GLxlCcQgk8p2B7bzn1EaViUw
NcN6taG7FragE47BPQQdgDvdXQLwdLKSMnWp5BTnZ5kJMJWHwKcL87m58ksheRlL
ZB1hA4UApVnF8qZ0mjL7rnnq7OUyFJ8ORU7+36VmitHjWVAfm5cMVCW3voN5lwAr
356idR/RI+FMDfFuXd/uQGMj84u6QDqXhCTO5zEP5WiR7HjriNKfMAbp1YF1rrvm
3MSmJ0BwdHv6e+CCU8xVeNHHAJDIrNQXATlgDoEhZb4XlBXle0x9sV060xy3ZxCq
F+8grUg75SgcBsoJETFN/vUMu9fI7fkPeGgMxCO6P7amk6s0AfjQxiJe0Ha+EfdK
/hU+zKyjX5JkC5pcEtMBEU19oRClue9wKU4Wg7R8K9rZB/absyw=
=WIDR
-----END PGP SIGNATURE-----
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.