Your message dated Tue, 16 Aug 2022 05:39:06 +0000
with message-id <[email protected]>
and subject line Bug#1014604: fixed in libeconf 0.4.6+dfsg1-1
has caused the Debian Bug report #1014604,
regarding libeconf: FTBFS with newer toolchain due to false-positive compiler 
error
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.)


-- 
1014604: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014604
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libeconf
Version: 0.4.4+dfsg1-1
Severity: minor
Tags: patch
User: [email protected]
Usertags: origin-ubuntu kinetic ubuntu-patch

Hi Andreas,

libeconf is failing to build in Ubuntu with a format string error from gcc:

[...]
cc -Ieconftool.p -I. -I.. -I../include -fdiagnostics-color=always 
-D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -O0 
-D_GNU_SOURCE=1 -DXTSTRINGDEFINES -Werror -fstack-protector-strong 
-funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection 
-Werror=return-type -flto=8 -Wbad-function-cast -Wcast-align -Wcast-qual 
-Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow 
-Wstrict-prototypes -Wundef -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2 -fPIE -MD -MQ econftool.p/util_econftool.c.o -MF 
econftool.p/util_econftool.c.o.d -o econftool.p/util_econftool.c.o -c 
../util/econftool.c
../util/econftool.c: In function ‘main’:
../util/econftool.c:591:84: error: ‘__snprintf_chk’ output may be truncated 
before the last format character [-Werror=format-truncation=]
  591 |     snprintf(conf_basename, strlen(argv[optind + 1]) - 
strlen(conf_suffix) + 1, "%s", argv[optind + 1]);
      |                                                                         
           ^
[...]

  (https://launchpad.net/ubuntu/+source/libeconf/0.4.4+dfsg1-1/+build/23574046)

I've looked over the code and I think there's no real problem with what the
code's doing, it's just defying gcc's static analysis for format-truncation.

To get the package building in Ubuntu, rather than refactoring the code to
make gcc happy, I've suppressed the warning as in the attached patch.

This build failure doesn't currently affect Debian, so I've marked this bug
report severity 'minor'; but I expect at some point this will start to
affect Debian as well, possibly when glibc is updated to 2.34.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
[email protected]                                     [email protected]
diff -Nru libeconf-0.4.4+dfsg1/debian/rules libeconf-0.4.4+dfsg1/debian/rules
--- libeconf-0.4.4+dfsg1/debian/rules   2022-02-05 14:15:28.000000000 -0800
+++ libeconf-0.4.4+dfsg1/debian/rules   2022-07-08 08:41:11.000000000 -0700
@@ -13,6 +13,7 @@
 # package maintainers to append LDFLAGS
 #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
+export DEB_CFLAGS_MAINT_APPEND = -Wno-error=format-truncation
 
 %:
        dh $@ --buildsystem=meson

--- End Message ---
--- Begin Message ---
Source: libeconf
Source-Version: 0.4.6+dfsg1-1
Done: Andreas Henriksson <[email protected]>

We believe that the bug you reported is fixed in the latest version of
libeconf, 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.
Andreas Henriksson <[email protected]> (supplier of updated libeconf 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, 16 Aug 2022 07:09:20 +0200
Source: libeconf
Architecture: source
Version: 0.4.6+dfsg1-1
Distribution: unstable
Urgency: medium
Maintainer: Andreas Henriksson <[email protected]>
Changed-By: Andreas Henriksson <[email protected]>
Closes: 1014604 1015485
Changes:
 libeconf (0.4.6+dfsg1-1) unstable; urgency=medium
 .
   * New upstream release.
   * Add debian/patches/werror.patch (Closes: #1015485, #1014604)
Checksums-Sha1:
 2208f00b510ca113c7831afd243171013edab39c 2108 libeconf_0.4.6+dfsg1-1.dsc
 13a3c335943cceffd7e92dbc2772b335c73bfd64 53020 libeconf_0.4.6+dfsg1.orig.tar.xz
 1971b8b25f950373de4dca1eb8d61a96513b925c 4428 
libeconf_0.4.6+dfsg1-1.debian.tar.xz
 e00faf1a0f0939e0814b9420ba342b2b4a331b79 7965 
libeconf_0.4.6+dfsg1-1_amd64.buildinfo
Checksums-Sha256:
 934cc16b0bc3d243a2c1e5a98e205ccde71207e89d3a4f37b03b2e47404d98c7 2108 
libeconf_0.4.6+dfsg1-1.dsc
 dc7c76ccaa8c7c10677881292b719cb25f06e0eddda477eeb57da53558b1c9c9 53020 
libeconf_0.4.6+dfsg1.orig.tar.xz
 193126d7eb405e80e01824a7e162490882703711745fc51940175e9d5ef27794 4428 
libeconf_0.4.6+dfsg1-1.debian.tar.xz
 42b15154bbe1340dcb7ff6f4172ea9e00a10bcede6dd7dce9600550911175623 7965 
libeconf_0.4.6+dfsg1-1_amd64.buildinfo
Files:
 d48f7b4e6b05309a5047cf488e7af1d8 2108 libs optional libeconf_0.4.6+dfsg1-1.dsc
 d60dd8a109ebffa5ce1f66f2bfbfd9b3 53020 libs optional 
libeconf_0.4.6+dfsg1.orig.tar.xz
 dff5a63937bb7f76ef202a56cdb0ac33 4428 libs optional 
libeconf_0.4.6+dfsg1-1.debian.tar.xz
 31818ca9ddaa30bb042a66f0f719a565 7965 libs optional 
libeconf_0.4.6+dfsg1-1_amd64.buildinfo

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

iQJFBAEBCgAvFiEE+uHltkZSvnmOJ4zCC8R9xk0TUwYFAmL7KPQRHGFuZHJlYXNA
ZmF0YWwuc2UACgkQC8R9xk0TUwZ0Hw/+MuMSRYsN/8WyZaUeuJqOYbjNbyLXVdfJ
NwP8Hk50oDn8+Q9V8L9cFwbJThO1WpjdIAvWKRghbUSMv4ZvkAtXtrahfiz2d8OC
AOLkY0gy4mTaBFxjAu+WmXsDt5BmFane+1UtG6RzN4/80/2xPC3IUGDAsXKZg0H7
DAVrhtte0f9i1gNRI+ChD8HjlOFrcPzUlUyz5Yyfs6me4OHn8Ic2XPK75wafP/pB
cO6nkwJESrrVlUMuAoNIB7k4zia/7il03/aHcwo/3qhvY5iqo8HUOzxvzQOprLHa
RXJCYert0EiR5DQs+r39lHC/vQ5+W3k+CQ0yKG3q0qHe5m+ZS/hzYhYCoXsK85zr
17jAHgaJsSYS+IrHnWOwgWiZpVIPB4TgNarwzapjPvAY7THQYhfGSwf69YWqBQ/a
AEyWHNc4U1OF9hKXTwrmRknqkM89DWFn5h/d9JY/u4weIUqTEq4vVNq3SHORTFhc
HZ3GReKgJxPZO6Fvra82nQjo1LwahfWO/ULzZuK1owWmMR4adlZ/uJ2+naWIjPsn
E6revmJAZZqzHHNNX4c2JmnIMp7AlW/Y9EjdW+21VjaATuUGI23CUdUGGBUBx3+y
ok8Yx/kukWGBnMjKClDoR4iWDLE2u0xbvIT1DR3F1rdr7PmmI4v9fJB+UCLHvwMD
WvtN1z1GNa4=
=inJk
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to