Bug 143738 - sci-mathematics/axiom-3.9-r1 can't find libXpm
Bug#: 143738 Product:  Gentoo Linux Version: 2006.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: plasmaroo@gentoo.org Reported By: znmeb@cesmail.net
Component: Ebuilds
URL: 
Summary: sci-mathematics/axiom-3.9-r1 can't find libXpm
Keywords:  
Status Whiteboard: 
Opened: 2006-08-12 21:21 0000
Description:   Opened: 2006-08-12 21:21 0000
This used to emerge fine, but I'm wondering if xorg-7 broke it:

34 linking /var/tmp/portage/axiom-3.9-r1/work/axiom/mnt/linux/lib/view2D
gcc: /usr/X11R6/lib/libXpm.a: No such file or directory
make[4]: *** [/var/tmp/portage/axiom-3.9-r1/work/axiom/mnt/linux/lib/view2D]
Error 1
make[4]: Leaving directory
`/var/tmp/portage/axiom-3.9-r1/work/axiom/src/graph/view2D'
make[3]: *** [view2Ddir] Error 2
make[3]: Leaving directory `/var/tmp/portage/axiom-3.9-r1/work/axiom/src/graph'
make[2]: *** [graphdir] Error 2
make[2]: Leaving directory `/var/tmp/portage/axiom-3.9-r1/work/axiom/src'
make[1]: *** [srcdir] Error 2
make[1]: Leaving directory `/var/tmp/portage/axiom-3.9-r1/work/axiom'
make: *** [all] Error 2

!!! ERROR: sci-mathematics/axiom-3.9-r1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  axiom-3.9-r1.ebuild, line 62:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if
relevant.

------- Comment #1 From M. Edward Borasky 2006-08-12 21:22:13 0000 -------
Created an attachment (id=94107) [details]
entire log of the build

------- Comment #2 From Jakub Moc (RETIRED) 2006-08-12 22:50:01 0000 -------
Apart from that it searches for the file in a wrong place, do you have
x11-libs/libXpm installed?

------- Comment #3 From M. Edward Borasky 2006-08-12 23:23:56 0000 -------
Yes, it's installed ... this may be a vmware thing. It's in a virtual machine,
and I can't get the vmware tools to install either because things aren't where
vmware tools are expecting them to be. I'm going to try it in a real machine
and see what happens.

------- Comment #4 From Jakub Moc (RETIRED) 2006-08-12 23:27:54 0000 -------
> /usr/X11R6/lib/libXpm.a: No such file or directory

Nah, don't think that has to do anything w/ vmware. The file is in
/usr/lib/libXpm.a. 

------- Comment #5 From M. Edward Borasky 2006-08-12 23:32:59 0000 -------
Ah yes ... slocate is my friend :) I'm rerunning it now on a real machine just
to be sure. By the way, the virtual machine was built from scratch with xorg 7
-- it wasn't upgraded. 

------- Comment #6 From Tim Yamin (RETIRED) 2006-08-13 06:12:54 0000 -------
Do you have /usr/X11R6 as a symlink to /usr? Looks like possibly not...

------- Comment #7 From M. Edward Borasky 2006-08-13 11:11:51 0000 -------
(In reply to comment #6)
> Do you have /usr/X11R6 as a symlink to /usr? Looks like possibly not...
> 
No, I don't. This (virtual) machine was built from scratch -- boot 2006.0
minimal CD, stage 3, emerge --sync, emerge a bunch of packages including X,
.... It does not appear to be linked. At what point in the build process should
the link have been set?

------- Comment #8 From Tim Yamin (RETIRED) 2006-08-13 11:34:08 0000 -------
(In reply to comment #7)
> (In reply to comment #6)
> > Do you have /usr/X11R6 as a symlink to /usr? Looks like possibly not...
> > 
> No, I don't. This (virtual) machine was built from scratch -- boot 2006.0
> minimal CD, stage 3, emerge --sync, emerge a bunch of packages including X,
> .... It does not appear to be linked. At what point in the build process should
> the link have been set?

X team, suggestions?

------- Comment #9 From Donnie Berkholz 2006-08-13 17:19:47 0000 -------
The real fix is to make axiom look in the right place. A workaround is the
/usr/X11R6 -> /usr symlink. The xorg-x11-7.x metabuilds should do this
automatically.

------- Comment #10 From M. Edward Borasky 2006-08-15 20:44:28 0000 -------
(In reply to comment #9)
> The real fix is to make axiom look in the right place. A workaround is the
> /usr/X11R6 -> /usr symlink. The xorg-x11-7.x metabuilds should do this
> automatically.
> 
You can close this. I re-ran the emerge of xorg-x11 and the axiom emerge now
works. Something must have crashed in the X install when I initially built the
system that I didn't detect. Some of X was installed but not all of it.

I can attempt to recreate this if it matters -- it's just a matter of creating
a new virtual machine and running a couple of bash scripts. It might take a few
hours to get to the point where X is supposed to be installed, since I bring it
in as a dependency of "windowmaker" and not directly. But that's fairly early
in the staging process.

I boot the minimal CD, unpack stage3 and the snapshot, emerge --sync, update
world -- that's the part that takes the time -- then start loading packages.
The first thing that comes in is "vim", and the second thing is the desktop, in
this case "windowmaker". It seems silly, though, since 2006.1 is almost ready.

------- Comment #11 From Tim Yamin (RETIRED) 2006-08-16 08:09:19 0000 -------
(In reply to comment #10)
> You can close this. I re-ran the emerge of xorg-x11 and the axiom emerge now
> works. Something must have crashed in the X install when I initially built the
> system that I didn't detect. Some of X was installed but not all of it.

Okie, thanks for letting me know :-)

------- Comment #12 From Jakub Moc (RETIRED) 2006-09-15 01:17:20 0000 -------
*** Bug 147643 has been marked as a duplicate of this bug. ***

------- Comment #13 From Jakub Moc (RETIRED) 2006-09-15 01:19:49 0000 -------
Well, can we fix this properly please? It will break people who don't install
xorg-x11 but install xorg-server only.

------- Comment #14 From Johannes Weiner 2006-09-15 06:09:02 0000 -------
Created an attachment (id=97045) [details]
axiom-3.9-r1.ebuild patch

Note to the XLIB sedding: I don't know if there is still /usr/X11R6 on older
systems (is there?), so there should also be a check for which directory to
choose.

------- Comment #15 From Tim Yamin (RETIRED) 2006-10-01 06:00:47 0000 -------
(In reply to comment #14)
> Created an attachment (id=97045) [edit] [details]
> axiom-3.9-r1.ebuild patch

Fixed in CVS, thanks!