From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6514905122814820352 X-Received: by 10.98.245.89 with SMTP id n86mr3649021pfh.16.1516875108508; Thu, 25 Jan 2018 02:11:48 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:902:903:: with SMTP id 3-v6ls3673285plm.7.gmail; Thu, 25 Jan 2018 02:11:47 -0800 (PST) X-Google-Smtp-Source: AH8x225ax92Sg+b4qz0fDEHyacczyl4SXsrLxt8k3kuSR6nNDhcTikbpmiy4PIR3UOQhfDMJxdlC X-Received: by 2002:a17:902:20e2:: with SMTP id v31-v6mr2662844plg.51.1516875107898; Thu, 25 Jan 2018 02:11:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516875107; cv=none; d=google.com; s=arc-20160816; b=zuC2TQci0Co4NBvl4LfFVwGNkghnHWDa+GR9G+39U8Cit+X/29QCCtpY5hVDlDMf5V xU6KMU5CClkXaZCJhgbMTqHRARNqpOe4ljVl2fHe3FaLNj2IlJ2wijw1mLLrqDbHuBCo UG6Akn2v2stzV7HppWFkh28Bq3yKiVmLIAp2mBdVvj39uKb/Dn5gay02eA92cq1ZNgma tzoR1dIWKJLuq4Yi4LPiLEuKdCHz049ZHJoXKdLquzk8lCVFLrrEGipyT5lQQIdnyXxe mLtrp9mZOcNNtPqhFi9GySqH6SGHCm+bkJ+pHjrURJBsC8FXdmDZCaRFGriV4iPzJ7yo hQig== 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=0V03Bcf64ZkMeaXDyyTdHDjfXmnx7LPKoYyNQAu5Rl8=; b=eZiq6gCop9EhJP1F5m4wQD2ApsH1yMJ5+xU5AYHUZsT/6PKWsHHheAwYzqEXxqYzB0 461XlidpJbW2RmiRxxi6mMhkL9YA2FZaL6anCP8IGo+HKkq+lnl1ySZ1CM/Sjutcg9Bo hK0naTPkV6OivI2yAbHI2xfc9X1wglNIZlEEhX7E+W/xF7Hm/EYQ3phUpW9EiUkkCZ4Y 7K9bKxotUooiAh7IG+r9iq+VVCF4HO4Qp+rqK34K1smFH0w/+fCB2CW7jejj7k8gZBkd ursZTRpRVjFBLY+fYVSjNwz7aimSfM01/1ZdPUhVSZSdLSdwLHMUZROXjMDwxa5b8U1+ fxgQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id v189si75210pgb.3.2018.01.25.02.11.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jan 2018 02:11:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w0PABdji019976 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 25 Jan 2018 11:11:42 +0100 Subject: Re: [PATCH 3/3] libhello: Add libhello To: Jan Kiszka , 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: Alexander Smirnov Message-ID: Date: Thu, 25 Jan 2018 13:11:34 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <04dedcd3-4920-f829-0148-e519ebd24eb5@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: wKcrrISUiSjI 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. 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. Alex We probably also need some translation > from the debian package name / aliases into bitbake PROVIDES variables. > > Jan > >> >> SRC_URI = "git://github.com/ilbers/hello.git;branch=devel;protocol=https" >> -SRCREV = "5c0ae73fdc97d80b6726e602a1fa0ef00c2c012a" >> +SRCREV = "ffca497b3f8157efe3eb6fab97a88045142591ae" >> + >> >> SRC_DIR = "git" >> >> diff --git a/meta-isar/recipes-app/libhello/libhello.bb b/meta-isar/recipes-app/libhello/libhello.bb >> new file mode 100644 >> index 0000000..4caaf2d >> --- /dev/null >> +++ b/meta-isar/recipes-app/libhello/libhello.bb >> @@ -0,0 +1,18 @@ >> +# Sample shared library >> +# >> +# This software is a part of ISAR. >> +# Copyright (C) 2017-2018 ilbers GmbH >> + >> +DESCRIPTION = "Sample shared library for ISAR" >> + >> +LICENSE = "gpl-2.0" >> +LIC_FILES_CHKSUM = "file://${LAYERDIR_isar}/licenses/COPYING.GPLv2;md5=751419260aa954499f7abaabaa882bbe" >> + >> +PV = "0.1" >> + >> +SRC_URI = "git://github.com/alexbluesman/libhello.git;protocol=https" >> +SRCREV = "1671f0287fe0bca8937f687f53a3bd05c9e2d9c2" >> + >> +SRC_DIR = "git" >> + >> +inherit dpkg >> >