GNOME Bugzilla – Bug 530645
Don't use /etc/lsb-release
Last modified: 2008-06-30 14:28:19 UTC
+++ This bug was initially created as a clone of Bug #530359 +++ We should add some detection of the include support in the configure script instead, and do away with that huge dependency (the LSB support has a lot of dependencies, which makes it inappropriate for a LiveCD for example). My latest include patch is pending merge upstream.
I don't understand what LSB has to do with lirc's include support.
@Murray: g-l-p uses /etc/lsb-release to figure out wheither if /etc/lirc/lircd.conf should be overwritten, or if just an include statement should be added. @Bastien: "huge dependency"? /etc/lsb-release is less then 100 bytes usually and AFAIK its the only reliable method to identify a Linux distribution. Yes, probably a configure check would be better, but I have absolutely no idea how such a check would look like. lircd doesn't seem to have a dry-run mode for only checking a configuration file. Also checking the version string isn't reliable.
Ah, so we just use lsb-release to detect the distro name and version. A --enable-lirc-includes configure option (defaulting to checking lsb-release) seems like the only realistic solution for now.
The package that contains /etc/lsb-release in Fedora will drag all the dependencies necessary for LSB support, which is a lot of pretty useless stuff. Removing the dependency altogether and requiring a version of lirc with the patch seems like a better option to me. I can understand the check if the patch wasn't going to get upstream, but I updated the patch just for that reason, so we wouldn't have to check this.
I guess we worry that there would be no way to know that lirc lacked support for gnome-lirc-properties until run-time, and it would be difficult to make sense of the problem at that time.
$ lircd --version lircd 0.8.3pre2 We can use that at run-time, or at configure-time. It puts the onus on package maintainers to make sure they depend on a new enough version of lircd.
Yeah, when it gets into lirc.
LSB dependency has been removed with fixing bug 532606.