Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 65377

Summary: dev-games/ogre ebuild issues on ppc
Product: Gentoo Linux Reporter: Billy <thuhfreak>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal CC: ppc
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Billy 2004-09-25 22:14:30 UTC
While attempting to emerge 'ogre' (on powerpc), it failed.  I looked through the messages, and noticed that the bootstrap command failed, but the emerge had moved passed it, and thus the configure script was not recreated as it should have.

On non-x86 & non-amd platforms, a patch (*-nocg.patch) is executed.  The patch fails to [properly?] alter the 'autom4te.cache' folder.

Reproducible: Always
Steps to Reproduce:
1. get a non-x86 and non-amd machine
2. {presumption; not sure what version starts the problem} emerge autoconf-2.59-r{3,4}
3. emerge ogre
Actual Results:  
ogre fails to build.  specifically, ./configure errors out, with a message about
some cg function.

Expected Results:  
ogre should emerge.

I tried manually running ./bootstrap inside /var/tmp/..../work/ogrenew.  It
produced a cryptic message, which i looked up on google.  A message board
suggested rm'ing the autotools cache dir (autom4te.cache).  I tried that and
confirmed that it works.  Furthermore, I made some changes to the ogre ebuild
file (in my /usr/portage/dev-games/ogre directory).  Here is my altered
'src_unpack()' function, from ogre-0.14.0.ebuild:
src_unpack() {
	unpack ${A}
	cd ${S}
	case "${ARCH}" in
	x86 | amd64)
		;;
	*)
		einfo "Removing nVidia Cg dependency on this arch"
		epatch "${FILESDIR}/${PV}-nocg.patch"
		rm -rf ${S}/autom4te.cache
		./bootstrap || die
		;;
	esac
}

I added the 'rm -rf ${S}/autom4te.cache' line, and appended '|| die' to the
./bootstrap line.  The ebuild works now.

Here's my emerge info:
Portage 2.0.50-r11 (default-ppc-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.6.7-gentoo-r8)
=================================================================
System uname: 2.6.7-gentoo-r8 ppc 740/750
Gentoo Base System version 1.4.3.13p1
distcc 2.16 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="powerpc-unknown-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config 
/usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="aalib arts berkdb cdr dvd esd gcj gdbm gif gnome-libs gpm gtk guile imlib
java javadoc javascript jpeg ldap libww
w motif mozilla mysql nls oggvorbis opengl pam perl png ppc ppds python qt
readline ruby sdl slang ssl tcltk tcpd true
type usb"
Comment 1 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-10-02 06:57:49 UTC
Thnxs. Fixed in cvs.