[Pkg-fcoe-general] Bug#853398: fcoe-utils: ftbfs with GCC-7

Juhani Numminen juhaninumminen0 at gmail.com
Thu Dec 14 20:50:05 UTC 2017


On Tue, 31 Jan 2017 09:31:15 +0000 Matthias Klose <doko at debian.org> wrote:
> Package: src:fcoe-utils
> Version: 1.0.29+git20140505-1
> Severity: normal
> Tags: sid buster
> User: debian-gcc at lists.debian.org
> Usertags: ftbfs-gcc-7
> ...
> gcc -DPACKAGE_NAME=\"fcoe-utils\" -DPACKAGE_TARNAME=\"fcoe-utils\" -DPACKAGE_VERSION=\"1.0.29\" -DPACKAGE_STRING=\"fcoe-utils\ 1.0.29\" -DPACKAGE_BUGREPORT=\"fcoe-devel at open-fcoe.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"fcoe-utils\" -DVERSION=\"1.0.29\" -I.  -I./include -I./include -DSYSCONFDIR="\"/etc\"" -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wformat=2 -Werror -Wmissing-prototypes -Wstrict-prototypes -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/fcoe-utils-1.0.29+git20140505=. -fstack-protector-strong -Wformat -Werror=format-security -MT libopenfcoe.o -MD -MP -MF $depbase.Tpo -c -o libopenfcoe.o libopenfcoe.c &&\
> mv -f $depbase.Tpo $depbase.Po
> libopenfcoe.c: In function 'add_fcoe_fcf_device':
> libopenfcoe.c:75:8: error: '%s' directive output may be truncated writing between 0 and 255 bytes into a region of size 0 [-Werror=format-truncation=]
>     "%s/%s", ctlr->path, dp->d_name);
>         ^~

Fedora has a newer upstream version, but they have a patch related to this:
https://src.fedoraproject.org/rpms/fcoe-utils/blob/master/f/fcoe-utils-ggc7-fmt-truc-err.patch
I have modified it to apply to the Debian package.

However, even after applying the attached patch, the package FTBFS:

fcping.c: In function 'fp_find_hba':
fcping.c:591:9: error: '%s' directive output may be truncated writing up to 255 bytes into a region of size 61 [-Werror=format-truncation=]
     "fc_%s", port_attrs.OSDeviceName);
         ^~   ~~~~~~~~~~


Best regards,
Juhani
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc7-fmt-trunc-err.patch
Type: text/x-patch
Size: 1802 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-fcoe-general/attachments/20171214/1de14ffa/attachment.bin>


More information about the Pkg-fcoe-general mailing list