public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] dpkg-raw: Fix rebuilding recipes
@ 2018-10-09  9:06 Harald Seiler
  2018-10-09 10:05 ` Jan Kiszka
  0 siblings, 1 reply; 8+ messages in thread
From: Harald Seiler @ 2018-10-09  9:06 UTC (permalink / raw)
  To: isar-users

Rebuilding dpkg-raw packages fails because the
DEBIAN directories' ownership is transferred to
root in dpkg_runbuild.  This commit ensures the
ownership is reset before attempting to write
metadata.

Signed-off-by: Harald Seiler <hws@denx.de>
---
 meta/classes/dpkg-raw.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/classes/dpkg-raw.bbclass b/meta/classes/dpkg-raw.bbclass
index c848f3d..806a2d4 100644
--- a/meta/classes/dpkg-raw.bbclass
+++ b/meta/classes/dpkg-raw.bbclass
@@ -18,7 +18,8 @@ addtask install after do_unpack before do_prepare_build
 
 deb_package_prepare() {
 	sudo rm -rf ${D}/DEBIAN
-	mkdir -p ${D}/DEBIAN
+	sudo mkdir -p ${D}/DEBIAN
+	sudo chown ${USER}:${USER} ${D}/DEBIAN
 	cat<<-__EOF__ > ${D}/DEBIAN/control
 		Package: ${PN}
 		Architecture: ${DISTRO_ARCH}
-- 
2.14.1


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

end of thread, other threads:[~2018-10-22 15:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-09  9:06 [PATCH] dpkg-raw: Fix rebuilding recipes Harald Seiler
2018-10-09 10:05 ` Jan Kiszka
2018-10-09 10:28   ` Harald Seiler
2018-10-09 12:17     ` Jan Kiszka
2018-10-09 12:31       ` Jan Kiszka
2018-10-09 14:23         ` Harald Seiler
2018-10-09 15:11           ` Jan Kiszka
2018-10-22 15:57       ` Henning Schild

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