Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417245 - app-emulation/kqemu-1.4.0_pre1-r1 fails to build for 3.4 kernel
Summary: app-emulation/kqemu-1.4.0_pre1-r1 fails to build for 3.4 kernel
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-05-23 10:11 UTC by Ian Abbott
Modified: 2012-12-04 22:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Support 3.4 kernel (kqemu-1.4.0_pre1-kernel-3.4.patch,648 bytes, patch)
2012-05-23 10:15 UTC, Ian Abbott
Details | Diff
Support 3.4 kernel - CORRECTED (kqemu-1.4.0_pre1-kernel-3.4.patch,674 bytes, patch)
2012-05-23 10:21 UTC, Ian Abbott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.