1 |
Alec Warner wrote: |
2 |
> Georgi Georgiev wrote: |
3 |
>> maillog: 19/06/2006-11:13:33(+0000): Alec Warner types |
4 |
>> |
5 |
>>> Portage currently exports $KV as the current kernel version. We |
6 |
>>> detect this by attempting to mess around with the things in |
7 |
>>> /usr/src/linux (.config, make files, etc...) |
8 |
>>> |
9 |
>>> This is duplicating the superb efforts of the kernel team and of |
10 |
>>> linux-info eclass. As such I would like to deprecate $KV in favor |
11 |
>>> of using linux-info eclass. I don't see the need for portage to |
12 |
>>> export $KV into the environment for all packages. |
13 |
>>> |
14 |
>>> There are a few packages left that use this. There will be a |
15 |
>>> tracker bug shortly. Mostly this mail is just a heads up ;) |
16 |
>> |
17 |
>> |
18 |
>> But any kind of checks against something in $KERNEL_DIR are just wrong, |
19 |
>> wrong, wrong. The only exception being when the ebuild is building |
20 |
>> something *against* those sources (kernel modules, and that's it). |
21 |
>> |
22 |
>> It's annoying to have virtual/linux-sources pulled as a dep of gnupg, |
23 |
>> iptables or any other package that can do fine without them. |
24 |
>> |
25 |
> In many cases those packages are looking for a specific kernel feature |
26 |
> to make sure support is enabled for it. |
27 |
> |
28 |
> You could argue that in the case where you aren't compiling against |
29 |
> the kernel that support being enabled isn't critical, but that is a |
30 |
> discussion you need to have with the package maintainers. |
31 |
Hmmm....I don't know about this, since I'm jusr a user without much |
32 |
programming experience, and haven't developed anything that makes use of |
33 |
kernel features, but If they don't actually build against the kernel, |
34 |
couldn't/shouldn't they look at either kernel-headers or the output of |
35 |
`uname -r` (possibly with a way to force the feature on if the user |
36 |
knows it's available but the build system isn't detecting it)? |
37 |
|
38 |
--Arek |
39 |
|
40 |
-- |
41 |
gentoo-dev@g.o mailing list |