inputlircd does some code generation in gennames that parses /usr/include/linux/input.h to generate a header. With 4.4 this include had the information the script wants moved into /usr/include/linux/input-event-codes.h It still builds fine, it just doesn't work correctly since it ends up pumping unnamed codes into the lirc socket which would require manual set up if the application supported it.
Created attachment 432364 [details, diff] Patch to fix linux 4.4 This patch will allow the program to function correctly with >=linux-headers-4.4, but it breaks for older version, so I'm not entirely sure what the best solution is.
Hi! Thanks for the patch! This package currently has no maintainer. Would you be interested in becoming the proxy maintainer[0] for this? This would mean being responsible for bugs and version bumps, providing patches and ebuilds as required. In terms of how to handle this, the patch could be conditionally applied by using `best_version`[1] to get the version of linux-headers installed and only applying the patch if the version is greater or equal than 4.4. You can use `qgrep -H best_version` (from app-portage/portage-utils) to find other ebuilds that use it for examples on how this could be done. [0] https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers [1] https://devmanual.gentoo.org/function-reference/query-functions/ Cheers!
Created attachment 432584 [details] Fixed ebuild I'm not necessarily interested in taking on the responsibility, but here is a fixed ebuild that will only apply the patch for >=sys-kernel/linux-headers-4.4. I also figured a revision bump was in order since there are probably people with broken installs.
Thanks for your contribution! I made a few further changes to the ebuild - specifically updating it to EAPI6 and cleaning up a few other bits and pieces. commit dfddec86a5787c2dc3633a0468d681126181d6a2 Author: Sam Jorna <wraeth@gentoo.org> Date: Sat Apr 30 21:32:51 2016 +1000 app-misc/inputlircd: revbump, fix build with headers-4.4 Introduces conditional patch for building against linux-headers-4.4, fixing a runtime issue with using unknown commands for the lirc socket. Patch and initial ebuild submitted by user Michael Cook, ebuild updated to EAPI6. Gentoo-bug: 581410 Package-Manager: portage-2.2.28