Hello Enrico, You don't happen to have a kernel-xen for Scientific Linux 4.x do you? Troy Enrico M. V. Fasanelli wrote: > Dear all, > > I made two little changes to the openafs-1.4.1-11.SL.spec in order to > build an rpm kernel module for xen kernel. > > Here the diff. > > > [root@main-00 ~]# diff -c /usr/src/redhat/SPECS/openafs-1.4.1-12.SL.spec \ > > /usr/src/redhat/SPECS/openafs-1.4.1-11.SL.spec > *** /usr/src/redhat/SPECS/openafs-1.4.1-12.SL.spec 2006-11-17 > 13:25:29.000000000 +0100 > --- /usr/src/redhat/SPECS/openafs-1.4.1-11.SL.spec 2006-05-19 > 09:40:48.000000000 +0200 > *************** > *** 1,5 **** > %define afsvers 1.4.1 > ! %define pkgrel 0.12.SL > > # release candidates: > #define srcvers %{afsvers}-%(echo %{pkgrel}|sed 's/^0//'|sed 's/\\..*//') > --- 1,5 ---- > %define afsvers 1.4.1 > ! %define pkgrel 0.11.SL > > # release candidates: > #define srcvers %{afsvers}-%(echo %{pkgrel}|sed 's/^0//'|sed 's/\\..*//') > *************** > *** 16,22 **** > # (*) Request building of kernel modules > # --define "build_modules 1" > %{!?kernel: %define kernel %(uname -r)} > - %define xen %(echo %{kernel} | grep -q xen && echo 1 || echo 0) > %define smp %(echo %{kernel} | grep -q smp && echo 1 || echo 0) > %define hugemem %(echo %{kernel} | grep -q hugemem && echo 1 || echo 0) > %define largesmp %(echo %{kernel} | grep -q largesmp && echo 1 || echo 0) > --- 16,21 ---- > *************** > *** 819,825 **** > %if %{build_modules} > > srcdir=${sysname}/dest/root.client/usr/vice/etc/modload > ! %if %smp || %hugemem || %xen > modname=libafs-%{kernel}.mp.ko > %else > modname=libafs-%{kernel}.ko > --- 818,824 ---- > %if %{build_modules} > > srcdir=${sysname}/dest/root.client/usr/vice/etc/modload > ! %if %smp || %hugemem > modname=libafs-%{kernel}.mp.ko > %else > modname=libafs-%{kernel}.ko > *************** > *** 1125,1135 **** > > ############################################################################### > > > %changelog > - * Fri Nov 17 2006 Enrico M.V. Fasanelli <[log in to unmask]> 1.4.1-12.SL > - - added check on "xen" in the kernel version substring in order to build > - the kernel module with correct version number. > - - correct the afsvers value in this changelog > - > * Fri May 19 2006 Stephan Wiesand <[log in to unmask]> 1.4.0-11.SL > - added openafs-1.4.1-rxkad-ticketsize.patch, see mail to openafs-info > by H. Reuter 2006-05-17 (and the reply by R. Toebbicke) > --- 1124,1129 ---- > -- __________________________________________________ Troy Dawson [log in to unmask] (630)840-6468 Fermilab ComputingDivision/CSS CSI Group __________________________________________________