Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 387933 - sys-block/megacli-8.02.16 version bump
Summary: sys-block/megacli-8.02.16 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Wolfram Schlich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-20 21:03 UTC by Tim Harder
Modified: 2011-10-27 23:14 UTC (History)
2 users (show)

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


Attachments
Ebuild updates for megacli-8.02.16 (megacli-8.02.16.diff,2.26 KB, patch)
2011-10-20 21:03 UTC, Tim Harder
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Harder gentoo-dev 2011-10-20 21:03:42 UTC
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).
Comment 1 Christian Affolter 2011-10-27 12:52:59 UTC
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?)
Comment 2 Tim Harder gentoo-dev 2011-10-27 18:22:05 UTC
(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.
Comment 3 Tim Harder gentoo-dev 2011-10-27 18:43:43 UTC
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.
Comment 4 Tim Harder gentoo-dev 2011-10-27 23:14:22 UTC
Bumped in CVS using a wrapper script to set LD_LIBRARY_PATH so libsysfs.so.2.0.2 gets loaded properly.