[nut-Bugs][311810] fix overlinking

nut-bugs at alioth.debian.org nut-bugs at alioth.debian.org
Tue Jul 7 12:44:04 UTC 2009


Bugs item #311810, was changed at 07/07/2009 10:31 by Arnaud Quette
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411542&aid=311810&group_id=30602

Status: Open
Priority: 1
Submitted By: Arnaud Quette (aquette)
Assigned to: Nobody (None)
Summary: fix overlinking 
Category: None
Group: None
Resolution: None


Initial Comment:
- reference: http://wiki.mandriva.com/en/Overlinking
- debian report:
dpkg-shlibdeps: warning: dependency on libz.so.1 could be avoided if "debian/nut-cgi/usr/lib/cgi-bin/nut/upsimage.cgi" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libX11.so.6 could be avoided if "debian/nut-cgi/usr/lib/cgi-bin/nut/upsimage.cgi" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libjpeg.so.62 could be avoided if "debian/nut-cgi/usr/lib/cgi-bin/nut/upsimage.cgi" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libpng12.so.0 could be avoided if "debian/nut-cgi/usr/lib/cgi-bin/nut/upsimage.cgi" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libm.so.6 could be avoided if "debian/nut-cgi/usr/lib/cgi-bin/nut/upsimage.cgi" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libfontconfig.so.1 could be avoided if "debian/nut-cgi/usr/lib/cgi-bin/nut/upsimage.cgi" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libfreetype.so.6 could be avoided if "debian/nut-cgi/usr/lib/cgi-bin/nut/upsimage.cgi" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libXpm.so.4 could be avoided if "debian/nut-cgi/usr/lib/cgi-bin/nut/upsimage.cgi" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libcrypto.so.0.9.8 could be avoided if "debian/nut-snmp/lib/nut/snmp-ups" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libgobject-2.0.so.0 could be avoided if "debian/nut-hal-drivers/usr/lib/hal/hald-addon-tripplite_usb debian/nut-hal-drivers/usr/lib/hal/hald-addon-usbhid-ups debian/nut-hal-drivers/usr/lib/hal/hald-addon-megatec_usb debian/nut-hal-drivers/usr/lib/hal/hald-addon-bcmxcp_usb" were not uselessly linked against it (they use none of its symbols).


----------------------------------------------------------------------

>Comment By: Arnaud Quette (aquette)
Date: 07/07/2009 14:44

Message:
you got the point:
- there is no hurry (remember, it's a low prio)
- there is a user need (but at the package level)
- there is a potential solution (--as-needed), but that should be evaluated (still at the packager level)

In conclusion, this might be part of the packaging.txt completion (advice).
all in all, this is now tracked, and that's the whole point.
thanks for the discussion Arjen ;-)

----------------------------------------------------------------------

Comment By: Arjen de Korte (adkorte-guest)
Date: 07/07/2009 13:50

Message:
In that case, someone has to talk to the folks from the gd, netsnmp and hal libraries respectively. I very much doubt that we (the NUT team) should spent effort on this however.

Like in the link you provided is stated, "it can be hard and time consuming to correctly fix and report upstream". I certainly am not going to spend much time on this.

If you are in a hurry to fix this, it might be worthwhile to checkout the '--as-needed' linker flag. As far as I know, adding this should also deal with overlinking (although I don't think *we* should be adding this flag, it should be left at the discretion of whoever is packaging NUT).

----------------------------------------------------------------------

Comment By: Arnaud Quette (aquette)
Date: 07/07/2009 13:16

Message:
this has to be dug, but we would need to act upstream+1 (ie on the project that generate this wrong dep, like hal for the hald_addons).
pkgconfig tells us this, but the project behind told this to pkgconfig. and the problem is here!
ignoring that is not prudent, but moreover can create issue (linking on a lib that create legal issue for example).
=> retag'ed low priority

----------------------------------------------------------------------

Comment By: Arjen de Korte (adkorte-guest)
Date: 07/07/2009 11:34

Message:
I'm afraid there is fairly little we can do about the above issues. It looks like we are linking these in because pkgconfig tells us to do so. I think ignoring that is not a prudent way to go.

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411542&aid=311810&group_id=30602



More information about the NUT-tracker mailing list