mkrpm action
Alan Bartlett
ajb.stxsl at googlemail.com
Mon Mar 10 10:34:46 CDT 2008
If I have posted this to the wrong list, then my apologies. I am not aware
of a dkms users' mailing list.
I had read both the white paper
http://linux.dell.com/dkms/dkms-ols2004.pdf& the man page
http://linux.dell.com/dkms/manpage.html and decided to experiment with dkms.
After installing the relevant rpm package (version 2.0.17.6-1.el5.rf) for
my OS (CentOS 5) from the RPMForge repository (http://dag.wieers.com/rpm/) I
found that it did everything as documented.
I am, however, having a problem with the mkrpm action and hope that someone
can either assist or advise me with this issue. From the man page I see that
"It uses a template .spec file found in
/etc/dkms/template-dkms-mkrpm.specas the basis for the RPM.
Alternatively, if DKMS finds a file called
/usr/src/<module>-<module-version>/<modules>-dkms-mkrpm.spec it will use
that .spec file instead." (For all my testing, I copied the source of a
small unused kernel module to the /usr/src/ directory structure, incremented
the version number (in its header file) and touched all *.c & *.h files.) On
attempting the mkrpm action, both with just the template .spec file and,
alternatively, with a correctly named version in the
/usr/src/<module>-<moulde-version>/ directory, the action failed with an
error message. (For this example I have used the cifs module.)
# dkms mkrpm -m cifs -v 2.00
Using /etc/dkms/template-dkms-mkrpm.spec
Marking 2.6.18-53.1.14.el5 (i686) for RPM...
Error! There was a problem creating your rpm.
On inspection of the file system, I saw that only the file
/usr/src/redhat/SOURCES/cifs-2.00-mktarball.dkms.tgz had been created.
Any advice or guidance would be appreciated.
Thanks.
Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.us.dell.com/pipermail/dkms-devel/attachments/20080310/a8e8cf2f/attachment.htm
More information about the DKMS-devel
mailing list