Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 814005 - sys-kernel/gentoo-kernel-5.14.6: no C files in /usr/src
Summary: sys-kernel/gentoo-kernel-5.14.6: no C files in /usr/src
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-20 07:33 UTC by Gabriel Linder
Modified: 2021-09-20 07:50 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge-info.txt,7.26 KB, text/plain)
2021-09-20 07:34 UTC, Gabriel Linder
Details
equery f gentoo-kernel (equery-f-gentoo-kernel.txt.gz,131.61 KB, application/gzip)
2021-09-20 07:35 UTC, Gabriel Linder
Details

Note You need to log in before you can comment on or make changes to this bug.
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.