From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6521574339082452992 X-Received: by 10.223.141.150 with SMTP id o22mr850368wrb.24.1519645354805; Mon, 26 Feb 2018 03:42:34 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.63.21 with SMTP id m21ls1335431wma.5.gmail; Mon, 26 Feb 2018 03:42:34 -0800 (PST) X-Google-Smtp-Source: AG47ELuMYBG4WbDorQa/wSO1LmG5oXiSX9oNb18Xg5OSxIyCvycF9YAZIk2ajLfwQ1NC0jaEFP+q X-Received: by 10.28.170.145 with SMTP id t139mr192829wme.2.1519645354217; Mon, 26 Feb 2018 03:42:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519645354; cv=none; d=google.com; s=arc-20160816; b=UrUOcWyxlthymvbKd8t15aS82t6QaTKakpM4/ezYZT+b7lw+MjlxVtWu0mXO/HxYih mJ/i79jkdKPN+zBRfWLsYrQBfNfAtKgTWUdpb73lxgH29LWi7jNxccxfgqFysa1Ulhjg vUPoYe723zJWdtiZrjNipcvIvJjXdxc6BbuyFUG6VURX8l39+sAhmKRTzl6A3A5aQ6wU xBwyZLeZ8YY0zYCNc8ORgIt11bAxcn/k7cHGQ2ZwOzynsIpDxXt7OCmJduwqr1j1POHr OZv8VNZJbLQB0Tvnq3LA7cyDFmqmren/nDRttckpRMxGq1/QssdJIov4qnG1DcPQfLwZ qw/Q== 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=tQpE+f1tHky2LxJ7Voy3flBxqMsXItDXdAeFqaByqnI=; b=PWL9IoKUjvh3W/n2NmKGl72d3CiwfZuGcTfB6Y8LWHKbwT919MjWH2fvJD3iPpdoVS EpPBk/jL3hT315A4mLPB11IaGHbYJ/wIsWRGzBOT5m2h7YEVaE1va0Xn3HLAf0m1fjlA 8SCbC/n5z7BnyQHZ3fTe1624oZKTo4lhlUiqKeO2kS7PSZiEZ89mEkqXkVORKrwVL9I9 dKB6+ek3q4iZO2Ag5a+1q49pZVDsTSnWMMSeEIHTkERbzrccZZHfAzX3WcxJFKclpZe/ m2mQgdRUpbHMbEGi4Z+wRUisK+HaARnFdGUHBBxnpNAp8TV/xl+bFwaRSbWjMgaNLiUx eqsQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of andreas.reichel.ext@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=andreas.reichel.ext@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id 200si451798wml.2.2018.02.26.03.42.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Feb 2018 03:42:34 -0800 (PST) Received-SPF: pass (google.com: domain of andreas.reichel.ext@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 andreas.reichel.ext@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=andreas.reichel.ext@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w1QBgX7R013224 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Feb 2018 12:42:33 +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 w1QBgXTC018094; Mon, 26 Feb 2018 12:42:33 +0100 Date: Mon, 26 Feb 2018 12:39:34 +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: <20180226113934.GA25174@iiotirae> References: <3ae97982-962e-be4d-22a6-477db2fad432@siemens.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Description: message Content-Disposition: inline In-Reply-To: <3ae97982-962e-be4d-22a6-477db2fad432@siemens.com> User-Agent: Mutt/1.9.3 (2018-01-21) X-TUID: /6AWwZynIByL 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. > > 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