From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6463342265335021568 X-Received: by 10.46.77.200 with SMTP id c69mr20329ljd.8.1505732729173; Mon, 18 Sep 2017 04:05:29 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.161.4 with SMTP id k4ls1458972wme.7.gmail; Mon, 18 Sep 2017 04:05:28 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDYA/scTLHbVSllvR3G16+YfKZ1c3wrf9oTOPLa4amavUjsQInCO8Ijv3vnqahcPgavQT3E X-Received: by 10.28.0.7 with SMTP id 7mr972400wma.26.1505732728900; Mon, 18 Sep 2017 04:05:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505732728; cv=none; d=google.com; s=arc-20160816; b=VsWU2nz+2tfCI6rXjZh1AMH1+zP5pcMjzsMBUwq6z3+TUpBQTMm/Qp1G18cyCkarUl qpqDdJE075NHtWY0MqcPgxY1dFbnV0fxgrZjjB9Z+uVm1xsJhMVgcaUb6fi0HP2G8+UW f9lWcrh+aNOsFDuQ071+SJreiBMIYp5HBapyadwfeSN/Y6Peuf5qtpmfoBGLC8D049kL k28KaXOqY8vsN/BHU22PWtFYZ38443J41gsn26fSsR1propJ/0l0hlKdHp4pPoOp4kWj WGWEOXsXT676qPaG0HDv2BWp07c1GfurbBUhJJ1qOWe4ioa1/871eTlBtg2ElsjCzozU vCjQ== 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=jU+yNN6uUIyngPWHqqU724WsGqfTyVFJUMSG2SE1S3Y=; b=YgMyn/Dm5vK49KKicaTkgg7u30JXLoUUvGjL/TKTrwMeNv+8IBNdcH7YyMda9jdCYN ndMmPL8kH6D4FCBc3HgMbOcmkV4AAYqLHNa85fTBbyebIzk5Wme+cifoI9EADpWHzgEM sxqVt+tCu8NXTuhskoClvN4csGhRS6FdJinPiPCmgu2FAOF3/2ECGmIMfeXGP5ebc2jW p5VzdSWsnoebj/ZsxRSQZTk++hMqk1gduMnanrWxdVP1eyr8/DYtOP9D41E5+o5F297k skby3JBTu6jGCI0zBpWv7r9BgO8vhngTuU0bQaOZnjm/6NxB2mb4+6uhDLyYrGZlMt4M 54yg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 192.35.17.28 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 goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id d82si449281wmd.1.2017.09.18.04.05.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Sep 2017 04:05:28 -0700 (PDT) Received-SPF: neutral (google.com: 192.35.17.28 is neither permitted nor denied by best guess record for domain of henning.schild@siemens.com) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 192.35.17.28 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 goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id v8IB5Sth003127 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 18 Sep 2017 13:05:28 +0200 Received: from md1em3qc ([139.25.68.40]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id v8IB5SVt012493; Mon, 18 Sep 2017 13:05:28 +0200 Date: Mon, 18 Sep 2017 13:05:42 +0200 From: Henning Schild To: Alexander Smirnov Cc: Subject: Re: [PATCH 4/4] doc: Update technical overview Message-ID: <20170918130542.6da881da@md1em3qc> In-Reply-To: <88dc69e0-9c1e-8f69-6fb4-b59db3f99c4e@ilbers.de> References: <88dc69e0-9c1e-8f69-6fb4-b59db3f99c4e@ilbers.de> 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=UTF-8 Content-Transfer-Encoding: quoted-printable X-TUID: ZtYYKUYZtJg5 Am Mon, 18 Sep 2017 11:39:58 +0300 schrieb Alexander Smirnov : > On 09/15/2017 01:51 PM, Henning Schild wrote: > > The introduction of 'dpkg-raw' opens new ways to create custom > > packages. Cover that in the overview. > >=20 > > Signed-off-by: Henning Schild > > --- > > doc/technical_overview.md | 44 > > ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 > > insertions(+), 14 deletions(-) > >=20 > > diff --git a/doc/technical_overview.md b/doc/technical_overview.md > > index e83cbd0..f8ed9ee 100644 > > --- a/doc/technical_overview.md > > +++ b/doc/technical_overview.md > > @@ -24,7 +24,7 @@ executing process. Recipes in Isar can be split > > in two categories: infrastructure, manages Debian tools execution > > for package building and installation, generation root file system > > images=20 > > - - User recipes: custom user applications, that should be buil=D0=B5 > > from sources > > + - User recipes: custom user applications, that can be built from > > sources=20 > > There are two types of dependencies in Isar: > > =20 > > @@ -155,26 +155,42 @@ here: `meta-isar/recipes-core/images/files`, > > and it implements `do_build` task.=20 > > ## 3.4 Building Custom Packages > > =20 > > -Isar provides possibility to build Debian packages from sources. > > This features -works with Debian-like source packages, i.e. the > > source code tree should -contain debian folder. The build process > > is implemented in -`meta/classes/dpkg.bbclass` and consists from > > the following steps: +Isar provides the possibility to build Debian > > packages from sources. This +features works with Debian-like source > > packages, i.e. the source code tree =20 >=20 > features -> feature >=20 > > +should contain debian folder. This build process is implemented in > > +`meta/classes/dpkg.bbclass`. > > =20 > > -1. Task `do_fetch`: fetch source code from external link > > +Another way of creating Debian packages is implemented in > > +`meta/classes/dpkg-raw.bbclass`. This class can be used for > > customizations that +are not based on source code that should > > become a package.=20 > > -2. Task `do_unpack`: unpack source code to `${WORKDIR}` > > +Both consist of the following steps: > > =20 > > -3. Task `do_build`: mount folder with source code to buildchroot, > > switch > > - to buildchroot using chroot command and run `build.sh` script. > > The > > - `build.sh` script performs the following: > > +1. Task `do_fetch`: fetch files from external links > > =20 > > - 1. Go to `/home/build/${PN}` > > +2. Task `do_unpack`: unpack those files to `${WORKDIR}` > > =20 > > - 2. Get list of dependencies from debian/control and install > > them using apt. +3. Task `do_populate_package` _only_ for > > `dpkg-raw`: copy all you want in your > > + debian package to `${D}`, install hooks in `${D}/DEBIAN` > > =20 > > - 3. Run dpkg-buildpackage > > +4. Task `do_build`: mount folder with unpacked files to > > buildchroot, execute > > + the actual build function `dpkg_runbuild`, and finally umount > > again=20 > > -4. Task `do_install`: install successfully built packages > > + 4.1. the `dpkg_runbuild` function of `dpkg.bbclass` runs > > `build.sh` in the > > + buildchroot. That performs the following: > > + > > + 1. Go to `/home/build/${PN}` > > + > > + 2. Get list of dependencies from debian/control and > > install them. =20 >=20 > This line is terminated by full stop, while others aren't. >=20 > The rest is ok for me, can fix these issues during merge. Ok, in that case i will not send an update of this one. Henning > Alex >=20 > > + > > + 3. Run dpkg-buildpackage > > + > > + 4.2. the `dpkg_runbuild` function of `dpkg-raw.bbclass` > > basically runs > > + `dpkg-deb` to construct a Debian package from a folder of > > files, > > + without compiling anything > > + > > + > > +5. Task `do_install`: install successfully built packages > > `${WORKDIR}/*.deb` to deploy directory `${DEPLOY_DIR_DEB}` > > =20 > > ## 3.5 Populate Target Filesystem > > =20