[kde-freebsd] editors/koffice-kde3 is missing liblcms.la

Stanislav Sedov stas at FreeBSD.org
Sun Apr 19 18:55:21 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 19 Apr 2009 09:47:12 -0500
Scot Hetzel <swhetzel at gmail.com> mentioned:

> > On Tuesday 14 April 2009, Stanislav Sedov wrote:
> > > On Tue, 14 Apr 2009 14:00:19 +0400
> > >
> > > Max Brazhnikov <makc at freebsd.org> mentioned:
> > > > koffice (and most if not all of kde3 ports) uses both shared and static
> > > > libraries. And it seems kde3 is not supposed to build without static
> > > > libs, so I think lcms should be reverted.
> > >
> > > Then it is clearly a bug in kde build system and should be fixed there and
> > > submitted upstream. Furthermore, it is a security maintaince problem.
> > KDE doesn't need static library, and don't use static library when a dynamic
> > library is available. And .la isn't a static library, but a libtool archive
> > which is needed by libtool to properly link. In KDE4/KOffice2, libtool isn't
> > used and therfore the problem has been "fixed", but for KDE3/KOffice 1.x, the
> > only solution is to use the liblcms.la file (which in itself doesn't cause a
> > security maitenance).
> >
> > --
> > Cyrille Berger
> 
> I can confirm that reverting the change that disables the install of
> liblcms.a and liblcms.la and rebuilding the graphics/lcms port allows
> editors/koffice-kde3 to install.
> 
> ldd on PREFIX/lib/kde3/libkritagmagick{export,import}.so shows that
> editors/koffice-kde3 is using the shared liblcms.so.1 library.
> 
> I have submitted PR 133856.  The patch uses --enable-static=no to
> disable the install of the static library, and removes the change from
> the ports Makefile that disabled the install of the static library and
> liblcms.la file.
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=133856
> 

.la files is not used on FreeBSD to link applications. The problem
you're expireincing is probably because of stale .la files in
/usr/local/lib that contain references to lcms.la. Either reinstall
all ports that depend on lcms first (I suppose, it's ImageMagick for
you), or grep /usr/local/lib for lcms.la and strip references by hand.

- -- 
Stanislav Sedov
ST4096-RIPE
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAknrV38ACgkQK/VZk+smlYEDIQCfT65nrwI+1Yu9lUY4OLvRZQNC
l2YAn3texq+iK0fMgHLa+aMIUTlLGe73
=Do1e
-----END PGP SIGNATURE-----

!DSPAM:49eb5781967001220069426!




More information about the kde-freebsd mailing list