diff options
-rw-r--r-- | net-dialup/martian-modem/ChangeLog | 3 | ||||
-rw-r--r-- | net-dialup/martian-modem/files/martian-modem-kernel-3.8.patch | 22 | ||||
-rw-r--r-- | net-dialup/martian-modem/martian-modem-20100123-r1.ebuild (renamed from net-dialup/martian-modem/martian-modem-20100123.ebuild) | 5 |
3 files changed, 30 insertions, 0 deletions
diff --git a/net-dialup/martian-modem/ChangeLog b/net-dialup/martian-modem/ChangeLog index b4dbccd2..8bb33925 100644 --- a/net-dialup/martian-modem/ChangeLog +++ b/net-dialup/martian-modem/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 25 Feb 2012; Martin Väth <martin@mvath.de> + Fix compilation with kernel 3.8. Call epatch_user. + 19 Dec 2012; Martin Väth <martin@mvath.de> Add SLOT information diff --git a/net-dialup/martian-modem/files/martian-modem-kernel-3.8.patch b/net-dialup/martian-modem/files/martian-modem-kernel-3.8.patch new file mode 100644 index 00000000..eb138df8 --- /dev/null +++ b/net-dialup/martian-modem/files/martian-modem-kernel-3.8.patch @@ -0,0 +1,22 @@ +--- kmodule/martian.c ++++ kmodule/martian.c +@@ -46,6 +46,19 @@ + #include "../martian.h" + #include "marsio.h" + ++#ifndef __devinit ++#define __devinit ++#endif ++#ifndef __devexit ++#define __devexit ++#endif ++#ifndef __devexit_p ++#define __devexit_p ++#endif ++#ifndef __devinitdata ++#define __devinitdata ++#endif ++ + /***** Driver globals *****/ + + struct proc_dir_entry *martians_proc_dir = NULL; diff --git a/net-dialup/martian-modem/martian-modem-20100123.ebuild b/net-dialup/martian-modem/martian-modem-20100123-r1.ebuild index f9d50d79..e9761cd0 100644 --- a/net-dialup/martian-modem/martian-modem-20100123.ebuild +++ b/net-dialup/martian-modem/martian-modem-20100123-r1.ebuild @@ -52,6 +52,11 @@ src_prepare() { BUILD_TARGETS="all" BUILD_PARAMS="KERNEL_DIR='${KV_DIR}' SUBLEVEL='${KV_PATCH}'" + + if kernel_is ge 3 8 + then epatch "${FILESDIR}/${PN}-kernel-3.8.patch" + fi + epatch_user } src_install() { |