FS#28417 - [pacman] Append $pkgname after BUILDDIR in makepkg.conf

Attached to Project: Pacman
Opened by Techlive Zheng (techlive) - Tuesday, 14 February 2012, 12:28 GMT
Last edited by Allan McRae (Allan) - Monday, 19 March 2012, 19:56 GMT
Task Type Feature Request
Category makepkg
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 4.0.1
Due in Version 4.1.0
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description:

It is very usefull if $pkgname can be automatically append to the BUILDDIR definition in makepkg.conf.This way,we can seperate the our pkgbuilds repo and building space.
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 19 March 2012, 19:56 GMT
Reason for closing:  Fixed
Additional comments about closing:  http://projects.archlinux.org/pacman.git /commit/?id=03465ad6
Comment by Keshav Amburay (the.ridikulus.rat) - Tuesday, 14 February 2012, 13:11 GMT
This should be done for both $BUILDDIR/src and $BUILDDIR/pkg . For split pkgs it would be better to have $BUILDDIR/pkg/$pkgbase/$pkgname . Using $BUILDDIR/pkg creates confusion when makepkg is running on two separate PKGBUILDs and one of the generated package ends up having files of another. I had this issue while compiling both grub2 (split pkg) and grub2-efi-x86_64 simultaneously with builddir set. grub2 compile finished first and the grub2-{common,bios,efi-i386} pkgs were created properly. But after that grub2-efi-x86_64 ended up with the files $BUILDDIR/pkg/<grub2-efi-x86_64 files> , $BUILDDIR/pkg/grub2-{common,bios,efi-i386}/* .
Comment by Techlive Zheng (techlive) - Tuesday, 14 February 2012, 13:18 GMT
@Keshav I think you don't get my point.What I mean is to have a BUILDDIR structure like

$BUILDDir/$pkgname
|--src
|--pkg

or for split pkgbuids

$BUILDDIR/$pkgbase
|--src
|--pkg

Comment by Andreas Trepczik (bzt) - Monday, 19 March 2012, 11:23 GMT
I second the proposition of techlive. Currently, if you have BUILDDIR uncommented in /etc/makepkg.conf, some packages will fail to build after building other packages because some archives can not be extracted, as is the case with 'nvidia-utils' after having built 'nvidia'. To get around this, you have to wipe the build dir, which is annoying.
Comment by Techlive Zheng (techlive) - Tuesday, 26 February 2013, 13:13 GMT
Have to wait till next release maybe 4.1.0 for this.

Loading...