Summary: | app-misc/lirc-0.8.4: Some drivers (eg lirc_imon) will not build against kernel-2.6.29+ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dale Pontius <depontius> |
Component: | Current packages | Assignee: | Television related Applications in Gentoo's Portage <media-tv> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aeriksson, gregorcy |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 264722 | ||
Attachments: |
Suggested patch for making lirc 0.8.4(a) compile for kernel 2.6.29+
An updated ebuild for applying the kernel-2.6.29+ patch |
Description
Dale Pontius
2009-04-08 13:10:36 UTC
I just double-checked the rest of lirc-0.8.4 and find that "info" is used in lirc_atiusb, lirc_cmdir, lirc_gpio, lirc_imon, lirc_mceusb, lirc_sasem and "warn" is used in lirc_imon and lirc_sasem. This problem isn't unique to lirc_imon. I've fielded one question in gentoo forums from someone having trouble with lirc_mceusb. I know this is probably a newby question but what do I run the short script against? I looked at the ebuild but didn't see any INFO or WARN First thing, that's obviously a sed script, not shell or any such. You apply it against the source code of the lirc driver you wish to fix. In my case, I went into "/var/tmp/portage/app-misc/lirc-0.8.4/work.../lirc_imon" and did "sed -f (my sed script) lirc_imon.c >tempfile && mv tempfile lirc_imon.c". If you're doing this with one of the other drivers, you obviously need to be in another place, working with another file. Created attachment 191116 [details, diff]
Suggested patch for making lirc 0.8.4(a) compile for kernel 2.6.29+
This is a temporary patch I checked for the imon driver - should work for the other drivers that used the info/warn/err macros from usb.h. It is temporary because hopefully future lirc versions won't use these macros at all.
Created attachment 191117 [details]
An updated ebuild for applying the kernel-2.6.29+ patch
The ebuild I use in a local overlay for building lirc with the kernel-2.6.29+ patch, if anyone finds it useful...
ping... 2.6.29 is planned to go stable on 23rd may, would be nice to see this fixed it IS now stable. And yes, imon_pad does NOT compile. Will try it with the attached files now... Thanks! works with imon_pad, thanks once more. I am happily running lirc-0.8.7 unmasked, and was running lirc-0.8.6 prior to that. I think this problem was solved by new releases. Am I the one to fix/close this problem, or is that the developer's job? Should I call it "FIXED" since the newer releases fix the problem and have been promoted to stable? |