#1145966 obs-stroke-glow-shadow: FTBFS: /<<PKGBUILDDIR>>/src/obs-utils.c:117:37: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

#1145966#5
Date:
2026-08-28 10:47:57 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-stroke-glow-shadow, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
[ 60%] Building C object CMakeFiles/stroke-glow-shadow.dir/src/obs-utils.c.o
/usr/bin/x86_64-linux-gnu-gcc -DHAVE_OBSCONFIG_H -Dstroke_glow_shadow_EXPORTS -isystem /usr/include/obs -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-psabi -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Werror -Wextra -Wvla -Wformat -Wformat-security -Wswitch -Wunused-parameter -Wno-unused-function -Wno-missing-field-initializers -fno-strict-aliasing -Werror-implicit-function-declaration -Wno-missing-braces -MD -MT CMakeFiles/stroke-glow-shadow.dir/src/obs-utils.c.o -MF CMakeFiles/stroke-glow-shadow.dir/src/obs-utils.c.o.d -o CMakeFiles/stroke-glow-shadow.dir/src/obs-utils.c.o -c /<<PKGBUILDDIR>>/src/obs-utils.c
[ 70%] Building C object CMakeFiles/stroke-glow-shadow.dir/src/stroke.c.o
/usr/bin/x86_64-linux-gnu-gcc -DHAVE_OBSCONFIG_H -Dstroke_glow_shadow_EXPORTS -isystem /usr/include/obs -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-psabi -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Werror -Wextra -Wvla -Wformat -Wformat-security -Wswitch -Wunused-parameter -Wno-unused-function -Wno-missing-field-initializers -fno-strict-aliasing -Werror-implicit-function-declaration -Wno-missing-braces -MD -MT CMakeFiles/stroke-glow-shadow.dir/src/stroke.c.o -MF CMakeFiles/stroke-glow-shadow.dir/src/stroke.c.o.d -o CMakeFiles/stroke-glow-shadow.dir/src/stroke.c.o -c /<<PKGBUILDDIR>>/src/stroke.c
/<<PKGBUILDDIR>>/src/obs-utils.c: In function ‘load_shader_from_file’:
/<<PKGBUILDDIR>>/src/obs-utils.c:117:37: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
  117 |                         char *pos = strrchr(file_name, '/');
      |                                     ^~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [CMakeFiles/stroke-glow-shadow.dir/build.make:152: CMakeFiles/stroke-glow-shadow.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:90: CMakeFiles/stroke-glow-shadow.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
--------------------------------------------------------------------------------

#1145966#12
Date:
2026-10-06 18:05:02 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
obs-stroke-glow-shadow, 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 1145966@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-stroke-glow-shadow 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: Tue, 06 Oct 2026 13:53:51 -0300
Source: obs-stroke-glow-shadow
Architecture: source
Version: 1.5.3-2
Distribution: unstable
Urgency: medium
Maintainer: Joao Eriberto Mota Filho <eriberto@debian.org>
Changed-By: Joao Eriberto Mota Filho <eriberto@debian.org>
Closes: 1145966
Changes:
 obs-stroke-glow-shadow (1.5.3-2) 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. Thanks to Dominik Nakamura <dnaka91@gmail.com>.
     (Closes: #1145966)
Checksums-Sha1:
 572c7143c806536e5cd40e533dfa183073b5c5f0 2095 obs-stroke-glow-shadow_1.5.3-2.dsc
 e1ef0aa683a64213efda92b71b565f24a36437c8 4920 obs-stroke-glow-shadow_1.5.3-2.debian.tar.xz
 f38f965e8c32b0eefb5470cbb4868993a94ef33d 12047 obs-stroke-glow-shadow_1.5.3-2_source.buildinfo
Checksums-Sha256:
 dd67534ea3247820480b99a09b439ac30fe7d3092121b84273620a9ce4396383 2095 obs-stroke-glow-shadow_1.5.3-2.dsc
 ad584a7a0c602ab4d96905c3136454f3a149e1da710999fb4ff565a69c61a38d 4920 obs-stroke-glow-shadow_1.5.3-2.debian.tar.xz
 90ea671f3c47f1af79594b5c7afa9034d03d7bdef2400cee501cf8ad5e3369d7 12047 obs-stroke-glow-shadow_1.5.3-2_source.buildinfo
Files:
 89b19f7aff78aaed7933761cd74ea3bd 2095 video optional obs-stroke-glow-shadow_1.5.3-2.dsc
 1df265e3584342dc330cce744cf95538 4920 video optional obs-stroke-glow-shadow_1.5.3-2.debian.tar.xz
 1587c61ef683a110b4e3ee387bc12a68 12047 video optional obs-stroke-glow-shadow_1.5.3-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEENX3LDuyVoBrrofDS3mO5xwTr6e8FAmrFNaEACgkQ3mO5xwTr
6e80ThAAnnN+DgnVnQWjBGxvdnogZigZfz2ZF6HBUiha6k5PkrEKa/l7JiUyoIMu
LaPl6VHY6OQ0pa7SazOUHXjipsaJn+AUvcDaMsaTd/KhmQU2zkHEAWHqwkhWx7oE
K0RKC+O+VmyL3SzrvnO5vdLmVHV7qwyLWFYo1sggrvovpCdp3m2S/AefjVZ/0mBh
PKONpHhjvZkgGr5T0dWfJIBi+8O8RTLjq5glYAio53PWKtVXOtc3/aTK36yhQrU/
sGLkBr4C8n8jPvizGyNr9F0j80c54E0Da0ETse1JNUTjrDLg0G/lAfLbT27LOJm3
55DUKZKYHKpIcAhmfn9AHwRAqiJ+m84HcYZ6aCVbk5c1j/dU31jS1yg36F8FKDoO
ttudXnJ/qK/wzY/8vXy5EPQ6wYVblit/9C7JrZpt+zPYDGHdk4hx5xBIuSInXDvC
GXXKw4Hmec//PlHhXYqp2mCVTpFhF0gAwY1aZsmLhPvj68CJ1sTvQ/I40dog+f6g
Mi7OW+qqfK/q7e76P2rYSl/TwI/Y2Ey3THzBJz3fvWjzkh8mKlmHzZ73FrmX9gfG
RvAZwaMSsCSf3SegtJlXsWpUPPdaHMPlUTArcXCRwysd6vPa8b/WfLxNYxqYZugN
QR8n3mw9dXfSNQ1T76u2SRsfK/XLTSwJdAtseyGaXdS7VX+tR5k=
=Rjm9
-----END PGP SIGNATURE-----