From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6652665106569101312 X-Received: by 2002:a2e:860a:: with SMTP id a10-v6mr1171254lji.26.1548950172031; Thu, 31 Jan 2019 07:56:12 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:8ec8:: with SMTP id e8-v6ls845094ljl.5.gmail; Thu, 31 Jan 2019 07:56:11 -0800 (PST) X-Google-Smtp-Source: AHgI3IaQtjnj8CjHzIqJcf+nALB68Teq4VK5l/TUMe/z4cBWxNd3FPRrVA0NDS2wpyPvHlmI8aEU X-Received: by 2002:a2e:574f:: with SMTP id r15-v6mr1191207ljd.19.1548950171331; Thu, 31 Jan 2019 07:56:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548950171; cv=none; d=google.com; s=arc-20160816; b=guJJPCu3vrKGiSPTJ0eeNu1WmlCTWyPcqIj3SL+oixUkv9n+FEPXAAywNRBOjVbFjK 6hNtc01TqV7Ib1paM8z4v0LbFYGN+9JbVJT/XhvJyrtJ91iJ1ocOl6r/eI/PiglLUnBv 0eQJI5HHT9nfetD7wt2tY+X7ijM9LozQ4pbkVk14lqANFD3o40gf3Lnqwxd+WIErkb5A /6HzxJ0LquTbmArsU1neVzHjvkiyVcsFvNNBQ+7dppUCOjFGvnKDNBa3+iYZ5rMyf2fU ZqDDwEMr9fRRz4gDIY6PdUH85L2w62oE0K0AcpbRD4Pa5GLfot9rqui7Dmk21yImuUWy keOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject; bh=DVxII4cZSdV9DKKcZdHomPWEggAFieRqc66oo8OV8Lo=; b=Ke80+jkLxiBXgUuy3QL+C1Oq77NOnuzxOU/dYghYFPBwvaoADuhjMPA+f7PhXuF+Cd jDGL+ZvfLhPvTFZLYtUPihApatmv+pB+aTj0orN3KdSGaE/X67FFpmrOvdhgzPnbTPX0 FZDlcbtOAPo67YGmx8i6Shv8K0X2CdGB9z+v8IhDZaMvNs2M3UXlrxt792ZvMSzGAZlL CgF6XGzYzZfHbZz3AVidPYmak+tcyNemWvyq6OFKJ2x+ZG1uivGn6euL7NPfRwZ2lHR1 dTcpBmeqDnEWGfJftpIavKnmLy6wpjYZdwx+/tVbwnq+0hUd11KJIa6rvqIkaGGWywTl 9tGg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id e17-v6si230946ljg.5.2019.01.31.07.56.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Jan 2019 07:56:11 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id x0VFuALr026709 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 31 Jan 2019 16:56:10 +0100 Received: from [139.25.68.37] (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x0VFuATi015816; Thu, 31 Jan 2019 16:56:10 +0100 Subject: Re: [PATCHv3 5/8] meta-isar/recipes-app: add upstream hello rebuild example To: "[ext] Henning Schild" , isar-users@googlegroups.com References: <20190131141816.32437-1-henning.schild@siemens.com> <20190131141816.32437-6-henning.schild@siemens.com> From: Jan Kiszka Message-ID: <3cb39806-26b0-a6db-77cc-9b93b5c79b30@siemens.com> Date: Thu, 31 Jan 2019 16:56:09 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <20190131141816.32437-6-henning.schild@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: 9A4ZFcpEAXTD On 31.01.19 15:18, [ext] 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 > +} > 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" > Incomplete file headers: no copyright, no license tags. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux