All pastes #883810 Raw Edit

Stuff

public text v1 · immutable
#883810 ·published 2008-01-30 07:25 UTC
rendered paste body
#!/bin/sh -e
export localstatedir="/home/henry/oe/dev/tmp/staging/x86_64-linux/var"

export prefix="/home/henry/oe/dev/tmp/staging/x86_64-linux"

export STRIP="strip"

export STAGING_SIPDIR="/home/henry/oe/dev/tmp/staging/x86_64-linux/share/sip"

export libexecdir="/home/henry/oe/dev/tmp/staging/x86_64-linux/libexec"

export datadir="/home/henry/oe/dev/tmp/staging/x86_64-linux/share"

export BUILD_CXX="ccache g++"

export LD="ld"

export TARGET_CXXFLAGS="-isystem/home/henry/oe/dev/tmp/staging/x86_64-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -fpermissive"

export includedir="/home/henry/oe/dev/tmp/staging/x86_64-linux/include"

export MANIFEST="/home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/manifest"

export BUILD_CC="ccache gcc"

export BUILD_LDFLAGS="-L/home/henry/oe/dev/tmp/staging/x86_64-linux/lib -Wl,-rpath-link,/home/henry/oe/dev/tmp/staging/x86_64-linux/lib -Wl,-rpath,/home/henry/oe/dev/tmp/staging/x86_64-linux/lib -Wl,-O1"

export BUILD_LD="ld"

export oldincludedir="/home/henry/oe/dev/tmp/staging/x86_64-linux/include"

export BUILD_CCLD="gcc"

export QMAKE_MKSPEC_PATH="/home/henry/oe/dev/tmp/staging/x86_64-linux/share/qmake"

export palmtopdir="/home/henry/oe/dev/tmp/staging/x86_64-linux/lib/opie"

export CC="ccache gcc"

export TARGET_CFLAGS="-isystem/home/henry/oe/dev/tmp/staging/x86_64-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os"

export RANLIB="ranlib"

export CPPFLAGS="-isystem/home/henry/oe/dev/tmp/staging/x86_64-linux/include"

export base_sbindir="/home/henry/oe/dev/tmp/staging/x86_64-linux/bin"

export CXX="ccache g++"

export BUILD_RANLIB="ranlib"

export sbindir="/home/henry/oe/dev/tmp/staging/x86_64-linux/bin"

export mandir="/home/henry/oe/dev/tmp/staging/x86_64-linux/share/man"

export OBJCOPY="objcopy"

export servicedir="/home/henry/oe/dev/tmp/staging/x86_64-linux/srv"

export PKG_CONFIG_DIR="/home/henry/oe/dev/tmp/staging/x86_64-linux/lib/pkgconfig"

export bindir="/home/henry/oe/dev/tmp/staging/x86_64-linux/bin"

export sysconfdir="/home/henry/oe/dev/tmp/staging/x86_64-linux/etc"

export CCLD="ccache gcc"

export MAKE="make"

export base_bindir="/home/henry/oe/dev/tmp/staging/x86_64-linux/bin"

export CFLAGS="-isystem/home/henry/oe/dev/tmp/staging/x86_64-linux/include -Os"

export TARGET_LDFLAGS="-L/home/henry/oe/dev/tmp/staging/x86_64-linux/lib -Wl,-rpath-link,/home/henry/oe/dev/tmp/staging/x86_64-linux/lib -Wl,-O1"

export PKG_CONFIG_DISABLE_UNINSTALLED="yes"

export OPIEDIR="/home/henry/oe/dev/tmp/staging/x86_64-linux"

export BUILD_F77="ccache g77"

export PATCH_GET="0"

export CXXFLAGS="-isystem/home/henry/oe/dev/tmp/staging/x86_64-linux/include -Os"

export F77="ccache g77"

export QTDIR="/home/henry/oe/dev/tmp/staging/x86_64-linux/qt2"

export LDFLAGS="-L/home/henry/oe/dev/tmp/staging/x86_64-linux/lib -Wl,-rpath-link,/home/henry/oe/dev/tmp/staging/x86_64-linux/lib -Wl,-rpath,/home/henry/oe/dev/tmp/staging/x86_64-linux/lib -Wl,-O1"

unset TARGET_ARCH

export SHELLCMDS="bash --rcfile $TERMRCFILE"

export QPEDIR="/home/henry/oe/dev/tmp/staging/x86_64-linux"

export BBPATH="/home/henry/oe/org.openembedded.dev/packages/qemu:/home/henry/oe/org.openembedded.dev/packages/qemu:/home/henry/oe/org.openembedded.dev/packages/qemu:/home/henry/oe/org.openembedded.dev/packages/qemu:/home/henry/oe/org.openembedded.dev/conf/distro/include:/home/henry/oe/org.openembedded.dev/conf/distro/include:/home/henry/oe/org.openembedded.dev/conf/distro/include:/home/henry/oe/org.openembedded.dev/conf/distro/include:/home/henry/oe/org.openembedded.dev/conf/distro/include:/home/henry/oe/org.openembedded.dev/conf/distro/include:/home/henry/oe/org.openembedded.dev/conf/distro/include:/home/henry/oe/org.openembedded.dev/conf/distro/include:/home/henry/oe/org.openembedded.dev/conf/machine/include:/home/henry/oe/org.openembedded.dev/conf/distro/include:/home/henry/oe/org.openembedded.dev/conf/distro/include:/home/henry/oe/dev:/home/henry/oe/org.openembedded.dev"

export BUILD_CPP="cpp"

export BUILD_CFLAGS="-isystem/home/henry/oe/dev/tmp/staging/x86_64-linux/include -Os"

export docdir="/home/henry/oe/dev/tmp/staging/x86_64-linux/share/doc"

export infodir="/home/henry/oe/dev/tmp/staging/x86_64-linux/share/info"

export base_prefix="/home/henry/oe/dev/tmp/staging/x86_64-linux"

export PKG_CONFIG_PATH="/home/henry/oe/dev/tmp/staging/x86_64-linux/lib/pkgconfig${EXTRA_NATIVE_PKGCONFIG_PATH}"

export AS="as"

export AR="ar"

export BUILD_CPPFLAGS="-isystem/home/henry/oe/dev/tmp/staging/x86_64-linux/include"

export CPP="gcc -E"

export BUILD_CXXFLAGS="-isystem/home/henry/oe/dev/tmp/staging/x86_64-linux/include -Os -fpermissive"

export TARGET_CPPFLAGS="-isystem/home/henry/oe/dev/tmp/staging/x86_64-linux/include"

export exec_prefix="/home/henry/oe/dev/tmp/staging/x86_64-linux"

export base_libdir="/home/henry/oe/dev/tmp/staging/x86_64-linux/lib"

export STAGING_IDLDIR="/home/henry/oe/dev/tmp/staging/x86_64-linux/share/idl"

export PATH="/home/henry/oe/dev/tmp/staging/x86_64-linux/bin:/home/henry/oe/dev/tmp/staging/x86_64-linux/bin:/home/henry/oe/dev/tmp/staging/x86_64-linux/bin:/home/henry/oe/dev/tmp/cross/bin:/home/henry/oe/dev/tmp/staging/x86_64-linux/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

unset MACHINE

export BUILD_AR="ar"

export sharedstatedir="/home/henry/oe/dev/tmp/staging/x86_64-linux/com"

export OBJDUMP="objdump"

unset DISTRO

export libdir="/home/henry/oe/dev/tmp/staging/x86_64-linux/lib"

export palmqtdir="/home/henry/oe/dev/tmp/staging/x86_64-linux/lib/opie"

export BUILD_STRIP="strip"

do_devshell() {
	devshell_do_devshell

}

do_fetchall() {
	base_do_fetchall

}

base_do_buildall() {
	:

}

devshell_do_devshell() {
	export TERMWINDOWTITLE="Bitbake Developer Shell"
	konsole -T "$TERMWINDOWTITLE"
	if [ $? -ne 0 ]; then
	    echo "Fatal: 'konsole -T "$TERMWINDOWTITLE"' not found. Check TERMCMD variable."
	    exit 1
	fi

}

base_do_configure() {
	:

}

package_generate_ipkg_conf() {
	mkdir -p /home/henry/oe/dev/tmp/staging/x86_64-linux/etc/
	echo "src oe file:/home/henry/oe/dev/tmp/deploy/glibc/ipk" > /home/henry/oe/dev/tmp/staging/x86_64-linux/etc/ipkg.conf
	echo "src oe file:/home/henry/oe/dev/tmp/deploy/glibc/ipk" > /home/henry/oe/dev/tmp/staging/x86_64-linux/etc/ipkg-sdk.conf
	ipkgarchs="all any noarch x86_64 armv4 armv4t armv5e armv5te poodle"
	priority=1
	for arch in $ipkgarchs; do
		echo "arch $arch $priority" >> /home/henry/oe/dev/tmp/staging/x86_64-linux/etc/ipkg.conf
		echo "arch x86_64-$arch-sdk $priority" >> /home/henry/oe/dev/tmp/staging/x86_64-linux/etc/ipkg-sdk.conf
		priority=$(expr $priority + 5)
		if [ -e /home/henry/oe/dev/tmp/deploy/glibc/ipk/$arch/Packages ] ; then
		        echo "src oe-$arch file:/home/henry/oe/dev/tmp/deploy/glibc/ipk/$arch" >> /home/henry/oe/dev/tmp/staging/x86_64-linux/etc/ipkg.conf
		fi
		if [ -e /home/henry/oe/dev/tmp/deploy/glibc/ipk/x86_64-$arch-sdk/Packages ] ; then
		        echo "src oe-x86_64-$arch-sdk file:/home/henry/oe/dev/tmp/deploy/glibc/ipk/x86_64-$arch-sdk" >> /home/henry/oe/dev/tmp/staging/x86_64-linux/etc/ipkg-sdk.conf
		fi
	done

}

autotools_do_configure() {
	case qemu-native in
	autoconf*)
	;;
	automake*)
	;;
	*)
		# WARNING: gross hack follows:
		# An autotools built package generally needs these scripts, however only
		# automake or libtoolize actually install the current versions of them.
		# This is a problem in builds that do not use libtool or automake, in the case
		# where we -need- the latest version of these scripts.  e.g. running a build
		# for a package whose autotools are old, on an x86_64 machine, which the old
		# config.sub does not support.  Work around this by installing them manually
		# regardless.
		( for ac in `find /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/qemu-0.9.1 -name configure.in -o -name configure.ac`; do
			rm -f `dirname $ac`/configure
			done )
		if [ -e /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/qemu-0.9.1/configure.in -o -e /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/qemu-0.9.1/configure.ac ]; then
			olddir=`pwd`
			cd /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/qemu-0.9.1
			if [ x"default" = xdefault ]; then
				acpaths=
				for i in `find /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/qemu-0.9.1 -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \
					grep -v 'acinclude.m4' | sed -e 's,\(.*/\).*$,\1,'|sort -u`; do
					acpaths="$acpaths -I $i"
				done
			else
				acpaths="default"
			fi
			AUTOV=`automake --version |head -n 1 |sed "s/.* //;s/\.[0-9]\+$//"`
			automake --version
			echo "AUTOV is $AUTOV"
			install -d /home/henry/oe/dev/tmp/staging/x86_64-linux/share/aclocal
			install -d /home/henry/oe/dev/tmp/staging/x86_64-linux/share/aclocal-$AUTOV
			acpaths="$acpaths -I/home/henry/oe/dev/tmp/staging/x86_64-linux/share/aclocal-$AUTOV -I /home/henry/oe/dev/tmp/staging/x86_64-linux/share/aclocal"
			# autoreconf is too shy to overwrite aclocal.m4 if it doesn't look
			# like it was auto-generated.  Work around this by blowing it away
			# by hand, unless the package specifically asked not to run aclocal.
			if ! echo --exclude=autopoint | grep -q "aclocal"; then
				rm -f aclocal.m4
			fi
			if [ -e configure.in ]; then
			  CONFIGURE_AC=configure.in
			else
			  CONFIGURE_AC=configure.ac
			fi
			if grep "^AM_GLIB_GNU_GETTEXT" $CONFIGURE_AC >/dev/null; then
			  if grep "sed.*POTFILES" $CONFIGURE_AC >/dev/null; then
			    : do nothing -- we still have an old unmodified configure.ac
			  else
			    oenote Executing glib-gettextize --force --copy
			    echo "no" | glib-gettextize --force --copy
			  fi
			fi
			if grep "^[AI][CT]_PROG_INTLTOOL" $CONFIGURE_AC >/dev/null; then
			  oenote Executing intltoolize --copy --force --automake
			  intltoolize --copy --force --automake
			fi
			oenote Executing autoreconf --verbose --install --force --exclude=autopoint $acpaths
			mkdir -p m4
			autoreconf -Wcross --verbose --install --force --exclude=autopoint $acpaths || oefatal "autoreconf execution failed."
			cd $olddir
		fi
	;;
	esac
	if [ -e /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/qemu-0.9.1/configure ]; then
		oe_runconf
	else
		oenote "nothing to configure"
	fi

}

base_do_stage() {
	:

}

die() {
	oefatal "$*"

}

base_do_install() {
	:

}

base_do_fetchall() {
	:

}

base_do_package() {
	:

}

oe_soinstall() {
	# Purpose: Install shared library file and
	#          create the necessary links
	# Example:
	#
	# oe_
	#
	#oenote installing shared library $1 to $2
	#
	libname=`basename $1`
	install -m 755 $1 $2/$libname
	sonamelink=`readelf -d $1 |grep 'Library soname:' |sed -e 's/.*\[\(.*\)\].*/\1/'`
	solink=`echo $libname | sed -e 's/\.so\..*/.so/'`
	ln -sf $libname $2/$sonamelink
	ln -sf $libname $2/$solink

}

oe_libinstall() {
	# Purpose: Install a library, in all its forms
	# Example
	#
	# oe_libinstall libltdl /home/henry/oe/dev/tmp/staging/x86_64-linux/lib/
	# oe_libinstall -C src/libblah libblah /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/image//home/henry/oe/dev/tmp/staging/x86_64-linux/lib/
	dir=""
	libtool=""
	silent=""
	require_static=""
	require_shared=""
	staging_install=""
	while [ "$#" -gt 0 ]; do
		case "$1" in
		-C)
			shift
			dir="$1"
			;;
		-s)
			silent=1
			;;
		-a)
			require_static=1
			;;
		-so)
			require_shared=1
			;;
		-*)
			oefatal "oe_libinstall: unknown option: $1"
			;;
		*)
			break;
			;;
		esac
		shift
	done

	libname="$1"
	shift
	destpath="$1"
	if [ -z "$destpath" ]; then
		oefatal "oe_libinstall: no destination path specified"
	fi
	if echo "$destpath/" | egrep '^/home/henry/oe/dev/tmp/staging/x86_64-linux/lib/' >/dev/null
	then
		staging_install=1
	fi

	__runcmd () {
		if [ -z "$silent" ]; then
			echo >&2 "oe_libinstall: $*"
		fi
		$*
	}

	if [ -z "$dir" ]; then
		dir=`pwd`
	fi
	dotlai=$libname.lai
	dir=$dir`(cd $dir;find . -name "$dotlai") | sed "s/^\.//;s/\/$dotlai\$//;q"`
	olddir=`pwd`
	__runcmd cd $dir

	lafile=$libname.la

	# If such file doesn't exist, try to cut version suffix
	if [ ! -f "$lafile" ]; then
		libname1=`echo "$libname" | sed 's/-[0-9.]*$//'`
		lafile1=$libname.la
		if [ -f "$lafile1" ]; then
			libname=$libname1
			lafile=$lafile1
		fi
	fi

	if [ -f "$lafile" ]; then
		# libtool archive
		eval `cat $lafile|grep "^library_names="`
		libtool=1
	else
		library_names="$libname.so* $libname.dll.a"
	fi

	__runcmd install -d $destpath/
	dota=$libname.a
	if [ -f "$dota" -o -n "$require_static" ]; then
		__runcmd install -m 0644 $dota $destpath/
	fi
	if [ -f "$dotlai" -a -n "$libtool" ]; then
		if test -n "$staging_install"
		then
			# stop libtool using the final directory name for libraries
			# in staging:
			__runcmd rm -f $destpath/$libname.la
			__runcmd sed -e 's/^installed=yes$/installed=no/' \
				     -e '/^dependency_libs=/s,/home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),/home/henry/oe/dev/tmp/staging/x86_64-linux/lib/\1,g' \
				     $dotlai >$destpath/$libname.la
		else
			__runcmd install -m 0644 $dotlai $destpath/$libname.la
		fi
	fi

	for name in $library_names; do
		files=`eval echo $name`
		for f in $files; do
			if [ ! -e "$f" ]; then
				if [ -n "$libtool" ]; then
					oefatal "oe_libinstall: $dir/$f not found."
				fi
			elif [ -L "$f" ]; then
				__runcmd cp -P "$f" $destpath/
			elif [ ! -L "$f" ]; then
				libfile="$f"
				__runcmd install -m 0755 $libfile $destpath/
			fi
		done
	done

	if [ -z "$libfile" ]; then
		if  [ -n "$require_shared" ]; then
			oefatal "oe_libinstall: unable to locate shared library"
		fi
	elif [ -z "$libtool" ]; then
		# special case hack for non-libtool .so.#.#.# links
		baselibfile=`basename "$libfile"`
		if (echo $baselibfile | grep -qE '^lib.*\.so\.[0-9.]*$'); then
			sonamelink=`readelf -d $libfile |grep 'Library soname:' |sed -e 's/.*\[\(.*\)\].*/\1/'`
			solink=`echo $baselibfile | sed -e 's/\.so\..*/.so/'`
			if [ -n "$sonamelink" -a x"$baselibfile" != x"$sonamelink" ]; then
				__runcmd ln -sf $baselibfile $destpath/$sonamelink
			fi
			__runcmd ln -sf $baselibfile $destpath/$solink
		fi
	fi

	__runcmd cd "$olddir"

}

do_rm_work() {
    cd /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5
    for dir in *
    do
        if [ `basename /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/qemu-0.9.1` = $dir ]; then
            rm -rf $dir
        fi
    done

}

oe_runconf() {
	if [ -x /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/qemu-0.9.1/configure ] ; then
		cfgcmd="/home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/qemu-0.9.1/configure \
		    --build=x86_64-linux \
		    --host=x86_64-linux \
		    --target=x86_64-linux \
		    --prefix=/home/henry/oe/dev/tmp/staging/x86_64-linux \
		    --exec_prefix=/home/henry/oe/dev/tmp/staging/x86_64-linux \
		    --bindir=/home/henry/oe/dev/tmp/staging/x86_64-linux/bin \
		    --sbindir=/home/henry/oe/dev/tmp/staging/x86_64-linux/bin \
		    --libexecdir=/home/henry/oe/dev/tmp/staging/x86_64-linux/libexec \
		    --datadir=/home/henry/oe/dev/tmp/staging/x86_64-linux/share \
		    --sysconfdir=/home/henry/oe/dev/tmp/staging/x86_64-linux/etc \
		    --sharedstatedir=/home/henry/oe/dev/tmp/staging/x86_64-linux/com \
		    --localstatedir=/home/henry/oe/dev/tmp/staging/x86_64-linux/var \
		    --libdir=/home/henry/oe/dev/tmp/staging/x86_64-linux/lib \
		    --includedir=/home/henry/oe/dev/tmp/staging/x86_64-linux/include \
		    --oldincludedir=/home/henry/oe/dev/tmp/staging/x86_64-linux/include \
		    --infodir=/home/henry/oe/dev/tmp/staging/x86_64-linux/share/info \
		    --mandir=/home/henry/oe/dev/tmp/staging/x86_64-linux/share/man \
			 --disable-gfx-check --cc=gcc-3.4 \
		    $@"
		oenote "Running $cfgcmd..."
		$cfgcmd || oefatal "oe_runconf failed"
	else
		oefatal "no configure script found"
	fi

}

do_install() {
	true

}

do_rm_work_all() {
	:

}

oe_runmake() {
	if [ x"$MAKE" = x ]; then MAKE=make; fi
	oenote make  "$@"
	make  "$@" || die "oe_runmake failed"

}

do_stage() {
	if [ "${INHIBIT_NATIVE_STAGE_INSTALL}" != "1" ]
	then
		oe_runmake install
	fi

}

oe_machinstall() {
	# Purpose: Install machine dependent files, if available
	#          If not available, check if there is a default
	#          If no default, just touch the destination
	# Example:
	#                $1  $2   $3         $4
	# oe_machinstall -m 0644 fstab /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/image/etc/fstab
	#
	# TODO: Check argument number?
	#
	filename=`basename $3`
	dirname=`dirname $3`

	for o in `echo task_do_populate_staging:task_do_rebuild:local:poodle:angstrom:linux:x86_64:build-linux:fail-fast:pn-qemu-native | tr ':' ' '`; do
		if [ -e $dirname/$o/$filename ]; then
			oenote $dirname/$o/$filename present, installing to $4
			install $1 $2 $dirname/$o/$filename $4
			return
		fi
	done
#	oenote overrides specific file NOT present, trying default=$3...
	if [ -e $3 ]; then
		oenote $3 present, installing to $4
		install $1 $2 $3 $4
	else
		oenote $3 NOT present, touching empty $4
		touch $4
	fi

}

autotools_stage_all() {
	if [ "${INHIBIT_AUTO_STAGE}" = "1" ]
	then
		return
	fi
	rm -rf /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/temp-staging
	mkdir -p /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/temp-staging
	oe_runmake DESTDIR="/home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/temp-staging" install
	if [ -d /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/temp-staging//home/henry/oe/dev/tmp/staging/x86_64-linux/include ]; then
		cp -fpPR /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/temp-staging//home/henry/oe/dev/tmp/staging/x86_64-linux/include/* /home/henry/oe/dev/tmp/staging/x86_64-linux/include
	fi
	if [ -d /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/temp-staging//home/henry/oe/dev/tmp/staging/x86_64-linux/lib ]
	then
		find /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/temp-staging//home/henry/oe/dev/tmp/staging/x86_64-linux/lib -name '*.la' -exec sed -i s,installed=yes,installed=no, {} \;

		for i in /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/temp-staging//home/henry/oe/dev/tmp/staging/x86_64-linux/lib/*.la
		do
			if [ ! -f "$i" ]; then
				cp -fpPR /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/temp-staging//home/henry/oe/dev/tmp/staging/x86_64-linux/lib/* /home/henry/oe/dev/tmp/staging/x86_64-linux/lib
				break
			fi
			oe_libinstall -so $(basename $i .la) /home/henry/oe/dev/tmp/staging/x86_64-linux/lib
		done
	fi
	if [ -d /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/temp-staging//home/henry/oe/dev/tmp/staging/x86_64-linux/share/aclocal ]; then
		install -d /home/henry/oe/dev/tmp/staging/x86_64-linux/share/aclocal
		cp -fpPR /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/temp-staging//home/henry/oe/dev/tmp/staging/x86_64-linux/share/aclocal/* /home/henry/oe/dev/tmp/staging/x86_64-linux/share/aclocal
	fi
	rm -rf /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/temp-staging

}

do_configure() {
    oe_runconf

}

do_package_write() {
	:

}

ldconfig_postinst_fragment() {
if [ x"$D" = "x" ]; then
	ldconfig
fi

}

autotools_do_install() {
	oe_runmake 'DESTDIR=/home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/image' install

        for i in `find /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/image -name "*.la"` ; do \
            sed -i -e s:/home/henry/oe/dev/tmp/staging/x86_64-linux/lib:/home/henry/oe/dev/tmp/staging/x86_64-linux/lib:g $i
            sed -i -e s:/home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/image::g $i
            sed -i -e 's:-I/home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5\S*: :g' $i
            sed -i -e 's:-L/home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5\S*: :g' $i
	done

}

do_compile() {
	base_do_compile

}

autotools_stage_includes() {
	if [ "${INHIBIT_AUTO_STAGE_INCLUDES}" != "1" ]
	then
		rm -rf /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/temp-staging
		mkdir -p /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/temp-staging
		make DESTDIR="/home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/temp-staging" install
		cp -pPR /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/temp-staging//home/henry/oe/dev/tmp/staging/x86_64-linux/include/* /home/henry/oe/dev/tmp/staging/x86_64-linux/include
		rm -rf /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/temp-staging
	fi

}

oewarn() {
	echo "WARNING:" "$*"

}

oefatal() {
	echo "FATAL:" "$*"
	exit 1

}

zaurus_make_installkit() {
    cd /home/henry/oe/dev/tmp/deploy/glibc/images/poodle
    rm -rf /home/henry/oe/dev/tmp/deploy/glibc/images/poodle/Angstrom-qemu-native-glibc-ipk-2008.1-test-20080130-poodle-installkit/
    mkdir Angstrom-qemu-native-glibc-ipk-2008.1-test-20080130-poodle-installkit/

    # Get the latest kernel using the zImage-<machine>.bin symlink
    cp zImage-poodle.bin Angstrom-qemu-native-glibc-ipk-2008.1-test-20080130-poodle-installkit/zImage

    if [ "poodle" = "spitz" ]; then
        cp gnu-tar Angstrom-qemu-native-glibc-ipk-2008.1-test-20080130-poodle-installkit/
        cp Angstrom-qemu-native-glibc-ipk-2008.1-test-20080130-poodle.rootfs.tar.gz Angstrom-qemu-native-glibc-ipk-2008.1-test-20080130-poodle-installkit/hdimage1.tgz
    else
        [ -f Angstrom-qemu-native-glibc-ipk-2008.1-test-20080130-poodle.rootfs.jffs2 ] && cp Angstrom-qemu-native-glibc-ipk-2008.1-test-20080130-poodle.rootfs.jffs2 Angstrom-qemu-native-glibc-ipk-2008.1-test-20080130-poodle-installkit/initrd.bin
    fi

    # All zaurus machines except collie need updater.sh
    if [ "poodle" != "collie" ]; then
        cp updater.sh.poodle Angstrom-qemu-native-glibc-ipk-2008.1-test-20080130-poodle-installkit/updater.sh
    fi

    tar czf /home/henry/oe/dev/tmp/deploy/glibc/images/poodle/Angstrom-qemu-native-glibc-ipk-2008.1-test-20080130-poodle-installkit.tgz Angstrom-qemu-native-glibc-ipk-2008.1-test-20080130-poodle-installkit/
    md5sum /home/henry/oe/dev/tmp/deploy/glibc/images/poodle/Angstrom-qemu-native-glibc-ipk-2008.1-test-20080130-poodle-installkit.tgz > /home/henry/oe/dev/tmp/deploy/glibc/images/poodle/Angstrom-qemu-native-glibc-ipk-2008.1-test-20080130-poodle-installkit.tgz.md5
    rm -rf /home/henry/oe/dev/tmp/deploy/glibc/images/poodle/Angstrom-qemu-native-glibc-ipk-2008.1-test-20080130-poodle-installkit/

}

base_do_compile() {
	if [ -e Makefile -o -e makefile ]; then
		oe_runmake || die "make failed"
	else
		oenote "nothing to compile"
	fi

}

oedebug() {
	test $# -ge 2 || {
		echo "Usage: oedebug level \"message\""
		exit 1
	}

	test ${OEDEBUG:-0} -ge $1 && {
		shift
		echo "DEBUG:" $*
	}

}

oenote() {
	echo "NOTE:" "$*"

}

package_update_index_ipk() {
	set -x

	ipkgarchs="all any noarch x86_64 armv4 armv4t armv5e armv5te poodle"

	if [ ! -z "${DEPLOY_KEEP_PACKAGES}" ]; then
		return
	fi

	touch /home/henry/oe/dev/tmp/deploy/glibc/ipk/Packages
	ipkg-make-index -r /home/henry/oe/dev/tmp/deploy/glibc/ipk/Packages -p /home/henry/oe/dev/tmp/deploy/glibc/ipk/Packages -l /home/henry/oe/dev/tmp/deploy/glibc/ipk/Packages.filelist -m /home/henry/oe/dev/tmp/deploy/glibc/ipk

	for arch in $ipkgarchs; do
		if [ -e /home/henry/oe/dev/tmp/deploy/glibc/ipk/$arch/ ] ; then
			touch /home/henry/oe/dev/tmp/deploy/glibc/ipk/$arch/Packages
			ipkg-make-index -r /home/henry/oe/dev/tmp/deploy/glibc/ipk/$arch/Packages -p /home/henry/oe/dev/tmp/deploy/glibc/ipk/$arch/Packages -l /home/henry/oe/dev/tmp/deploy/glibc/ipk/$arch/Packages.filelist -m /home/henry/oe/dev/tmp/deploy/glibc/ipk/$arch/
		fi
		if [ -e /home/henry/oe/dev/tmp/deploy/glibc/ipk/x86_64-$arch-sdk/ ] ; then
			touch /home/henry/oe/dev/tmp/deploy/glibc/ipk/x86_64-$arch-sdk/Packages
			ipkg-make-index -r /home/henry/oe/dev/tmp/deploy/glibc/ipk/x86_64-$arch-sdk/Packages -p /home/henry/oe/dev/tmp/deploy/glibc/ipk/x86_64-$arch-sdk/Packages -l /home/henry/oe/dev/tmp/deploy/glibc/ipk/x86_64-$arch-sdk/Packages.filelist -m /home/henry/oe/dev/tmp/deploy/glibc/ipk/x86_64-$arch-sdk/
		fi
	done

}

MIRRORS() {
ftp://ftp.debian.org/debian/pool/main	http://snapshot.debian.net/archive/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.de.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.au.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.cl.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.hr.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.fi.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.hk.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.hu.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.ie.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.it.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.jp.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.no.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.pl.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.ro.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.si.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.es.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.se.debian.org/debian/pool
ftp://ftp.debian.org/debian/pool	ftp://ftp.tr.debian.org/debian/pool
ftp://ftp.gnu.org/gnu	ftp://mirrors.kernel.org/gnu
ftp://ftp.gnu.org/gnu	ftp://ftp.matrix.com.br/pub/gnu
ftp://ftp.gnu.org/gnu	ftp://ftp.cs.ubc.ca/mirror2/gnu
ftp://ftp.gnu.org/gnu	ftp://sunsite.ust.hk/pub/gnu
ftp://ftp.gnu.org/gnu	ftp://ftp.ayamura.org/pub/gnu
http://kernel.org/	http://www.kernel.org/pub
http://kernel.org/	ftp://ftp.us.kernel.org/pub
http://kernel.org/	ftp://ftp.uk.kernel.org/pub
http://kernel.org/	ftp://ftp.hk.kernel.org/pub
http://kernel.org/	ftp://ftp.au.kernel.org/pub
http://kernel.org/	ftp://ftp.jp.kernel.org/pub
ftp://ftp.gnupg.org/gcrypt/     ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/
ftp://ftp.gnupg.org/gcrypt/     ftp://ftp.surfnet.nl/pub/security/gnupg/
ftp://ftp.gnupg.org/gcrypt/     http://gulus.USherbrooke.ca/pub/appl/GnuPG/
ftp://dante.ctan.org/tex-archive ftp://ftp.fu-berlin.de/tex/CTAN
ftp://dante.ctan.org/tex-archive http://sunsite.sut.ac.jp/pub/archives/ctan/
ftp://dante.ctan.org/tex-archive http://ctan.unsw.edu.au/
ftp://ftp.gnutls.org/pub/gnutls ftp://ftp.gnutls.org/pub/gnutls/
ftp://ftp.gnutls.org/pub/gnutls ftp://ftp.gnupg.org/gcrypt/gnutls/
ftp://ftp.gnutls.org/pub/gnutls http://www.mirrors.wiretapped.net/security/network-security/gnutls/
ftp://ftp.gnutls.org/pub/gnutls ftp://ftp.mirrors.wiretapped.net/pub/security/network-security/gnutls/
ftp://ftp.gnutls.org/pub/gnutls http://josefsson.org/gnutls/releases/
http://ftp.info-zip.org/pub/infozip/src/ http://mirror.switch.ch/ftp/mirror/infozip/src/
http://ftp.info-zip.org/pub/infozip/src/ ftp://sunsite.icm.edu.pl/pub/unix/archiving/info-zip/src/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://ftp.tau.ac.il/pub/unix/admin/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://ftp.cert.dfn.de/pub/tools/admin/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://ftp.kaizo.org/pub/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://ftp.tu-darmstadt.de/pub/sysadmin/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://ftp.tux.org/pub/sites/vic.cc.purdue.edu/tools/unix/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://gd.tuwien.ac.at/utils/admin-tools/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://sunsite.ualberta.ca/pub/Mirror/lsof/
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://the.wiretapped.net/pub/security/host-security/lsof/
http://www.apache.org/dist  http://archive.apache.org/dist

ftp://.*/.*	http://www.angstrom-distribution.org/unstable/sources/
https?$://.*/.*	http://www.angstrom-distribution.org/unstable/sources/

}

cd /home/henry/oe/dev/tmp/work/x86_64-linux/qemu-native-0.9.1-r5/qemu-0.9.1
do_stage