[Momonga-devel.ja:02768] Re: kernel-2.6.8-13m


佐藤@滋賀県です

From: muradaikan <muradaikan@xxxxxxxxxxxxxxxxx>
Subject: [Momonga-devel.ja:02766] kernel-2.6.8-13m
Date: Wed, 15 Sep 2004 08:53:40 +1000
> kernel-2.6.8-13mをコミットしました。11mからの主な変更点は
> 
>    Pentium4、Coppermine、AMD の K7 と K8 用 kernel のビルドオプションを追加

P4 SMPの場合、下のパッチのように変更しないと、
----------------------
RPM build errors:
    File not found by glob: /var/tmp/kernel-2.6.8-root/boot/vmlinu?-2.6.8-13mp4smp
    File not found: /var/tmp/kernel-2.6.8-root/boot/System.map-2.6.8-13mp4smp
    File not found: /var/tmp/kernel-2.6.8-root/boot/config-2.6.8-13mp4smp
    File not found: /var/tmp/kernel-2.6.8-root/lib/modules/2.6.8-13mp4smp
    File not found: /var/tmp/kernel-2.6.8-root/lib/modules/2.6.8-13mp4smp/kernel
    File not found: /var/tmp/kernel-2.6.8-root/lib/modules/2.6.8-13mp4smp/build
----------------------
と言われます。自分が変更したのはP4のところだけですが、
cm,k7,k8のsmpも変更が必要と思います。

===================================================================
--- kernel.spec (revision 3108)
+++ kernel.spec (working copy)
@@ -1051,7 +1051,7 @@
     -C /usr/src/linux-%{KVERREL}/include

 %post p4-smp
-[ -x /sbin/new-kernel-pkg ] && /sbin/new-kernel-pkg --mkinitrd --depmod --install %{KVERREL}p4smp
+[ -x /sbin/new-kernel-pkg ] && /sbin/new-kernel-pkg --mkinitrd --depmod --install %{KVERREL}p4-smp
 [ -x /usr/sbin/hardlink ] && /usr/sbin/hardlink -c /lib/modules/2.6.* || :

 if [ ! -d /usr/src/linux-%{KVERREL}/include ]; then
@@ -1157,7 +1157,7 @@

 %preun p4-smp
 /sbin/modprobe loop 2> /dev/null > /dev/null  || :
-[ -x /sbin/new-kernel-pkg ] && /sbin/new-kernel-pkg --rminitrd --rmmoddep --remove %{KVERREL}p4smp
+[ -x /sbin/new-kernel-pkg ] && /sbin/new-kernel-pkg --rminitrd --rmmoddep --remove %{KVERREL}p4-smp

 # clean up files installed by %%post smp
 pushd /usr/src/linux-%{KVERREL}/include > /dev/null 2>&1
@@ -1263,12 +1263,12 @@
 %if %{pen4smp}
 %files p4-smp
 %defattr(-,root,root)
-/boot/vmlinu?-%{KVERREL}p4smp
-/boot/System.map-%{KVERREL}p4smp
-/boot/config-%{KVERREL}p4smp
-%dir /lib/modules/%{KVERREL}p4smp
-/lib/modules/%{KVERREL}p4smp/kernel
-/lib/modules/%{KVERREL}p4smp/build
+/boot/vmlinu?-%{KVERREL}p4-smp
+/boot/System.map-%{KVERREL}p4-smp
+/boot/config-%{KVERREL}p4-smp
+%dir /lib/modules/%{KVERREL}p4-smp
+/lib/modules/%{KVERREL}p4-smp/kernel
+/lib/modules/%{KVERREL}p4-smp/build
 /var/lib/kernel-%{KVERREL}/headers-p4-smp.tar.gz
 %endif

-----------------------------------------------------
                       佐藤雅伸 (m.sato@xxxxxxxxxxxx)