[pacman-dev] [PATCH] Make 'SRCDEST', 'PKGDEST' and 'PKGSRCDEST' respect the 'BUILDDIR'

Allan McRae allan at archlinux.org
Mon May 27 19:02:11 EDT 2013


On 28/05/13 02:07, Techlive Zheng wrote:

Explain your patch in the commit message.

> ---
>  A task has also been added to the bugtracker:
> 
>  https://bugs.archlinux.org/task/35498
> 

This is intended.  If I set BUILDDIR to a tmpfs (which is mostly the
point of this...), then I do not want the final packages being stored
there.  Or the sources.


>  scripts/makepkg.sh.in | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
> index b85b87e..c27c74d 100644
> --- a/scripts/makepkg.sh.in
> +++ b/scripts/makepkg.sh.in
> @@ -2790,7 +2790,15 @@ if [[ $BUILDDIR = "$startdir" ]]; then
>  else
>  	srcdir="$BUILDDIR/$pkgbase/src"
>  	pkgdirbase="$BUILDDIR/$pkgbase/pkg"
> -
> +	if [[ $SRCDEST = "$startdir" ]]; then
> +		SRCDEST="$BUILDDIR/$pkgbase"
> +	fi
> +	if [[ $PKGDEST = "$startdir" ]]; then
> +		PKGDEST="$BUILDDIR/$pkgbase"
> +	fi
> +	if [[ $SRCPKGDEST = "$startdir" ]]; then
> +		SRCPKGDEST="$BUILDDIR/$pkgbase"
> +	fi
>  fi
>  
>  # set pkgdir to something "sensible" for (not recommended) use during build()
> 



More information about the pacman-dev mailing list