From d961092752a70e7f93a8995b24361cda9d41f42c Mon Sep 17 00:00:00 2001 From: Ian Stakenvicius Date: Wed, 24 Oct 2012 18:39:12 +0000 Subject: fixed asm/system.h migration issue caused by 3.3+ kernels, bug 439538 (Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED) --- app-misc/lirc/ChangeLog | 6 ++- .../lirc/files/lirc-0.9.0-kernel-3.3.0-fixes.patch | 50 ++++++++++++++++++++++ app-misc/lirc/lirc-0.9.0-r2.ebuild | 4 +- 3 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 app-misc/lirc/files/lirc-0.9.0-kernel-3.3.0-fixes.patch (limited to 'app-misc/lirc') diff --git a/app-misc/lirc/ChangeLog b/app-misc/lirc/ChangeLog index 1f387e8a828a..31afb03c97be 100644 --- a/app-misc/lirc/ChangeLog +++ b/app-misc/lirc/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-misc/lirc # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.232 2012/09/18 18:06:42 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.233 2012/10/24 18:39:12 axs Exp $ + + 24 Oct 2012; Ian Stakenvicius lirc-0.9.0-r2.ebuild, + +files/lirc-0.9.0-kernel-3.3.0-fixes.patch: + fixed asm/system.h migration issue caused by 3.3+ kernels, bug 439538 18 Sep 2012; Pacho Ramos -files/lirc-0.8.6-send-evsyn.diff, -lirc-0.8.5.ebuild, -lirc-0.8.7_pre1.ebuild: diff --git a/app-misc/lirc/files/lirc-0.9.0-kernel-3.3.0-fixes.patch b/app-misc/lirc/files/lirc-0.9.0-kernel-3.3.0-fixes.patch new file mode 100644 index 000000000000..9b7d3ef1f539 --- /dev/null +++ b/app-misc/lirc/files/lirc-0.9.0-kernel-3.3.0-fixes.patch @@ -0,0 +1,50 @@ +diff -ur drivers/lirc_serial/lirc_serial.c drivers.new/lirc_serial/lirc_serial.c +--- drivers/lirc_serial/lirc_serial.c 2011-03-25 18:28:18.000000000 -0400 ++++ drivers.new/lirc_serial/lirc_serial.c 2012-10-24 14:32:14.000000000 -0400 +@@ -66,7 +66,12 @@ + #include + #include + ++#include "drivers/kcompat.h" ++#if LINUX_VERSION_CODE > KERNEL_VERSION(3, 3, 0) ++#include ++#else + #include ++#endif + #include + #include + #include +@@ -80,7 +85,6 @@ + #define UART_IE_IXP42X_UUE 0x40 /* IXP42X UART Unit enable */ + #define UART_IE_IXP42X_RTOIE 0x10 /* IXP42X Receiver Data Timeout int.enable */ + +-#include "drivers/kcompat.h" + #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35) + #include + #include +diff -ur drivers/lirc_sir/lirc_sir.c drivers.new/lirc_sir/lirc_sir.c +--- drivers/lirc_sir/lirc_sir.c 2011-03-25 18:28:18.000000000 -0400 ++++ drivers.new/lirc_sir/lirc_sir.c 2012-10-24 14:32:46.000000000 -0400 +@@ -59,7 +59,14 @@ + #include + #include + #include ++ ++#include "drivers/kcompat.h" ++#if LINUX_VERSION_CODE > KERNEL_VERSION(3, 3, 0) ++#include ++#else + #include ++#endif ++ + #include + #include + #include +@@ -74,7 +81,6 @@ + + #include + +-#include "drivers/kcompat.h" + #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35) + #include + #include diff --git a/app-misc/lirc/lirc-0.9.0-r2.ebuild b/app-misc/lirc/lirc-0.9.0-r2.ebuild index 892217878dea..9bcc0eafc881 100644 --- a/app-misc/lirc/lirc-0.9.0-r2.ebuild +++ b/app-misc/lirc/lirc-0.9.0-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.9.0-r2.ebuild,v 1.3 2012/09/15 15:08:36 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.9.0-r2.ebuild,v 1.4 2012/10/24 18:39:12 axs Exp $ EAPI=4 @@ -296,6 +296,8 @@ src_prepare() { # Slightly massaged upstream patch to fix kfifo issues >=2.6.38 # for bug 377033 epatch "${FILESDIR}"/${P}-atiusb_kfifo.patch + # Apply fixes for kernel-3.3 and above (bug 439538) + epatch "${FILESDIR}"/${P}-kernel-3.3.0-fixes.patch # Do not build drivers from the top-level Makefile sed -i -e 's:\(SUBDIRS =\) drivers\(.*\):\1\2:' Makefile.am -- cgit v1.2.3-65-gdbad