Your message dated Thu, 04 Dec 2025 19:19:52 +0000
with message-id <[email protected]>
and subject line Bug#1119595: fixed in transrate-tools 1.0.0-7
has caused the Debian Bug report #1119595,
regarding transrate-tools: 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.)


-- 
1119595: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1119595
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: transrate-tools
Version: 1.0.0-6
User: [email protected]
Usertags: hardening-buildflags

transrate-tools 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 transrate-tools 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
transrate-tools, 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: transrate-tools
Source-Version: 1.0.0-7
Done: Étienne Mollier <[email protected]>

We believe that the bug you reported is fixed in the latest version of
transrate-tools, 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 transrate-tools 
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: Thu, 04 Dec 2025 19:44:10 +0100
Source: transrate-tools
Architecture: source
Version: 1.0.0-7
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team 
<[email protected]>
Changed-By: Étienne Mollier <[email protected]>
Closes: 1119595
Changes:
 transrate-tools (1.0.0-7) unstable; urgency=medium
 .
   * Team upload.
   * buildflags.patch: new: propagate build flags. (Closes: #1119595)
   * d/control: drop redundant Rules-Requires-Root: no.
Checksums-Sha1:
 6bf510a485c47d1ed3c42514ce99b99a105be3ca 2219 transrate-tools_1.0.0-7.dsc
 d4d4f50854d46d3bc96ec66384a958c0511a7806 265332 
transrate-tools_1.0.0-7.debian.tar.xz
Checksums-Sha256:
 5bb5143ef5648123549f03687533eedc06c4a026f1c473fd480223311912c598 2219 
transrate-tools_1.0.0-7.dsc
 c4e23d725a63ded07cd7f4fca3a6d5fdbae7c3745d3cd57e94818772acd7e36a 265332 
transrate-tools_1.0.0-7.debian.tar.xz
Files:
 025b83e218cf2a106414513c3978f348 2219 science optional 
transrate-tools_1.0.0-7.dsc
 602cd9e4161f6483e0c26caf364c6fbe 265332 science optional 
transrate-tools_1.0.0-7.debian.tar.xz

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

iQJIBAEBCgAyFiEEj5GyJ8fW8rGUjII2eTz2fo8NEdoFAmkx2m8UHGVtb2xsaWVy
QGRlYmlhbi5vcmcACgkQeTz2fo8NEdqX6w//eveqYE3QL4aVdgF9bsqWx1b2tO7a
UgpBMCLhWXKsyUqjSyDBGbdAWq3A14BfYq8tEWHtVCcTepXR5XMvTzo7r5Dnw6Wj
/96PCcMy/qZyHE6XCSzXixVGSg5aTwXdKfOr27Olxd2jgDmh4rFuYAtBvaE2vpvF
uzLy6oYvRO3Y8TjqI+L5Zi4rjnq2unrG9wFNBJY8oqVNfCKs307zH1LnRFhJWSsG
wjcR9Sp8qAJUXvnnwWWQf6HeVqDjw2qr/5rEWW+xhNFgCmrYgkf/rg7GOz+WiaOU
61714OpUIGomZRpHWNfLjim3Kz2cSFaxBiL6bR8eOXYELSSt2lIvww8KFCVRlChL
pa9nGnQkOM5veF8uERXrO+1GiP8rJ8T3vjV9azkYbtDMADRwB/LUBhmgUJayYTyl
pmJRX8rRxebXQOL/Ga3GWw/HI0Z+vvIPAk2yzyfni/BmnPpaPLsRc78xIzcW9dKP
YsW5vA78XaaHSmh46y4ZLJ1gSeWvbN9ncGBD3w37zozHdnu+OCJbaD5HhjZql3CG
k/84MX27c3nDs0PcR63mWtxhaiYaWUr62gLAdDK6HsqkwHGnZq+DE2F+wLRMFek+
hTAOmFW5c9AmWy++ALTFVkFdI352jN49GGvF/qxgPwkdmzw1tKQdbLPzS9jGYDiN
IbXUJ/ejW2TNExQ=
=RuL2
-----END PGP SIGNATURE-----

Attachment: pgpOj6SXpG0Mi.pgp
Description: PGP signature


--- End Message ---

Reply via email to