#1145450 isochron: FTBFS: src/argparser.c:19:27: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

Package:
src:isochron
Source:
src:isochron
Submitter:
Santiago Vila
Date:
2026-09-04 19:07:02 UTC
Severity:
normal
Tags:
#1145450#5
Date:
2026-08-25 10:15:18 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:isochron, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cc -DVERSION=\"v0.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_TX_SWHW -DHAVE_SCHED_SETATTR -Wall -Wextra -Werror -Wno-error=sign-compare -Wno-error=missing-field-initializers -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MMD -c src/argparser.c -o src/argparser.o
cc -DVERSION=\"v0.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_TX_SWHW -DHAVE_SCHED_SETATTR -Wall -Wextra -Werror -Wno-error=sign-compare -Wno-error=missing-field-initializers -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MMD -c src/common.c -o src/common.o
src/argparser.c: In function ‘string_replace_escape_sequences’:
src/argparser.c:19:27: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
   19 |         while ((backslash = strchr(p, '\\')) != NULL) {
      |                           ^
src/argparser.c: In function ‘ip_addr_from_string’:
src/argparser.c:181:17: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
  181 |         percent = strchr(string, '%');
      |                 ^
cc -DVERSION=\"v0.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_TX_SWHW -DHAVE_SCHED_SETATTR -Wall -Wextra -Werror -Wno-error=sign-compare -Wno-error=missing-field-initializers -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MMD -c src/daemon.c -o src/daemon.o
cc1: all warnings being treated as errors
make[1]: *** [Makefile:94: src/argparser.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 INSTALL="install --strip-program=true" returned exit code 2
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1145450#10
Date:
2026-08-29 15:40:59 UTC
From:
To:
Please find a patch attached.
#1145450#17
Date:
2026-09-02 18:38:19 UTC
From:
To:
I am uploading the changes as NMU to DELAYED/2
#1145450#22
Date:
2026-09-04 19:04:30 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
isochron, 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 1145450@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bastian Germann <bage@debian.org> (supplier of updated isochron 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: Sat, 29 Aug 2026 17:12:15 +0200
Source: isochron
Architecture: source
Version: 0.9-0.3
Distribution: unstable
Urgency: medium
Maintainer: Vladimir Oltean <olteanv@gmail.com>
Changed-By: Bastian Germann <bage@debian.org>
Closes: 1145450
Changes:
 isochron (0.9-0.3) unstable; urgency=medium
 .
   * Non-maintainer upload
   * Override -Werror (Closes: #1145450)
Checksums-Sha1:
 f500236d3a60caf79e1e3b717913e89d0c3b44da 1600 isochron_0.9-0.3.dsc
 704eba399d35901dcd22c1d4645524aac1f18691 6176 isochron_0.9-0.3.debian.tar.xz
 1f553763e0feb36dce73ada05db8c49f91c60f05 5281 isochron_0.9-0.3_source.buildinfo
Checksums-Sha256:
 bf21b102825d74571cfdcb43da010b739adee6f46d49d45c758b2eec6976919c 1600 isochron_0.9-0.3.dsc
 5b5c4a4c0609cc3ce824561ab10738a8615bd08302f56d915c4506efff868b43 6176 isochron_0.9-0.3.debian.tar.xz
 6913f23c59cf5eb4dfaf3634c0dc23652ea094f58da5793496b573cb589fe406 5281 isochron_0.9-0.3_source.buildinfo
Files:
 f441f3df44624c628994dc0f1a480878 1600 utils optional isochron_0.9-0.3.dsc
 64f2a12273b4d2bced0ea4f59c4e503c 6176 utils optional isochron_0.9-0.3.debian.tar.xz
 82fae1b395a630ce18484d7bb12289fb 5281 utils optional isochron_0.9-0.3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmqYbPIQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFB86DACaQSx+J4XVLoxbumtXi/V/bfO1vC1MI4wE
4/aMdoaULn1OufDI2zA0FtAyl8gwZAsOlM5SU2SupaIlXn1pzSsbv1lVFBgD4oAf
n4DGQE8RSnmkb8eCK1gyFXVQlqORpe8trr07+/atEPMLl6/MNGa7eYagPF80hWgt
FzQXCk/F5by1QzRhTBKk6XfOo0tsWLQBWhp/OgqiZJ1SuREiZWDZ6HBrgA7Diklo
BAnWk1aSeRxvZtqOm9GANQGsnKDGrSfT6vBzhDDeQSrJS0ca6kDn2VUB/ZksQKEr
hJDeora83ob/co31dTjSiJQWmbhMiLiIj/aCecRGIZGViONUIhH8H5L8v5FZ9u0M
6coycSsoWQKoivkvKqBDvD6aR6dHsNmgoT71fz96Bc1Mf59SfLZc0V3KDyWzi5im
CK9LJ4uaUlf7IUIenNFFCRJk+WB07o0YNvVLjUiUMiffxDdm7lLiZCSyCKFyJPBQ
ptIIiMnhfz4H17kzgTjXzdrA52VyMws=
=+X03
-----END PGP SIGNATURE-----