Bug 158581 - x11-wm/icewm-1.2.29 ebuild has needless dependencies on libXau, libXdmcp, libXt
Bug#: 158581 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Other Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: beandog@gentoo.org Reported By: s.geschwandtner@gmx.de
Component: Ebuilds
URL: 
Summary: x11-wm/icewm-1.2.29 ebuild has needless dependencies on libXau, libXdmcp, libXt
Keywords:  
Status Whiteboard: 
Opened: 2006-12-19 13:08 0000
Description:   Opened: 2006-12-19 13:08 0000
IceWM 1.2.29 does not use libXau or libXdmcp; these are only needed by libX11,
upon which IceWM depends. They are not even mentioned anywhere in the source
code. :-)

I guess the same is true for older versions, but I have not checked them.

------- Comment #1 From Sascha Geschwandtner 2006-12-19 13:19:56 0000 -------
I just noticed that libXt is not needed, either. There is only some junk in the
configure script which seems to have been automatically added by autoconf and
does not really serve any useful purpose - at least on my system. :-)

------- Comment #2 From Steve Dibb 2006-12-31 09:30:12 0000 -------
(In reply to comment #1)
> I just noticed that libXt is not needed, either. There is only some junk in the
> configure script which seems to have been automatically added by autoconf and
> does not really serve any useful purpose - at least on my system. :-)
> 

It's definately using them on my system

$ ldd /usr/bin/icewm | grep X  
        libX11.so.6 => /usr/lib/libX11.so.6 (0x00002af75e778000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00002af75e880000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00002af75e983000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0x00002af75ea8c000)
        libXft.so.2 => /usr/lib/libXft.so.2 (0x00002af75eb9e000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x00002af75fe06000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00002af75ff0a000)

------- Comment #3 From Sascha Geschwandtner 2006-12-31 09:56:01 0000 -------
(In reply to comment #2)

> It's definately using them on my system
> 
> $ ldd /usr/bin/icewm | grep X  
[...]
This is irrelevant, as it show all libraries to load, not the ones icewm
actually links to - including those needed by the libraries icewm itself needs.
So, e.g. libXdmcp is loaded because libX11 needs it, not icewm itself.

$ readelf -d /usr/bin/icewm | grep library
 0x00000001 (NEEDED)                     Shared library: [libSM.so.6]
 0x00000001 (NEEDED)                     Shared library: [libICE.so.6]
 0x00000001 (NEEDED)                     Shared library: [libX11.so.6]
 0x00000001 (NEEDED)                     Shared library: [libXrandr.so.2]
 0x00000001 (NEEDED)                     Shared library: [libXext.so.6]
 0x00000001 (NEEDED)                     Shared library: [libXft.so.2]
 0x00000001 (NEEDED)                     Shared library: [libfontconfig.so.1]
 0x00000001 (NEEDED)                     Shared library: [libImlib.so.1]
 0x00000001 (NEEDED)                     Shared library: [libstdc++.so.6]
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]

------- Comment #4 From Steve Dibb 2007-01-25 05:37:31 0000 -------
fixed in cvs, thanks