srcversion check is not sufficient during rpm -U
Qi, Yanling
Yanling.Qi at lsi.com
Wed Jan 10 15:46:32 CST 2007
Hi Matt,
The new version of the driver is a re-spin of the previous version of
driver. The source code is exactly same. But the FOOL_VERSION used in
MODULE_VERSION(FOOL_VERSION);
is a #define in a .h file. The FOOL_VERSION in the previous build is
#define FOOL_VERSION "99.01.B3.46"
And in the new build is
#define FOOL_VERSION "99.01.B3.47"
Theoretically speaking, the two driver sources are different.
I am looking at how the srcversion is generated. BTW, my box is x86_64
SLES10.
Thanks,
Yanling
> -----Original Message-----
> From: Matt Domsch [mailto:Matt_Domsch at dell.com]
> Sent: Wednesday, January 10, 2007 3:25 PM
> To: Qi, Yanling
> Cc: dkms-devel at dell.com
> Subject: Re: srcversion check is not sufficient during rpm -U
>
> On Wed, Jan 10, 2007 at 01:54:29PM -0700, Qi, Yanling wrote:
> > Hi All,
> >
> >
> >
> > I am running dkms-2.0.13 to upgrade a dkms enabled rpm package
using
> rpm
> > -U. The old rpm package is removed and the new driver didn't get
> > installed. I got the following dkms error message at rpm -U time.
> >
> >
> >
> > Good news! Module version 99.01.B3.47 for xxxxxx.ko
> > exactly matches what is already found in kernel
2.6.16.21-0.8-smp.
> > DKMS will not replace this module.
> >
> >
> >
> > After putting debug statement in dkms, I found the previous
driver
> module
> > and the driver module generate the same value of srcversion.
> >
> > kernels_module /lib/modules/2.6.16.21-0.8-
> smp/kernel/drivers/scsi/xxxx.ko
> >
> > dkms_module
> > /var/lib/dkms/xxxx/99.01.B3.47/2.6.16.21-0.8-
> smp/x86_64/module/xxxxx.ko
> >
> > kernels_ver_checksum E80C4BD9A38D1470087CDAF
> >
> > dkms_ver_checksum E80C4BD9A38D1470087CDAF
> >
> > The srcversion field of a driver module is not sufficient to
> determine
> > that driver modules in /lib/module and dkms module repository are
> same.
>
>
> These two matched, yet they weren't the same source code? Really??
> Can you provide me both copies of the source code?
>
> Thanks,
> Matt
>
>
> --
> Matt Domsch
> Software Architect
> Dell Linux Solutions linux.dell.com & www.dell.com/linux
> Linux on Dell mailing lists @ http://lists.us.dell.com
More information about the DKMS-devel
mailing list