Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

bsd.port.mk USE_MOTIF LIB_DEPENDS problem

From: Andrew Dalgleish <openbsd(at)andrewdalgleish.dyndns.org>
Date: Thu Feb 27 2003 - 23:06:37 EST


If you install openmotif (which provides libXm.so.2.1), then make a package for lesstif, the binaries require libXm.so.2.1 but the package has a LIB_DEPENDS of lesstif (which only provides libXm.so.1.2).

Such packages won't install without lesstif and won't run without openmotif, but the two library packages conflict.

'make lib-depends-check' doesn't check the version numbers yet, so it doesn't detect this.

Example:

cd /usr/ports/x11/openmotif
make install

cd /usr/ports/audio/timidity
env FLAVOR=lesstif make package

# Check the binaries dependencies:

ldd w-*/fake*/usr/local/bin/* | grep libXm

# Check the package dependencies:

pkg_add -n /usr/ports/packages/i386/All/timidity-0.2i-lesstif.tgz

Do you need help?X

Solution:
Change the two lesstif LIB_DEPENDS in bsd.port.mk from LIB_DEPENDS+= Xm.1::x11/lesstif to
LIB_DEPENDS+= Xm.=1::x11/lesstif or
LIB_DEPENDS+= LessTif/Motif1.2/lib/libXm.1::x11/lesstif

Note: This only makes sure the lesstif package is installed. It does not make sure the right library is found by the linker. If the package conflict between lesstif/motif is fixed (and I think it can be), USE_MOTIF will also need to put lesstif at the front of the linker search path. Received on Thu Feb 27 23:13:45 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:43:41 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library