1 |
On Sat, Dec 10, 2011 at 12:39 PM, Pandu Poluan <pandu@××××××.info> wrote: |
2 |
> On Dec 11, 2011 12:02 AM, "Grant Edwards" <grant.b.edwards@×××××.com> wrote: |
3 |
>> On 2011-12-10, Pandu Poluan <pandu@××××××.info> wrote: |
4 |
>> |
5 |
>> > And even you can't guarantee that the kernels are the same. Many distros |
6 |
>> > introduce their own distro-specific patches to the vanilla kernel. |
7 |
>> |
8 |
>> RedHat is particularly bad about this. I maintain a couple Linux |
9 |
>> drivers that have to work with a wide range of kernel versions. There |
10 |
>> are lot's of #ifdef's that depend on not only the kernel and some of |
11 |
>> them also have to check whether it's a _RedHat_ kernel or not, since |
12 |
>> RedHat is fond of shipping a kernel with version X.Y.Z that isn't even |
13 |
>> close to compatible with the driver API for vanilla kernel X.Y.Z. |
14 |
>> |
15 |
>> > With Gentoo, it's even more complicated, as most experienced |
16 |
>> > Gentooroids will configure and compile their own kernels. |
17 |
>> |
18 |
>> I've never had to add special code to a driver to handle the Gentoo |
19 |
>> version of a kernel. |
20 |
>> |
21 |
> |
22 |
> Ah, I see that I might have misconstrued myself. My bad. |
23 |
> |
24 |
> Regarding drivers: usually they're no big deal, since the 'infrastructure' |
25 |
> portions of the kernel (e.g., SCSI disk support) are most likely have been |
26 |
> enabled. |
27 |
> |
28 |
> For most applications, usually they don't really care what's in the kernel |
29 |
> since they operate at a quite high-level. |
30 |
> |
31 |
> Problems might arise though if you're doing exotic things. For example: If I |
32 |
> built the IPset portion as 'built-in' into the kernel, I won't be able to |
33 |
> install xtables-addons. This is due to the package wanting to install its |
34 |
> own set of IPset modules. |
35 |
> |
36 |
> Fortunately, such cases are few and far between in the Gentooverse. People |
37 |
> doing exotic things are naturally expected to Know What They Are Doing™ :-) |
38 |
|
39 |
Speaking from experience, the real difficulty is knowing that you're |
40 |
doing something exotic. Once you find out, you generally have two |
41 |
options: Follow the route most people go (such as is happening with |
42 |
udev), or help fix the system so that your desired approach still |
43 |
works (such as the fellow who's been working with mdev). |
44 |
|
45 |
If you're constantly exploring, you'll very likely hit the exotic edge |
46 |
cases, but then that's going to be part of learning the thing you're |
47 |
exploring. Gentoo can be really great for that. Even better, in that |
48 |
it's often not that hard (after a while) to help smooth those edges, |
49 |
making it easier to go on exploring. |
50 |
-- |
51 |
:wq |