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

Bug 814005

Summary: sys-kernel/gentoo-kernel-5.14.6: no C files in /usr/src
Product: Gentoo Linux Reporter: Gabriel Linder <linder.gabriel>
Component: Current packagesAssignee: Distribution Kernel Project <dist-kernel>
Status: RESOLVED INVALID    
Severity: normal CC: linder.gabriel, mgorny, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
equery f gentoo-kernel

Description Gabriel Linder 2021-09-20 07:33:28 UTC
Was looking for a kernel regression on my laptop (likely caused by https://bugzilla.kernel.org/show_bug.cgi?id=214455) and so was looking for C files in /usr/src/linux-5.14.6-gentoo-dist, but the only ones availables are in tools and scripts folders, no other kernel code found.

Exemple for the driver I was looking for :

$ ls -al /usr/src/linux-5.14.6-gentoo-dist/net/qrtr/
total 12K
drwxr-xr-x  2 root root   37 Sep 19 23:03 .
drwxr-xr-x 71 root root 4096 Sep 19 23:03 ..
-rw-r--r--  1 root root 1082 Aug 30 00:04 Kconfig
-rw-r--r--  1 root root  246 Aug 30 00:04 Makefile

Yep, that's all.

Reproducible: Always
Comment 1 Gabriel Linder 2021-09-20 07:34:02 UTC
Created attachment 740268 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-20 07:35:34 UTC
The build log from linux-5.14.6-gentoo-dist would be useful if you could rebuild it.
Comment 3 Gabriel Linder 2021-09-20 07:35:49 UTC
Created attachment 740271 [details]
equery f gentoo-kernel
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-09-20 07:38:38 UTC
That's by design.  Installing sources for an already-built kernel wastes a lot of space.  If you want sources, use gentoo-sources.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-09-20 07:39:11 UTC
(or just use ebuild(1) to play with the ebuild, and work on the build tree directly)
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-20 07:48:57 UTC
(In reply to Michał Górny from comment #4)
> That's by design.  Installing sources for an already-built kernel wastes a
> lot of space.  If you want sources, use gentoo-sources.

Ugh, duh. Too tired.
Comment 7 Gabriel Linder 2021-09-20 07:50:47 UTC
(In reply to Michał Górny from comment #4)
> That's by design.  Installing sources for an already-built kernel wastes a
> lot of space.  If you want sources, use gentoo-sources.

I see, I should have read the eclass. Thanks for explanations.