public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: isar-users <isar-users@googlegroups.com>
Cc: Henning Schild <henning.schild@siemens.com>
Subject: [PATCH] meta: builchroot: Preserve environment when calling dpkg-buildpackage
Date: Sun, 4 Nov 2018 11:08:03 +0100	[thread overview]
Message-ID: <270f0d8f-c71a-71fd-4d1a-7b0d41bbee71@siemens.com> (raw)

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

                 reply	other threads:[~2018-11-04 10:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=270f0d8f-c71a-71fd-4d1a-7b0d41bbee71@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=henning.schild@siemens.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox