From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6449247988281769984 X-Received: by 10.25.22.32 with SMTP id m32mr2534702lfi.37.1501686185914; Wed, 02 Aug 2017 08:03:05 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.22.137 with SMTP id 131ls796097wmw.24.canary-gmail; Wed, 02 Aug 2017 08:03:05 -0700 (PDT) X-Received: by 10.28.153.77 with SMTP id b74mr392838wme.10.1501686185540; Wed, 02 Aug 2017 08:03:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501686185; cv=none; d=google.com; s=arc-20160816; b=KZOP9zb4N8sx44Te6jqDmOZHErv6+UO757EMiJjn3JYy1TzoHigURDkY4nicbz87I7 mzVlPt7xhG3TsYe43eTSCWzuJWsEd1MBbVqZCL0Zce5o1QSUPVOdSiDDsRai/rx/CwTW 4w6+w/8saJsFc0NwSPzAvMNai+SKlNrLwQwCQGB1Qx95fg5PaOeP9s6XX2CpHGTtwXZE zhwVnw8SjtebQV58Or0Ul/jRm9Lgzc6UFrsEerKi9vDAMXSm9Eh/YRgRM2y5idWaw81u hQHQrED+Pe6FSH1qtyMNcxxIol8fAwX7gfosMeNF29BC6pA3J8CtJopjOZFmP6FHvibR DTdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=wPOsNaCikR1moQOtMdc/1AHPrbxWeHwkf18E1duukFY=; b=edI0XtD10owphQjRGmuO4Te60othhjRNgPKNJp+C+TOa2V4FIjpkt8/QMJBwA1eoWw 8gnPjSy9/GmM1pX2kDYlRwgYFBmMeZCUW6HC7xR9NZ60gc7kL3bpi17x/zIyNLHdbTXM 91RH7+2ik/BBoft6yUIUC+O8IhMevFvjjedrVB5u8WPhW23QykXtng1aBoLMITrfd70X 9USfxBQZZCJsvQ6qK/k/xroaUpmJE2/dhXuVul/OWgUpdEYIHZpSuwIfNk5cG/6NtEw5 AK6ZfMVkAmVJ4CU8kirGTuo4M3VBfRV2S+mCKJjsZV0HhyQEEFXKHzLzNzpGfVmQ7Z35 hKdw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of ch@denx.de) smtp.mailfrom=ch@denx.de Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net. [2001:a60:0:28:0:1:25:1]) by gmr-mx.google.com with ESMTPS id m6si1082240wmh.7.2017.08.02.08.03.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Aug 2017 08:03:05 -0700 (PDT) Received-SPF: neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of ch@denx.de) client-ip=2001:a60:0:28:0:1:25:1; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of ch@denx.de) smtp.mailfrom=ch@denx.de Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3xMxJT1wNtz1qrfB; Wed, 2 Aug 2017 17:03:05 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3xMxJT1PD4z3jgYl; Wed, 2 Aug 2017 17:03:05 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 7qCk5Cy2mJMY; Wed, 2 Aug 2017 17:03:03 +0200 (CEST) X-Auth-Info: 3KBD+YMSGPE6O7GkH5MYZVPlwGypddqTm7oxFuxEIIQ= Received: from Orrorin.Speedport_W723_V_Typ_A_1_01_009 (p578a821c.dip0.t-ipconnect.de [87.138.130.28]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 2 Aug 2017 17:03:03 +0200 (CEST) Message-ID: <1501686182.4957.18.camel@denx.de> Subject: Re: [PATCH 15/16] meta: add dpkg-bin class From: Claudius Heine To: Henning Schild , Claudius Heine Cc: isar-users@googlegroups.com, "Dr . Johann Pfefferl" Date: Wed, 02 Aug 2017 17:03:02 +0200 In-Reply-To: <20170802154025.3f130597@md1em3qc> References: <45a900737baed2ceb30b5eef22eb5a53f64ae020.1501582237.git.henning.schild@siemens.com> <85893014-c2cf-9bde-abf4-ddecf5c2682b@siemens.com> <1411c20e-fff4-cef4-9e15-460eebc14dab@siemens.com> <20170802154025.3f130597@md1em3qc> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-zyfKH/2IcmmFY2sbjXHO" X-Mailer: Evolution 3.24.4 Mime-Version: 1.0 X-TUID: QB2ybBZFIHA8 --=-zyfKH/2IcmmFY2sbjXHO Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2017-08-02 at 15:40 +0200, Henning Schild wrote: > Am Tue, 1 Aug 2017 17:10:00 +0200 > schrieb Claudius Heine : >=20 > > On 08/01/2017 04:25 PM, [ext] Claudius Heine wrote: > > >=20 > > >=20 > > > On 08/01/2017 12:17 PM, [ext] Henning Schild wrote: =20 > > > > Signed-off-by: Henning Schild > > > > --- > > > > meta/classes/dpkg-bin.bbclass | 47=20 > > > > +++++++++++++++++++++++++++++++++++++++++++ > > > > 1 file changed, 47 insertions(+) > > > > create mode 100644 meta/classes/dpkg-bin.bbclass > > > >=20 > > > > diff --git a/meta/classes/dpkg-bin.bbclass=20 > > > > 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 ?=3D "" > > > > +DEBIAN_MAINTAINER ?=3D "FIXME Unknown maintainer" > > > > + > > > > +D =3D "${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] =3D "${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=3D${D}/DEBIAN/conffiles > > > > + find ${D} -path '*/etc/*' | sed -e 's|^${D}||' > > > > > $CONFFILES =20 > > >=20 > > > I package a container root file system and now the files in the > > > etc=20 > > > directory of this rfs is mentioned in the conffiles file. =20 > >=20 > > It also adds directories into the conffiles file. dpkg does not > > like > > this. >=20 > Ok, maybe we should require the author of the recipe to create a > valid > conffiles instead of using magic guessing. But in that case they > might > forget to mark the files as config.=20 >=20 > Directories are not acceptable, are configs inside your container not > a > feature? Say you change that file with vim and install > container-2.0.deb later. I would expect debian magic asking you to > merge the config, would that not be nice? >=20 > I guess the find just needs a -type . I would change it to something like this: find ${D} -path '${D}/etc/*' -type f Claudius --=20 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 PGP key: 6FF2 E59F 00C6 BC28 31D8 64C1 1173 CB19 9808 B153 Keyserver: hkp://pool.sks-keyservers.net --=-zyfKH/2IcmmFY2sbjXHO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEb/LlnwDGvCgx2GTBEXPLGZgIsVMFAlmB6aYACgkQEXPLGZgI sVMSdQ//ZbyOVoPjo+aFsnh7dzy3X3hJumb+5bcCu+8AWMTbswFKXI7Q1uXEAByK kgx3VuDXnq6MqaPL795AiCHvsVqSfOV5+/N8I8xYWRt+RVwHzq8jEONTtdBxkdon z2JR7sZWmZ24Qpk4ksk1afYNvGcPTcS1aPbofT670Y9Jb3DLZdYYRxbV8UWYDdYx 4blKtRe7vQiDI0NEbwWxsa27e7LIra/9NhJ1XNIcJ39Xi5NLiIwNg1gVJ94INL4W PXumP6IlPIzQun32tJ5hprX3wmpg+EMqSJ3Dry+vO9/taWcHFo56cN9s7o5zkimF QXBG+XE8RoHPpyrIxJMtBVcsMtzIMmIf/3YfBkCpbQLlrxZc00WtsPZ1fUa9rutc TMefujdTL/Fa/lguvVxGKmelEa0370STVGN9kviEvEw1jsLi2k6YthO7NTrp9lDC cHOEI7C0OMVDtUoox2phiAQvDJJh6kWBZV8hHCZdMXeLtH1rpodndLykYW8tHHSx tqVODKFxoTg8KpOdWl60nMUl0w4DTE3h/HMk7XvZVLsp8TmZ3WKLI8P/3ygfwnSA 8gqHGbZNNRGCzVVQN7EYkuiM9prExFL7maw5KJYlhODdZmBzjXmr0wBlJB5ZSWN3 75GglPzd1X3SiEsUD3767PoR8CMfQa33kGqS+TynjSLHtGfSJnE= =s+fa -----END PGP SIGNATURE----- --=-zyfKH/2IcmmFY2sbjXHO--