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

Bug 578968

Summary: app-arch/unzip-6.0_p20: fails to compile with -Werror=format-security
Product: Gentoo Linux Reporter: Sam Jorna (wraeth) <wraeth>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Low    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugzilla.redhat.com/show_bug.cgi?id=1037370
https://bugs.gentoo.org/show_bug.cgi?id=512412
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 713576, 259417    
Attachments: build.log
emerge --info
unzip-6.0-format-security.patch
unzip-6.0_p20.ebuild.patch

Description Sam Jorna (wraeth) gentoo-dev 2016-04-04 00:29:42 UTC
Created attachment 429594 [details]
build.log

> list.c: In function ‘list_files’:
> list.c:183:110: error: format not a string literal and no format arguments [-Werror=format-security]
> list.c:510:106: error: format not a string literal and no format arguments [-Werror=format-security]
> list.c: In function ‘get_time_stamp’:
> list.c:593:110: error: format not a string literal and no format arguments [-Werror=format-security]
> list.c:677:102: error: format not a string literal and no format arguments [-Werror=format-security]
> cc1: some warnings being treated as errors
> Makefile:232: recipe for target 'list.o' failed
> make[1]: *** [list.o] Error 1

> extract.c: In function ‘extract_or_test_files’:
> extract.c:477:114: error: format not a string literal and no format arguments [-Werror=format-security]
> extract.c:757:102: error: format not a string literal and no format arguments [-Werror=format-security]
> extract.c:758:102: error: format not a string literal and no format arguments [-Werror=format-security]
> cc1: some warnings being treated as errors
> Makefile:232: recipe for target 'extract.o' failed
> make[1]: *** [extract.o] Error 1
Comment 1 Sam Jorna (wraeth) gentoo-dev 2016-04-04 00:30:27 UTC
Created attachment 429596 [details]
emerge --info
Comment 2 René Rhéaume 2016-05-28 17:43:44 UTC
Created attachment 435654 [details, diff]
unzip-6.0-format-security.patch
Comment 3 René Rhéaume 2016-05-28 17:47:05 UTC
Created attachment 435656 [details, diff]
unzip-6.0_p20.ebuild.patch
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-20 03:39:46 UTC
commit 60abede81b5a84ea9a77e560e942a3ef330ec550
Author: Thomas Deutschmann <whissi@gentoo.org>
Date:   Sun Nov 26 02:37:23 2017 +0100

    app-arch/unzip: Rev bump to fix build with format-security

    Package-Manager: Portage-2.3.16, Repoman-2.3.6