#1119578 stymulator: please build using the default build flags

#1119578#5
Date:
2025-10-29 16:57:16 UTC
From:
To:
stymulator is not currently using the default build flags set by dpkg-buildflags(1).
The default flags are chosen for multiple reasons including security,
performance, reproducibility, adherence to standards, and error handling.

Please make sure that stymulator builds using the default build flags. blhc(1p)
and hardening-check(1) can be used to confirm that the issue is fixed.

In the general case, packages honoring CFLAGS, LDFLAGS, and other
similar environment variables get the default build flags for free
without the need for any work on the maintainer side. In the case of
stymulator, the flags are either ignored or overridden.

The most common reasons for this are:

Hand-written Makefiles
----------------------
Some upstream Makefiles either override the values of variables such as
CFLAGS and similar or do not use them at all. See:
https://wiki.debian.org/HardeningWalkthrough#Handwritten_Makefiles

Misconfigured build systems
---------------------------
If the upstream code uses autotools, CMake, or other popular build
systems, it usually requires no further modifications. If might however
be that some variables are hardcoded in some way.

In this CMake snippet, the value of CXXFLAGS is overwritten with "-O2":

 set(CMAKE_CXX_FLAGS "-O2")

If the intention is to append to CXXFLAGS, one should use the following
instead:

 set(CMAKE_CXX_FLAGS "-O2 ${CMAKE_CXX_FLAGS}")

See #655870 for a similar autotools example.

Very old debhelper usage
------------------------
Packages not using dh(1), or those using a debhelper compatibility level
less than 9, need to manually include /usr/share/dpkg/buildflags.mk in
order for the dpkg-buildflags variables to be set:
https://wiki.debian.org/Hardening#dpkg-buildflags

Flags hardcoded in debian/rules (either voluntarily or not)
-----------------------------------------------------------
Some packages voluntarily hardcode the values of CFLAGS and friends in
debian/rules, ignoring the defaults set by dpkg-buildflags(1).

Others attempt to append to the variables, but end up accidentally
overriding the defaults:

 #!/usr/bin/make -f
 export CFLAGS += -pipe -fPIC -Wall

 %:
 	dh $@

Debhelper only sets CFLAGS if it is not set yet. In the example above,
when dh is invoked the value of CFLAGS is "-pipe -fPIC -Wall", hence the
hardened defaults are not used. The right way to append to CFLAGS is
using DEB_CFLAGS_MAINT_APPEND instead, as documented in
dpkg-buildflags(1).

For a detailed analysis of this issue, see:
https://people.debian.org/~ema/nocflags_paper.pdf (eprint: hal-05334704)

#1119578#10
Date:
2026-11-11 23:58:49 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
stymulator, 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 1119578@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@reproducible-builds.org> (supplier of updated stymulator 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: Wed, 11 Nov 2026 15:31:02 -0800
Source: stymulator
Architecture: source
Version: 0.21a~dfsg-5
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Vagrant Cascadian <vagrant@reproducible-builds.org>
Closes: 1011488 1032498 1119578
Changes:
 stymulator (0.21a~dfsg-5) unstable; urgency=medium
 .
   * QA upload.
 .
   [ Vagrant Cascadian ]
   * debian/rules: Add -ffile-prefix-map to CXXFLAGS.  (Closes: #1011488)
   * debian/control: Drop Priority field.
   * debian/control: Drop Rules-Requires-Root field.
   * debian/rules: Switch to dh.
   * debian/rules: Use default build flags. (Closes: #1119578)
 .
   [ Helmut Grohne ]
   * Fix FTCBFS: Let dh_auto_build pass cross tools to make.
     (Closes: #1032498)
Checksums-Sha1:
 d492a3f33afd8be29fe22d804c109011b98d4b3a 1357 stymulator_0.21a~dfsg-5.dsc
 62e2bee08ebd0da19befb43f278caac0fd07f807 4608 stymulator_0.21a~dfsg-5.debian.tar.xz
 8261a4ba14f8d42bc950868cd7731279640ce4db 5593 stymulator_0.21a~dfsg-5_amd64.buildinfo
Checksums-Sha256:
 76c4bb2fba72ba83cf694b60ff8a2bd4297ee8e07d84fe1b4de56ad6c9194e6e 1357 stymulator_0.21a~dfsg-5.dsc
 28acf0dd6a4ebd3386a883de215257d01ce1898cd302e2212bd13f1e3b46c360 4608 stymulator_0.21a~dfsg-5.debian.tar.xz
 7371bd196cadfd880a406db7a482c145c3b218668f88c97a4317534912d75334 5593 stymulator_0.21a~dfsg-5_amd64.buildinfo
Files:
 10907541a62887b8218f2849da33525a 1357 sound optional stymulator_0.21a~dfsg-5.dsc
 90feec45db3680a3a04b2596fb2c9fad 4608 sound optional stymulator_0.21a~dfsg-5.debian.tar.xz
 24b9e27da3ac40890623f544e54d966c 5593 sound optional stymulator_0.21a~dfsg-5_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iJYEARYKAD4WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCavT7VyAcdmFncmFudEBy
ZXByb2R1Y2libGUtYnVpbGRzLm9yZwAKCRDcUY/If5cWqiy4AQDPVLu7Ha8GIO98
Zqua4CZp7ytmPmeGSxh+3AwzGz+u+wD/U2Sm98DUCsXuD/W9cnmoe+gDSmDfXh+H
0sqB8ApHDgY=
=+lyZ
-----END PGP SIGNATURE-----