Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 458580

Summary: media-gfx/sane-backends-1.0.23 unnecessary linking to libnetsnmp.so
Product: Gentoo Linux Reporter: Dmitry A. Bakshaev <dab1818>
Component: Current packagesAssignee: Patrick Kursawe (RETIRED) <phosphan>
Status: RESOLVED FIXED    
Severity: normal Keywords: EBUILD, PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch for sane-backends-1.0.23-r1.ebuild
patch for sane-backends-1.0.23-r1.ebuild

Description Dmitry A. Bakshaev 2013-02-21 12:28:23 UTC
sane-backends configure has default option:
--with-snmp             enable SNMP support [default=yes]

if net-analyzer/net-snmp installed in system sane-backends linked to it, which may be not necessary.

Reproducible: Always

Steps to Reproduce:
1. emerge net-analyzer/net-snmp
2. emerge sane-backends
3. ldd /usr/bin/gamma4scanimage|grep libnetsnmp
Actual Results:  
ldd /usr/bin/gamma4scanimage|grep libnetsnmp
        libnetsnmp.so.30 => /usr/lib/libnetsnmp.so.30 (0xb7651000)


Expected Results:  
sane-backends must be linked only for needed libraries
Comment 1 Dmitry A. Bakshaev 2013-02-21 12:30:57 UTC
Created attachment 339562 [details, diff]
patch for sane-backends-1.0.23-r1.ebuild

this patch adds "snmp" use-flag to sane-backends-1.0.23-r1.ebuild for linking sane-backends against net-analyzer/net-snmp
Comment 2 Dmitry A. Bakshaev 2013-02-21 12:36:39 UTC
Created attachment 339566 [details, diff]
patch for sane-backends-1.0.23-r1.ebuild

this patch adds "snmp" use-flag to sane-backends-1.0.23-r1.ebuild for linking sane-backends against net-analyzer/net-snmp
Comment 3 Patrick Kursawe (RETIRED) gentoo-dev 2013-03-15 08:20:19 UTC
Thanks. In CVS.