[Pkg-lirc-maint] Bug#418041: Workaround for lirc-modules-source build on kernels >2.6.18
Matthew Exley
henley at guided-naafi.org
Mon Aug 6 23:36:19 UTC 2007
I was able to get around the well-documented problems with the package
by subverting the build process as follows:
> * Complete the module-assistant setup steps:
> sudo m-a update,prepare
> sudo rm /usr/src/lirc*deb
> sudo m-a clean lirc
> * Unpack /usr/src/lirc-modules.tar.gz
> * Edit /usr/src/modules/lirc/drivers/lirc_dev/lirc_dev.c
> o Replace the reference on line 35 from:
> #include <linux/config.h>
> o to:
> #include <linux/autoconf.h>
> * Edit :/usr/src/modules/lirc/drivers/lirc_mceusb2/lirc_mceusb2.c
> NOTE: Substitute with the hardware module you're using!
> o Replace the reference on line 35 from:
> #include <linux/config.h>
> * to:
> #include <linux/autoconf.h>
> * Change all instances of the string SLAB_ATOMIC to GFP_ATOMIC in
this file
> * cd back to /usr/src
> * Re-pack the modules into lirc-modules.tar.gz:
> tar zcvf lirc-modules.tar.gz modules/lirc
> * And now complete the build:
> m-a a-i lirc
> depmod -a
..Very ugly I know, but it does workaround to let you build; I've tested
on kernel 2.6.22-1-k7 successfully
I hope someone finds this useful and I'm not just spamming the bugtracker.
--
Matthew Exley henley at guided-naafi.org
More information about the Pkg-lirc-maint
mailing list