public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] buildchroot: chown the whole WORKDIR to builder:builder
@ 2018-11-12 11:53 Henning Schild
  2018-11-12 13:46 ` Henning Schild
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Schild @ 2018-11-12 11:53 UTC (permalink / raw)
  To: isar-users; +Cc: Henning Schild

The initial idea was to chown as little as possible, but there is a
"chown -R" in do_unpack that we need to work against when rebuilding a
package.

Fixes: be291cd991bd ("buildchroot: build debian packages as "builder" not "root"")
Signed-off-by: Henning Schild <henning.schild@siemens.com>
---
 meta/recipes-devtools/buildchroot/files/build.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/buildchroot/files/build.sh b/meta/recipes-devtools/buildchroot/files/build.sh
index 66b1a77..112aac3 100644
--- a/meta/recipes-devtools/buildchroot/files/build.sh
+++ b/meta/recipes-devtools/buildchroot/files/build.sh
@@ -15,6 +15,5 @@ for i in configure aclocal.m4 Makefile.am Makefile.in; do
 done
 
 # Build the package as user "builder"
-chown -R builder:builder $1 # the sources
-chown builder:builder $1/.. # the output
+chown -R builder:builder $1/.. # the whole WORKDIR
 su builder -c "cd $1; dpkg-buildpackage -a$target_arch -d --source-option=-I"
-- 
2.19.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-11-12 14:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-12 11:53 [PATCH] buildchroot: chown the whole WORKDIR to builder:builder Henning Schild
2018-11-12 13:46 ` Henning Schild
2018-11-12 13:55   ` Jan Kiszka
2018-11-12 14:18     ` Henning Schild

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox