[pacman-dev] [PATCH] Make 'SRCDEST', 'PKGDEST' and 'PKGSRCDEST' respect the 'BUILDDIR'
郑文辉(Techlive Zheng)
techlivezheng at gmail.com
Tue May 28 00:33:13 EDT 2013
2013/5/28 Allan McRae <allan at archlinux.org>:
> 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.
>
I keep a separate partition for ABS build on my disk, and my PKGBUILDs
are always located aside the actual project sources, that's why I need
downloaded source and target tars to be placed in the BUILDDIR.
If so, is there possible to add this as an option?
>
>> 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