From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6521574339082452992 X-Received: by 10.25.89.211 with SMTP id n202mr127923lfb.18.1518686047221; Thu, 15 Feb 2018 01:14:07 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.25.226.25 with SMTP id z25ls2078879lfg.11.gmail; Thu, 15 Feb 2018 01:14:06 -0800 (PST) X-Google-Smtp-Source: AH8x2250tx2Ch5mK5rxM3TlSm2scp+FYDAq49cgxbij/g30HHEwxPYeg1zXMuXp6dIKiyPkRAZ1L X-Received: by 10.25.39.65 with SMTP id n62mr129773lfn.0.1518686046453; Thu, 15 Feb 2018 01:14:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518686046; cv=none; d=google.com; s=arc-20160816; b=OlGUTFDoHpiaLNnkWkFVt7B/R0eDG0u/8rZdwtY9bFVod7ZCqRVxXljaqMFeAj04jw Gg4gwGQAjmqRKhXAJbdk/NWPjgrY3S11/iqUMy28ebSair7h8TSHKu4VtTvJy4AXJa81 vAjmzg7Wkun6WqQwU4A9A1CGbHyuym+0fpwF73kz+hSH6nThZ3R5A0KppzCwjGf+fjL7 BzDNgBDds/iZIBTaqpP4F7dMXVzMqU8WhKvopXJ5S3dyFu0rLcKFgqnYIKRX9GNIxJzc 4bmmGEA2uXtTXe90SaHDcWvHKUTqAl+E9u1KuU8zmhNjX652AVbAOTC/97ghSQ9mjF5l tiww== 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:to:subject :arc-authentication-results; bh=cIhMyIsKiZUUpAHIncTYrszdbSsNYaT076fKiF/YsS8=; b=qE4BHDLWaM9BHtKfXkVxJqjhfri5M5mUZ1CV0sVjPXbMgTAM5fPIMCm60nfLjk0aIV mCb9L2mITIVgw0BRGiKEg8pNViqT8De7nkLrorNsN8d6AwIdN3cr26uWhtObfIyWCp9d hk/QJv9ur//B/xy1p1sMAn0oxEMLGGEVUhtnPv9hugudR0ApMxt4Y9Xbnot1NCF4uQfg HvamS2tNWP3zglGPDoyhjgDOj5BvrGU4X1vYHSt0A2DRghElqvRII8GzFXo+ODSsVUEX YchDWOOkkg08fkH+BAZSCyKCsSbZergMqc/66gG9B/tPS99zOEpGn8e+i1EiYQjrbsXv yO5Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=claudius.heine.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 u10si828542lju.0.2018.02.15.01.14.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 01:14:06 -0800 (PST) Received-SPF: pass (google.com: domain of claudius.heine.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 claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=claudius.heine.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 w1F9E5kL006995 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 15 Feb 2018 10:14:05 +0100 Received: from [139.25.68.223] (linux-ses-ext02.ppmd.siemens.net [139.25.68.223]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id w1F9E5OS031752; Thu, 15 Feb 2018 10:14:05 +0100 Subject: Re: [PATCH v2 7/9] dpkg-raw: Clean DEBIAN dir prior to filling it To: "[ext] Jan Kiszka" , isar-users References: From: Claudius Heine Message-ID: Date: Thu, 15 Feb 2018 10:14:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: 3SaHGc8KsdL1 Hi Jan, On 02/13/2018 09:05 PM, [ext] 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" > - > do_deb_package_prepare() { > + sudo rm -rf ${D}/DEBIAN > + mkdir ${D}/DEBIAN > cat<<-__EOF__ > ${D}/DEBIAN/control > Package: ${PN} > Architecture: ${DISTRO_ARCH} > This: do_install() { sudo install -v -m 755 ${WORKDIR}/postinst ${D}/DEBIAN/postinst } causes now: install: cannot create regular file ‘/[...]/DEBIAN/postinst’: No such file or directory How should that be fixed? Cheers, Claudius -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de