[packages/lirc] - fix building with linux 3.5 - rel 54

baggins baggins at pld-linux.org
Tue Sep 25 22:55:59 CEST 2012


commit dbc525fac08cf9c2250148cb967cc55ad4f297ee
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Sep 25 22:55:33 2012 +0200

    - fix building with linux 3.5
    - rel 54

 lirc-kernel.patch | 42 ++++++++++++++++++++++++++++++++++++++++++
 lirc.spec         |  2 +-
 2 files changed, 43 insertions(+), 1 deletion(-)
---
diff --git a/lirc.spec b/lirc.spec
index e410310..58d1867 100644
--- a/lirc.spec
+++ b/lirc.spec
@@ -20,7 +20,7 @@
 %endif
 
 %define		pname	lirc
-%define		rel	53
+%define		rel	54
 
 #
 # main package
diff --git a/lirc-kernel.patch b/lirc-kernel.patch
index c151602..d1b55ab 100644
--- a/lirc-kernel.patch
+++ b/lirc-kernel.patch
@@ -63,3 +63,45 @@
  #include <linux/io.h>
  #include <asm/irq.h>
  #include <linux/fcntl.h>
+--- lirc-0.9.0/drivers/lirc_imon/lirc_imon.c~	2011-03-25 23:28:18.000000000 +0100
++++ lirc-0.9.0/drivers/lirc_imon/lirc_imon.c	2012-09-25 22:50:43.426536543 +0200
+@@ -61,6 +61,11 @@
+ 
+ #define BIT_DURATION	250	/* each bit received is 250us */
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 0)
++#define err(format, arg...)					\
++	printk(KERN_ERR KBUILD_MODNAME ": " format "\n", ##arg)
++#endif
++
+ /*** P R O T O T Y P E S ***/
+ 
+ /* USB Callback prototypes */
+--- lirc-0.9.0/drivers/lirc_sasem/lirc_sasem.c~	2011-03-25 23:28:18.000000000 +0100
++++ lirc-0.9.0/drivers/lirc_sasem/lirc_sasem.c	2012-09-25 22:51:20.226535245 +0200
+@@ -73,6 +73,11 @@
+ 
+ #define IOCTL_LCD_CONTRAST 1
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 0)
++#define err(format, arg...)					\
++	printk(KERN_ERR KBUILD_MODNAME ": " format "\n", ##arg)
++#endif
++
+ /*** P R O T O T Y P E S ***/
+ 
+ /* USB Callback prototypes */
+--- lirc-0.9.0/drivers/lirc_ttusbir/lirc_ttusbir.c~	2011-03-25 23:28:18.000000000 +0100
++++ lirc-0.9.0/drivers/lirc_ttusbir/lirc_ttusbir.c	2012-09-25 22:51:38.126534613 +0200
+@@ -58,6 +58,11 @@
+ #define DPRINTK(_x_, a...)
+ #endif
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 0)
++#define err(format, arg...)					\
++	printk(KERN_ERR KBUILD_MODNAME ": " format "\n", ##arg)
++#endif
++
+ /* function declarations */
+ static int probe(struct usb_interface *intf, const struct usb_device_id *id);
+ static void disconnect(struct usb_interface *intf);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lirc.git/commitdiff/dbc525fac08cf9c2250148cb967cc55ad4f297ee



More information about the pld-cvs-commit mailing list