From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6647496723618856960 X-Received: by 2002:a17:906:a483:: with SMTP id m3mr13903ejz.9.1548853585680; Wed, 30 Jan 2019 05:06:25 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a50:ba6c:: with SMTP id 41ls604466eds.9.gmail; Wed, 30 Jan 2019 05:06:25 -0800 (PST) X-Google-Smtp-Source: AHgI3IZI8Dg6sHqja0pohUA6PgftwaXTnc35Fv93FI9NSdAx8nA1j6VGDiPcq4/azmrZIJm4rwt2 X-Received: by 2002:a50:90f5:: with SMTP id d50mr1372085eda.9.1548853585257; Wed, 30 Jan 2019 05:06:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548853585; cv=none; d=google.com; s=arc-20160816; b=z0EfI+E+gRhJQ8yYDWhhu49KoJVgz8NT/zHj2u0ZspW8kh7MOddaC2kzg+7Aa76CUk TJJTZX3kS6B59QB/xoUHCK3HApr7sOQhwUdQ19zPOgmYseFtHFUL3k80wlBt9pIARzA5 c0yZefKzDtqgyvKbZWDpAwITIRpugPskYOnblDHB8LZ8V2YjRt2hTlXMlOkYagg8946X 6qGB6UNISq4n/jWJlh7BkfiUQuRYMQl3ffqtcWZTbyu46L0IS6nXgJPOaQ+HhkwYvBlO Z3iCrw1To7s6NEW5sctxAEpL8M73I+c8fZTQMStnGB2blvYVn0rEGBPI6+PXZT7miBlI W2cg== 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=N5DdidBy+8b/yxNKM+F9znVWn4z9rv8dSwu5j5gvkm7cMuEm8AUDPg0Jy+s0a4KqnJ ODee2uT9X/i6XQotNE5rMp0sgjsqcAYlBpi2ENLzoU1J9eQZxaaBrzvZObAFLLQmAwqG pAzQtFnQLCOfbpveUfrOiSoCPJt4QmK8X+nGCDTwcDQkbzMRLWdE/TLUmrvhSRRj6Ai7 2kocxTyxHGBHJe6G4WERbCygxtUxlDb9Km266JuLQj0uGPllGMnEw0zBY3ha6Wsx+cMj bHYuKQNOmD889gIZ5cegBpWiEHLvmP6kP6Saf9L+zmFQvbqyLdeWist8e3zer8yrnvNf X0Og== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id l31si68784edb.5.2019.01.30.05.06.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 05:06:25 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id x0UD6Oe5011772 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Jan 2019 14:06:24 +0100 Received: from md1za8fc.ad001.siemens.net ([139.25.68.203]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x0UD6OHx021870; Wed, 30 Jan 2019 14:06:24 +0100 From: Henning Schild To: isar-users Cc: Cedric Hombourger , Henning Schild Subject: [PATCHv2 5/7] meta-isar/recipes-app: add upstream hello rebuild example Date: Wed, 30 Jan 2019 14:06:23 +0100 Message-Id: <20190130130623.7771-1-henning.schild@siemens.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190117160427.26556-6-henning.schild@siemens.com> References: <20190117160427.26556-6-henning.schild@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: kULia0QF1VIL 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