Your message dated Tue, 11 Nov 2025 22:27:30 +0000
with message-id <[email protected]>
and subject line Bug#1119627: fixed in xlunzip 0.9-4
has caused the Debian Bug report #1119627,
regarding xlunzip: 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.)


-- 
1119627: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1119627
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: xlunzip
Version: 0.9-3
User: [email protected]
Usertags: hardening-buildflags

xlunzip 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 xlunzip 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
xlunzip, 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: xlunzip
Source-Version: 0.9-4
Done: Daniel Baumann <[email protected]>

We believe that the bug you reported is fixed in the latest version of
xlunzip, 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.
Daniel Baumann <[email protected]> (supplier of updated xlunzip 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: Tue, 11 Nov 2025 21:18:32 +0100
Source: xlunzip
Architecture: source
Version: 0.9-4
Distribution: sid
Urgency: medium
Maintainer: Daniel Baumann <[email protected]>
Changed-By: Daniel Baumann <[email protected]>
Closes: 1119627
Changes:
 xlunzip (0.9-4) sid; urgency=medium
 .
   * Adding compression option to watch file.
   * Removing rules-requires-root, not needed anymore.
   * Building with hardening build-flags (Closes: #1119627).
Checksums-Sha1:
 27b29bc0c77303b1a2113dea2823e3a5fdf5d30b 1191 xlunzip_0.9-4.dsc
 be05866386f8f564e3eba390742286bb20306479 4720 xlunzip_0.9-4.debian.tar.xz
 ddfb9a3380f67d685232eec9448a2254916ac644 5094 xlunzip_0.9-4_amd64.buildinfo
Checksums-Sha256:
 a367e88342c1eeaecb51ee25aa1015377bc4c80e0bee83f59a7497ad319b6d89 1191 
xlunzip_0.9-4.dsc
 4ce37a4bde4287f3c043fe641263b871f132c64d44b238f6dab617e08ab5f78e 4720 
xlunzip_0.9-4.debian.tar.xz
 7146e1394fc788f8a98d61dccf29713fc8cb60b3d6aa73aff2d09910d7efc90a 5094 
xlunzip_0.9-4_amd64.buildinfo
Files:
 efbb7f6f6e5cbfe7528cb82459b6ef77 1191 utils optional xlunzip_0.9-4.dsc
 eac8a677ffd7aca8b96c44a4802d7884 4720 utils optional 
xlunzip_0.9-4.debian.tar.xz
 42029979c1d89372aa2a657bb257e5ea 5094 utils optional 
xlunzip_0.9-4_amd64.buildinfo

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

iHUEARYKAB0WIQQmmGg4gLaoSj0ERgL7tPDoCoAiLwUCaROaMwAKCRD7tPDoCoAi
L+fIAQCWogzubF/mNuvoG3fhVsPTPxxFKnw446shYPj7lVz9ZQD+N0nzVucSO6Za
ui+likx3emlYfGc4Os57bd+YsFqjHAY=
=LMWN
-----END PGP SIGNATURE-----

Attachment: pgp68VQxjoo0Z.pgp
Description: PGP signature


--- End Message ---

Reply via email to