Your message dated Fri, 05 Dec 2025 21:18:57 +0000
with message-id <[email protected]>
and subject line Bug#1119352: fixed in assembly-stats 1.0.1+ds-8
has caused the Debian Bug report #1119352,
regarding assembly-stats: please build using the default build flags
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1119352: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1119352
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: assembly-stats
Version: 1.0.1+ds-7
User: [email protected]
Usertags: hardening-buildflags

assembly-stats 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 assembly-stats 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
assembly-stats, 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)

--- End Message ---
--- Begin Message ---
Source: assembly-stats
Source-Version: 1.0.1+ds-8
Done: Étienne Mollier <[email protected]>

We believe that the bug you reported is fixed in the latest version of
assembly-stats, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Étienne Mollier <[email protected]> (supplier of updated assembly-stats 
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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 05 Dec 2025 21:53:41 +0100
Source: assembly-stats
Architecture: source
Version: 1.0.1+ds-8
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team 
<[email protected]>
Changed-By: Étienne Mollier <[email protected]>
Closes: 1119352
Changes:
 assembly-stats (1.0.1+ds-8) unstable; urgency=medium
 .
   * Team upload.
   * buildflags.patch: new: propagate build flags. (Closes: #1119352)
   * d/patches/*: normalize Last-Update timestamp.
   * d/watch: convert to v5 watch file.
Checksums-Sha1:
 e639782cc2f068546355dfd2c4bf6b3d3e85cc81 2218 assembly-stats_1.0.1+ds-8.dsc
 f426e2a74cddf1de9b5b3c8ca8d375f39c9df74a 5060 
assembly-stats_1.0.1+ds-8.debian.tar.xz
Checksums-Sha256:
 70ed88d078afff48c7609067932c6070fab472aeb1121eeb88471ecddbff2eea 2218 
assembly-stats_1.0.1+ds-8.dsc
 5a9bed0124b25840d762bb68a8efec66488d04279fe966183e1f9d19c7bb0e36 5060 
assembly-stats_1.0.1+ds-8.debian.tar.xz
Files:
 8ff2cd3b8d2c57d1b6b9de2e361014e0 2218 science optional 
assembly-stats_1.0.1+ds-8.dsc
 9ed7b8a9d9516e8337418681649a782f 5060 science optional 
assembly-stats_1.0.1+ds-8.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEj5GyJ8fW8rGUjII2eTz2fo8NEdoFAmkzSHoUHGVtb2xsaWVy
QGRlYmlhbi5vcmcACgkQeTz2fo8NEdrJnhAAn195HNjqOlQXQ/eUWK4ZqM1CJ5g0
4qCgCLalruzocoHnKEDM5hXfi2srUXSMfk5sT/aZ6euR4nxawWjLYWF7+ZiePobn
2uWQ/wsVv8Wy9s6841DbpAC6MGDkY02hC+4rEjoGd9jiqsQ8CsuXOOsoTnEIvjDd
fm/4nywh6l5URoHmW4TjYQnFiVn07Tpk204B5JAVGStWYwKmPRQtw973K3+kNfrL
28rXt0rjpWZpi9x4LvbgcKZthB3J+xblY1SWXS2Hru4jTXKrln79q2QPZiNagFXD
BWE4fXm/EtNxLI8Hfq1/eXel12PdGrqfqsr4cWvGI1pu55cgn7yVOfMG3ViX3tJU
N5kpLVkVED4uUJFNXEQvM7cbGXTzQY4II9qmA2jPQ6eA2OJT78H0uBOipa+fqW28
opDHGznLBJPHdvxv0AI3twElU4Jt58/fK1idicO6kF4ezKb1VtbgPrLj3LgT1WVp
JuglPximPp67RWfzhp8l19vm2wIhp8M/cUHK5E/6snSbApHilNqqjaj0KVP45wSA
hdGnHOwTsj7UWaZKaKoDCtYRkTzFwVkEYvJ98fgJz99CJ+dtzeoaT2iV1LAHjA2e
rcIVvADgyqyv215c2/IuAvpazxjD2xvmAwQDlR9iJS3xfQ1IBLstRjgQwMdvq3Bb
IDjCTlYSsZW+akk=
=4MFV
-----END PGP SIGNATURE-----

Attachment: pgp2vxBJ2fhyh.pgp
Description: PGP signature


--- End Message ---

Reply via email to