From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6499013560921751552 X-Received: by 10.46.84.87 with SMTP id y23mr559535ljd.4.1513273490429; Thu, 14 Dec 2017 09:44:50 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.61.11 with SMTP id k11ls805260lja.6.gmail; Thu, 14 Dec 2017 09:44:49 -0800 (PST) X-Google-Smtp-Source: ACJfBotjq4uPMmxuGM8bg36Q0ANihXfyNHGS2Qp+w6k6ej2T1/eTKO63UNdd3kCQJYJfvZHCjmRR X-Received: by 10.46.85.202 with SMTP id g71mr534505lje.19.1513273489687; Thu, 14 Dec 2017 09:44:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513273489; cv=none; d=google.com; s=arc-20160816; b=M5Wx6IedyU2jUM/hdGWW0VfzHPuiDOTvxudDB5gtZzPLEK9VS+4iqso+33opiijQZM CnNKdBIPJGuyE3reSZ6Zs1ZGufU+wfr+wFRF/J1REKoo9DqmdYcE2AZhwkWmW5EEweyM Z65Q3Q6ZmpbbV4TZOMtWb7rEc+uz9D7bjX1UlrEp5+yEj87ACLM3nkpu9fKLV4TFzeWi fJY17pgqO4ZZIgAw5vl0t6LFT4wXBHwDcBh9LR2/xVCBPX/KDsdonAxfI8zW/zDXRlp7 fmjtIQK6HNfWrF/CbGhdIHByVD1IF0fzbwdL8kr4rwdPsoykiN1UZLtJeD+nDmtMqa+p 37mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=oEynhP5Wrv7mCkyGjA5mUanktoehRWmELNV+y2K5AGg=; b=H6lwzmUMKdfcJodrSG3oV+EjDI6Qs93Xod7Mzb3ghehlCM4XNVknu15ZJn9XomctNU LtIZRTp9SdiH1IeNaElBpXolLMXAWWGVhZJIqy9Ud1pgcUsdT6Izunyx0DeovtzoAFBO tI15W5Zz431kAzf17NvoVcWjMn2/DnK0aJLEdKlY9RWiUzDJM/040Rm9kNpqVT+W30nv bA1sOtExf1eRUTbCXVDsoQxxUyyqcRQnay16xwhSGr/Su4alt8gd5h0by13QAffGD4Si DAC5KPT+9M3DHrDYibXx7gFtueXZPrYpqVJG91RF1sSbxd005+eU755IkiqNxFocjY+y Jimw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id i88si394336lfh.4.2017.12.14.09.44.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Dec 2017 09:44:49 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id vBEHimX0026390 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Dec 2017 18:44:48 +0100 Received: from mmd1pvb1c.ad001.siemens.net (md1pvb1c.ad001.siemens.net [139.25.68.40] (may be forged)) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id vBEHimJ4029709; Thu, 14 Dec 2017 18:44:48 +0100 Date: Thu, 14 Dec 2017 18:44:47 +0100 From: Henning Schild To: Cc: Claudius Heine Subject: Re: [PATCH] dpkg-raw: empty "Depends:" line is not allowed in .deb Message-ID: <20171214184447.7bf70c52@mmd1pvb1c.ad001.siemens.net> In-Reply-To: <20171213125136.32599-1-henning.schild@siemens.com> References: <20171213125136.32599-1-henning.schild@siemens.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: qMm2NrSRLkR9 Am Wed, 13 Dec 2017 13:51:36 +0100 schrieb Henning Schild : > 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:]' > ','` Version: ${PV}+isar > Description: ${DESCRIPTION} > __EOF__ > + if [ ${DEBIAN_DEPENDS} != "" ] the condition is missing "" around DEBIAN_DEPENDS sending v2 > + 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