From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6499013560921751552 X-Received: by 10.28.51.70 with SMTP id z67mr321009wmz.18.1513272884264; Thu, 14 Dec 2017 09:34:44 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.216.78 with SMTP id p75ls1206026wmg.10.canary-gmail; Thu, 14 Dec 2017 09:34:43 -0800 (PST) X-Google-Smtp-Source: ACJfBovGQiw+H48cqkHfFq0Pa3jkJ0cta+usK99hAHc+dTBeloJWDnCnTTJfJ872bJR5cJ28cyD2 X-Received: by 10.28.191.90 with SMTP id p87mr342056wmf.26.1513272883672; Thu, 14 Dec 2017 09:34:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513272883; cv=none; d=google.com; s=arc-20160816; b=NOvPs1BAh6KNgIA8iaBuJjcMV17WZnLwlLMGKUshZ/o0nLVyy8D4EOaabLaio3ckWM FsXNScnvgV4dj2kmkHXou69C+wob/7axTPU/nk2u6OtYVtUBoKp2L/b5+cI2WELQ6f9n GaUQFkEuqMKTSSRijCadtLgPoaDKBRup02ZmtTX3lqgZuR12wGPrcrYJMFAFjpdroMeb EVzdB5vC0fbumIfrXWzU69ohtP+QpwdHk9zMDtnlJRI1z6CyLBHznW+e7qinNBRZDi+d raWsAaYClDnMmL6p8JWia1FX1A1xf5Oq9MVAiR2Vno5c82YRpi2tmAUj2q3fFCgMbjYr ElPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=gRlKgZMDHZpnZiqGpoHMHZnsQQvkgVQSAgcDoCmzPt4=; b=LNqheCgLR6LNMDhyvjJD6tOBHdPByyASyNGJH2XbVlrsvz+mpsJyNFUDYPAEfD5kFO v16xY659hacW8ZxTfn5R8xU/uquqtoW7lEtnDibbbz8924oiIf1E0dYCxOhQ+fBEowW+ oI01+yB/s8upuZYqRGtndAMbTN9d3tGsYNLPB4mQhleFVqiD/G1NQHwyHSiUuChREsCz uIubK6mFfSiqfYRcisp0tU3R9TjaCb/TzTGxZcWM+wKGfJPDnNQfTtauqMcM9Kc4p8D4 khXEKLjDiU/7qAK6m++Xbh/T0gujbMloSMsVkMZyTlzaMLBxXCzz/msjRhWvwv+QfzEo np3A== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id h76si459880wmd.1.2017.12.14.09.34.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Dec 2017 09:34:43 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id vBEHYhqt005529 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 14 Dec 2017 18:34:43 +0100 Received: from md1pvb1c.ad001.siemens.net (md1pvb1c.ad001.siemens.net [139.25.68.40] (may be forged)) by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id vBEHYhWm000717; Thu, 14 Dec 2017 18:34:43 +0100 From: Henning Schild To: isar-users@googlegroups.com Cc: Claudius Heine , Christian Storm , Henning Schild Subject: [PATCH v2] dpkg-raw: empty "Depends:" line is not allowed in .deb Date: Thu, 14 Dec 2017 18:34:41 +0100 Message-Id: <20171214173441.29709-1-henning.schild@siemens.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171213125136.32599-1-henning.schild@siemens.com> References: <20171213125136.32599-1-henning.schild@siemens.com> X-TUID: PUKOfrpuHQJK 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..ecd5c7f 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 -- 2.13.6