Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231089 - sys-apps/sg3_utils ebuild not installing symlink to libsgutils.so
Summary: sys-apps/sg3_utils ebuild not installing symlink to libsgutils.so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-07 18:40 UTC by Anthony Mutiso
Modified: 2008-08-18 04:23 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info-20080707.txt,9.04 KB, text/plain)
2008-07-07 18:45 UTC, Anthony Mutiso
Details
media-libs/libipoddevice patch to recognize libsgutils2 (libipoddevice-sgutils2.patch,556 bytes, patch)
2008-07-08 05:50 UTC, Dani Church
Details | Diff
New media-libs/libipoddevice ebuild with patch (libipoddevice-0.5.3-r1.ebuild,1019 bytes, text/plain)
2008-07-08 05:51 UTC, Dani Church
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Mutiso 2008-07-07 18:40:28 UTC
On installing sys-apps/sg3_utils-1.26-r1 if you do a ldconfig -p|grep sgutils you will see that you get the following:-
        libsgutils2.so.2 (libc6,x86-64) => /usr/lib/libsgutils2.so.2
        libsgutils2.so (libc6,x86-64) => /usr/lib/libsgutils2.so
        libsgutils.so.1 (libc6,x86-64) => /usr/lib/libsgutils.so.1

Note the missing "libsgutils.so (libc6,x86-64) => /usr/lib/libsgutils.so" line. 

This only becomes a problem when later trying to emerge media-libs/libipoddevice-0.5.3 which end up producing a configure error:-

configure: error: Error! You need to have libsgutils.

because libsgutils.so was not found.

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-apps/sg3_utils-1.26-r1
2. emerge =media-libs/libipoddevice-0.5.3
3.

Actual Results:  
checking for sg_ll_inquiry in -lsgutils... no                                                                                                                         
configure: error: Error! You need to have libsgutils.                                                                                                                 
                                                                                                                                                                      
!!! Please attach the following file when seeking support:                                                                                                            
!!! /var/tmp/portage/media-libs/libipoddevice-0.5.3/work/libipoddevice-0.5.3/config.log                                                                               
 *                                                                                                                                                                    
 * ERROR: media-libs/libipoddevice-0.5.3 failed.                                                                                                                      
 * Call stack:                                                                                                                                                        
 *               ebuild.sh, line   49:  Called src_compile                                                                                                            
 *             environment, line  173:  Called econf                                                                                                                  
 *               ebuild.sh, line  526:  Called die                                                                                                                    
 * The specific snippet of code:                                                                                                                                      
 *                      die "econf failed"                                                                                                                            
 *  The die message:                                                                                                                                                  
 *   econf failed                                                                                                                                                     
 *                                                                                                                                                                    
 * If you need support, post the topmost build error, and the call stack if relevant.                                                                                 
 * A complete build log is located at '/var/log/portage/media-libs:libipoddevice-0.5.3:20080707-183243.log'.                                                          
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/libipoddevice-0.5.3/temp/environment'.                                                      
 *                                                                                                                                                                    


Expected Results:  
successful emerge.

Temporary work around
(cd /usr/lib64; ln -s libsgutils.so.1.0.0 libsgutils.so) && ldconfig && ldconfig -p|grep sgutils

emerge --info in followup attachment.
Comment 1 Anthony Mutiso 2008-07-07 18:45:52 UTC
Created attachment 159812 [details]
emerge --info
Comment 2 Dani Church 2008-07-08 05:46:04 UTC
Recommend changing summary to:
media-libs/libipoddevice does not compile against >=sys-apps/sg3_utils-1.26

A clarification: >=sys-apps/sg3_utils-1.26 will not install libsgutils.so* at all.  The libsgutils.so.1 mentioned in the description is a preserved lib from <sys-apps/sg3_utils-1.26.  From the sg3_utils changelog, version 1.26:

  - switch primary build to ubuntu environment, rename
    library to libsgutils2 to avoid clash

The library name for sg3_utils has changed to libsgutils2, but applications are still trying to link against libsgutils.  I recommend patching libipoddevice to recognize the new library name.
Comment 3 Dani Church 2008-07-08 05:50:55 UTC
Created attachment 159856 [details, diff]
media-libs/libipoddevice patch to recognize libsgutils2
Comment 4 Dani Church 2008-07-08 05:51:35 UTC
Created attachment 159857 [details]
New media-libs/libipoddevice ebuild with patch
Comment 5 Robert Grieve 2008-07-12 06:11:01 UTC
with regards to this bug, will someone please advise wether there be a case for creating a metabug about the library.

banshee with use=ipod 
ipodsleuth etc are also affected as at this date
the same workaround about symlinks applies here too. 
after that they compile fine
Comment 6 Mieszko Ślusarczyk 2008-08-08 00:05:02 UTC
Can someone create a patch/ebuild for podsleuth?
It's failing with the same error, preventing me to install banshee with ipod support..
Comment 7 Adam Wieckowski 2008-08-15 08:32:15 UTC
currently, jusst mask the newer versionb as a workaround
echo '>=sys-apps/sg3_utils-1.26' >> /etc/portage/package.mask
Comment 8 SpanKY gentoo-dev 2008-08-18 04:23:51 UTC
fixed with sg3_utils-1.27