From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6499013560921751552 X-Received: by 10.223.150.115 with SMTP id c48mr298407wra.3.1513172233163; Wed, 13 Dec 2017 05:37:13 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.125.198 with SMTP id y189ls466947wmc.11.gmail; Wed, 13 Dec 2017 05:37:12 -0800 (PST) X-Google-Smtp-Source: ACJfBosAGUYVGY26bfy47ukjd+1QnCzjy42+plJPod+0vGxhN0OroLFULtY/XBUoO42/wvObiJRF X-Received: by 10.28.184.9 with SMTP id i9mr222194wmf.16.1513172232812; Wed, 13 Dec 2017 05:37:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513172232; cv=none; d=google.com; s=arc-20160816; b=Dbzwmt4+IU5ZIR5V4FrWwnAVGV7MG87c3eMPmxECYNLkrn+NOCJVqPqaWweOlATPJo RVT4iIlxbjDGpANvvhsLvP+77h/0yQl8xC57bDuO3cBgBCiiHl4TGC2M7OQq2Y0YS7Rn 2zFFnaLzqpRMcxTXLc5qKkAFo5H+b+bAVtXmqJBEG4YcZeCZ5h41MMphivf3y65MByXV ay0yzSGRNUoX/x61v3igY0NSj0EyqxHEpjxFqqeMCjEZqdv/V7k+Jq1aWSOCRle/ci9G I69jEhPAKsd8LSEUtadQKn0KDQ75UyQTxfapFSuIYFfMZcP4MlenoaekrHwguY9ArBg4 BeGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:mail-followup-to:message-id :subject:to:from:date:arc-authentication-results; bh=PpiTGXfrWodbfHQiGn2QGY9dMd4lwKW9UcDdtok82Ko=; b=pdyNsYEo12fMTVP1Eoyem/vGJ/XdiuFCIOk51A0/5tiAjr5M7PPH5zhdcw58SeRxyX Pd888XU/QLNswX97f7Kwme9+thsUpyQxFZelPeENAcgWbJ0uww9gtJp5R5z32YJ1r1qq AscPn0E/S4cqFwNZUu3ufRk80q/RWTFvOSYIBTA2Fah4v0QyDh6zY8CRo+xV/qULphj5 AnU/e9VPUux+4Z8uVnqb3cgzQPowdaUX90VbLRhJ6wjWTMFB8jlUHWL8iMjIPJcSVmYt Ba/SwZ0S97+z1Bvz2CUmcJVrtNceQo0tdeu18m0wzoLOvYoEFtZh3P/q7xHtV2Mrh6vP D4DQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=christian.storm@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id c51si152129wrc.1.2017.12.13.05.37.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Dec 2017 05:37:12 -0800 (PST) Received-SPF: pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=christian.storm@siemens.com Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id vBDDbCWU004215 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 13 Dec 2017 14:37:12 +0100 Received: from localhost ([139.25.69.251]) by mail2.siemens.de (8.15.2/8.15.2) with ESMTPS id vBDDbC1h028928 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 13 Dec 2017 14:37:12 +0100 Date: Wed, 13 Dec 2017 14:35:20 +0100 From: Christian Storm To: isar-users@googlegroups.com Subject: Re: [PATCH] dpkg-raw: empty "Depends:" line is not allowed in .deb Message-ID: <20171213133520.ojj4jotmmuegjlmm@MD1KR9XC.ww002.siemens.net> Mail-Followup-To: isar-users@googlegroups.com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171213125136.32599-1-henning.schild@siemens.com> User-Agent: Mutt/20170113 (1.7.2) X-TUID: kTQ3SsjcCcZq > 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. Besten Gru�, Christian -- Dr. Christian Storm Siemens AG, Corporate Technology, CT RDA ITP SES-DE Otto-Hahn-Ring 6, 81739 M�nchen, Germany