[pacman-dev] makepkg misses to export variables

Aaron Griffin aaronmgriffin at gmail.com
Wed May 16 03:52:52 EDT 2007


On 5/16/07, Daniel Isenmann <daniel.isenmann at 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




More information about the pacman-dev mailing list