Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 695440 - sys-kernel/linux-headers-5.2 should check for 1GB of free temporary space
Summary: sys-kernel/linux-headers-5.2 should check for 1GB of free temporary space
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-23 09:22 UTC by tt_1
Modified: 2019-09-28 11:11 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 tt_1 2019-09-23 09:22:57 UTC
the src for linux-headers is now the upstream kernel archive file, which is fine to me, but it comes to a price: 

>>> Completed installing sys-kernel/linux-headers-5.2 into /var/tmp/portage/sys-kernel/linux-headers-5.2/image/

 * Final size of build directory: 950328 KiB (928.0 MiB)
 * Final size of installed tree:    7048 KiB (  6.8 MiB)

while it's been a lot less with the repacked linux headers: 

>>> Completed installing sys-kernel/linux-headers-4.19 into /var/tmp/portage/sys-kernel/linux-headers-4.19/image/

 * Final size of build directory: 69216 KiB (67.5 MiB)
 * Final size of installed tree:   6776 KiB ( 6.6 MiB)

Reproducible: Always

Steps to Reproduce:
yes, this happens every time. it's ok to use that much of tmp space, but please check for it to be available. there are embedded devices still.
Actual Results:  
install breaks if there's less than 1gb of temp space available


nothing in addition to the above.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2019-09-23 22:31:21 UTC
Did you observe actual failure? Or does it cause any other kind of problems? I'd like to see practical problem first.

These are linux headers. Headers presence implies you have a compiler installed and plan to use it (which is itself a few hundreds megabytes), development libc headers (a few hundreds megabytes), distfiles space and more. 1GB is not much for a build host. Even in terms of RAM available.

kernel-2.eclass is there for a long while and never had a check-reqs plumbed in.
Comment 2 tt_1 2019-09-25 16:10:44 UTC
Well, if you're relucant to add a check size function to the ebuild, for the sake of not wanting it to be too complex, that's fine by me. I'll just have to keep in mind to cross-compile the headers in the future. Or copy over the rootfs to an external hard disk drive and compile there, don't want to kill my sd card.
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2019-09-28 11:11:55 UTC
(In reply to tt_1 from comment #2)
> Well, if you're relucant to add a check size function to the ebuild, for the
> sake of not wanting it to be too complex, that's fine by me. I'll just have
> to keep in mind to cross-compile the headers in the future. Or copy over the
> rootfs to an external hard disk drive and compile there, don't want to kill
> my sd card.

It's still not clear from you setup what you are optimising for. If you plan to build anything on a target unpacking/copying linux sources around once will not be your worst problem.