From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6647496723618856960 X-Received: by 2002:a17:906:46ca:: with SMTP id k10mr1318484ejs.2.1548853657726; Wed, 30 Jan 2019 05:07:37 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:906:4591:: with SMTP id t17ls472676ejq.3.gmail; Wed, 30 Jan 2019 05:07:37 -0800 (PST) X-Google-Smtp-Source: AHgI3IYAD93SmlMafpnAmkm5K6OZXaLZXYDOrtae4KJFbaY2BYWERsr0GSBXR3qAxKChBlLrJDnE X-Received: by 2002:a17:906:1589:: with SMTP id k9mr1155595ejd.5.1548853657268; Wed, 30 Jan 2019 05:07:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548853657; cv=none; d=google.com; s=arc-20160816; b=R4m9x3wiIPcpKj9mtn40vDTgHoqts5W+UtgfAytZgxia+9iTOCoy8YR9mPrRmQ1jyr stdTfDhbjiHn9alWdfjYkGgw6AylxS8voXnuJtaZQkibYy6hpk5WqJUJm+a5bLhYuN2F iWK1ExYh2i8KuikbGDUXsRMRopgNpU1Nthc+3WY5vkbJppBQYDva20e8oSD63ItiKjBr vIe4yFHNZn+xSpnySUr/emiLHbR+WTcK2ItrVTou7Gi7FSRLsb7QstxoDuKyLnBZyFkf CnbghmvlFllcoDH5FLCysKHnYdZaApP3CtThTjsRgVNCP9I9d0p+Fmz52WV+ZKo6j6vq 7+rQ== 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:subject:cc:to:from:date; bh=LgtpERGcD+7+4WEnrTlLkoHw/fVLnSodOOQtIqW2qLg=; b=SVN2q4lgwvUlVMCh0wpgBx/8o5Mpwi7TVYjTFJM42EZ34kk8Uo76NdsXZ84HfAVlwB UFTmI0kH98tpNoC1vQQU9Nz22rP5fNWrSWd0wCHWWDPW6l9wrrtW+wUE20xLISxj24hN J7QPLjIprEyFPVIOH720ShpiV4XBzscl6dL9UPKrSKj6oW9b9WknkzvNEZK5hIZDPVVJ D/6n7ozVwAaBXPesLzexo2WCs+n91sd0mQpmeIyedk4+5VoqcuDPSB8QE7miXGiBm6oc /oiPIQ6TbolZiIHwwTff1eqHDvH4r30IX6wnYuZ8q/WYf+DzuITKdDCUTV9VyZB58mp1 EIYw== 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 h28si78266edh.4.2019.01.30.05.07.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 05:07:36 -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 mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id x0UD7aek025642 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Jan 2019 14:07:36 +0100 Received: from md1za8fc.ad001.siemens.net ([139.25.68.203]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id x0UD7aTV002778; Wed, 30 Jan 2019 14:07:36 +0100 Date: Wed, 30 Jan 2019 14:07:35 +0100 From: Henning Schild To: isar-users Cc: Cedric Hombourger Subject: Re: [PATCHv2 5/7] meta-isar/recipes-app: add upstream hello rebuild example Message-ID: <20190130140735.5372e037@md1za8fc.ad001.siemens.net> In-Reply-To: <20190130130623.7771-1-henning.schild@siemens.com> References: <20190117160427.26556-6-henning.schild@siemens.com> <20190130130623.7771-1-henning.schild@siemens.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: U40jES133f3Z On Wed, 30 Jan 2019 14:06:23 +0100 Henning Schild wrote: > 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 > +} This prepend is new in v2, it disables testing in the cross build case. Henning > 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"