Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 417245

Summary: app-emulation/kqemu-1.4.0_pre1-r1 fails to build for 3.4 kernel
Product: Gentoo Linux Reporter: Ian Abbott <ian>
Component: Current packagesAssignee: Luca Barbato <lu_zero>
Status: RESOLVED WONTFIX    
Severity: normal CC: cedric.godin, openhs
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Support 3.4 kernel
Support 3.4 kernel - CORRECTED

Description Ian Abbott 2012-05-23 10:11:51 UTC
The configure script and Makefile check for a 2.4 kernel by checking for "PATCHLEVEL = 4" in the kernel's Makefile, assuming the VERSION is 2. These checks fail for the 3.4 kernel leading to a build failure.

Reproducible: Always
Comment 1 Ian Abbott 2012-05-23 10:15:21 UTC
Created attachment 312795 [details, diff]
Support 3.4 kernel

This patch changes the configure script and Makefile to check the kernel's Makefile for VERSION = 2 and PATCHLEVEL = 4 to detect a 2.4 kernel rather than relying on PATCHLEVEL = 4 alone.

This allows kqemu-1.4.0_pre1 to be built for 3.4.x kernels.
Comment 2 Ian Abbott 2012-05-23 10:21:31 UTC
Created attachment 312797 [details, diff]
Support 3.4 kernel - CORRECTED

This is a corrected version of the previous patch.  The previous patch worked but one of the grep commands in the configure script was wrong.  This version of the patch fixes it.

From original version of patch:

This patch changes the configure script and Makefile to check the kernel's Makefile for VERSION = 2 and PATCHLEVEL = 4 to detect a 2.4 kernel rather than relying on PATCHLEVEL = 4 alone.

This allows kqemu-1.4.0_pre1 to be built for 3.4.x kernels.
Comment 3 Bill Kenworthy 2012-07-06 12:05:25 UTC
Nice patch, fixed problem for me.  If ebuild is reworked, needs to be made compatible with epatch_user to ease future user patching like this.

BillK
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2012-12-04 22:39:33 UTC
kqemu is masked for removal so this will not be fixed.