Your message dated Sun, 07 Dec 2025 16:19:25 +0000
with message-id <[email protected]>
and subject line Bug#1119489: fixed in minc-tools 2.3.00+dfsg-15
has caused the Debian Bug report #1119489,
regarding minc-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.)
--
1119489: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1119489
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: minc-tools
Version: 2.3.00+dfsg-14
User: [email protected]
Usertags: hardening-buildflags
minc-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 minc-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
minc-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: minc-tools
Source-Version: 2.3.00+dfsg-15
Done: Étienne Mollier <[email protected]>
We believe that the bug you reported is fixed in the latest version of
minc-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 minc-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: Sun, 07 Dec 2025 14:17:32 +0100
Source: minc-tools
Architecture: source
Version: 2.3.00+dfsg-15
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team
<[email protected]>
Changed-By: Étienne Mollier <[email protected]>
Closes: 1119489
Changes:
minc-tools (2.3.00+dfsg-15) unstable; urgency=medium
.
* Team upload.
* d/rules: set CFLAGS with DEB_CFLAGS_MAINT_APPEND. (Closes: #1119489)
* fix_manpages.patch: update: fix accidental font selector.
* d/patches/*: normalise timestamps where doable.
* d/watch: convert to Github template
* d/control: drop redundant Rules-Requires-Root: no.
Checksums-Sha1:
02b04482224600731d731a3af4d947dc0f122967 2336 minc-tools_2.3.00+dfsg-15.dsc
ecee0b28adc955d253e3b4d5cd7e76e440cc6c91 18064
minc-tools_2.3.00+dfsg-15.debian.tar.xz
Checksums-Sha256:
792e8d4ab08470cb409a718e8e97f8293d8024cf031e6eb2dac040fade407c4c 2336
minc-tools_2.3.00+dfsg-15.dsc
815a775922368403dd995c0457e5bcf3536cd9b4f6f4a01e2f2f12c4e45f4110 18064
minc-tools_2.3.00+dfsg-15.debian.tar.xz
Files:
16c493f5fb36c2188924cfd4546a6bdd 2336 science optional
minc-tools_2.3.00+dfsg-15.dsc
e64d2d7cc8d22e8535d0d6136b52a2cc 18064 science optional
minc-tools_2.3.00+dfsg-15.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQJIBAEBCgAyFiEEj5GyJ8fW8rGUjII2eTz2fo8NEdoFAmk1o7gUHGVtb2xsaWVy
QGRlYmlhbi5vcmcACgkQeTz2fo8NEdod8Q/+Kp16y6GAb7zc0jYVO92S8cv8yuUH
Ehh/jHE0ipvoZ38ujgoycpr/TnQOpehKBRhNMWnhPwF3veqq6My23XFp7qeQoHdW
tSfG5V3X1xYSHTvEIxWbuBEfYcdJLDJYj24oILhiZv9tIS87+42lWtlMDUGi2j88
6qwRqVQNW02HCXNotZYdAPSZUkVYcrFqyTUsu2OCmJSfX0pRfmdDMMJcEd5E4vgp
Pq3ih2Ydm/z3s3qYplC4t7c2efA1JL98KIFaw1FJznWVZFjTzR8IcuwxVO91EhSc
lwamBGzfFUpShyLncxkWii4ORqME8R8KQ5DTfE0CnbZyBhRM4QOvujH7bx/QVUtp
ZbmRmbBR3jtO0Pm7q+12ihWhCia2XpsZ5aLxI9B8B79N24Dty4d4p3beUdOQZZCC
XmGIeQohH5KS7wcxOCbrLNgPc86BLpcO04LFVt7ZwMlytbP3MDC2B/UgpPiYK8dZ
P7QucUr7zrpupDWvFGR2U4v05YWtwK9Mwb4Yky03V7amQIA9u/B3wcXKjt6IUvDN
sfq2/CJf2GZNDVK6QAZ60bm2+40DCJP410YLcCIAAE0Ul/qx5APi/f/xSMN6wOfM
rpIUjpUbvVMXUQ2gSw8vibae/Sg8Tt+1h5JF96Lj1BwHJxgK9y/ss7OVZye0fC9R
jMQtPEH+FSR6Icg=
=QI36
-----END PGP SIGNATURE-----
pgpRjcc3j9Sem.pgp
Description: PGP signature
--- End Message ---