Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 565140 - app-arch/cpio fails to build with -Werror=format-security
Summary: app-arch/cpio fails to build with -Werror=format-security
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo's Team for Core System packages
Keywords: PATCH
Depends on:
Blocks: fortify-source
  Show dependency tree
Reported: 2015-11-08 15:03 UTC by René Rhéaume
Modified: 2016-02-14 19:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

cpio-2.11-format-security.patch (cpio-2.11-format-security.patch,548 bytes, patch)
2015-11-08 15:06 UTC, René Rhéaume
Details | Diff
cpio-2.11-r3.ebuild.patch (cpio-2.11-r3.ebuild.patch,452 bytes, patch)
2015-11-08 15:07 UTC, René Rhéaume
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description René Rhéaume 2015-11-08 15:03:55 UTC
cpio cannot be built when -Werror=format-security is in CFLAGS. The error occurs only once and is easy to fix.

Reproducible: Always

Steps to Reproduce:
1. echo 'CFLAGS="${CFLAGS} -Wformat -Werror=format-security"' >> /etc/portage/make.conf
2. emerge -1 app-arch/cpio
Actual Results:  
emake failed

Expected Results:  
copio updated on system
Comment 1 René Rhéaume 2015-11-08 15:06:24 UTC
Created attachment 416284 [details, diff]
Comment 2 René Rhéaume 2015-11-08 15:07:49 UTC
Created attachment 416286 [details, diff]
Comment 3 Tomáš Mózes 2015-11-08 20:37:18 UTC
Please provide the complete build log and the output of emerge --info.
Comment 4 SpanKY gentoo-dev 2016-02-14 19:52:35 UTC
this file is actually part of gnulib, not cpio.  gnulib already fixed it long ago:

and cpio-2.12 includes the updated file.