[pacman-dev] Delete just $pkgdir instead of whole $pkgdirbase

Allan McRae allan at archlinux.org
Tue Feb 24 07:18:01 UTC 2015


On 24/02/15 05:27, David Macek wrote:
> On 23. 2. 2015 18:11, Allan McRae wrote:
>> I dislike the idea of a non-empty $pkgdir at the start of packaging so
>> am not convinced about this yet.
> 
> Just to be sure, do you mean $pkgdir, or $pkgdirbase? My proposition was retaining ./pkg/whatever-pkg-dirs, but still cleaning ./pkg/current-pkg-dir before package().
> 

I meant $pkgbasedir - I'm stuck back in the old days!

>> Why would you not change where the $pkgdir symlink points as part of
>> your script that does the needed changes and builds all the package
>> variants?
> 
> $pkgdirbase doesn't need to be a symlink, the wrapper script doesn't currently link anything by itself. Moreover, symlinks are actually disabled by default in MSYS2 due to various difficulties, and `ln -s` creates copies instead.
> 

OK - rename the $pkgbasedir directory instead.  Or just extract the
package tarballs when you want to look at the package files.

Allan


More information about the pacman-dev mailing list