Bug 131676 - KQemu-0.7.2 MODULE_PARM fix
Bug#: 131676 Product:  Gentoo Linux Version: 2006.0 Platform: All
OS/Version: Linux Status: CLOSED Severity: normal Priority: P2
Resolution: FIXED Assigned To: lu_zero@gentoo.org Reported By: nicolas@boichat.ch
Component: Ebuilds
URL: 
Summary: KQemu-0.7.2 MODULE_PARM fix
Keywords:  
Status Whiteboard: 
Opened: 2006-04-29 06:50 0000
Description:   Opened: 2006-04-29 06:50 0000
2.6.17-* dropped MODULE_PARM.

(Same problem as bug #128470 for kqemu 1.3.0)

------- Comment #1 From Nicolas Boichat 2006-04-29 06:51:40 0000 -------
Created an attachment (id=85765) [details]
kqemu-0.7.2-fix_module_parm.patch

Patch for kqemu-0.7.2.ebuild to apply this patch.

--- /usr/portage/app-emulation/kqemu/kqemu-0.7.2.ebuild 2006-04-20
00:05:34.000000000 +0200
+++ kqemu-0.7.2.ebuild  2006-04-29 15:34:01.000000000 +0200
@@ -39,6 +39,9 @@ src_unpack() {
        # The class_simple interfaces were removed in 2.6.13-rc1, leaving only
        # GPL symbols behind, which this module can't use.  Until there's a fix
        # from Fabrice, kqemu+udev no worky.
+
+       epatch "${FILESDIR}/${P}-fix_module_parm.patch"
+
        cd ${S}

        # Ensure mprotect restrictions are relaxed for emulator binaries

------- Comment #2 From Jakub Moc (RETIRED) 2006-04-29 07:19:09 0000 -------
Why don't you use 1.3.0 which is fixed?

------- Comment #3 From Luca Barbato 2006-05-06 00:46:06 0000 -------
I'm going to remove old qemu ebuilds soon, you need the old version for
particular reasons?

------- Comment #4 From Stefan Schweizer 2006-05-07 05:12:13 0000 -------
the new version is masked, that is why we have this problem.
Unmask it and all will be fine :)

------- Comment #5 From Stefan Schweizer 2006-05-08 02:53:52 0000 -------
sed -i 's:MODULE_PARM(\([^,]*\),"i");:module_param(\1, int, 0);:'
/var/tmp/portage/kqemu-1.3.0_pre7/work/kqemu-1.3.0pre7/kqemu-linux.c


I had to do that today, seems 1.3 is not fixed?

------- Comment #6 From Stefan Schweizer 2006-05-08 13:47:36 0000 -------
I fixed kqemu-0.7.2 and kqemu-1.3.0_pre7, thanks!

------- Comment #7 From Nicolas Boichat 2006-05-09 08:29:14 0000 -------
Works fine. Thanks.