From: Marcin Juszkiewicz Date: Fri, 3 Aug 2007 14:32:53 +0000 (+0000) Subject: patch.bbclass: give empty file for quilt so it will not use config from user homedir... X-Git-Tag: Release-2010-05/1~8868^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31af90140f95e186bc2f5a53f725429abaa8df57;p=openembedded.git patch.bbclass: give empty file for quilt so it will not use config from user homedir - closes #2704 (code from Poky) --- diff --git a/classes/patch.bbclass b/classes/patch.bbclass index 2ba6729af8..0cc202820f 100644 --- a/classes/patch.bbclass +++ b/classes/patch.bbclass @@ -1,5 +1,8 @@ # Copyright (C) 2006 OpenedHand LTD +# Point to an empty file so any user's custom settings don't break things +QUILTRCFILE ?= "${STAGING_BINDIR_NATIVE}/quiltrc" + def patch_init(d): import os, sys @@ -180,9 +183,10 @@ def patch_init(d): class QuiltTree(PatchSet): def _runcmd(self, args, run = True): + quiltrc = bb.data.getVar('QUILTRCFILE', self.d, 1) if not run: - return ["quilt"] + args - runcmd(["quilt"] + args, self.dir) + return ["quilt"] + ["--quiltrc"] + [quiltrc] + args + runcmd(["quilt"] + ["--quiltrc"] + [quiltrc] + args, self.dir) def _quiltpatchpath(self, file): return os.path.join(self.dir, "patches", os.path.basename(file))