From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6652665106569101312 X-Received: by 2002:a2e:8199:: with SMTP id e25-v6mr1171182ljg.15.1548944299263; Thu, 31 Jan 2019 06:18:19 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:5d9d:: with SMTP id v29-v6ls801783lje.12.gmail; Thu, 31 Jan 2019 06:18:18 -0800 (PST) X-Google-Smtp-Source: AHgI3IY6lvdNB/VYBzkbbQNBA/qLoW+Nrz1n86Jod7iEwCDovztp0qg9/nY5G7kmk5wx3bJ4Cm9J X-Received: by 2002:a2e:8199:: with SMTP id e25-v6mr1171179ljg.15.1548944298825; Thu, 31 Jan 2019 06:18:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548944298; cv=none; d=google.com; s=arc-20160816; b=PjCocLYXg4X4F/W9FrqafdS7SNyInN93CJUiikyyFu0XKsWqcwMWf0OSOnpF5BcPKU 9yiFUW1l+5MExNa/33xfuHwVYWf1QbMQh+n2pa9g8VWsH+mAhqfClebnz/G1aMvgVWPu QsmsBcNq6HZ0CsNLsPxjkVpTCnQMFMAYar/+2g7W2DKIrCXYpu/QZa+85urI640popnp 2pxDXea7jop/tfiPv+t+QnZzygZJz9lThl8umgk1FgmoZs6ovHee+eNJ9DWy1owffhng ARDbe+h+WzymDMBMZ8AoBLAnu9FlWJ38id2zg2sZtAHZ0p5RvKqDHh79gZLXC/FNPqgw Z/Gg== 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=v77a/Ow3p0YkGumDMYpFNLrv0983ZOfTZ8pM3FD+fVk=; b=STizeYaDPln+RptzdX7PJ3S/iJUBDpOWg+5F16izK8H97b3OaH2EcMXgtF2u05CU+K 1oqJO8IDLnGllj8sO8OfDSe2CM7PyKbKQBI5MDZnBlyV6p/HNMjWBHXZspiKiwYd4KPX /ydYisWD1tWCT08x7Ur5N7oNzPQ2Sv8PF5KngBlljJrZaEETpqyLtufibRGZYbCdA7wC W4CfjXBGUeZV0npPFR/mYziRvVZsfv1Sp2ks7wT6DPNow4YvXUIHtvVvojUQlIee8ZpI 4V5ED4P9DOLBSedUfob1Z1gL6No3OGgAEs/xXlnnhdeIOuf6GRD7rP9Nv9rM89Ozlmwl JebQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id n189si178158lfa.4.2019.01.31.06.18.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Jan 2019 06:18:18 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@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 henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id x0VEIHUL019159 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 31 Jan 2019 15:18:18 +0100 Received: from md1za8fc.ad001.siemens.net ([139.25.69.211]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id x0VEIHtu031813; Thu, 31 Jan 2019 15:18:17 +0100 From: Henning Schild To: isar-users@googlegroups.com Cc: Henning Schild Subject: [PATCHv3 5/8] meta-isar/recipes-app: add upstream hello rebuild example Date: Thu, 31 Jan 2019 15:18:13 +0100 Message-Id: <20190131141816.32437-6-henning.schild@siemens.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190131141816.32437-1-henning.schild@siemens.com> References: <20190131141816.32437-1-henning.schild@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: 4wQ80e631mE+ 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 | 23 +++++++++++++++++++++++ meta-isar/recipes-app/hello/hello_2.10.bb | 8 ++++++++ meta-isar/recipes-app/hello/hello_2.9.bb | 8 ++++++++ 3 files changed, 39 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..3976b15 --- /dev/null +++ b/meta-isar/recipes-app/hello/hello.inc @@ -0,0 +1,23 @@ +# 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 +} + +dpkg_runbuild_prepend() { + if [ ${ISAR_CROSS_COMPILE} -eq 1 ]; then + export DEB_BUILD_OPTIONS="nocheck" + 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