Gentoo Archives: gentoo-dev

From: Donnie Berkholz <spyderous@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] XFree86 and 2.6 kernel headers
Date: Tue, 03 Feb 2004 21:38:17
Message-Id: 1075844290.2800.17.camel@localhost
In Reply to: Re: [gentoo-dev] XFree86 and 2.6 kernel headers by "Thomas T. Veldhouse"
1 On Tue, 2004-02-03 at 14:55, Thomas T. Veldhouse wrote:
2 > Donnie Berkholz wrote:
3 >
4 > > On Tue, 2004-02-03 at 12:22, Andrew Gaffney wrote:
5 > >
6 > >> Thomas T. Veldhouse wrote:
7 > >>
8 > >>> I think a kernel specific conditional patch should be included in
9 > XFree86 as it is unlikely the linux kernel headers are going to change back.
10 > >>
11 > >>
12 > >> Thanks for the heads up on that one.
13 > >
14 > >
15 > >
16 > > Such as this?
17 > >
18 > http://dev.gentoo.org/~spyderous/xfree/patchsets/4.3.0/patch/9020_all_4.3.0-fix-2.5-headers-rate-period.patch
19 > >
20 > > It'll be going into 4.3.0-r4, which is in progress.
21 > >
22 > > Donnie
23 >
24 >
25 > I can't say I like such a global change:
26 >
27 > +/* Deal with spurious kernel header change */
28 > +#if defined(LINUX_VERSION_CODE) && defined(KERNEL_VERSION)
29 > +# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,42)
30 > +# define rate period
31 > +# endif
32 > +#endif
33 >
34 > I think it would be better to put the conditionals around each instance
35 > of 'rate', which I believe is only in one location anyway. If your
36 > patch causes a problem, trying to figure out the cause might get messy
37 > by just substituting period for rate .... it won't be obvious such a
38 > substitution is going on to somebody not in the know (no obvious naming
39 > convention used here).
40
41 This is a backport from XFree86 CVS, not something I made up. So if
42 there is a problem, it's theirs.
43
44 Donnie

Attachments

File name MIME type
signature.asc application/pgp-signature