[pacman-dev] makepkg misses to export variables
Dan McGee
dpmcgee at gmail.com
Wed May 16 12:03:29 EDT 2007
On 5/16/07, Aaron Griffin <aaronmgriffin at gmail.com> wrote:
> 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
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
More information about the pacman-dev
mailing list