Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 462170 - app-misc/lcdproc-0.5.6 missing imon driver
Summary: app-misc/lcdproc-0.5.6 missing imon driver
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
: 463638 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-03-18 09:12 UTC by kameleontti
Modified: 2013-04-25 14:32 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kameleontti 2013-03-18 09:12:23 UTC
When compiling lcdproc-0.5.6 with LCD_DEVICES="imon" the imon driver is not found in /usr/lib64/lcdproc/. When starting LCDd with Driver=imon log says:

LCDd: Could not open driver module /usr/lib64/lcdproc/imon.so: /usr/lib64/lcdproc/imon.so: cannot open shared object file: No such file or directory
LCDd: Driver [imon] binding failed
LCDd: Could not load driver imon
LCDd: There is no output driver
LCDd: Critical error while initializing, abort.



Reproducible: Always

Steps to Reproduce:
1. LCD_DEVICES="imon" emerge -1av =app-misc/lcdproc-0.5.6
2. Configure /etc/LCDd.conf to use Driver=imon
3. /etc/init.d/LCDd start
Actual Results:  
/etc/init.d/LCDd status says:
* status: crashed

Expected Results:  
/etc/init.d/LCDd status says:
* status: running

and IMON VFD shows data as configured
Comment 1 Ville Aakko 2013-03-28 14:33:05 UTC
Hi,

I too use this driver.

I suspect the error is in the ebuild? It somehow expands the use flags into the configure phase --enable-drives=xxx,yyy,zzz parameters. But I don't understand how the ebuild does this. 

Anyways, in 0.5.5 it seemed to work, in 0.5.6 the imon device is not build (but imonlcd is, althought I have not set it to build - but it was also built in 0.5.5), as I have set LCD_DEVICES="imon" in make.conf. Configuring manually allows the driver to be compiled and installed.
Comment 2 Torsten Kurbad 2013-04-09 20:28:20 UTC
I've got a similar problem: When I set LCD_DEVICES="imonlcd", I get the IOWarrier driver.

The reason is as follows: The ebuild's lookup mechanism for the (seemingly) correct driver to compile is done in a very "dirty" way.

Line 23 ff. lists the driver names that can be given in LCD_DEVICES (variable IUSE_LCD_DEVICES). Line 85 ff. then lists the "real" driver names in the variable DEVICE_DRIVERS. Those two variables are then matched index-wise to find the driver name according to the use flag (line 100 ff.)

If you compare both variables manually, you'll notice that "cfontz633" from IUSE_LCD_DEVICES doesn't have a matching counterpart in DEVICE_DRIVERS. Thus, the index of DEVICE_DRIVERS is off by 1 starting with the 4th entry.

To workaround the problem with "missing" imon, you could for now simply set LCD_DEVICES="icpa106", which will install the next driver in the list, "imon". You could even set LCD_DEVICES="icpa106 imon", so you aren't busted again once the problem with the ebuild is resolved.

Meanwhile, the maintainer can perhaps reach a more "stable" way for matching the driver names... ;-)

Best,
Torsten
Comment 3 Michael Weber (RETIRED) gentoo-dev 2013-04-18 20:34:56 UTC
*** Bug 463638 has been marked as a duplicate of this bug. ***
Comment 4 Michael Weber (RETIRED) gentoo-dev 2013-04-18 21:00:50 UTC
Thanks for the comment 2.

+  18 Apr 2013; Michael Weber <xmw@gentoo.org> -lcdproc-0.5.6.ebuild,
+  +lcdproc-0.5.6-r1.ebuild, metadata.xml:
+  Fix IUSE_LCD_DRIVERS alignment (bug 462170), add additional drivers, add IUSE
+  png and truetype.
+