Your message dated Thu, 19 Nov 2026 17:19:27 +0000
with message-id <[email protected]>
and subject line Bug#1119480: fixed in magic 8.3.703-1
has caused the Debian Bug report #1119480,
regarding magic: 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.)


-- 
1119480: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1119480
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: magic
Version: 8.3.105+ds.1-1.1
User: [email protected]
Usertags: hardening-buildflags

magic 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 magic 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
magic, 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: magic
Source-Version: 8.3.703-1
Done: Michael Lloyd <[email protected]>

We believe that the bug you reported is fixed in the latest version of
magic, 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.
Michael Lloyd <[email protected]> (supplier of updated magic 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: Mon, 16 Nov 2026 06:08:57 +1100
Source: magic
Architecture: source
Version: 8.3.703-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers 
<[email protected]>
Changed-By: Michael Lloyd <[email protected]>
Closes: 1029935 1075249 1108618 1119480
Changes:
 magic (8.3.703-1) unstable; urgency=medium
 .
   * Team upload.
   * New upstream release. (Closes: #1029935)
   * Fixes FTBFS with GCC 14, fixed upstream. (Closes: #1075249)
   * Stopped repacking as readline was removed from upstream.
   * d/patches: Drop patches applied upstream or obsoleted by the new build.
   * d/patches: Rebase older patches, format and rename.
   * d/patches: Drop unused spice2sim hunk from the shebang patch.
   * d/patches: Stop configure clearing LDFLAGS on Linux, so the default
     dpkg-buildflags are used. (Closes: #1119480)
   * d/patches: Adapt techbuilder to BLT 3.0. (Closes: #1108618)
   * d/patches: Stop the doc install on make failure.
   * d/patches: Fix groff warnings in man pages.
   * d/patches: Do not run magic in a terminal from the desktop entry.
   * d/patches: Pass CPPFLAGS to the CIF template preprocessor.
   * d/patches: Prefer the wish matching the Tk version in configure.
   * d/control: Drop unused build-dependencies blt-dev, tcsh, csh and m4.
   * d/control: Build-depend on zlib1g-dev.
   * d/control: Depend on the Tk version magic is built against.
   * d/control: Suggest blt, needed by the techbuilder wizard.
   * d/control: Bump Standards-Version to 4.7.4, no changes needed.
   * d/control: Use https for Homepage.
   * d/rules: Drop --no-parallel, the upstream build is now parallel-safe.
   * d/rules: Use tcltk-depends instead of patching the installed launcher.
   * d/rules: Drop override_dh_auto_clean, config.cache is no longer used.
   * d/copyright: Use https for Source and add Upstream-Contact.
   * d/copyright: Rename BSD-style to its SPDX name HPND-UC-export-US.
   * d/copyright: Add missing copyright holders and stanzas.
   * d/install: Install upstream desktop entry and icon, replacing d/menu.
   * d/clean: Remove configure-generated files left behind by distclean.
   * d/docs: Install README.md, renamed upstream.
   * d/watch: Update to format version 5, use https, drop repack mangling.
   * d/gbp.conf: Define branches and tag formats.
   * d/lintian-overrides: Drop obsolete override and update syntax.
   * d/salsa-ci.yml: Update to the current pipeline include.
   * d/control: Bump debhelper compat to 14.
Checksums-Sha1:
 b8f00f2d7956acdc1f85e622497bfb3abb480b7c 1904 magic_8.3.703-1.dsc
 40b3322e44a4d2d800681f1ab8cc11b05a2967c4 3968705 magic_8.3.703.orig.tar.gz
 2d04b965e5108a14ae70b907feac5d8dbaeccd88 14444 magic_8.3.703-1.debian.tar.xz
 208e20419ac280c461e208cce9c871cff3d05c09 9946 magic_8.3.703-1_source.buildinfo
Checksums-Sha256:
 95501b23041c1b296f63b32ae68864c5de3ebd1de8dd2e3eecf12e06e391c24b 1904 
magic_8.3.703-1.dsc
 cb686eff8137696f25d0c40c6cfba542f8399be4c1f61a77bd8dd32700ff4b54 3968705 
magic_8.3.703.orig.tar.gz
 560cb23b7cb734ca0e26b8a2330ead7c90417a403888d00d826a4f4dd033d3fa 14444 
magic_8.3.703-1.debian.tar.xz
 ab9f12e7ed6b40c929128dda94e59646c5daeded7470c7eb262c2416dc0e4695 9946 
magic_8.3.703-1_source.buildinfo
Files:
 847969d213fdba520148b2ac30d03c67 1904 electronics optional magic_8.3.703-1.dsc
 8a831d779d12881f3593a9de6228e044 3968705 electronics optional 
magic_8.3.703.orig.tar.gz
 3aa254e8a38ab53af2942ffeec39bb20 14444 electronics optional 
magic_8.3.703-1.debian.tar.xz
 fa993c1342a97453cb4e74e42dfc896c 9946 electronics optional 
magic_8.3.703-1_source.buildinfo

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

iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmr/KvgQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFObYDACevAcxOzzhXC02rWxoJD7UzmzCCa/VrpDS
Vgn2M/imzXtokZo0L+ZtIcYV+A+fw1k1dtlQsFy3fKPjZiJAcpQFM7O1PzFgJDvF
gChT7xtWlAtBJqid2X+QvxZ53APDH4Z+pkB+DG9EWvLRLUKwu8KPL5oRzXjSsuYO
nUNr8AIUnTB5tO2zgz00b0irqnCyYRzSKlXBFKBs4bRzjEUb5VOmT1PKlbvLUD1n
ipzjSMo/dQV0vqAv3aVctLJGe17gaMYEzY2LHrro8iCS53cshwx4rdM4llcHODRG
hXsLbmvXkSsp/uu8MjRwjlyhHk6iYG3kMyuiRj0jiwg2CIO/YPurxAMy/FayzxnN
KDxby/UFfpX26CS4zUC7afQijHbAleQAtHK1KFg+TWed7E6Sx/paWg6SJAe6H/Sp
MhDiATYsbSOigHMxfYIRSUq5xnKmdSuPGKIWcciIUwUeS4TVekyTe5qX5iAnGYS+
Qj5T54knnXK3wyzIANusDPq2BPC8TcI=
=LiwX
-----END PGP SIGNATURE-----

Attachment: pgpb8POpae15y.pgp
Description: PGP signature


--- End Message ---

Reply via email to