From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6521574339082452992 X-Received: by 10.80.146.109 with SMTP id j42mr3049229eda.6.1519648216686; Mon, 26 Feb 2018 04:30:16 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.80.158.236 with SMTP id a99ls6336847edf.7.gmail; Mon, 26 Feb 2018 04:30:16 -0800 (PST) X-Google-Smtp-Source: AH8x227yKqQwdA+AjneNA68Kvtqee2uVJIQkJ5rxr3EvqTDKKBLQ/gOGL0X8RQcxWxwyX7yJI8m6 X-Received: by 10.80.138.132 with SMTP id j4mr3060523edj.4.1519648216091; Mon, 26 Feb 2018 04:30:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519648216; cv=none; d=google.com; s=arc-20160816; b=j3uU/NAFa7Fa4gddnmHcHVKq4w3SCqzyj6XCyTOwAZDJBSWkyAktGQMwD90VOyexBK tc4J9CEwBlCeVlrKru/FZEAJGLAIm3nAVN96X73Iw85O1miR69EQ/m41HoLaLdZokNqV sYLJAqZqdNEaXAF65VIRLpS6yBAb7r93HUSbVzXfWof5L6EQH/qfQPeOIev0Qz+EAU74 DXWRLwTyXhrWX85Ywi6BDnoAq60aabcaz36bQ6Q5vVFCWx8QF0epAdygQKCCx4NxTNUt 28HL7pE5ILPky7W82x+9la9gki2BisGAGcMNiXoDuv/wvNL6Kd6JQOeSONPDYHFV/evP MoRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:content-description :mime-version:references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=epvLzgyJV9j+v70iOHTi0TAx254KHm3tWm1LKDZ/3PM=; b=Nzgs9ohBJt8FhyJpeaOxY2Xsaw0pGqVZ1xIOtNsGGE1RHtCEfnWYUA6d3linQLmmjU x+eoL4A4pyqq7kWwm9Pd0vWcp/DVP/CUVcqWMM1IqnHkJOAs6mLUTQhEBzSSVKVbk0op nmNBFuzsa1O8yXYXanAMMff+s1Uyc8H8POJDNYbzkauKVCWA6d1yje2Hmq5tjYMJ7zj+ pkIasXWW/gYaHZ0E43nSPIRwh6FVyqsd3exwXBmajFavqmTBiDnFGrtdr4cDbRqg1w0V IvAgBJ5P9DHL/LLTMs9wMV7YXPxOPzIzQuGZA8Q+K+5xdazcuRnzbMqIg21iE4BE4ToN PGFQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of andreas.reichel.ext@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=andreas.reichel.ext@siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id h9si318427edi.4.2018.02.26.04.30.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Feb 2018 04:30:16 -0800 (PST) Received-SPF: pass (google.com: domain of andreas.reichel.ext@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of andreas.reichel.ext@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=andreas.reichel.ext@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id w1QCUFPF005602 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Feb 2018 13:30:15 +0100 Received: from iiotirae (golem.ppmd.siemens.net [139.25.69.93]) by mail2.sbs.de (8.15.2/8.15.2) with SMTP id w1QCUEnq010207; Mon, 26 Feb 2018 13:30:14 +0100 Date: Mon, 26 Feb 2018 13:27:15 +0100 From: Andreas Reichel To: "[ext] Jan Kiszka" Cc: Alexander Smirnov , Claudius Heine , isar-users Subject: Re: [PATCH] dpkg-raw: Fix creation of DEBIAN folder Message-ID: <20180226122715.GA32638@iiotirae> References: <3ae97982-962e-be4d-22a6-477db2fad432@siemens.com> <20180226113934.GA25174@iiotirae> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Description: message Content-Disposition: inline In-Reply-To: <20180226113934.GA25174@iiotirae> User-Agent: Mutt/1.9.3 (2018-01-21) X-TUID: MdcYjR2MeH9/ On Mon, Feb 26, 2018 at 12:39:34PM +0100, Andreas Reichel wrote: > On Thu, Feb 15, 2018 at 11:53:39AM +0100, [ext] Jan Kiszka wrote: > > From: Jan Kiszka > Please ignore this report :) my do_install was wrong > 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. > > > > > 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. > > -- > Andreas Reichel > Dipl.-Phys. (Univ.) > Software Consultant > > Andreas.Reichel@tngtech.com, +49-174-3180074 > TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterfoehring > Geschaeftsfuehrer: Henrik Klagges, Dr. Robert Dahlke, Gerhard Mueller > Sitz: Unterfoehring * Amtsgericht Muenchen * HRB 135082 > -- Andreas Reichel Dipl.-Phys. (Univ.) Software Consultant Andreas.Reichel@tngtech.com, +49-174-3180074 TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterfoehring Geschaeftsfuehrer: Henrik Klagges, Dr. Robert Dahlke, Gerhard Mueller Sitz: Unterfoehring * Amtsgericht Muenchen * HRB 135082