From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6514905122814820352 X-Received: by 10.28.153.194 with SMTP id b185mr896981wme.17.1516876209965; Thu, 25 Jan 2018 02:30:09 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.47.194 with SMTP id v185ls3218564wmv.4.canary-gmail; Thu, 25 Jan 2018 02:30:09 -0800 (PST) X-Google-Smtp-Source: AH8x225MVIsz0lLt5M5G0wusbTGWSPFlfXianURUCQIW1Pdz6LPobX7qftA6aEICUNUkPYbLiNG5 X-Received: by 10.28.192.26 with SMTP id q26mr1092469wmf.29.1516876209384; Thu, 25 Jan 2018 02:30:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516876209; cv=none; d=google.com; s=arc-20160816; b=Yys2Ajcz3SEALwSv/a35eHEoFRgR7s9be1OAXP+LxgWBFydwkdv0Zxk7NOnnZSj8EO kJXrw2M7ZwytEWu4+IEsJWckpas9UY3Qz7TasugoUWtygQkg8LDsvI7ldhuFg/54lQrE CdhVMjoeBkSAFWlATDhP2HPFsr5kSx4/ByUC9YgiSayVnfJX5ZDnIPa7hoXVsWEgvGGf Q/WJyznKNuuzgTGU8GRcyIk2OT221fpMMTWTOmdKMHI42Bt7b7dhQ13kkGIp3SCpWBPs NnRRq8eIApl3ArJXW5makB8fXmLIjj6hqAkAb2ZnZMZ8KyU9+TyOVNdh8msNXX9HA4KI ryzA== 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:to:subject :arc-authentication-results; bh=7c+cHX0+r676NlO+FYIt8tyPWTKVSYuoRQB1a2mcKyg=; b=LXGIaIKITJyYltDv/enx66IDkhgtxhitTHuqdIXnQ1ZVkk3Zf6qY4PrWX96t94Y1ao 4UjK2GTPmIu2B6SXffKQrVFLKLon4l7LdzjkoZ03q4BOm47KMlE1n7vArpPScja66wud mTB7MP6HUZqLeV+1DHsA2a/2dP6CKkjsQHdsGyHvwEx70N2GYLvZAAzrxesJpacGONKO AySOn03nmMzzCQ7JWt7HLC+cbxttDCNZAvbBqnxpCvee8p6LqdYebbo/3/PqjGOBz/c4 Q2XLxnAoZIJxH+AR4ZmPqMq3mDlugZAtFXWfx3T4MKSZ5RwQeKcjgAWoX+Ylgle9k+2o ckXA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id g70si134061wmc.3.2018.01.25.02.30.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jan 2018 02:30:09 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@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 jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w0PAU80v006392 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Jan 2018 11:30:09 +0100 Received: from md1f2u6c.ww002.siemens.net (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id w0PAU8QD025602; Thu, 25 Jan 2018 11:30:08 +0100 Subject: Re: [PATCH 3/3] libhello: Add libhello To: Alexander Smirnov , isar-users@googlegroups.com References: <20180125083851.5887-1-asmirnov@ilbers.de> <20180125083851.5887-4-asmirnov@ilbers.de> <04dedcd3-4920-f829-0148-e519ebd24eb5@siemens.com> From: Jan Kiszka Message-ID: <9afd94bd-eb55-7279-173e-3eb45a6e7483@siemens.com> Date: Thu, 25 Jan 2018 11:30:07 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: XmcqvwfJ62rm On 2018-01-25 11:11, Alexander Smirnov wrote: > On 01/25/2018 12:01 PM, Jan Kiszka wrote: >> On 2018-01-25 09:38, Alexander Smirnov wrote: >>> 'libhello' package intended to demonstrate Isar build dependencies >>> between >>> recipes. >>> >>> Signed-off-by: Alexander Smirnov >>> --- >>>   meta-isar/recipes-app/example-hello/example-hello.bb |  7 +++++-- >>>   meta-isar/recipes-app/libhello/libhello.bb           | 18 >>> ++++++++++++++++++ >>>   2 files changed, 23 insertions(+), 2 deletions(-) >>>   create mode 100644 meta-isar/recipes-app/libhello/libhello.bb >>> >>> diff --git a/meta-isar/recipes-app/example-hello/example-hello.bb >>> b/meta-isar/recipes-app/example-hello/example-hello.bb >>> index 114ee85..19f9d69 100644 >>> --- a/meta-isar/recipes-app/example-hello/example-hello.bb >>> +++ b/meta-isar/recipes-app/example-hello/example-hello.bb >>> @@ -8,10 +8,13 @@ DESCRIPTION = "Sample application for ISAR" >>>   LICENSE = "gpl-2.0" >>>   LIC_FILES_CHKSUM = >>> "file://${LAYERDIR_isar}/licenses/COPYING.GPLv2;md5=751419260aa954499f7abaabaa882bbe" >>> >>>   -PV = "0.1+g7f35942-1" >>> +PV = "0.2" >>> + >>> +DEPENDS += "libhello" >> >> Should be marked as workaround. How hard would it be do extend >> dpkg[-base?].class with some "DEPENDS += "${@ >> get_deps_from_debian_control()}"? > > I've covered this issue in RFC for reproducibility. Bitbake is > statically configured tool, so it prepares pipeline *before* start of > execution. Parsing 'debian/control' assumes that you have already done > do_fetch() and do_unpack() for specific recipe. > Ah, ok. Too bad. > But in theory I see only the following for now: > >  - Double bitbake re-run: first step fetch/unpack, second stage parse > and prepare pipeline. >  - Modify bitbake. > > I consider this as hack and not as proposal. > > I'll continue this investigation. Well, if these duplicate dep statements remain limited to self-built packages, which /should/ remain few as well, we may live with that for now. Maybe bitbake will eventually learn to update dependencies during the run so that the two-stage processing wouldn't be needed... Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux