From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6647496723618856960 X-Received: by 2002:a2e:9119:: with SMTP id m25-v6mr1066868ljg.22.1547741070276; Thu, 17 Jan 2019 08:04:30 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:8ec8:: with SMTP id e8-v6ls1302949ljl.5.gmail; Thu, 17 Jan 2019 08:04:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN7l1w/rq80rUKZGlfmIekIl7tqM+G++ERoDIrfc2y9HBaEGDcqq69qpWQo9hZzQbC7Pc8jO X-Received: by 2002:a2e:8112:: with SMTP id d18-v6mr1094552ljg.10.1547741069766; Thu, 17 Jan 2019 08:04:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547741069; cv=none; d=google.com; s=arc-20160816; b=xJcq6mBTFYBPSj0VBwzU1bYA4wm404HOwGasAGmIRWmJIN1pEfFmxGbVfDniKKrvyR M8ATNAJtMOif8iNrihOpvlNKXWyS7pkijct5KdvAZwbKL5FYtp4mXom7yeO9dDXTygBv YQNb2nS116BXh1VLDCgNYW6TFRMg6vnohVgjldnmt9PveEiJuhX2DZ8nh/9F0aIgXGBN cFQ9DAmkt+Y01hG/9xMrerPBdaFSjNz1SeKUSJlHqMvlXGIldNfGW9UP90m8PwmS1KU5 ao3tgJlALYp4qg5AQiPc0hoU6q6d64sOl/zrbEA8TVnPLwoy9efCz9Xagxds15+fOcC2 l44w== 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:date:subject:cc:to:from; bh=b3w3maDbUSgLCdWTBiE+fIHQMAcVQ3LpNra31W01CJE=; b=AUE9Ya8lxM0AChATu0WKypJs8iMDXiaji6UmGLczS0IUBdu5nq9gMiqLp55A+NdiZe OVUHHISoQ+TPmgyZqJuTT84HB+WY9SbbQliJaeLXt88nzmweWuMi84K14NSrNpi7JIr7 QUXyWP/AHhTV1CwX8CAWiLuCdSTy1/Hpz4mUxbXuJ3+4MmBjs3ayoAVooLfgAsKsvcQ7 At/wcx+u9Qv1SrG2Ki+63IvSxfZe4e24YBbWJsXo4sdbb/FlsrB4z7aXC+ij5yEqImPJ x4O8JpVH6/jz1Rfr+QMdU9OgAsjz6FCrV6tHDfHgskM5ut6vbZ4b/f2eEugpCFtzBkAK 0RpA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id y27si54417lfb.0.2019.01.17.08.04.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jan 2019 08:04:29 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id x0HG4SMf028435 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 17 Jan 2019 17:04:28 +0100 Received: from md1za8fc.ad001.siemens.net ([139.25.69.119]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x0HG4SUY015383; Thu, 17 Jan 2019 17:04:28 +0100 From: Henning Schild To: isar-users Cc: Cedric Hombourger , Henning Schild Subject: [PATCH 5/7] meta-isar/recipes-app: add upstream hello rebuild example Date: Thu, 17 Jan 2019 17:04:25 +0100 Message-Id: <20190117160427.26556-6-henning.schild@siemens.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190117160427.26556-1-henning.schild@siemens.com> References: <20190117160427.26556-1-henning.schild@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: 7GppeqWRDBrp From: Henning Schild This commit introduces a rebuild example of an upstream package. It also shows how to deal with multiple versions of such a package, depending on your distro. And in fact we actually have to patch it to rebuild it, because its build-deps are wrong. Signed-off-by: Henning Schild --- meta-isar/recipes-app/hello/hello.inc | 19 +++++++++++++++++++ meta-isar/recipes-app/hello/hello_2.10.bb | 8 ++++++++ meta-isar/recipes-app/hello/hello_2.9.bb | 8 ++++++++ 3 files changed, 35 insertions(+) create mode 100644 meta-isar/recipes-app/hello/hello.inc create mode 100644 meta-isar/recipes-app/hello/hello_2.10.bb create mode 100644 meta-isar/recipes-app/hello/hello_2.9.bb diff --git a/meta-isar/recipes-app/hello/hello.inc b/meta-isar/recipes-app/hello/hello.inc new file mode 100644 index 0000000..49e2eb9 --- /dev/null +++ b/meta-isar/recipes-app/hello/hello.inc @@ -0,0 +1,19 @@ +# This software is a part of ISAR. + +inherit dpkg + +# this will fetch and unpack the sources from upstream debian +SRC_APT = "${PN}" + +MAINTAINER = "Your name here " +CHANGELOG_V = "${PV}-99+isar" + +do_prepare_build() { + deb_add_changelog + # this seems to be a build dep missing in the upstream control file + if ! grep texinfo ${S}/debian/control; then + sed -i -e 's/Build-Depends:/Build-Depends: texinfo,/g' ${S}/debian/control + fi +} + + diff --git a/meta-isar/recipes-app/hello/hello_2.10.bb b/meta-isar/recipes-app/hello/hello_2.10.bb new file mode 100644 index 0000000..1598565 --- /dev/null +++ b/meta-isar/recipes-app/hello/hello_2.10.bb @@ -0,0 +1,8 @@ +# Example recipe to rebuild a debian source package +# +# This software is a part of ISAR. + +require hello.inc + +DEFAULT_PREFERENCE_debian-buster = "1" +DEFAULT_PREFERENCE_debian-stretch = "1" diff --git a/meta-isar/recipes-app/hello/hello_2.9.bb b/meta-isar/recipes-app/hello/hello_2.9.bb new file mode 100644 index 0000000..b5d5b2e --- /dev/null +++ b/meta-isar/recipes-app/hello/hello_2.9.bb @@ -0,0 +1,8 @@ +# Example recipe to rebuild a debian source package +# +# This software is a part of ISAR. + +require hello.inc + +DEFAULT_PREFERENCE_debian-jessie = "1" +DEFAULT_PREFERENCE_raspbian-jessie = "1" -- 2.19.2