From: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
To: Claudius Heine <claudius.heine.ext@siemens.com>
Cc: "[ext] Henning Schild" <henning.schild@siemens.com>,
isar-users@googlegroups.com,
"Dr . Johann Pfefferl" <johann.pfefferl@siemens.com>
Subject: Re: [PATCH 15/16] meta: add dpkg-bin class
Date: Wed, 2 Aug 2017 13:11:47 +0300 [thread overview]
Message-ID: <CAJmB2rBDQRZ7-H4FTj=QK8QRPjk-oOp3+CP1ecH9Kiu369Ro5Q@mail.gmail.com> (raw)
In-Reply-To: <1411c20e-fff4-cef4-9e15-460eebc14dab@siemens.com>
[-- Attachment #1: Type: text/plain, Size: 3461 bytes --]
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
- 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.
- Change impact to Isar, who will be affected
2017-08-01 18:10 GMT+03:00 Claudius Heine <claudius.heine.ext@siemens.com>:
>
>
> 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 <henning.schild@siemens.com>
>>> ---
>>> 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.
>
[-- Attachment #2: Type: text/html, Size: 5197 bytes --]
next prev parent reply other threads:[~2017-08-02 10:11 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-01 10:17 [PATCH 00/16] fixes and introducing dpdk-bin support Henning Schild
2017-08-01 10:17 ` [PATCH 01/16] meta: ext4-img: copy and keep attributes, always copy with sudo Henning Schild
2017-08-02 7:48 ` Alexander Smirnov
2017-08-02 11:18 ` Henning Schild
2017-10-19 18:04 ` Henning Schild
2017-10-19 19:41 ` Alexander Smirnov
2017-08-01 10:17 ` [PATCH 02/16] meta: classes: use base.bbclass from bitbake Henning Schild
[not found] ` <CAJmB2rBjBqHxPKTna-XUtgmW9i-ooQwbACyFgQTQahTqUAxHcg@mail.gmail.com>
2017-08-02 8:21 ` Alexander Smirnov
2017-08-01 10:17 ` [PATCH 03/16] meta: isar-base: remove unused function Henning Schild
[not found] ` <CAJmB2rBwssbfjgqL2wAsOFfGUK7DbBY31tF_QhR09Ot0rmRVjQ@mail.gmail.com>
2017-08-02 8:20 ` Alexander Smirnov
2017-08-01 10:17 ` [PATCH 04/16] remove redundant variable THISDIR Henning Schild
2017-08-02 8:25 ` Alexander Smirnov
2017-08-02 11:20 ` Henning Schild
2017-08-01 10:17 ` [PATCH 05/16] meta: conf: use bitbake.conf from bitbake and apply local changes Henning Schild
2017-08-02 8:34 ` Alexander Smirnov
2017-08-02 11:22 ` Henning Schild
2017-08-01 10:17 ` [PATCH 06/16] meta: conf: clean up local bitbake config Henning Schild
2017-08-02 8:35 ` Alexander Smirnov
2017-08-02 11:23 ` Henning Schild
2017-08-01 10:17 ` [PATCH 07/16] classes: use WORKDIR and get rid of BUILDROOT Henning Schild
2017-08-02 9:24 ` Alexander Smirnov
2017-08-02 11:30 ` Henning Schild
2017-08-03 11:24 ` Henning Schild
2017-08-01 10:17 ` [PATCH 08/16] classes: move fetch and unpack into isar-base Henning Schild
2017-08-02 9:47 ` Alexander Smirnov
2017-08-02 11:33 ` Henning Schild
2017-08-01 10:17 ` [PATCH 09/16] meta: dpdk use [dirs] directive instead of mkdir Henning Schild
2017-08-01 10:17 ` [PATCH 10/16] meta: dpkg: reorder and rename do_install to install in addtask Henning Schild
2017-08-01 10:17 ` [PATCH 11/16] meta: classes: make do_build always the end of the task-chain Henning Schild
2017-08-02 9:54 ` Alexander Smirnov
2017-08-02 12:05 ` Henning Schild
2017-08-01 10:17 ` [PATCH 12/16] meta: dpkg rename install to install_package Henning Schild
2017-08-02 9:59 ` Alexander Smirnov
2017-08-01 10:17 ` [PATCH 13/16] meta: classes: move install_package to isar-base Henning Schild
2017-08-01 11:48 ` Claudius Heine
2017-08-01 14:00 ` Claudius Heine
2017-08-01 15:01 ` Henning Schild
2017-08-01 10:17 ` [PATCH 14/16] meta: classes: rename dpkg to dpkg-src Henning Schild
2017-08-02 10:02 ` Alexander Smirnov
2017-08-03 15:37 ` Henning Schild
2017-08-03 15:45 ` Jan Kiszka
2017-08-01 10:17 ` [PATCH 15/16] meta: add dpkg-bin class Henning Schild
2017-08-01 14:25 ` Claudius Heine
2017-08-01 15:10 ` Claudius Heine
2017-08-02 10:11 ` Alexander Smirnov [this message]
2017-08-02 10:25 ` Henning Schild
2017-08-02 12:31 ` Henning Schild
2017-08-02 12:50 ` Jan Kiszka
2017-08-02 13:40 ` Henning Schild
2017-08-02 15:03 ` Claudius Heine
2017-08-03 7:57 ` Henning Schild
2017-08-03 10:39 ` Claudius Heine
2017-08-03 14:17 ` Henning Schild
2017-08-02 11:11 ` Claudius Heine
2017-08-02 11:17 ` Claudius Heine
2017-08-02 11:26 ` Claudius Heine
2017-08-01 10:17 ` [PATCH 16/16] recipes-app/hello-bin: add example on how to use dpkg-bin Henning Schild
2017-08-02 6:33 ` Jan Kiszka
2017-08-02 6:55 ` Claudius Heine
2017-08-03 18:48 ` Henning Schild
2017-08-01 10:23 ` [PATCH 00/16] fixes and introducing dpdk-bin support Henning Schild
2017-08-01 11:24 ` Claudius Heine
2017-08-11 9:15 ` Alexander Smirnov
2017-08-11 10:35 ` Henning Schild
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJmB2rBDQRZ7-H4FTj=QK8QRPjk-oOp3+CP1ecH9Kiu369Ro5Q@mail.gmail.com' \
--to=alex.bluesman.smirnov@gmail.com \
--cc=claudius.heine.ext@siemens.com \
--cc=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=johann.pfefferl@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox