From: Michael Tremer Date: Tue, 2 Mar 2021 22:09:18 +0000 (+0000) Subject: builder: Set BASEDIR in build environment X-Git-Tag: 0.9.28~1285^2~660 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0537f0f8845e0fc3d3bfccfaebc607ccae04ae7;p=pakfire.git builder: Set BASEDIR in build environment Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/builder.py b/src/pakfire/builder.py index 27ac7d341..f858fe706 100644 --- a/src/pakfire/builder.py +++ b/src/pakfire/builder.py @@ -355,6 +355,9 @@ class BuilderContext(object): makefile = self.pakfire.read_makefile("%s/usr/src/%s/%s.nm" \ % (self.pakfire.path, package, package.name)) + # Set BASEDIR + makefile.set(None, "BASEDIR", "/usr/src/%s" % package) + print(makefile) # Execute stages