Created attachment 290389 [details, diff] Ebuild updates for megacli-8.02.16 A new release is available. The attached patch tries to address bugs #377701 and #382839 as well by rebundling the libsysfs library since the sys-fs/sysfsutils upstream is dead and unmaintained (bug #377673).
Thanks a lot for the patch. Installing libsysfs.so.2.0.2 into /opt/megacli prevents the megacli binary from working if it's not called from within this directory: cd / megacli -AdpAllInfo -aAl OSSpecificInitialize: Failed to load libsysfs.so.2.0.2 Please ensure that libsfs is present in the system. The dependent library libsysfs.so.2.0.1 not available. Please contact LSI for distribution of the package Exit Code: 0x00 Symlinking libsysfs to /lib (ln -s /opt/megacli/libsysfs.so.2.0.2 /lib/.) circumvents the problem, however I don't know if this is the proper gentoo way of fixing this (maybe it should go to /opt/lib or /opt/megacli/lib with an additional entry in /etc/ld.so.conf respectively /etc/env.d?)
(In reply to comment #1) > Thanks a lot for the patch. > > Installing libsysfs.so.2.0.2 into /opt/megacli prevents the megacli binary from > working if it's not called from within this directory: I guess only the 32 bit binary sets the rpath to the current directory which should make it work, but the 64 bit binary lacks that.
I'll just re-add the support for chrpath to strip the rpath setting from the binary and push a file into /etc/env.d to specify the correct LDPATH setting.
Bumped in CVS using a wrapper script to set LD_LIBRARY_PATH so libsysfs.so.2.0.2 gets loaded properly.