>
> On Sat, 2 Feb 2002, Miguel Beccari wrote:
>
>> At this point you can rpm -Uhv lastKERNEL.src.rpm
>>
>> Edit kernel.spec
>>
>> Have your cool hacks to make it work (I had to delete the %build_BOOT%
>> macros).
>>
>
> ?? - %build_BOOT is there for building the install kernel. Obviousely
> I don't remove it every time I build a kernel, so I'm not sure why you
> need to.
It is strange: I agree with you. But I am sure. It happened Friday... but
let's try again the same steps: maybe I am in error...
[root@serverg3 SRPMS]# wget ftp://ftp.ciril.fr/pub2/linux/mandrake-
devel/cooker/SRPMS/kernel-2.4.17.13mdk-1-1mdk.src.rpm
[root@serverg3 SRPMS]# rpm -v
RPM version 4.0.3
Copyright (C) 1998-2000 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL
[root@serverg3 SRPMS]# rpm --rebuild kernel-2.4.17.13mdk-1-1mdk.src.rpm
Installing kernel-2.4.17.13mdk-1-1mdk.src.rpm
error: parse error in expression
error: /usr/src/RPM/SPECS/kernel-2.4.spec:1229: parseExpressionBoolean
returns -1
[root@serverg3 SRPMS]# vi ../SPECS/kernel.spec
1229 %if %build_BOOT
1230 CreateKernel BOOT
1231 %endif
So I edited it in line 1229:
1229 #%if %build_BOOT
1230 #CreateKernel BOOT
1231 #%endif
Let's try again:
[root@serverg3 SRPMS]# rpm -bb ../SPECS/kernel-2.4.spec
error: parse error in expression
error: /usr/src/RPM/SPECS/kernel-2.4.spec:1632: parseExpressionBoolean
returns -1
[root@serverg3 SRPMS]# vi ../SPECS/kernel.spec
1632 %if %build_BOOT
1633 %files -n kernel-BOOT-%{mdkversion}
1634 %defattr(-,root,root)
1635 %{_bootdir}/config-%{KVERREL}BOOT
1636 %{_bootdir}/vmlinuz-%{KVERREL}BOOT
1637 %{_bootdir}/System.map-%{KVERREL}BOOT
1638 %dir %{_modulesdir}/%{KVERREL}BOOT/
1639 %{_modulesdir}/%{KVERREL}BOOT/kernel
1640 %{_modulesdir}/%{KVERREL}BOOT/build
1641 %{_modulesdir}/%{KVERREL}BOOT/pcmcia
1642 %{_modulesdir}/%{KVERREL}BOOT/modules.*
1643 %endif
If I comment theese line too the rebuild works perfectly without errors; so
my memory is still good ;)
>
>> rpm -bb SPECS/kernel.spec
>>
>> ...correct errors (if anyone)... and at the end you mau have
>>
>> kernel.ppc.rpm installed correctly (tnx to lastest mkinitrd,
>> libbinutils, findutils, glic)
>>
>> kernel-source.ppc.rpm installed correctly (tnx to findutils)
>>
>> kernel-doc*.ppc.rpm compiled and installed correctly (tnx to
>> ghostscript and sgml-tools)
>>
>> Type a rpm -Uhv kernel*, take a look at /etc/yaboot.conf, and tupe a
>> ybin -v.
>>
>
> You should not be doing rpm -U for kernel, use rpm -i.
That's true.
>
> Stew Benedict
>
Kind regards,
Miguel Beccari