From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6499013560921751552 X-Received: by 10.80.145.246 with SMTP id h51mr1864801eda.10.1513170235974; Wed, 13 Dec 2017 05:03:55 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.80.159.161 with SMTP id c30ls1019661edf.1.gmail; Wed, 13 Dec 2017 05:03:55 -0800 (PST) X-Google-Smtp-Source: ACJfBouOi0GzVVZpYFlpKwGFyZ7XX+VwhSCtwuBROYO8JTsT3BLCdvOSj1XUQLKbFbkTgtYd4gbb X-Received: by 10.80.151.161 with SMTP id e30mr1859331edb.4.1513170235526; Wed, 13 Dec 2017 05:03:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513170235; cv=none; d=google.com; s=arc-20160816; b=rt72H2Obr9h0nqprV83xX6ZL5tVSMOiwjtBgJcGUGs76CWakIWYzCiWK8ReJF112gx mKybtbH6s92kQfBVMKQsXyFM3gXcxI6EsyjvZ6nPoiF8p+vQovpxbrjcQjnFBxisB23v s6GDnohlGCm8CHmfYafgG+SNVHZCFkuPqFNEjKaIwyaxHl07hgZZoLLuZwuoDChegKPH a7BUaC8wRLAokLMqSuXKorBGeJ9CjTLIch48y0B3qc7O0yZzvUK5DpfYhvwr5Y8S9w7l M1UXJaNdV6H7PtYUzia3gtvTqL/guugop5jqfgxeuOg9+Byq+v/5aKmrsPRxLQGJpodk SCIg== 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:cc:to:subject :arc-authentication-results; bh=r06jlEr7oFngkkcnNGZCf5mamhUHI6+Q6hzvDHak0+s=; b=F0yWLh9o5tIMqCfJaH1cTjTg5vs+6UDAUAkNdC2GO6t435IKFHCgmUzmZT1BMiwKwE IXCbhB9Dhjb++F+E4KgunEnwtQ3CQjr691HMUiod7M+p/yEjrEk7cLhKdn2LWSPrPxNt KpZIVp8SSVwYZvOSFkxpF4gJae+JZ2su56cpqbinQzqScz+eijAZvnbcXnx7/exMjJ2g B5Sy9kiV2dcPrJyYroDdv9w0KrZEAjv62YNMUXc7OONwVvDFgIGL7nycP+ZGYtynmC6N MhVb1yP3uQWgiRxRpzRA9ACgdRwGCzLmyp5OMvY+vC2W75yHufuw1WJzbibADWH2KTp0 1Cjg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id w21si210226edl.5.2017.12.13.05.03.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Dec 2017 05:03:55 -0800 (PST) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id vBDD3sjV024767 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Dec 2017 14:03:54 +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 vBDD3sw0005558; Wed, 13 Dec 2017 14:03:54 +0100 Subject: Re: [PATCH] dpkg-raw: empty "Depends:" line is not allowed in .deb To: "[ext] Henning Schild" , isar-users@googlegroups.com Cc: Claudius Heine References: <20171213125136.32599-1-henning.schild@siemens.com> From: Claudius Heine Message-ID: <8ce84c3d-0f6a-b2d4-3adf-fdac93035618@siemens.com> Date: Wed, 13 Dec 2017 14:03:54 +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: <20171213125136.32599-1-henning.schild@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: Iu42XeTgshQL Hi Henning, On 12/13/2017 01:51 PM, [ext] Henning Schild 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. Nice, that works for me! Thanks, Claudius > > 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:]' ','` > Version: ${PV}+isar > Description: ${DESCRIPTION} > __EOF__ > + if [ ${DEBIAN_DEPENDS} != "" ] > + then > + echo -n Depends: >> ${D}/DEBIAN/control > + echo ${DEBIAN_DEPENDS} | tr '[:blank:]' ',' >> \ > + ${D}/DEBIAN/control > + fi > for t in pre post > do > for a in inst rm > -- 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