1 |
Just since it bit me on some infra boxes this evening, a quick reminder |
2 |
that you should generally never DEPEND on virtual/linux-sources in your |
3 |
ebuilds. |
4 |
|
5 |
It's trivial to build a fully working system, and never have /usr/src |
6 |
get populated. |
7 |
|
8 |
1. Never RDEPEND on virtual/linux-sources, it will bring kernel sources |
9 |
in during binpkg installs. |
10 |
2. linux-mod.eclass does correctly bring in virtual/linux-sources as |
11 |
needed, so if you are building kernel modules, inherit it rather than |
12 |
including your own DEPEND for sources. |
13 |
3. kernel_is: Version-specific virtual/linux-sources statements are generally |
14 |
useless, as you have no idea what kernel version is at /usr/src/linux |
15 |
or is pointed to by the various build variables. You should use the |
16 |
kernel_is function of linux-info.eclass instead. |
17 |
|
18 |
-- |
19 |
Robin Hugh Johnson |
20 |
Gentoo Linux: Developer, Trustee & Infrastructure Lead |
21 |
E-Mail : robbat2@g.o |
22 |
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85 |