From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6499013560921751552 X-Received: by 10.28.182.9 with SMTP id g9mr212755wmf.5.1513169510865; Wed, 13 Dec 2017 04:51:50 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.223.198.3 with SMTP id n3ls434113wrg.0.gmail; Wed, 13 Dec 2017 04:51:50 -0800 (PST) X-Google-Smtp-Source: ACJfBovR0ToR+IMeaDzR+PYD+K6SKaMmeVQoFHVMwTye5J6R+J/TI8sqQBQKOLgSg3A/JmUD4HTb X-Received: by 10.223.190.11 with SMTP id n11mr286363wrh.2.1513169510512; Wed, 13 Dec 2017 04:51:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513169510; cv=none; d=google.com; s=arc-20160816; b=fWhsdxwb/p9sBCw89TpjLACh5qTfR1pkt4sXaybYuR56TcwrmWvrdyfFXu3rWy3Ad7 /JuZXKSUWBP2kYDHPEGVhJd22G1zOFj9tzx2aTeJouf3HRwz8gMz2n3wB53BIgd39zQ/ qS/takZnEu7rmg+ffsCnDOC+GBvxNI5PHmKDAVWZp4jDGsJbNcWtGi90KhoCMwLa/qXL GoulqWAF8WMTRGuwhejXvnhdb2MjxzIUKn/2jdQQyQJZw9WA8K0Q3Yn+9QMDNpR+J5Tn IkH3VdZhpiDyfUeAOVn89TVBQfCJl4yrk8NeJZ7QRjI6h3JPuvgDxghqewngMeG2nX5f Okmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=sYmItJrfeROBZnGtXJKBwik6JWHXWuQqpLnqEutJiL8=; b=Mg8/ovfV1h7Ne5DQqBA9v0CdPQYeD3QqtsKj29+Q+TCEmSBoRtEyAnCqV+CCEJTyJ0 jdLGogcREM8wStQ/uQtqWuw6nnnGWqGR7qjm3/47dlIUQM8zyiYta4ZmEbSndSxpRvX2 qzGJr5RlKLF74qccRNOzBkL/hiEQW9f38rMtUVbI8SO3g2+FDpIwP7qd0nicqgs7D8La JF5RAQUwu7MJpVIaPG9BRn2J+iNPTiN7bkUfViME5/8H3pz7HJyt5fCSoWoMNVAc6eQV fipEKYNsZEem/zor1vk5ctBJcfT4BIgA2sQC7cgTPwf2OEEK5g7BpKdfHak09J3SByqz 0L0A== 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 r70si1278886wmg.2.2017.12.13.04.51.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Dec 2017 04:51:50 -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 mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id vBDCpnK1001702 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Dec 2017 13:51:49 +0100 Received: from md1pvb1c.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 vBDCpmMc001460; Wed, 13 Dec 2017 13:51:49 +0100 From: Henning Schild To: isar-users@googlegroups.com Cc: Claudius Heine , Henning Schild Subject: [PATCH] dpkg-raw: empty "Depends:" line is not allowed in .deb Date: Wed, 13 Dec 2017 13:51:36 +0100 Message-Id: <20171213125136.32599-1-henning.schild@siemens.com> X-Mailer: git-send-email 2.13.6 X-TUID: noh7p7+ou4k0 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} != "" ] + 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