Subject: | |
From: | |
Reply To: | |
Date: | Fri, 6 Jun 2008 16:32:55 +0200 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Troy Dawson wrote:
> Urs Beyerle wrote:
>> Troy Dawson wrote:
>>> Urs Beyerle wrote:
>>>> Urs Beyerle wrote:
>>>>> Troy Dawson wrote:
>>>>>> Urs Beyerle wrote:
>>>>>>> Hi Troy,
>>>>>>>
>>>>>>> here are my comments
>>>>>>>
>>>>>>>> madwifi - ?? -
>>>>>>>> - leave it at the
>>>>>>> version 0.9.4 is the latest. 0.9.4 fixes some bugs. I did some
>>>>>>> small
>>>>>>> tests with 0.9.4. It seems to be stable - with the old madwifi
>>>>>>> driver I
>>>>>>> had some connection losses. No problem so far with the new
>>>>>>> driver. I
>>>>>>> would go with 0.9.4. The SRPM is here:
>>>>>>> http://linux.web.psi.ch/dist/scientific/51/beta/madwifi-0.9.4-13.slp5.src.rpm
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> Urs
>>>>>> Did you get that to build on a SL 5 machine?
>>>>>> If so, what build options did you use? Or did you have to have
>>>>>> something extra installed?
>>>>> no, as for the old madwifi driver I used:
>>>>> rpmbuild -ba --target i686 --define 'kernel 2.6.18-53.1.21.el5'
>>>>> --define 'buildall 1' madwifi.spec
>>>>> rpmbuild -ba --target x86_64 --define 'kernel 2.6.18-53.1.21.el5'
>>>>> --define 'buildall 1' madwifi.spec
>>>> oh, its not working for 2.6.18-92.el5. I will fix it ....
>>>>
>>>> Urs
>>>>
>>> So it's not just me ... that's good. Well ... not really ... but at
>>> least I'm not just going crazy.
>>>
>>
>>
>> yes, you are ok ;-)
>>
>> Here is the new SRPM:
>> http://linux.web.psi.ch/dist/scientific/51/beta/madwifi-0.9.4-14.slp5.src.rpm
>>
>> containing madwifi-compat.h-kernel-2.6.18-92.el5.patch
>>
>> However, this SRPM will only work for kernel >= 2.6.18-92.el5. If you
>> want to put it into SL50/SL51 you have to update first the kernel to >=
>> 2.6.18-92.el5.
>>
>> Or do you know a good way to handle this in the SPEC file, something
>> like
>>
>> %if %{....}
>> %patch0 -p0 -b .compat
>> %endif
>>
>> to apply the patch only for kernel >= 2.6.18-92.el5?
>>
>>
>> Hope it works this time
>>
>> Urs
>>
>
> At first glance, this seems easy ... until you actually try to do it.
> I'll look into this, but I'm thinking of doing something like a
>
> KNUM=`echo $kernel | cut -d'-' -f2 | cut -d'.' -f2`
> %if $KNUM >=92
>
> That's a bit cludgy ... but it works.
>
Thanks.
ok. I have already defined %krelease in the SPEC file, so it seems that
the following works:
%define krelease_num %(echo "%{krelease}" | cut -d"." -f1)
%if %krelease_num >= 92
%patch0 -p0 -b .compat
%endif
The new SRPM is here:
http://linux.web.psi.ch/dist/scientific/51/beta/madwifi-0.9.4-15.slp5.src.rpm
Urs
> Troy
|
|
|