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

Bug 277544

Summary: Lack of -c switch to bzip2 when building packages
Product: Portage Development Reporter: Michał Górny <mgorny>
Component: Core - External InteractionAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: major Keywords: InVCS
Priority: High    
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 210077, 288499    
Attachments: Patch to add '-c' switch to bzip2 invocation

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2009-07-12 22:02:08 UTC
When building binary packages, portage pipes tar data through 'bzip2 -f' (without '-c' switch).

Although standard bzip2 doesn't seem to have problems with it (pbzip2 has), according to the manual, will of outputting compressed data to STDOUT should be marked by use of '-c' switch.

AFAICS similar bzip2 invocations in portage code use the '-c' switch.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2009-07-12 22:02:36 UTC
Created attachment 197678 [details, diff]
Patch to add '-c' switch to bzip2 invocation
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2009-07-12 22:04:52 UTC
I should add that I have used both '-c' and '-f' switches because portage does so in few places. I don't know why or what for…
Comment 3 Zac Medico gentoo-dev 2009-08-06 19:06:37 UTC
Thanks, this is in svn r13934.
Comment 4 Zac Medico gentoo-dev 2009-08-10 00:25:26 UTC
This is fixed in 2.2_rc37.
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-24 11:48:42 UTC
Not released in 2.1.*.
Comment 6 Zac Medico gentoo-dev 2009-10-11 00:56:18 UTC
This is fixed in 2.1.7.