* [PATCH] meta: builchroot: Preserve environment when calling dpkg-buildpackage
@ 2018-11-04 10:08 Jan Kiszka
0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2018-11-04 10:08 UTC (permalink / raw)
To: isar-users; +Cc: Henning Schild
This is required in order to allow recipes to pass variables down to the
rules file. E.g., u-boot-custom.inc makes use of this.
Fixes: be291cd991bd ("buildchroot: build debian packages as "builder" not "root"")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
meta/recipes-devtools/buildchroot/files/build.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/buildchroot/files/build.sh b/meta/recipes-devtools/buildchroot/files/build.sh
index d98eb2e..5855f29 100644
--- a/meta/recipes-devtools/buildchroot/files/build.sh
+++ b/meta/recipes-devtools/buildchroot/files/build.sh
@@ -17,4 +17,4 @@ done
# Build the package as user "builder"
chown -R builder:builder $1 # the sources
chown builder:builder $1/.. # the output
-su - builder -c "cd $1; dpkg-buildpackage -a$target_arch -d --source-option=-I"
+su - builder -p -c "cd $1; dpkg-buildpackage -a$target_arch -d --source-option=-I"
--
2.16.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-11-04 10:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-04 10:08 [PATCH] meta: builchroot: Preserve environment when calling dpkg-buildpackage Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox