From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6521574339082452992 X-Received: by 10.28.184.88 with SMTP id i85mr228097wmf.22.1518539487493; Tue, 13 Feb 2018 08:31:27 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.45.209 with SMTP id t200ls1678494wmt.11.gmail; Tue, 13 Feb 2018 08:31:27 -0800 (PST) X-Google-Smtp-Source: AH8x224skYofYXf6EJXvYbxsnAxmgoEFyp0t2zXx3AK2wWJ063FJB2sPvp5YmzWnVseV4+x1Xbcq X-Received: by 10.28.87.194 with SMTP id l185mr232593wmb.9.1518539487014; Tue, 13 Feb 2018 08:31:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518539486; cv=none; d=google.com; s=arc-20160816; b=dG3ydxJTQPEDqX2OxRZ8RJFDYffO7o5pB2GgbEKX0kaLCng6LrtiUc52jh7ptQBtuS 2BDB37uVj8eKouSqVqXie8afePOPziZvitkyt/GiZRth/YjbIHogcyvIRg/xCoXHWSFR JMjWiibcHzMGbvqWTGPyZBiojAoh90Twzxqx4MO0K1iybqA3yRZpFJnyJvHqYdyvWokt fZWSmMBvk7Y1cfnkmNSENK9o/F7UGbiJuudhtyrUVVn+tw+MHOIDeEQl/MMyW8+7UiyG f6vOpkCzDvOcpbcH+oDD6bFnZFOq3dn9dHuuXxG35kopNVNy64O430//sgwvkxYSNLGf 3njw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:subject:user-agent :references:in-reply-to:message-id:date:to:from :arc-authentication-results; bh=mBnTeB0wwGJJRqbH7/g+elBxCmarjxAK68X+EfI808k=; b=MwkW2X8hbHqTs2RsKBBq6jk6h+6y+d2wnk0A/rhaDv05ZKf9fbBS/C+bWplx+VzjAg 6181YJFtpnstdMcWB2PxVFeOloeLBotVwoCJz6LIf7wkrdK/N8DIiwLO0Zn5p4dUYDvr Hvyoez2FU5PaxpqYbYExzTYWeEkqznST17FX7lMMECu1SPDPouJuvzm2DI976myFmCeD EDQzeWTF6xBApZPGobFHH+4Xm/vcWDwt2SqGB2INFzyp4W4ilWHhWMgJb0t/dZYcCAVw YJ64XL0VVwYwDkcyBUjXXcML8jzqVYOP7HvfkQv8rEWLObNJDctX+GgNkaxAQx0wQQDn p7RQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id f8si420834wmc.2.2018.02.13.08.31.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Feb 2018 08:31:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [192.168.1.235] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w1DGVOTH006710; Tue, 13 Feb 2018 17:31:25 +0100 From: Alexander Smirnov To: Jan Kiszka , "isar-users" Date: Tue, 13 Feb 2018 19:31:39 +0300 Message-ID: <1619001e5f8.27ac.034a6b0541ed39b7fb4e17f4ac219eaa@ilbers.de> In-Reply-To: <038079cd-cae7-cf0f-82e9-79d14d536e61@siemens.com> References: <8bad656e1d49c46defe144a08305c1a0dca92b46.1518422347.git.jan.kiszka@siemens.com> <038079cd-cae7-cf0f-82e9-79d14d536e61@siemens.com> User-Agent: AquaMail/1.10.0-403 (build: 101000001) Subject: Re: [PATCH 5/6] dpkg-raw: Clean DEBIAN dir prior to filling it MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8" Content-Transfer-Encoding: 8bit X-TUID: qZQdVV7C6iVB Jan Kiszka 13 февраля 2018 г. 19:22:23 написал: > On 2018-02-13 15:06, Alexander Smirnov wrote: >> >> >> On 02/12/2018 10:59 AM, Jan Kiszka wrote: >>> From: Jan Kiszka >>> >>> When we run unprivileged, writing files in that directory will not work >>> after the first run because everything is root-owned at the end. >>> >>> Signed-off-by: Jan Kiszka >>> --- >>>   meta/classes/dpkg-raw.bbclass | 5 ++--- >>>   1 file changed, 2 insertions(+), 3 deletions(-) >>> >>> diff --git a/meta/classes/dpkg-raw.bbclass >>> b/meta/classes/dpkg-raw.bbclass >>> index 44aa078..e3ae9e8 100644 >>> --- a/meta/classes/dpkg-raw.bbclass >>> +++ b/meta/classes/dpkg-raw.bbclass >>> @@ -16,10 +16,9 @@ do_install() { >>>   do_install[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}" >>>   addtask install after do_unpack before do_deb_package_prepare >>>   -# so we can put hooks etc. in there already >>> -do_install[dirs] = "${D}/DEBIAN" >> >> Here you remove this folder, while it's used in example-raw recipe. I mean here you break the build for next and master. Alex >> > Alex >> >>> - >>>   do_deb_package_prepare() { >>> +    sudo rm -rf ${D}/DEBIAN >>> +    mkdir ${D}/DEBIAN > > It is created here now - nothing is lost. If you tell me a good reason > to keep it listed above as well, I'm fine with leaving that line alone. > > Jan > >>>       cat<<-__EOF__ > ${D}/DEBIAN/control >>>           Package: ${PN} >>>           Architecture: ${DISTRO_ARCH} >>> > -- With best regards, Alexander Smirnov ilbers GmbH Baierbrunner Str. 28c D-81379 Munich +49 (89) 122 67 24-0 http://ilbers.de/ Commercial register Munich, HRB 214197 General manager: Baurzhan Ismagulov