Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 325721 - app-misc/lirc-0.8.5: fails to compile with kernel 2.6.33
Summary: app-misc/lirc-0.8.5: fails to compile with kernel 2.6.33
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-26 16:32 UTC by Jesper Saxtorph
Modified: 2012-07-19 19:07 UTC (History)
3 users (show)

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


Attachments
Upstream patch to fix compile against recent kernel (lirc-0.8.5-kernel-2.6.33.patch,6.99 KB, patch)
2010-06-26 16:34 UTC, Jesper Saxtorph
Details | Diff
Working ebuild (lirc-0.8.5-r1.ebuild,9.38 KB, text/plain)
2010-06-26 16:35 UTC, Jesper Saxtorph
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesper Saxtorph 2010-06-26 16:32:39 UTC
After emerging, compiled and installed the newly stabilized kernel gentoo-sources-2.6.33-r2, the latest stable lirc fails to compile.

After some research, I made it work with upstream patch + patching similar to a suggestion for lirc 0.8.6.in Bug 301321

The upstream patch can be found at:
http://lirc.cvs.sourceforge.net/viewvc/lirc/lirc/drivers/lirc_dev/lirc_dev.h?hideattic=1&r1=text&r2=1.37%3Alirc-0_8_6&tr1=1.38&tr2=1.1&view=patch
I have added it as lirc-0.8.5-kernel-2.6.33.patch


Reproducible: Always

Steps to Reproduce:
Comment 1 Jesper Saxtorph 2010-06-26 16:34:09 UTC
Created attachment 236645 [details, diff]
Upstream patch to fix compile against recent kernel
Comment 2 Jesper Saxtorph 2010-06-26 16:35:06 UTC
Created attachment 236647 [details]
Working ebuild
Comment 3 Jesper Saxtorph 2010-06-26 16:36:24 UTC
Comment on attachment 236647 [details]
Working ebuild

diff /usr/portage/app-misc/lirc/lirc-0.8.5.ebuild lirc-0.8.5-r1.ebuild 
252a253,258
> 	if kernel_is ge 2 6 33 ; then
> 		# Apply kernel 2.6.33 patch
> 		epatch "${FILESDIR}"/lirc-0.8.5-kernel-2.6.33.patch
> 		find . -name *.c -print | xargs sed -i "s|#include <linux/autoconf.h>|#include <generated/autoconf.h>|"
> 	fi
>
Comment 4 Vicente Olivert Riera (RETIRED) gentoo-dev 2010-07-24 08:39:12 UTC
Maybe your problem is related to this -> http://bugs.gentoo.org/show_bug.cgi?id=312691#c4
Comment 5 Paul 2010-10-21 10:11:55 UTC
Works fine on amd64 and 2.6.34-r12 kernel.
Please add ebuild and patch to portage.
Comment 6 Ian Stakenvicius (RETIRED) gentoo-dev 2012-07-19 19:07:30 UTC
Patch looks like it was applied upstream to 0.8.7 ..  Closing since that version is current stable.