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

Bug 596496

Summary: net-dns/libidn fails to build with -Werror=format-security
Product: Gentoo Linux Reporter: René Rhéaume <rene.rheaume>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://www.gnu.org/software/libidn/
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 259417    
Attachments: libidn-1.33-format-security.patch
libidn-1.33.ebuild.patch
emerge --info output

Description René Rhéaume 2016-10-08 00:33:44 UTC
libidn does not compile when -Werror=format-security is in use. The fix is easy to make. It will soon be attached.

Reproducible: Always

Steps to Reproduce:
1. echo 'CFLAGS="$CFLAGS -Wformat -Werror=format-security' >> /etc/portage/make.conf
2. emerge -1 net-libs/libidn
3.
Actual Results:  
ERROR: compile
ERROR: net-dns/libidn-1.33::gentoo failed (compile phase):
  emake failed

Expected Results:  
net-libs/libidn installed or updated on system
Comment 1 René Rhéaume 2016-10-08 00:35:08 UTC
Created attachment 449510 [details, diff]
libidn-1.33-format-security.patch
Comment 2 René Rhéaume 2016-10-08 00:42:36 UTC
Created attachment 449512 [details, diff]
libidn-1.33.ebuild.patch
Comment 3 René Rhéaume 2016-10-08 00:43:30 UTC
Created attachment 449514 [details]
emerge --info output
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2016-10-15 11:57:47 UTC
(In reply to René Rhéaume from comment #0)
> libidn does not compile when -Werror=format-security is in use.

Your mistake is to set -Werror=format-security and expect things to compile.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2016-10-15 11:59:27 UTC
Please send that patch upstream.