From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6652665106569101312 X-Received: by 2002:a2e:9053:: with SMTP id n19-v6mr1225777ljg.12.1548952967205; Thu, 31 Jan 2019 08:42:47 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:90ce:: with SMTP id o14-v6ls859592ljg.11.gmail; Thu, 31 Jan 2019 08:42:46 -0800 (PST) X-Google-Smtp-Source: AHgI3IbMnPIiHOd921M77OLjeI49v8UxhUXdMzAUMYLGFko3NKoaCRqi0nrFH3kM+d1zu7IuvDgh X-Received: by 2002:a2e:42ce:: with SMTP id h75-v6mr1186194ljf.27.1548952966675; Thu, 31 Jan 2019 08:42:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548952966; cv=none; d=google.com; s=arc-20160816; b=GFsuhVMdSBzrFpZdkMqBRN9clwP+C2VY1Ma4gxdt7lGEsFjivY0OzmDi1ouQL3qGJH Rb9lULA6tCLU82ViC+h5aLONlKa3CWQOthliAQfzo1So0q6ArWbNmhwYEFXtMDEgaQuN FX9h35pbwS8oaOVAIkvAIDh6d0sm79qrsZTgErG3rfw4zYu11+v5I+Ld8dDn9PJQzPKs 3mBQZB0gV54jEISGb5dX/EXfMSx35bx7N3n36zetn3xersdenhxkv0PTb6XNqxsVMZUc 6dIxd7+R+BT/aH5k4yFx6oq+3I+Td1KKP++bESEI0/W3cURkZ8nAp+Kuoe25QgZIQBIo iwLg== 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=50+JfoPaIQavGK1mgKaAJoy9F+ahjpCfQ0datB0Xack=; b=025UMuuLFacS9nqnEFU2Z1yQv7KrOXtBzkCUSPkzs2q/17jv3cFet6ID0j/Jtzt4Rr Fri2s3vV8Bl0LPThp5W3MydR0jW4o1QPZ1hGukR+sxRfFo+k0LeSCGg+z2Z1g8BOtyC0 HLQmivJCTFjuO+pwreBYK3SvykVr4wKNN0Y8lyfE1FyxP+JqVS5BTNc6/nK37g2LMqU+ Q/y5dCMq8ghRGj/Ype2BulYHNYFWrYvNEGdCyweG5oxyMSll75Gj/4QoS1oWrqbKIYoW 2QQsNlY42nFrctYoqp5JEYbbGjosT3l6MZ7C/e991mUdU+MFI7RChX9NEItczQuTlN5C ThYA== 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 n189si193206lfa.4.2019.01.31.08.42.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Jan 2019 08:42:46 -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.sbs.de (mail1.sbs.de [192.129.41.35]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id x0VGgj8Q002663 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 31 Jan 2019 17:42:45 +0100 Received: from md1za8fc.ad001.siemens.net ([139.25.69.211]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x0VGgjE1029790; Thu, 31 Jan 2019 17:42:45 +0100 From: Henning Schild To: isar-users@googlegroups.com Cc: Henning Schild Subject: [PATCHv4 5/9] meta-isar/recipes-app: add upstream hello rebuild example Date: Thu, 31 Jan 2019 17:42:40 +0100 Message-Id: <20190131164244.9169-6-henning.schild@siemens.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190131164244.9169-1-henning.schild@siemens.com> References: <20190131164244.9169-1-henning.schild@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: WVpLm06hwAQ6 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 | 26 +++++++++++++++++++++++ meta-isar/recipes-app/hello/hello_2.10.bb | 11 ++++++++++ meta-isar/recipes-app/hello/hello_2.9.bb | 11 ++++++++++ 3 files changed, 48 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..815211b --- /dev/null +++ b/meta-isar/recipes-app/hello/hello.inc @@ -0,0 +1,26 @@ +# This software is a part of ISAR. +# Copyright (c) Siemens AG, 2019 +# +# SPDX-License-Identifier: MIT + +inherit dpkg + +# this will fetch and unpack the sources from upstream debian +SRC_APT = "${PN}" + +MAINTAINER = "isar-users " +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..bfb8722 --- /dev/null +++ b/meta-isar/recipes-app/hello/hello_2.10.bb @@ -0,0 +1,11 @@ +# Example recipe to rebuild a debian source package +# +# This software is a part of ISAR. +# Copyright (c) Siemens AG, 2019 +# +# SPDX-License-Identifier: MIT + +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..63d1562 --- /dev/null +++ b/meta-isar/recipes-app/hello/hello_2.9.bb @@ -0,0 +1,11 @@ +# Example recipe to rebuild a debian source package +# +# This software is a part of ISAR. +# Copyright (c) Siemens AG, 2019 +# +# SPDX-License-Identifier: MIT + +require hello.inc + +DEFAULT_PREFERENCE_debian-jessie = "1" +DEFAULT_PREFERENCE_raspbian-jessie = "1" -- 2.19.2