On 5/16/07, Aaron Griffin <aaronmgriffin@gmail.com> wrote:
On 5/16/07, Daniel Isenmann <daniel.isenmann@gmx.de> wrote:
CARCH and CHOST are necessary. Small example from the kernel PKGBUILD:
without CARCH there is going this things wrong....
I think there's a misunderstanding here...
Try this PKGBUILD
pkgname=foo pkgver=1.0 pkgrel=1 pkgdesc="A dummy package" arch=('i686')
build() { echo ">>>>" echo $FTPAGENT echo $CARCH echo $CHOST echo $DISTCC_HOSTS echo $PKGDEST echo $PACKAGER echo "<<<<" }
My output:
/usr/bin/wget --continue --passive-ftp --tries=3 --waitretry=3 --no-check-certificate i686 i686-pc-linux-gnu
/home/griff/build/local/foo
<<<<
Export is not needed for a variable to exist inside makepkg
Export is ONLY needed if a new process is started with the callers environment. This occurs during calls to ./configure and make, but NOT within the PKGBUILD. -Dan