diff options
author | 2006-04-11 12:16:36 +0000 | |
---|---|---|
committer | 2006-04-11 12:16:36 +0000 | |
commit | 6c2057f5c40495ace2a9c699b50437191a1743d9 (patch) | |
tree | 81ceece3d76e45d8f811f98469302775165771ec | |
parent | Copied patch from 4.7.00 to 4.6.* ebuilds and closing bug #128045. (diff) | |
download | gentoo-2-6c2057f5c40495ace2a9c699b50437191a1743d9.tar.gz gentoo-2-6c2057f5c40495ace2a9c699b50437191a1743d9.tar.bz2 gentoo-2-6c2057f5c40495ace2a9c699b50437191a1743d9.zip |
Fix Linux 2.6.16 compatibility thanks to Carlos Silva and Patrick Fourniols in bug #127018
(Portage version: 2.1_pre7-r5)
-rw-r--r-- | media-video/qc-usb/files/qc-usb-0.6.3-linux-2.6.16.patch | 12 | ||||
-rw-r--r-- | media-video/qc-usb/qc-usb-0.6.3.ebuild | 12 |
2 files changed, 21 insertions, 3 deletions
diff --git a/media-video/qc-usb/files/qc-usb-0.6.3-linux-2.6.16.patch b/media-video/qc-usb/files/qc-usb-0.6.3-linux-2.6.16.patch new file mode 100644 index 000000000000..e91d99958b40 --- /dev/null +++ b/media-video/qc-usb/files/qc-usb-0.6.3-linux-2.6.16.patch @@ -0,0 +1,12 @@ +diff -Naur qc-usb-0.6.3.ori/qc-driver.c qc-usb-0.6.3/qc-driver.c +--- qc-usb-0.6.3.ori/qc-driver.c 2005-04-15 20:32:49.000000000 +0100 ++++ qc-usb-0.6.3/qc-driver.c 2006-03-27 13:02:14.000000000 +0100 +@@ -3027,7 +3027,7 @@ + name: qc_name, + probe: qc_usb_probe, + disconnect: qc_usb_disconnect, +-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) && LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,15) + owner: THIS_MODULE, + #endif + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0) diff --git a/media-video/qc-usb/qc-usb-0.6.3.ebuild b/media-video/qc-usb/qc-usb-0.6.3.ebuild index 267de00532dd..cd51cf7ff4db 100644 --- a/media-video/qc-usb/qc-usb-0.6.3.ebuild +++ b/media-video/qc-usb/qc-usb-0.6.3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/qc-usb/qc-usb-0.6.3.ebuild,v 1.4 2006/03/31 17:19:35 blubb Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/qc-usb/qc-usb-0.6.3.ebuild,v 1.5 2006/04/11 12:16:36 dsd Exp $ inherit linux-mod eutils multilib @@ -13,12 +13,18 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ~ppc ~amd64" -DEPEND="virtual/linux-sources" - pkg_setup() { ABI=${KERNEL_ABI} } +src_unpack() { + unpack ${A} + cd ${S} + + # Linux 2.6.16 compatibility, bug #127018 + epatch ${FILESDIR}/${P}-linux-2.6.16.patch +} + src_compile() { emake LINUX_DIR=${KERNEL_DIR} all || die } |