First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 52389
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Linux Gnome Desktop Team <gnome@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Anders Rune Jensen (RETIRED) <arj@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
2324-libgnomecanvasmm-2.6.1.log emerge log text/plain Anders Rune Jensen (RETIRED) 2004-05-29 19:00 0000 83.66 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 52389 depends on: Show dependency tree
Bug 52389 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-05-29 13:27 0000
Libraries which depend on libgnomecanvasmm, like libgnomeuimm, doesn't work
anyone. The problems is related to the /usr/lib/libgnomecanvasmm-2.6.la file.
The original library_names suggest that libgnomecanvasmm-2.6 is valid, but it's
not because it's a directory. This will cause libraries using
-llibgnomecanvasmm-2.6 to fail with some like can't open
/usr/lib/libgnomecanvasmm-2.6. The problem seems to be that normally libraries
have the .so at the end, but for some unkown reason to me, this ebuilds
installs them without... The real fix would be to reverse this stripping of the
.so of the libraries installed.

This simple patch fixes it for now, add the following to the end of the ebuild:

pkg_postinst() {
        #Fix broken .la
        cd /usr/lib/
        sed -e "s:library_names='libgnomecanvasmm-2.6.1.0.1
libgnomecanvasmm-2.6
.1 libgnomecanvasmm-2.6':library_names='libgnomecanvasmm-2.6.1.0.1
libgnomecanva
smm-2.6.1':g" \
             libgnomecanvasmm-2.6.la >  libgnomecanvasmm-2.6.la.hacked
        mv  libgnomecanvasmm-2.6.la.hacked  libgnomecanvasmm-2.6.la
}

------- Comment #1 From Yi Quang (RETIRED) 2004-05-29 16:12:50 0000 -------
could you provide your "emerge info" please.  Also, are you telling me that you
do not have these files in /usr/lib ? :
libgnomecanvasmm-2.6.so
libgnomecanvasmm-2.6.so.1

------- Comment #2 From Yi Quang (RETIRED) 2004-05-29 16:14:54 0000 -------
I forgot to mention, what I meant by the previous statement is that are those
symlinks valid?

------- Comment #3 From Anders Rune Jensen (RETIRED) 2004-05-29 16:22:37 0000 -------
emerge info:

Portage 2.0.50-r7 (default-x86-1.4, gcc-3.4.0, glibc-2.3.3_pre20040420-r1, 2.6
-mm5)
=================================================================
System uname: 2.6.6-mm5 i686 AMD Athlon(tm) XP 2100+
Gentoo Base System version 1.4.15
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3
hare/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/
ipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/conf
/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/contro
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ ftp://sunsite.informatik.
th-aachen.de/pub/Linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/arj/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm avi berkdb crypt encode esd foomaticdb gdbm gif gtk gtk2 imlib
pv6 jpeg libg++ libwww mad mikmod motif mozilla moznocompose moznoirc moznomai
mozsvg mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python q
cktime readline sdl slang spell ssl tcpd tetex truetype x86 xft xml2 xmms xv z
b"

------- Comment #4 From Anders Rune Jensen (RETIRED) 2004-05-29 16:23:39 0000 -------
Yes:

ls -l /usr/lib/libgnomecanvasmm*
lrwxrwxrwx  1 root root     26 May 28 03:04 /usr/lib/libgnomecanvasmm-2.6.1 -> libgnomecanvasmm-2.6.1.0.1
-rwxr-xr-x  1 root root 263556 May 28 03:04 /usr/lib/libgnomecanvasmm-2.6.1.0.1
-rw-r--r--  1 root root   1432 May 28 03:04 /usr/lib/libgnomecanvasmm-2.6.la

/usr/lib/libgnomecanvasmm-2.6:
total 8
drwxr-xr-x  2 root root 4096 May 28 01:27 include
drwxr-xr-x  3 root root 4096 May 28 01:27 proc

------- Comment #5 From Yi Quang (RETIRED) 2004-05-29 16:34:32 0000 -------
Let me ask you something, have you been using third party ebuilds?  We only
have libgnomecanvasmm-2.6.0 in the tree, so I am confused how you are getting
the 2.6.1 version. 

------- Comment #6 From Anders Rune Jensen (RETIRED) 2004-05-29 17:29:37 0000 -------
No, I simply bumped the ebuild to have it compile on gcc-3.4.

------- Comment #7 From Yi Quang (RETIRED) 2004-05-29 17:33:55 0000 -------
I can't support what users do to their own systems. 

------- Comment #8 From Anders Rune Jensen (RETIRED) 2004-05-29 18:11:50 0000 -------
The latest in portage is also just a bump of the 2.6.0 ebuild.

Anyway...

emerge sync
emerge unmerge libgnomecanvasmm
emerge libgnomecanvasmm

And surely enough the problem still persists with the ebuild from the official portage tree.

------- Comment #9 From Yi Quang (RETIRED) 2004-05-29 18:34:02 0000 -------
If you updated to have it compile against gcc-3.4, how can you revert back to
the old version without it breaking?  Anyhow, if you feel that this is a gentoo
problem, attach your emerge log.  

------- Comment #10 From Anders Rune Jensen (RETIRED) 2004-05-29 19:00:24 0000 -------
Created an attachment (id=32287) [edit]
emerge log

Now I understand why you closed the bug. 2.6.1 builds with gcc-3.4 while 2.6.0
didn't. That is why I said I bumped it. And now 2.6.1 is in portage but it's
still broken on my machine. I've attached an emerge log.

------- Comment #11 From Travis Tilley (RETIRED) 2004-05-29 21:13:06 0000 -------
the libtool archive contains library_names='libgnomecanvasmm-2.6.1.0.1
libgnomecanvasmm-2.6.1 libgnomecanvasmm-2.6'. this should be
library_names='libgnomecanvasmm-2.6.1.0.1 libgnomecanvasmm-2.6.1' if you dont
want things to break, since libgnomecanvasmm-2.6 is a directory (i know...
oddity).

perhaps some sed magic is needed here?

------- Comment #12 From Yi Quang (RETIRED) 2004-05-29 21:27:34 0000 -------
Anders, I'd like to apologize, I did not know that libgnomecanvasmm has been
updated.  We are working on a solution right now, but if it is urgent for you,
comment out these lines:
 aclocal -I scripts
    automake -c -f
    autoconf
in the ebuild under the src_compile() function, that should solve your problem. 

------- Comment #13 From Travis Tilley (RETIRED) 2004-05-29 21:32:47 0000 -------
i should really read the bug before i post. and nevermind, seems there was an
easier fix: remove a previous amd64 fix that's no longer needed. thanks for the
heads up khai

------- Comment #14 From Anders Rune Jensen (RETIRED) 2004-05-30 04:53:10 0000 -------
No problem Khai, glad you found the problem. I wondered why it had to run the
autotools before building but didn't look into it further.

------- Comment #15 From foser (RETIRED) 2004-05-30 07:42:43 0000 -------
it simply was wrong of lv here to bump it without notifying anyone of the gnome
team, no need to apologize for that.

------- Comment #16 From Danny van Dyk (RETIRED) 2004-05-30 08:11:49 0000 -------
My fault ! Sorry ;-)

Adding "if [ ${ARCH} = amd64 ]; ..." to all the ebuilds I changed.

------- Comment #17 From Anders Rune Jensen (RETIRED) 2004-07-06 12:57:52 0000 -------
Danny's fix in cvs solves this.

First Last Prev Next    No search results available      Search page      Enter new bug