From: Claudius Heine <claudius.heine.ext@siemens.com>
To: isar-users@googlegroups.com
Subject: Re: [PATCH] dpkg-raw: empty "Depends:" line is not allowed in .deb
Date: Wed, 13 Dec 2017 15:14:02 +0100 [thread overview]
Message-ID: <55b7384d-a5ff-11dc-d82b-b45c7c5ad4b2@siemens.com> (raw)
In-Reply-To: <20171213133520.ojj4jotmmuegjlmm@MD1KR9XC.ww002.siemens.net>
Hi,
On 12/13/2017 02:35 PM, [ext] Christian Storm wrote:
>> Apt-gat fails to install packages if the control-file contains a
>> "Depends:"-line without any packages listed.
>>
>> E: Problem parsing dependency Depends
>>
>> So append that line to the control-file only if DEBIAN_DEPENDS was set
>> in the recipe. The user could still specify i.e. " " or anything
>> invalid, we do not check that. But now our default works.
>>
>> Signed-off-by: Henning Schild <henning.schild@siemens.com>
>> Reported-by: Claudius Heine <ch@denx.de>
>> ---
>> meta/classes/dpkg-raw.bbclass | 7 ++++++-
>> 1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/classes/dpkg-raw.bbclass b/meta/classes/dpkg-raw.bbclass
>> index af62be4..1435e10 100644
>> --- a/meta/classes/dpkg-raw.bbclass
>> +++ b/meta/classes/dpkg-raw.bbclass
>> @@ -26,10 +26,15 @@ do_deb_package_prepare() {
>> Section: misc
>> Priority: optional
>> Maintainer: ${MAINTAINER}
>> - Depends: `echo ${DEBIAN_DEPENDS} | tr '[:blank:]' ','`
>
> Just as a side note: This doesn't work for versioned dependencies
> that should result in a line like, e.g.,
> Depends: libc6 (>= 2.14)
> in DEBIAN/control.
Also stuff like that is not possible:
Depends: tar | bsdtar, systemd
Maybe allow something like this:
DEBIAN_DEPENDS = "'libc6 (>= 2.14)' 'tar | bsdtar' systemd"
But that would be a additional patch.
Cheers,
Claudius
--
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
next prev parent reply other threads:[~2017-12-13 14:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-13 12:51 Henning Schild
2017-12-13 13:03 ` Claudius Heine
2017-12-13 13:35 ` Christian Storm
2017-12-13 13:45 ` Henning Schild
2017-12-13 14:14 ` Claudius Heine [this message]
2017-12-14 17:34 ` [PATCH v2] " Henning Schild
2018-01-11 11:42 ` Alexander Smirnov
2017-12-14 17:44 ` [PATCH] " 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=55b7384d-a5ff-11dc-d82b-b45c7c5ad4b2@siemens.com \
--to=claudius.heine.ext@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