# HG changeset patch # User Christophe Lincoln # Date 1249644373 -7200 # Node ID 1cf81b3606067ff1c5eea82a0902fc8f03f51f9f # Parent 5d2ad90121c8bbf5c4f9714e1ebefa7403b387f6 Fix: lirc use kernel version in the wok not running diff -r 5d2ad90121c8 -r 1cf81b360606 lirc/receipt --- a/lirc/receipt Fri Aug 07 13:16:45 2009 +0200 +++ b/lirc/receipt Fri Aug 07 13:26:13 2009 +0200 @@ -15,23 +15,24 @@ compile_rules() { cd $src - + # Up through at least lirc 0.8.5, lirc_gpio doesn't build with kernel 2.6.22+ echo "Disabling build of drivers/lirc_gpio due to kernel incompatibility" sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.in - + # lirc_parallel is not SMP safe echo "Disabling build of drivers/lirc_parallel due to SMP incompatibility" sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.in - + ./configure \ --prefix=/usr \ --with-x \ --with-driver=all \ --with-kerneldir=/usr/src/linux \ - --with-moduledir=/lib/modules/$(uname -r)/kernel/misc \ + --with-moduledir=/lib/modules/$(cat $WOK/linux/receipt | grep ^VERSION | \ + cut -d "\"" -f 2)/kernel/misc \ $CONFIGURE_ARGS && make && make DESTDIR=$src/_pkg install @@ -44,7 +45,7 @@ cp -a $_pkg/usr/lib/*.so* $fs/usr/lib cp -a $_pkg/usr/bin $fs/usr cp -a $_pkg/usr/sbin $fs/usr - + cp -a $_pkg/dev $fs cp -a $_pkg/lib $fs }