Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lirc-0.9.0-r5 with lirc_serial and kernel 4.1.12 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1392

PostPosted: Sun Dec 13, 2015 5:19 pm    Post subject: lirc-0.9.0-r5 with lirc_serial and kernel 4.1.12 [SOLVED] Reply with quote

Just a heads up for anyone using lirc_serial: When I upgraded to sys-kernel/gentoo-sources-4.1.12 today, my MythTV frontend compile of lirc-0.9.0-r5 failed with errors starting here:

Code:
In file included from /var/tmp/portage/app-misc/lirc-0.9.0-r5/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.c:69:0:
/var/tmp/portage/app-misc/lirc-0.9.0-r5/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.c: In function ‘set_use_inc’:
/var/tmp/portage/app-misc/lirc-0.9.0-r5/work/lirc-0.9.0/drivers/lirc_serial/../../drivers/kcompat.h:117:23: error: ‘SA_INTERRUPT’ undeclared (first us
e in this function)
 #define IRQF_DISABLED SA_INTERRUPT


I was able to get it patched where it compiled and seems to be working fine. I've logged a bug, which also describes previous patches I'd already had:

https://bugs.gentoo.org/show_bug.cgi?id=568180

As noted there, the patch was based on a version of lirc_serial.c that may in fact be from a much newer version of lirc, though I'm not sure. I see that there's also a bug out there requesting a version bump to 0.9.2:

https://bugs.gentoo.org/show_bug.cgi?id=515902

I have no idea if that would address this or not. I see that's been there quite some time. I'm seeing a lot of mention of systemd around newer versions of lirc. I sure hope that BS doesn't somehow start becoming difficult to avoid with lirc.

In any case, those patches work for me running on x86.

Tom


Last edited by tld on Sat Dec 26, 2015 3:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1392

PostPosted: Sat Dec 26, 2015 3:52 pm    Post subject: Reply with quote

As I noted in that bug, I ended up going with the lirc_serial stuff all compiled directly into my kernel and an overlay ebuild of version lirc-0.9.2a, where LIRC_DEVICES isn't used at all. It's really nice actually...no more re-compiling lirc after kernel upgrades and most importantly no more compile issues due to kernel source incompatibilities.

My guess is that getting this working with usb IR receivers might be a little more complex. The lirc_serial was surprisingly easy to get working.
Back to top
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1392

PostPosted: Sun Apr 17, 2016 7:53 pm    Post subject: Reply with quote

Just an additional note on this for anyone who tries anything like this:

While this has worked fine for me, I did have one odd thing on my MythTV frontend: While lirc worked fine in MythTV, for reasons I've yet to figure out, LIRC didn't work at all in xine-ui unless I expressly set the LIRC_SOCKET_PATH environment variable, even though I was using the default (/var/run/lirc/lircd) and that was linked at /dev/lircd. Really screwed. I still don't know if that was related to xine-ui or the lirc libraries in 0.9.2a. Since I start my frontend directly via /etc/inittab, I added this:

Code:
export LIRC_SOCKET_PATH=/var/run/lirc/lircd


...to the mythtv users ~/.xinitrc file.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum