Your message dated Sat, 07 Nov 2026 11:05:55 +0000
with message-id <[email protected]>
and subject line Bug#1124867: fixed in libiodbc2 3.52.16-3
has caused the Debian Bug report #1124867,
regarding libiodbc2: 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.)


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

libiodbc2 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 libiodbc2 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
libiodbc2, 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://hal.science/hal-05334704/

--- End Message ---
--- Begin Message ---
Source: libiodbc2
Source-Version: 3.52.16-3
Done: Pino Toscano <[email protected]>

We believe that the bug you reported is fixed in the latest version of
libiodbc2, 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.
Pino Toscano <[email protected]> (supplier of updated libiodbc2 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: Sat, 07 Nov 2026 11:34:57 +0100
Source: libiodbc2
Architecture: source
Version: 3.52.16-3
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <[email protected]>
Changed-By: Pino Toscano <[email protected]>
Closes: 1124867 1152614
Changes:
 libiodbc2 (3.52.16-3) unstable; urgency=medium
 .
   * QA upload.
   * Fix the handling of additional compiler flags:
     - append the custom build flags using DEB_CFLAGS_MAINT_APPEND, rather than
       overwriting CFLAGS; this makes the system build flags respected again
       (Closes: #1124867)
     - pass -std=gnu17 instead of -std=c17 to really bring back the default GCC
       behaviour prior to GCC 15; since the additional extensions are used, the
       CFLAGS -Wno-implicit-function-declaration -Wno-int-conversion
       -Wno-incompatible-pointer-types can be dropped, as no more needed
       (Closes: #1152614)
   * Extend the buffer in patch 06_add_system_dir.diff to 20248 characters,
     so it can fully contain the paths used for it.
   * Drop patch 05_unicode_includes.diff, as <iodbc.h> is already included.
   * Drop the leftovers of the old 'acc' autopkgtest, including the dh-acc build
     dependency.
   * Drop extremely old conflicts.
   * Include /usr/share/dpkg/architecture.mk rather than redefining variables.
   * Remove trailing whitespaces in changelog.
   * Remove the leftovers of the iodbc package, i.e. the suggests and the 
mention
     in the description of the libiodbc2 package.
Checksums-Sha1:
 cd3a8d0fe287473e8e3bb1a045c00dc214893c41 1942 libiodbc2_3.52.16-3.dsc
 37d73ea57b5b046fae0070b8582f7a0b552958a4 9440 libiodbc2_3.52.16-3.debian.tar.xz
 da10bca6b3a0d7478e952e58e9eb3308d810b513 6216 
libiodbc2_3.52.16-3_source.buildinfo
Checksums-Sha256:
 ec43601cb095f2a2bea043ca9756f17ce5ff1592823c4b90a9688ce53acef4a8 1942 
libiodbc2_3.52.16-3.dsc
 ae5988b14734446c692159aa2cc9a366cf14a45d09f83da015dfbcfd640bbc85 9440 
libiodbc2_3.52.16-3.debian.tar.xz
 db25d2862d7b7a3435bb1c380f58e0ca522854432706cf6779905d3a6a29d142 6216 
libiodbc2_3.52.16-3_source.buildinfo
Files:
 4d9d146103abcfd2cf558f5627cb6af8 1942 libs optional libiodbc2_3.52.16-3.dsc
 3ea0f2434afbeb2b1c8e90591081ac4b 9440 libs optional 
libiodbc2_3.52.16-3.debian.tar.xz
 e906f559c6dfa738c63c267aefc4624e 6216 libs optional 
libiodbc2_3.52.16-3_source.buildinfo

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

iQIzBAEBCgAdFiEEXyqfuC+mweEHcAcHLRkciEOxP00FAmru/uIACgkQLRkciEOx
P03c/hAAr1LJojHdWEdcz9NZb0z62q1ocVfCjI+8YTac9HwwZqAQsE9dulYwyeG0
RO3hC3Us2F94nHHj8ISAgmpg/M74Kb2RPTfiUJnX44eG6ht5HVrTL6Kvq9QxYYce
K5BKzigP/qmExzmNoDs3QdJzD4g38OIPnTcppxlx8YooaeFGZPXBzxnTurKPULQp
PHA6d//sNwhISuQH6ASX5IDrowVSxQlRGfLQCEbld9ZOB5W90jc1rh9BPUFqmetm
OrtC71x3MhAF0PhH6QwyWFh4ITK//QpRkFZHszsXpsZ3CtdOExLcP0+u4g71g9bq
Se33gSQxIjrc1FxvPgCLdIMMf6T8Kv/jX8zB3Av8HHO2S+z2mtNT0UBmDn6IDoE4
4KdgU8ah8Hqmf7Kn6d2UpltajG3EHxAWC/Y25ZGqpOwR17lX0vF+xErRC4URbMF7
4JrS9yluRduj2V84s4OqIBUdG41TGa4NdMVBjF0oCDfdnITewNLRsAE/UdnTRXJR
NuIyGJj0oZszt1KT+ztxN338CKjsAM+Hnyz1Z5aU/NrmOlWOUCtI5x/rm47Hgy4E
adJSGVGfzFEq+JEJuZdNStKmVIzoqCJ/S9BawPkHCuOlbx77SBVUVLBHw1B9/uri
2B83HDTYocZi2oFItyTxgAFxXGTP59NEPJ+L5kKko+xVsNcMB+o=
=3MpE
-----END PGP SIGNATURE-----

Attachment: pgpdGV2Twc_wU.pgp
Description: PGP signature


--- End Message ---

Reply via email to