[pacman-dev] [PATCH] Make 'SRCDEST', 'PKGDEST' and 'PKGSRCDEST' respect the 'BUILDDIR'
郑文辉(Techlive Zheng)
techlivezheng at gmail.com
Thu May 30 19:12:36 EDT 2013
2013/5/31 郑文辉(Techlive Zheng) <techlivezheng at gmail.com>:
> 2013/5/28 郑文辉(Techlive Zheng) <techlivezheng at gmail.com>:
>> 2013/5/28 Allan McRae <allan at archlinux.org>:
>>> On 28/05/13 14:33, 郑文辉(Techlive Zheng) wrote:
>>>> 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.
>>>
>>> I don't understand. You want to store the source files and built
>>> packages in their own directory for each package but separate from the
>>> PKGBUILD?
>>>
>> Yes, that's is exactly I am trying to accomplish, as the PKGBUILD is
>> maintained in a git repository along with the project source, building
>> package inside this directory will make the git repo hard to maintain
>> and the partition grow bigger and bigger, I have a separate partition
>> for all ABS building stuff, so I want to keep the building there.
>
> So, how is it going? do I need to revise the patch to make this
> behavior a configurable option or what?
>
> TZheng
I have an iden, since you don't want these variables change with
$BUILDDIR, how about append $pkgbase to the path if the value of these
variables is the same as $BUILDDIR but not with the $startdir?
E.g.:
+ if [[ $SRCDEST = $BUILDDIR ]] && [[ $SRCDEST != "$startdir" ]]; then
+ SRCDEST="$BUILDDIR/$pkgbase"
+ fi
+ if [[ $PKGDEST = $BUILDDIR ]] && [[ $PKGDEST != "$startdir" ]]; then
+ PKGDEST="$BUILDDIR/$pkgbase"
+ fi
+ if [[ $SRCPKGDEST = $BUILDDIR ]] && [[ $SRCPKGDEST !=
"$startdir" ]]; then
+ SRCPKGDEST="$BUILDDIR/$pkgbase"
+ fi
More information about the pacman-dev
mailing list