Alexpux / MSYS2-pacman

MSYS2 port of Arch Linux packman package manager.
GNU General Public License v2.0
164 stars 34 forks source link

makepkg: Changes for $pkgdir and $pkgdirbase #9

Closed elieux closed 9 years ago

elieux commented 9 years ago

This set of patches changes makepkg's behavior so that $pkgdirbase is not deleted before build(). Instead, only relevant $pkgdir's are deleted just before package() is run. The "symlink to a spacious drive" change is no longer needed thanks to this.

The main goal is to work around the issue with makepkg-mingw. Its second run (for mingw32) currently deletes $pkgdir of the first run (for mingw64), which is both unexpected and annoying.

I suppose one or two PKGBUILD's will break because of $pkgdir is not available in build(), but they need to be fixed anyway.

The change has not been tested yet, but if you are willing to accept this change, I will test it for you.

elieux commented 9 years ago

I have applied the changes locally and everything seems to work fine.