From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6449247988281769984 X-Received: by 10.25.233.88 with SMTP id g85mr2317915lfh.38.1501676986815; Wed, 02 Aug 2017 05:29:46 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.22.11 with SMTP id 11ls732888wmw.2.gmail; Wed, 02 Aug 2017 05:29:45 -0700 (PDT) X-Received: by 10.28.132.144 with SMTP id g138mr322571wmd.5.1501676985669; Wed, 02 Aug 2017 05:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501676985; cv=none; d=google.com; s=arc-20160816; b=mOyzMWVbhPkFZGXWHahATb/f4l4/vCcpsPwARm+2VY/Ugjo3y0dDW5StWrlwf5+Ntf NAlyqAwzavM1Vmg1gmkIU4GHHDsETfu2ES58al4tF16+0yMFprUJyct7EB67fCuluC2M tHidVVzluaKPv0U/4CVEKO0gYE85+ubYV/w38eehFfnlfPYWzFJCukJkw/3/Mh26xuJp d+vks+lWLvhbEnuWIkTqQ4ooB6t+3J+gSvRy4oV0DviUm6ZUoG4rbBWsoXfedgfUcmge wx6VuBy+zD1Um7HrusTLKw+3YzRLz2F8qeTEXF3lVjiEhIWdWv61CFtvmBi1A/kxrisq NT/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=ykd2rFAbSEkdrq09Ti0Y7NEazHEtAYUdiy9OsnuW7Z8=; b=H7dy7azZVKdG6EAqwo6bYNqMvtgx83eZD7BH1KLSAp+QYrzHdBHqDFqNWa5kBMwXFa guxCNN5WEcKGTubNah2fpRiuX+zDNLQicS0RR916NgZ9VW7ZEkvyUSXUijFVsoiC+M4B /soOzY3V8EHYfpvdtUkMmrQBLhDDA9l0ZVwwaypLyn+NkKu2WvJkBPYDl007LufKYdmi JWgNv1QzGMdIrSXl4M9rWpNPel076DPe5zFWghVOzshOuSCIPJuXW/dd+MqJNTv5p2Yj vIPtvGVr921C5nMcGdSkvQXnNM1goOQy1LpBrosVKM7UMZYyxd0cBkh5Hr7AEMqaqWwA 6+xw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 192.35.17.2 is neither permitted nor denied by best guess record for domain of henning.schild@siemens.com) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id n128si821180wmn.1.2017.08.02.05.29.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Aug 2017 05:29:45 -0700 (PDT) Received-SPF: neutral (google.com: 192.35.17.2 is neither permitted nor denied by best guess record for domain of henning.schild@siemens.com) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 192.35.17.2 is neither permitted nor denied by best guess record for domain of henning.schild@siemens.com) smtp.mailfrom=henning.schild@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 v72CTids003260 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 2 Aug 2017 14:29:45 +0200 Received: from md1em3qc ([139.25.68.40]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id v72CTi6d030408; Wed, 2 Aug 2017 14:29:44 +0200 Date: Wed, 2 Aug 2017 14:31:39 +0200 From: Henning Schild To: Alexander Smirnov Cc: Claudius Heine , , "Dr . Johann Pfefferl" Subject: Re: [PATCH 15/16] meta: add dpkg-bin class Message-ID: <20170802143139.3bbbdb23@md1em3qc> In-Reply-To: References: <45a900737baed2ceb30b5eef22eb5a53f64ae020.1501582237.git.henning.schild@siemens.com> <85893014-c2cf-9bde-abf4-ddecf5c2682b@siemens.com> <1411c20e-fff4-cef4-9e15-460eebc14dab@siemens.com> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: Q/4lK5SaeKBU Am Wed, 2 Aug 2017 13:11:47 +0300 schrieb Alexander Smirnov : > Hi colleagues, > > from the patch description it's not clear what this patch stays for, > seems that I'm out of you communcation loop. Could you please > annotate the patches with more detailed description, at least with > the following information: > - Change proposal This patch introduces a way to turn any file-collection into a debian package on the fly. It further enables executing scripts in the rootfs for configuration purposes. It allows recipes to pull in debian packages as deps, allowing the creation of "meta-packages" (empty packages which just carry deps) > - Why this change is needed. It's not about arguments to push your > change, it's more about your ideas and motivation. That's the most > imporant information which is missed. Customization of the image. Configuration of the rootfs on a per package basis. dep installation on a per package basis. no IMAGE_PREINSTALL += in image.bb anymore, just IMAGE_INSTALL and the packages take care of pulling their deps. eventually replace the configure.sh with packages that - replace fstab - set rootpw ... > - Change impact to Isar, who will be affected Improve Isar and enable better customization using Debian-tooling, for everyone ;). Henning > 2017-08-01 18:10 GMT+03:00 Claudius Heine > : > > > > > > > On 08/01/2017 04:25 PM, [ext] Claudius Heine wrote: > > > >> > >> > >> On 08/01/2017 12:17 PM, [ext] Henning Schild wrote: > >> > >>> Signed-off-by: Henning Schild > >>> --- > >>> meta/classes/dpkg-bin.bbclass | 47 > >>> ++++++++++++++++++++++++++++++ +++++++++++++ > >>> 1 file changed, 47 insertions(+) > >>> create mode 100644 meta/classes/dpkg-bin.bbclass > >>> > >>> diff --git a/meta/classes/dpkg-bin.bbclass > >>> b/meta/classes/dpkg-bin.bbclass > >>> new file mode 100644 > >>> index 0000000..1e96bd1 > >>> --- /dev/null > >>> +++ b/meta/classes/dpkg-bin.bbclass > >>> @@ -0,0 +1,47 @@ > >>> +inherit isar-base > >>> + > >>> +DEBIAN_DEPENDS ?= "" > >>> +DEBIAN_MAINTAINER ?= "FIXME Unknown maintainer" > >>> + > >>> +D = "${WORKDIR}/image/" > >>> + > >>> +# Populate folder that will be picked up as package > >>> +do_install() { > >>> + bbnote "Put your files for this package in ${D}" > >>> +} > >>> + > >>> +addtask install after do_unpack before do_deb_package_prepare > >>> +# so we can put hooks in there already > >>> +do_install[dirs] = "${D}/DEBIAN" > >>> + > >>> +do_deb_package_prepare() { > >>> + cat<<-__EOF__ > ${D}/DEBIAN/control > >>> + Package: ${PN} > >>> + Architecture: `dpkg --print-architecture` > >>> + Section: misc > >>> + Priority: optional > >>> + Maintainer: ${DEBIAN_MAINTAINER} > >>> + Depends: `echo ${DEBIAN_DEPENDS} | tr '[:blank:]' ','` > >>> + Version: ${PV}+isar > >>> + Description: ${DESCRIPTION} > >>> + __EOF__ > >>> + CONFFILES=${D}/DEBIAN/conffiles > >>> + find ${D} -path '*/etc/*' | sed -e 's|^${D}||' > $CONFFILES > >>> > >> > >> I package a container root file system and now the files in the etc > >> directory of this rfs is mentioned in the conffiles file. > >> > > > > It also adds directories into the conffiles file. dpkg does not > > like this. > > > > > >> Maybe add an option to disable this here? > >> > >> + test -s $CONFFILES || rm $CONFFILES > >>> + for t in pre post > >>> + do > >>> + for a in inst rm > >>> + do > >>> + chmod -f +x ${D}/DEBIAN/${t}${a} || true > >>> + done > >>> + done > >>> +} > >>> + > >>> +addtask deb_package_prepare after do_install before > >>> do_install_package + > >>> +do_deb_package() { > >>> + sudo chown -R root:root ${D}/DEBIAN/ > >>> + sudo dpkg-deb --build ${D} ${WORKDIR} > >>> +} > >>> + > >>> +addtask deb_package after do_deb_package_prepare before > >>> do_install_package > >>> > >>> > >> > > -- > > 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/ms > > gid/isar-users/1411c20e-fff4-cef4-9e15-460eebc14dab%40siemens.com. > > > > For more options, visit https://groups.google.com/d/optout. > >