rendered paste body#!/bin/sh -e
export localstatedir="/var"
export prefix="/usr"
export CPP="arm-linux-gcc -E"
export mandir="/usr/share/man"
export STRIP="arm-linux-strip"
export STAGING_SIPDIR="/home/zaurus/src/build/tmp/staging/i686-linux/share/sip"
export BUILD_CC="ccache gcc"
export CONFIG_SITE="/home/zaurus/src/org.openembedded.dev/site/arm-linux"
export BUILD_CXXFLAGS="-I/home/zaurus/src/build/tmp/staging/i686-linux/include -O2 -fpermissive"
export libexecdir="/usr/libexec"
export servicedir="/srv"
export datadir="/usr/share"
export BUILD_CXX="ccache g++"
export LD="arm-linux-ld"
export LDFLAGS="-L/home/zaurus/src/build/tmp/staging/arm-linux/lib -Wl,-rpath-link,/home/zaurus/src/build/tmp/staging/arm-linux/lib -Wl,-O1"
export bindir="/usr/bin"
export TARGET_CXXFLAGS="-I/home/zaurus/src/build/tmp/staging/arm-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -fpermissive"
export MAKE="make"
export includedir="/usr/include"
export TARGET_CPPFLAGS="-I/home/zaurus/src/build/tmp/staging/arm-linux/include"
export exec_prefix="/usr"
export COLLIE_RAMDISK_SIZE="0"
export OPIEDIR="/home/zaurus/src/build/tmp/staging/arm-linux"
export BUILD_LDFLAGS="-L/home/zaurus/src/build/tmp/staging/i686-linux/lib -Wl,-rpath-link,/home/zaurus/src/build/tmp/staging/i686-linux/lib -Wl,-rpath,/home/zaurus/src/build/tmp/staging/i686-linux/lib -Wl,-O1"
export BUILD_LD="ld"
export oldincludedir="/usr/include"
export sysconfdir="/etc"
export MANIFEST="/home/zaurus/src/build/zc/void11/./manifest"
export CCLD="ccache arm-linux-gcc -march=armv4 -mtune=xscale"
export QPEDIR="/home/zaurus/src/build/tmp/staging/arm-linux"
export BUILD_CCLD="gcc"
export BBPATH="/home/zaurus/src/build/zc/void11:/home/zaurus/src/org.openembedded.dev/conf/distro:/home/zaurus/src/org.openembedded.dev/conf/distro:/home/zaurus/src/build:/home/zaurus/src/org.openembedded.dev"
export base_libdir="/lib"
export PATH="/home/zaurus/src/build/tmp/staging/i686-linux/bin/arm-linux:/home/zaurus/src/build/tmp/staging/i686-linux/bin:/home/zaurus/src/build/tmp/cross/bin:/home/zaurus/src/bitbake/bin:/usr/local/arm/2.95.3/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/athena/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.4:/usr/i686-pc-linux-gnu/gcc-bin/3.4.4:/opt/blackdown-jdk-1.4.2.02/bin:/opt/blackdown-jdk-1.4.2.02/jre/bin:/usr/qt/3/bin:/usr/kde/3.4/bin:/usr/kde/3.3/bin"
export TARGET_CFLAGS="-I/home/zaurus/src/build/tmp/staging/arm-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
export base_bindir="/bin"
export BUILD_CPP="cpp"
export sbindir="/usr/sbin"
export CFLAGS="-I/home/zaurus/src/build/tmp/staging/arm-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
export sharedstatedir="/usr/com"
export BUILD_CFLAGS="-I/home/zaurus/src/build/tmp/staging/i686-linux/include -O2"
export STAGING_IDLDIR="/home/zaurus/src/build/tmp/staging/arm-linux/share/idl"
export QMAKE_MKSPEC_PATH="/home/zaurus/src/build/tmp/staging/i686-linux/share/qmake"
export TARGET_LDFLAGS="-L/home/zaurus/src/build/tmp/staging/arm-linux/lib -Wl,-rpath-link,/home/zaurus/src/build/tmp/staging/arm-linux/lib -Wl,-O1"
export docdir="/usr/share/doc"
export PKG_CONFIG_DISABLE_UNINSTALLED="yes"
export infodir="/usr/share/info"
export CC="ccache arm-linux-gcc -march=armv4 -mtune=xscale"
export palmqtdir="/opt/QtPalmtop"
export BUILD_F77="ccache g77"
export CPPFLAGS="-I/home/zaurus/src/build/tmp/staging/arm-linux/include"
export libdir="/usr/lib"
export RANLIB="arm-linux-ranlib"
export base_sbindir="/sbin"
export CXX="ccache arm-linux-g++ -march=armv4 -mtune=xscale"
export palmtopdir="/opt/QtPalmtop"
export QTDIR="/home/zaurus/src/build/tmp/staging/arm-linux/qt2"
export BUILD_RANLIB="ranlib"
export PKG_CONFIG_PATH="/home/zaurus/src/build/tmp/staging/arm-linux/share/pkgconfig"
export PATCH_GET="0"
export COLLIE_MEMORY_SIZE="64"
export CXXFLAGS="-I/home/zaurus/src/build/tmp/staging/arm-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -fpermissive"
export F77="ccache arm-linux-g77 -march=armv4 -mtune=xscale"
export BUILD_STRIP="strip"
export AS="arm-linux-as"
export AR="arm-linux-ar"
export BUILD_CPPFLAGS="-I/home/zaurus/src/build/tmp/staging/i686-linux/include"
export BUILD_AR="ar"
die() {
oefatal "$*"
}
base_do_install() {
:
}
do_compile() {
oe_runmake USECONSOLE=1 HOSTAPD_PATH=../../void11-hostapd-headers-0.1.3-r0/hostapd-0.1.3
}
do_stage() {
base_do_stage
}
oe_runconf() {
if [ -x /home/zaurus/src/build/tmp/work/void11-0.2.0-r0/void11-0.2.0/configure ] ; then
cfgcmd="/home/zaurus/src/build/tmp/work/void11-0.2.0-r0/void11-0.2.0/configure \
--build=i686-linux \
--host=arm-linux \
--target=arm-linux \
--prefix=/usr \
--exec_prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--libexecdir=/usr/libexec \
--datadir=/usr/share \
--sysconfdir=/etc \
--sharedstatedir=/usr/com \
--localstatedir=/var \
--libdir=/usr/lib \
--includedir=/usr/include \
--oldincludedir=/usr/include \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
${EXTRA_OECONF} \
$@"
oenote "Running $cfgcmd..."
$cfgcmd || oefatal "oe_runconf failed"
else
oefatal "no configure script found"
fi
}
autotools_stage_includes() {
if [ "${INHIBIT_AUTO_STAGE_INCLUDES}" != "1" ]
then
rm -rf /home/zaurus/src/build/tmp/work/void11-0.2.0-r0/temp-staging
mkdir -p /home/zaurus/src/build/tmp/work/void11-0.2.0-r0/temp-staging
make DESTDIR="/home/zaurus/src/build/tmp/work/void11-0.2.0-r0/temp-staging" install
cp -pPR /home/zaurus/src/build/tmp/work/void11-0.2.0-r0/temp-staging//usr/include/* /home/zaurus/src/build/tmp/staging/arm-linux/include
rm -rf /home/zaurus/src/build/tmp/work/void11-0.2.0-r0/temp-staging
fi
}
base_do_compile() {
if [ -e Makefile -o -e makefile ]; then
oe_runmake || die "make failed"
else
oenote "nothing to compile"
fi
}
base_do_package() {
:
}
oewarn() {
echo "WARNING:" "$*"
}
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=`arm-linux-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_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/zaurus/src/build/tmp/work/void11-0.2.0-r0/image/etc/fstab
#
# TODO: Check argument number?
#
filename=`basename $3`
dirname=`dirname $3`
for o in `echo task_do_patch:local:collie:openzaurus:linux:arm:build-linux | 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
rm -rf /home/zaurus/src/build/tmp/work/void11-0.2.0-r0/temp-staging
mkdir -p /home/zaurus/src/build/tmp/work/void11-0.2.0-r0/temp-staging
oe_runmake DESTDIR="/home/zaurus/src/build/tmp/work/void11-0.2.0-r0/temp-staging" install
cp -pPR /home/zaurus/src/build/tmp/work/void11-0.2.0-r0/temp-staging//usr/include/* /home/zaurus/src/build/tmp/staging/arm-linux/include
cp -pPR /home/zaurus/src/build/tmp/work/void11-0.2.0-r0/temp-staging//usr/lib/* /home/zaurus/src/build/tmp/staging/arm-linux/lib
rm -rf /home/zaurus/src/build/tmp/work/void11-0.2.0-r0/temp-staging
fi
}
oefatal() {
echo "FATAL:" "$*"
exit 1
}
do_configure() {
autotools_do_configure
}
do_patchcleancmd() {
if [ -n "`quilt applied`" ]; then quilt pop -a -R -f || exit 1; fi
}
oe_libinstall() {
# Purpose: Install a library, in all its forms
# Example
#
# oe_libinstall libltdl /home/zaurus/src/build/tmp/staging/arm-linux/lib/
# oe_libinstall -C src/libblah libblah /home/zaurus/src/build/tmp/work/void11-0.2.0-r0/image//usr/lib/
dir=""
libtool=""
silent=""
require_static=""
require_shared=""
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
__runcmd () {
if [ -z "$silent" ]; then
echo >&2 "oe_libinstall: $*"
fi
$*
}
if [ -z "$dir" ]; then
dir=`pwd`
fi
if [ -d "$dir/.libs" ]; then
dir=$dir/.libs
fi
olddir=`pwd`
__runcmd cd $dir
lafile=$libname.la
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
dotlai=$libname.lai
if [ -f "$dotlai" -a -n "$libtool" ]; then
__runcmd install -m 0644 $dotlai $destpath/$libname.la
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=`arm-linux-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"
}
base_do_configure() {
:
}
do_install() {
install -m 0755 lib/libvoid11.so /home/zaurus/src/build/tmp/work/void11-0.2.0-r0/image//usr/lib
install -m 0755 console/void11_hopper /home/zaurus/src/build/tmp/work/void11-0.2.0-r0/image/${sbindir]
install -m 0755 console/void11_penetration /home/zaurus/src/build/tmp/work/void11-0.2.0-r0/image/${sbindir]
}
oenote() {
echo "NOTE:" "$*"
}
autotools_do_configure() {
case void11 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/zaurus/src/build/tmp/work/void11-0.2.0-r0/void11-0.2.0 -name configure.in -o -name configure.ac`; do
rm -f `dirname $ac`/configure
done )
if [ -e /home/zaurus/src/build/tmp/work/void11-0.2.0-r0/void11-0.2.0/configure.in -o -e /home/zaurus/src/build/tmp/work/void11-0.2.0-r0/void11-0.2.0/configure.ac ]; then
olddir=`pwd`
cd /home/zaurus/src/build/tmp/work/void11-0.2.0-r0/void11-0.2.0
if [ x"default" = xdefault ]; then
acpaths=
for i in `find /home/zaurus/src/build/tmp/work/void11-0.2.0-r0/void11-0.2.0 -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/zaurus/src/build/tmp/staging/arm-linux/share/aclocal
install -d /home/zaurus/src/build/tmp/staging/arm-linux/share/aclocal-$AUTOV
acpaths="$acpaths -I /home/zaurus/src/build/tmp/staging/arm-linux/share/aclocal-$AUTOV -I /home/zaurus/src/build/tmp/staging/arm-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 "^AC_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/zaurus/src/build/tmp/work/void11-0.2.0-r0/void11-0.2.0/configure ]; then
oe_runconf
else
oenote "nothing to configure"
fi
}
ldconfig_postinst_fragment() {
if [ x"$D" = "x" ]; then
ldconfig
fi
}
autotools_do_install() {
oe_runmake 'DESTDIR=/home/zaurus/src/build/tmp/work/void11-0.2.0-r0/image' install
}
oedebug() {
test $# -ge 2 || {
echo "Usage: oedebug level \"message\""
exit 1
}
test ${OEDEBUG:-0} -ge $1 && {
shift
echo "DEBUG:" $*
}
}
oe_runmake() {
if [ x"$MAKE" = x ]; then MAKE=make; fi
oenote make USECONSOLE=1 HOSAPD_PATH=../void11-hostapd-headers-0.1.3-r0/hostapd-0.1.3 "$@"
make USECONSOLE=1 HOSAPD_PATH=../void11-hostapd-headers-0.1.3-r0/hostapd-0.1.3 "$@" || die "oe_runmake failed"
}
base_do_stage() {
:
}
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
ftp://ftp.kernel.org/pub http://www.kernel.org/pub
ftp://ftp.kernel.org/pub ftp://ftp.us.kernel.org/pub
ftp://ftp.kernel.org/pub ftp://ftp.uk.kernel.org/pub
ftp://ftp.kernel.org/pub ftp://ftp.hk.kernel.org/pub
ftp://ftp.kernel.org/pub ftp://ftp.au.kernel.org/pub
ftp://ftp.kernel.org/pub ftp://ftp.jp.kernel.org/pub
ftp://.*/.*/ http://www.oesources.org/source/current/
http://.*/.*/ http://www.oesources.org/source/current/
}
cd /home/zaurus/src/build/tmp/work/void11-0.2.0-r0
do_patchcleancmd