Bug 50076 - fontconfig-2.2.2: libfontconfig.la contains incorrect information
Bug#: 50076 Product:  Gentoo Linux Version: 2004.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: major Priority: P2
Resolution: DUPLICATE Assigned To: fonts@gentoo.org Reported By: mathfox@xs4all.nl
Component: Library
URL: 
Summary: fontconfig-2.2.2: libfontconfig.la contains incorrect information
Keywords:  
Status Whiteboard: 
Opened: 2004-05-05 00:30 0000
Description:   Opened: 2004-05-05 00:30 0000
The file /usr/lib/libfontconfig.la contains the following lines:

# Directory that this library needs to be installed in:
libdir='/var/tmp/portage/fontconfig-2.2.2/image//usr/lib'

This causes problems later on when emerging gnome and kde.

Reproducible: Always
Steps to Reproduce:
emerge fontconfig

emerge gnome; emerge kde
Actual Results:  
libtool: link: warning: `/usr/lib/libfontconfig.la' seems to be moved
libtool: link: warning: `/usr/lib/libfontconfig.la' seems to be moved
libtool: link: warning: `/usr/lib/libfontconfig.la' seems to be moved
libtool: link: warning: `/usr/lib/libfontconfig.la' seems to be moved
libtool: link: warning: `/usr/lib/libfontconfig.la' seems to be moved
libtool: link: warning: `/usr/lib/libfontconfig.la' seems to be moved
libtool: link: warning: library `/usr/lib/libfontconfig.la' was moved.
grep: /var/tmp/portage/fontconfig-2.2.2/image//usr/lib/libfontconfig.la: No such
file or directory
/bin/sed: can't read
/var/tmp/portage/fontconfig-2.2.2/image//usr/lib/libfontconfig.la: No such file
or directory
libtool: link:
`/var/tmp/portage/fontconfig-2.2.2/image//usr/lib/libfontconfig.la' is not a
valid libtool archive


Expected Results:  
build without errors.

------- Comment #1 From Christian Axelsson 2004-05-06 05:05:14 0000 -------
This makes libgnomeprintui-2.6.1 go bad.
See this comment for more info: http://bugs.gentoo.org/show_bug.cgi?id=49046#c6

------- Comment #2 From foser (RETIRED) 2004-05-06 06:00:43 0000 -------
thats another bug, describing another problem.

rebuild your fontconfig, it is probably not reproducable.

Is this a fresh install or something ? 

------- Comment #3 From Peter `MathFox' Roozemaal 2004-05-06 06:19:39 0000 -------
It was a fresh install. Rebuilding fontconfig (emerging again) didn't solve the
problem; downgrading to an older version and upgrading afterwards worked to fix
it.

------- Comment #4 From foser (RETIRED) 2004-05-06 07:05:41 0000 -------
fresh install of what stage/livecd etc ?

------- Comment #5 From Peter `MathFox' Roozemaal 2004-05-06 07:36:20 0000 -------
I did a "stage3" install from install-amd64-minimal-2004.1.iso and did the rest
of the installation over the internet. I built some X applications before I
built the X server.

------- Comment #6 From Martin Eisenhardt 2004-06-16 07:55:37 0000 -------
Same problem over here. I did a clean and fresh stage 1 install on a P3 system,
and I got the same error messages.

I tried the workaround suggested by a previous post (downgrading and upgrading)
- but guess what? It did not work.

Please, see to it that this bug is resolved as it blocks the compilation of
KDE, and this is something we don't want to see in Gentoo.

Thanks in advance!

Martin

------- Comment #7 From Martin Eisenhardt 2004-06-16 07:57:20 0000 -------
Same problem over here. I did a clean and fresh stage 1 install on a P3 system,
and I got the same error messages.

I tried the workaround suggested by a previous post (downgrading and upgrading)
- but guess what? It did not work.

Please, see to it that this bug is resolved as it blocks the compilation of
KDE, and this is something we don't want to see in Gentoo.

Thanks in advance!

------- Comment #8 From Peter `MathFox' Roozemaal 2004-06-17 03:19:54 0000 -------
On request of Martin Eisenhardt I upped the severety of this bug to critical
and changed the architectures to "all". Martin is unable to install KDE due to
this bug.

------- Comment #9 From foser (RETIRED) 2004-06-17 09:47:51 0000 -------
i bet it's some version of libtool messing up or something...

try editing the ebuild .. replace the einstall part with 'make DESTDIR=${D} install || die', see if that solves the incorrect paths.

------- Comment #10 From Martin Eisenhardt 2004-06-18 03:00:19 0000 -------
Hi foser,

your tip resolved the bug just a little bit; fontconfig does compile and install now, but "emerge kde" stops while emerging kdelibs with the following statement:

<snip>

/bin/sh ../../libtool --silent --mode=link --tag=CXX g++  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wco
nversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O3 -mcpu=pentium3 -mfpmath=sse -mmmx -msse -pipe -fomit-frame-po
inter -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_CO
MPAT -DQT_NO_TRANSLATION    -o libartskde.la -rpath /usr/kde/3.2/lib -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.2/lib  -no-undefined -Wl,--no-undefined -W
l,--allow-shlib-undefined -version-info 3:0:2 artskde.lo kioinputstream_impl.lo kplayobject.lo kplayobjectfactory.lo kartsfloatwatch.lo kartsdispatcher.lo ka
udiorecordstream.lo kaudioplaystream.lo kartsserver.lo kdatarequest_impl.lo kaudioconverter.lo kvideowidget.lo kplayobjectcreator.lo kaudiomanagerplay.lo ../
../kio/libkio.la -lqtmcop -lsoundserver_idl
grep: /var/tmp/portage/fontconfig-2.2.2/image//usr/lib/libfontconfig.la: No such file or directory
/bin/sed: can't read /var/tmp/portage/fontconfig-2.2.2/image//usr/lib/libfontconfig.la: No such file or directory
libtool: link: `/var/tmp/portage/fontconfig-2.2.2/image//usr/lib/libfontconfig.la' is not a valid libtool archive
make[3]: *** [libartskde.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.2.2-r1/work/kdelibs-3.2.2/arts/kde'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.2.2-r1/work/kdelibs-3.2.2/arts'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.2.2-r1/work/kdelibs-3.2.2'
make: *** [all] Error 2

!!! ERROR: kde-base/kdelibs-3.2.2-r1 failed.
!!! Function kde_src_compile, Line 129, Exitcode 2
!!! died running emake, kde_src_compile:make

</snip>

IMHO, there are still some issues with library paths or something similar ...

Any suggestions?

Thanks in advance!
Martin

------- Comment #11 From foser (RETIRED) 2004-06-18 04:35:46 0000 -------
the problem is you already compiled certain lower-level libs with the 'broken'
fontconfig references. 

Do a 'grep "/var/tmp/portage/fontconfig" /usr/lib/*.la' , you should get some
output and rebuild the packages that own those .la's .

------- Comment #12 From Seemant Kulleen (RETIRED) 2004-06-19 08:55:39 0000 -------
*** Bug 54234 has been marked as a duplicate of this bug. ***

------- Comment #13 From foser (RETIRED) 2004-06-19 09:48:24 0000 -------
well, i guess this happened on a install CD maybe or it is related to certain
version of parts of the toolchain. I fixed fontconfig-2.2.2 ebuild to use
DESTDIR from now on, that should prevent this happening in the future.

making this a dupe of the 'move to destdir' bug to get that some exposure
again..

*** This bug has been marked as a duplicate of 37782 ***