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

Bug 342251

Summary: Unpackage kernels to /usr/src directly instead of to working dir then copy over
Product: Gentoo Linux Reporter: Gary G. Sparkes Jr. <mokuba>
Component: [OLD] Core systemAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED CANTFIX    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Gary G. Sparkes Jr. 2010-10-22 22:59:47 UTC
I believe it would be a good enhancement for the kernel sources to be directly unpacked and patched in /usr/src if they don't trash over another directory already there. All kernel versions are slotted and take up their own directory, it takes a lot of time to copy over the sources over after extracting them. It would almost halve the time it takes to emerge the kernel sources and would save much disk writes on SSD systems and greatly increase emerge speeds on older systems of these packages.

Reproducible: Always

Steps to Reproduce:
1. emerge *-sources
2.
3.
Comment 1 Michael Weber (RETIRED) gentoo-dev 2010-10-26 14:49:46 UTC
Interesting point, but might be difficult to accomplish in ebuild/image strucktures.
Comment 2 Gary G. Sparkes Jr. 2010-10-26 15:08:36 UTC
(In reply to comment #1)
> Interesting point, but might be difficult to accomplish in ebuild/image
> strucktures.
> 

Is it possible in ebuilds to do patching during the installation section? If not, this would probably only be workable for vanilla-sources. Unless prepatched tgz's were hosted for kernel images, as well. Patching during installation, or doing the installation during the "compiling" section, might solve this as well.
Comment 3 Mike Pagano gentoo-dev 2010-10-27 22:08:28 UTC
This will not work in portage. There are many technical reasons this can't be done. The image directory is needed for things such as INSTALL_MASK and some FEATURES. Also, portage needs the image directory to track who owns what files.