Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 565140

Summary: app-arch/cpio fails to build with -Werror=format-security
Product: Gentoo Linux Reporter: René Rhéaume <rene.rheaume>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: minor CC: hydrapolic
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 259417    
Attachments: cpio-2.11-format-security.patch
cpio-2.11-r3.ebuild.patch

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
3.
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]
cpio-2.11-format-security.patch
Comment 2 René Rhéaume 2015-11-08 15:07:49 UTC
Created attachment 416286 [details, diff]
cpio-2.11-r3.ebuild.patch
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:
http://git.savannah.gnu.org/cgit/gnulib.git/commit/?h=bfacc22b1cd7713444e1403a66476d55284d260f

and cpio-2.12 includes the updated file.