From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6499013560921751552 X-Received: by 10.46.80.14 with SMTP id e14mr209469ljb.30.1513174443950; Wed, 13 Dec 2017 06:14:03 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.33.148 with SMTP id h20ls312300lji.3.gmail; Wed, 13 Dec 2017 06:14:03 -0800 (PST) X-Google-Smtp-Source: ACJfBosFAqaPMrsg+WccS8b5Oo0+GDPszzharNim/In0bbF/UbfkKPxa7yLVAGWqZX2WOlIeyMOi X-Received: by 10.25.217.65 with SMTP id q62mr171959lfg.32.1513174443356; Wed, 13 Dec 2017 06:14:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513174443; cv=none; d=google.com; s=arc-20160816; b=SG+32F2oOi/aQfbMnTcdjkzAjmHVpvaUoaK6N05lgx2zQYcf1ky4Pr0jkkrX8Lc7Cb OgBQtuUVUaqa96YS1yKY5GFeopkGhR4eMPTU4XULQ5HN8k3J7yIXyjQ0k/zHkM8R2fxG JxW3/4zmJDhs1tULe8SZ3eUUUUVztpChxhwpYBm0MtZ37JCbsTvmteX58pzJivwhZIYo jwz5OxFmZVZrpJvq7kKEVaFUlRj9w4L0rVScSCXKSy8y9XZNNdrnT0g5UvQw/CcjxTfM QhmsDqcWNDF9BEeEmDIzwRwuYNkw1QJ/xzJyVkhwDUdE6PG7z8TO6M2BDfcqMsiVbUqw RP3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=gNk3mo8IcLuRRhOAfAVj1LBu7Ro0o7G2IGptxEwNc/M=; b=oPORKI0Tooyalc5COzwKgp3h3gJ32tfhlfP0CbYh4eAD1fEEhKqUg8/JjlyCgAkqlI s8Pls0r2Vab5aurkm8860qiBLOesf8y9eFGIwDojUo1e0w+5KycvpngZShMSg/KUNDRZ xDyc+ecLLysz/uPvu/o4psWwJnTzqjskYMwOwkdZJeVrJ0ghJpCNAGhTcCrm0DHYFd9p FphzNYvPizH7yEIuoqV9saJ6O35fTPMxO3yn7viqgewHcz45xjy/cpCMWRadiThy5tG2 2N9t+R9T1To5JH1armky1zNyn3SHj0E0NcOexc3o4QDtTqIqEgeBh0n5ibNhyqo/+8i9 JKDA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id c69si161575ljd.4.2017.12.13.06.14.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Dec 2017 06:14:03 -0800 (PST) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id vBDEE2Th012485 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 13 Dec 2017 15:14:02 +0100 Received: from [139.25.68.223] (linux-ses-ext02.ppmd.siemens.net [139.25.68.223]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id vBDEE26E030575 for ; Wed, 13 Dec 2017 15:14:02 +0100 Subject: Re: [PATCH] dpkg-raw: empty "Depends:" line is not allowed in .deb To: isar-users@googlegroups.com References: <20171213133520.ojj4jotmmuegjlmm@MD1KR9XC.ww002.siemens.net> From: Claudius Heine Message-ID: <55b7384d-a5ff-11dc-d82b-b45c7c5ad4b2@siemens.com> Date: Wed, 13 Dec 2017 15:14:02 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171213133520.ojj4jotmmuegjlmm@MD1KR9XC.ww002.siemens.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: lzdSu4vIrRtU 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 >> Reported-by: Claudius Heine >> --- >> 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