From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6521574339082452992 X-Received: by 10.28.202.2 with SMTP id a2mr1046020wmg.20.1519646616303; Mon, 26 Feb 2018 04:03:36 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.214.21 with SMTP id n21ls1575352wmg.0.canary-gmail; Mon, 26 Feb 2018 04:03:35 -0800 (PST) X-Google-Smtp-Source: AG47ELsyhrmBxnN3fYzpcSHy3XWdOd9+mkDpXHFmIK0uZPLbbXALa6lZuAzyB8Hp+Lkr9G8Lm7uY X-Received: by 10.28.105.80 with SMTP id e77mr605416wmc.26.1519646615594; Mon, 26 Feb 2018 04:03:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519646615; cv=none; d=google.com; s=arc-20160816; b=bWGx22tDyf4NhjEOjABt7C98+TDqXycSmFx0NRUDvVZiMXsoQhsnrlnq5lyCN68OF5 F2Zo3X75SVe2UFzgK7ShgcXRHb5ieHq1E4h1y3aHCKEpTGduBgT1O9sr10FXVsYbj+D+ bjIYGUsvPNi51cG+znxQvfaXMwmS2E/Qoceut9WrD9YNwdw3rRi0X+qQQcEzMx98+wnv 2AZxjsXfrLoGaQmfDkkuINgqMUkocrC7wt24hABETA6D6SJWqg9g4s/Lt5L+qATW0Kz8 JuW4aH/3MKl0tDGtiWFvcN0MTW9fOVFohBRQGbIGOqpW91kpWksAqh3MkgElo+tUhLVx YoNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :arc-authentication-results; bh=QKVECxKBcAZOw4nzqsuONQLfcRC6LiK5wfFdGRffxkw=; b=JyAkjcBHWWbWZT/3PLHmgWhCBH1w/K/YQfZcvlQBJj7C6VjVHSOPc0N6+QXj7E4nsb VQRZAvPHt3kZ110JicH9C+VsR+f/sgROv9NuXNdPJGRYNPSFPY3MT/Yi4M0JnYHjsKAh E9RfVDWbHmqdI+YQBwksfq8gEcfNSBRrHYnl9jjdArgOEkBxYJ7luumfHTSPvdPpq0P9 PnqFrgT7G3IhfnekfFjQoJE41zw0B8GHFfDnHn5dea0MoZgc7US/31tJbAG97MbVGrAj rt0/GMny4b8EwI4gR0ZbzaYkmvkcvbhiIfleq9ei61dPQQ9JViO3VsenCHbSeGsqlGTD SbPg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id s81si350087wmd.2.2018.02.26.04.03.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Feb 2018 04:03:35 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w1QC3Zfs002774 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Feb 2018 13:03:35 +0100 Received: from [139.25.68.37] (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id w1QC3XmR002013; Mon, 26 Feb 2018 13:03:34 +0100 Subject: Re: [PATCH] dpkg-raw: Fix creation of DEBIAN folder To: Andreas Reichel Cc: Alexander Smirnov , Claudius Heine , isar-users References: <3ae97982-962e-be4d-22a6-477db2fad432@siemens.com> <20180226113934.GA25174@iiotirae> From: Jan Kiszka Message-ID: <51bbd492-4726-6613-c385-aa236658208d@siemens.com> Date: Mon, 26 Feb 2018 13:03:33 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <20180226113934.GA25174@iiotirae> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: sdsFmU4NdDi1 On 2018-02-26 12:39, Andreas Reichel wrote: > On Thu, Feb 15, 2018 at 11:53:39AM +0100, [ext] Jan Kiszka wrote: >> From: Jan Kiszka > > I just noticed, for me it tries to create a DEBIAN folder inside > an "image" folder, that has root-only write permissions and thus > fails since the function is executed as user "builder". > > I reproduced this with a clean build and a dpkg-raw recipe. > > No time to debug this atm. I suppose that was a rebuild, not a clean build (otherwise the ownership would not be on root already). Anyway, yet another example for our mess with ownerships vs. cleanups. Maybe there is some way to overload the functions that bitbake uses when it tries to do mytask[cleandirs] and switch back to a consistent bitbake model. But I didn't figure this out yet. Jan > >> >> If do_install did not do this for us, we failed. >> >> Fixes: b04530d19c79 (dpkg-raw: Clean DEBIAN dir prior to filling it) >> Signed-off-by: Jan Kiszka >> --- >> meta/classes/dpkg-raw.bbclass | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/meta/classes/dpkg-raw.bbclass b/meta/classes/dpkg-raw.bbclass >> index e0ea811..28233ac 100644 >> --- a/meta/classes/dpkg-raw.bbclass >> +++ b/meta/classes/dpkg-raw.bbclass >> @@ -18,7 +18,7 @@ addtask install after do_unpack before do_deb_package_prepare >> >> do_deb_package_prepare() { >> sudo rm -rf ${D}/DEBIAN >> - mkdir ${D}/DEBIAN >> + mkdir -p ${D}/DEBIAN >> cat<<-__EOF__ > ${D}/DEBIAN/control >> Package: ${PN} >> Architecture: ${DISTRO_ARCH} >> -- >> 2.13.6 >> >> -- >> You received this message because you are subscribed to the Google Groups "isar-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. >> To post to this group, send email to isar-users@googlegroups.com. >> To view this discussion on the web visit https://groups.google.com/d/msgid/isar-users/3ae97982-962e-be4d-22a6-477db2fad432%40siemens.com. >> For more options, visit https://groups.google.com/d/optout. > -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux