Bug #1995

Updated by Sender Ghost over 1 year ago

The xcb library dependency was added for uppsrc/Draw package at on "1254":https://github.com/ultimatepp/mirror/commit/e5a9d0dd6f6aff87990d2a6d53e453e101896d38#diff-b63cd2ebd95b8597d87d678b54272970R27 svn revision. But xcb library dependency wasn't removed after "1436":https://github.com/ultimatepp/mirror/commit/ec8c9eed2c9eaebf53f5ad96d4cd781a115ea5c6#diff-b63cd2ebd95b8597d87d678b54272970L19 svn revision when 'library(BSD) "X11 Xau Xdmcp";' line was removed from uppsrc/Draw/Draw.upp file. The Xau and Xdmcp are library dependencies for xcb library:
<pre>
% ldd -a /usr/local/lib/libxcb.so | sed -e 's/ (.*)$//'
/usr/local/lib/libxcb.so:
libXau.so.6 => /usr/local/lib/libXau.so.6
libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6
libthr.so.3 => /lib/libthr.so.3
libc.so.7 => /lib/libc.so.7
/usr/local/lib/libXau.so.6:
libc.so.7 => /lib/libc.so.7
/usr/local/lib/libXdmcp.so.6:
libc.so.7 => /lib/libc.so.7
/lib/libthr.so.3:
libc.so.7 => /lib/libc.so.7
</pre>

The examples/AddressBook and reference/ConsoleDraw packages builds ok on FreeBSD, if remove "library(FREEBSD) xcb;" line from uppsrc/Draw/Draw.upp file.

For example, (filtered) ldd output for ConsoleDraw executable:
<pre>
% ldd -a ./ConsoleDraw | sed 's/ (.*)$// ; s|^/.*/||' | head -15
ConsoleDraw:
libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1
libfreetype.so.6 => /usr/local/lib/libfreetype.so.6
libexpat.so.1 => /usr/local/lib/libexpat.so.1
libpng16.so.16 => /usr/local/lib/libpng16.so.16
libthr.so.3 => /lib/libthr.so.3
librt.so.1 => /usr/lib/librt.so.1
libexecinfo.so.1 => /usr/lib/libexecinfo.so.1
libz.so.6 => /lib/libz.so.6
libc++.so.1 => /usr/lib/libc++.so.1
libcxxrt.so.1 => /lib/libcxxrt.so.1
libm.so.5 => /lib/libm.so.5
libgcc_s.so.1 => /lib/libgcc_s.so.1
libc.so.7 => /lib/libc.so.7
libfontconfig.so.1:
</pre>

There is xcb library dependency in "uppsrc/CtrlCore":https://github.com/ultimatepp/mirror/blob/20e10b326f4d867da916ac94a6ce0b2113722468/uppsrc/CtrlCore/CtrlCore.upp#L29 package for examples/AddressBook case.

Patch attached.

Back