Comment 22 for bug 474207

Revision history for this message
nutznboltz (nutznboltz-deactivatedaccount) wrote :

The location of the source tree is controlled via an option argument to dkms. There is no reason to copy the source tree around.

The patch attached to this post has the path names updated to reflect this.

fakeroot alien --to-deb mptlinux-4.22.00.00-1dkms.noarch.rpm
sudo dpkg -i mptlinux_4.22.00.00-2_all.deb

cd /usr/src/mptlinux-4.22.00.00
patch -p 0 < ~/mpt-4.22.00.00-2.patch

sudo dkms --sourcetree /usr/src/mptlinux-4.22.00.00 build -m mptlinux -v 4.22.00.00
sudo dkms --sourcetree /usr/src/mptlinux-4.22.00.00 install -m mptlinux -v 4.22.00.00
sudo dkms --sourcetree /usr/src/mptlinux-4.22.00.00 mkdeb -m mptlinux -v 4.22.00.00

The resulting deb is conveniently located in /var/lib/dkms/mptlinux/4.22.00.00/deb/mptlinux-dkms_4.22.00.00_all.deb

That deb contains the patched source code so once you have it it is only necessary to run four commands on systems you want the new driver on:

sudo aptitude install dkms
sudo dpkg -i mptlinux_4.22.00.00-2_all.deb
sudo dkms --sourcetree /usr/src/mptlinux-4.22.00.00 build -m mptlinux -v 4.22.00.00
sudo dkms --sourcetree /usr/src/mptlinux-4.22.00.00 install -m mptlinux -v 4.22.00.00

It is necessary to reboot after running "dkms ... install" in order to load the driver module.