From: Jan Kiszka <jan.kiszka@siemens.com>
To: isar-users <isar-users@googlegroups.com>
Cc: Henning Schild <henning.schild@siemens.com>
Subject: [PATCH] dbpg-raw: Only list top-level files in <pn>.install
Date: Sat, 21 Sep 2019 13:09:45 +0200 [thread overview]
Message-ID: <d9b2eed7-5cea-aa9d-e845-5a21a997b380@siemens.com> (raw)
From: Jan Kiszka <jan.kiszka@siemens.com>
The rest is included automatically. This also avoids that we stumble
over filenames with whitespaces, something dh_install does not seem to
support but also something that we generally do not need at the top
level of a rootfs.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
meta/classes/dpkg-raw.bbclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/classes/dpkg-raw.bbclass b/meta/classes/dpkg-raw.bbclass
index f8dfb2d..3f19f8e 100644
--- a/meta/classes/dpkg-raw.bbclass
+++ b/meta/classes/dpkg-raw.bbclass
@@ -21,7 +21,8 @@ addtask install after do_unpack before do_prepare_build
do_prepare_build[cleandirs] += "${D}/debian"
do_prepare_build() {
cd ${D}
- find . ! -type d | sed 's:^./::' > ${WORKDIR}/${PN}.install
+ find . -maxdepth 1 ! -name .. -and ! -name . -and ! -name debian | \
+ sed 's:^./::' > ${WORKDIR}/${PN}.install
mv ${WORKDIR}/${PN}.install ${D}/debian/
deb_debianize
--
2.16.4
reply other threads:[~2019-09-21 11:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=d9b2eed7-5cea-aa9d-e845-5a21a997b380@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=henning.schild@siemens.com \
--cc=isar-users@googlegroups.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