#1145964 obs-advanced-masks: FTBFS: /<<PKGBUILDDIR>>/src/obs-utils.c:122:37: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

#1145964#5
Date:
2026-08-28 10:47:53 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:obs-advanced-masks, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
[ 72%] Building C object CMakeFiles/advanced-masks.dir/src/mask-svg.c.o
/usr/bin/x86_64-linux-gnu-gcc -DHAVE_OBSCONFIG_H -DQT_CORE_L [too-long-redacted] /<<PKGBUILDDIR>>/src/mask-svg.c
[ 77%] Building C object CMakeFiles/advanced-masks.dir/src/obs-utils.c.o
/usr/bin/x86_64-linux-gnu-gcc -DHAVE_OBSCONFIG_H -DQT_CORE_L [too-long-redacted] <<PKGBUILDDIR>>/src/obs-utils.c
/<<PKGBUILDDIR>>/src/obs-utils.c: In function ‘load_shader_from_file’:
/<<PKGBUILDDIR>>/src/obs-utils.c:122:37: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
  122 |                         char *pos = strrchr(file_name, '/');
      |                                     ^~~~~~~
At top level:
cc1: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1: all warnings being treated as errors
make[3]: *** [CMakeFiles/advanced-masks.dir/build.make:257: CMakeFiles/advanced-masks.dir/src/obs-utils.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:93: CMakeFiles/advanced-masks.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:159: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j2 INSTALL="install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:17: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1145964#10
Date:
2026-09-10 03:48:59 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
obs-advanced-masks, 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 1145964@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Joao Eriberto Mota Filho <eriberto@debian.org> (supplier of updated obs-advanced-masks 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: Thu, 10 Sep 2026 00:15:02 -0300
Source: obs-advanced-masks
Architecture: source
Version: 1.5.4-3
Distribution: unstable
Urgency: medium
Maintainer: Joao Eriberto Mota Filho <eriberto@debian.org>
Changed-By: Joao Eriberto Mota Filho <eriberto@debian.org>
Closes: 1145964
Changes:
 obs-advanced-masks (1.5.4-3) unstable; urgency=medium
 .
   * debian/control:
       - Bumped compat level to 14.
       - Bumped Standards-Version to 4.7.4.
   * debian/patches/040_fix-const-FTBFS.patch: created to fix discarded const
     qualifier causing a FTBFS. (Closes: #1145964)
Checksums-Sha1:
 30dc22695e3b78d2340ec5a783d36be807be5779 2131 obs-advanced-masks_1.5.4-3.dsc
 54a1817352f77255a318dad4945ba1c9cf58aadf 6156 obs-advanced-masks_1.5.4-3.debian.tar.xz
 d060cbbe8fbe58ee55f520a7e685763510c52491 15644 obs-advanced-masks_1.5.4-3_source.buildinfo
Checksums-Sha256:
 0a7885a905de85f32a1338c40041e53bd032995712491834dc9e5d1c92456605 2131 obs-advanced-masks_1.5.4-3.dsc
 31e23f920e99ab5240692bfdcffff5583274cc812224d08107eedc0699ed4864 6156 obs-advanced-masks_1.5.4-3.debian.tar.xz
 526328094512f7dcade8ee1bb115f9be90b3d821be21b1f3f499d04b019149c4 15644 obs-advanced-masks_1.5.4-3_source.buildinfo
Files:
 013aff15aff2f65f347a4c766b93554c 2131 video optional obs-advanced-masks_1.5.4-3.dsc
 bbbe848b4ea37bac1e445dc2c8cc8d64 6156 video optional obs-advanced-masks_1.5.4-3.debian.tar.xz
 35a48d01a4fa8465ce7d8fc98a2b7895 15644 video optional obs-advanced-masks_1.5.4-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEENX3LDuyVoBrrofDS3mO5xwTr6e8FAmqiJicACgkQ3mO5xwTr
6e+AhA//b/WhYtTqs52locPcuRqGAPXoBJ5E8XQ0ONdP7K2/GIc1WiBFwzmnElPF
R/Y56VQ+ohu42etvUYSJG+Bp0L3HTPFJ8xdpxY1S8/Vs7172qIppgp2U24YrDeKW
7x0Zk3peO5S4MPudI1MNa5GfyOmERuq79wNjoVM4wIV4+amhFmfajpRlRopXVzQX
m1huhNKXhbnTA/m+fjFHRQ6nUK4zPg6crb941c4kjfzO+Qu1xcHHQH8fB86TOvIn
9dppr7wMMLHWV2CDatYByurM6JZ5IBfSssw0Z+Uxk7gLhVb8dxdiboODpHzJfMJ+
bzK76iCy+wrL7dT+UzMCf0vAOJfRhkuejeE8TzR/piqM4MQQSGJgM2HIX+WilWns
FDR39dyIDIg2hIDDoX1oK2jY62S6MulE0ZWSJXIGb5su0M0ncTfUcKQGVoarq+ai
Pm1imuNsCloM6yx3z36siKQfdTYn1UTa99VvWg5kexcCMkmKvU/n4c8Ky+/LfiZ8
5BFRvCVcmm/4DFfNtp++KflxxH431IB+8Q4OTHmW9RU68XjGCziCiYawXFyXu3RT
MivKPCbdNNEb+XdbecGJLZraD10f/12toWWX7V2GkQkMgeDq5U6qRIp4zHE5SYG/
h3dz0psUtcmpq9fU/WkzQJ2OpAf7fYG/uSti4OQvWbjvn43hLp8=
=y5jn
-----END PGP SIGNATURE-----