Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142581 - Portage binary packages, option to use gzip instead of bzip2
Summary: Portage binary packages, option to use gzip instead of bzip2
Status: RESOLVED DUPLICATE of bug 142579
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-02 13:47 UTC by Ross Capdeville
Modified: 2006-08-02 14:08 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Capdeville 2006-08-02 13:47:20 UTC
I am writing an automated gentoo deployment system which will be used to deploy 100s of hosts. I have a seed machine which builds binary packages. The packages are transferred to the portage directory on the new host in the build process. Emerge is correctly using the packages on the local machine. 

The problem is: the installation process takes twice as long as it should. We are currently using Debian in our production environment, which installs in 5 1/2 minutes. The gentoo installation at first took over 3 times as long. I gzipped the stage3 and portage tarballs instead of bzip2, and with the local package cache, I was able to reduce the installation time to 10 minutes. This is still way too long. 

I suspect that the time it takes to install the approximately 300 MB of bzipped packages is causing the delay. BZIP2 is known to be 6-10 times slower than gzip. I would like to be able to create and use packages compressed with gzip. 

I figured there would be an easy way to do this in the portage python source. I found that the xpak library handles appending gentoo specific data to the end of the archive. I figured there would be some variable controlling the program used to compress/decompress the archive. However, it seems bzip2 and the file extension is hardcoded in multiple places. 

What was the reasoning behind this decision to hardcode the compression utility? Is there an easy way to change it? Is there a more complicated way to change it? My company is possibly willing to do the programming if we had some guidance. Do you think this could be useful to others? 

Ross Capdeville 
Sr. Systems Engineer
Comment 1 Zac Medico gentoo-dev 2006-08-02 14:08:42 UTC

*** This bug has been marked as a duplicate of 142579 ***