[pacman-dev] [PATCH] Add a -C, --cleanbuild option to clear the source directory before building a package.

Lukas Jirkovsky l.jirkovsky at gmail.com
Thu Oct 10 06:51:24 EDT 2013

On Thu, Oct 10, 2013 at 12:47 PM, Allan McRae <allan at archlinux.org> wrote:
> Did you test it - it does not remove ANYTHING.
> rm -rf "$srcdir/*"
> vs
> rm -rf "$srcdir"/*

Ah, damn it. I'm sorry. I did test it, but I manually apllied the
patch to the /usr/bin/makepkg where I wrote it correctly, so it worked

> With that patch, using -C means anything with a non-vcs will not build
> due to having no files in $srcdir.  My patch "Link non-vcs sources into
> $srcdir during extraction" fixes that.

That would be the problem, I had only a few PKGBUILDs using VCS
sources around, so it worked for me. I'm sorry again.


More information about the pacman-dev mailing list