]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
PKGFILE: prevent out of tree builds 101/head
authorSilvio Fricke <silvio.fricke@gmail.com>
Sun, 8 Nov 2015 11:53:36 +0000 (12:53 +0100)
committerSilvio Fricke <silvio.fricke@gmail.com>
Sun, 8 Nov 2015 11:57:33 +0000 (12:57 +0100)
With makepkg is it possible to build sources away from the PKGFILE. The
previous behavior was crash on build if this was setup. With this
patch we prevent this possibility.

Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
PKGBUILD

index c625bdb95cb2381349a1035517eeef75e4e59142..05a32b08dcd5d4b4f2950a72a901e39102e25a0e 100644 (file)
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,6 +14,13 @@ backup=(etc/dracut.conf)
 source=()
 md5sums=()
 
+# out of tree builds disallowed for this PKGFILE
+BUILDDIR="${PWD}"
+PKGDEST="${PWD}"
+SRCDEST=""
+SRCPKGDEST=""
+LOGDEST=""
+
 pkgver() {
   cd ..
   desc="$(git describe)"