From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6647496723618856960 X-Received: by 2002:a7b:c414:: with SMTP id k20mr618845wmi.8.1548831318087; Tue, 29 Jan 2019 22:55:18 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:6812:: with SMTP id w18ls243702wru.1.gmail; Tue, 29 Jan 2019 22:55:17 -0800 (PST) X-Google-Smtp-Source: AHgI3IZUXa0ANM4Gy2vk8PYIYLaJudzMPyvnEGDFKtj02ULuKF8mgbBkMNG+87maAKURSn6RSH+S X-Received: by 2002:a5d:554d:: with SMTP id g13mr518317wrw.23.1548831317716; Tue, 29 Jan 2019 22:55:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548831317; cv=none; d=google.com; s=arc-20160816; b=0n+6pg6zpW2qdvgL5uOWTTf8RvrvlHu4NrY/GjQuEc5QN6CrxDKj6mhIBCi/AVGJhz 81QEHKgo0/QgF38iSDUzsNup1GVXgQpMn7ANPpMFoc5b2YNj5zegPLTYtxd1TZ6HvLoh d6I7ZkXPRt2Sdz6ANkB8p3kWyQ0QdLAqU0skxmNY7CytLoyJZ54Lozp706Y7hhQnPJV4 FlFr+XULEfKZjXWMP+uOueriM4LA3plSxPvDpBY4CiaodrhnrEI7MBg5dq/2t2hr0D8S X3Prqv3kc+cKvz7D19CelKca4PUu4PLCb6wzxEIOqRkbYKHr9EMujvU1nOA08egh7b76 WDow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:to:from; bh=2oxvJPbegCGbFUjOcZMAjoJRbugOFCt2imfpuzOvkvg=; b=sULs6lX9WfPTy90BjZcT8D6RcVDMo/dV6lAQnsRV+ihNupFqdsZbxMTQdkpcJ5Ugqf Tlzb1+lnDoZQt8boH67f0hENVwg6bMcWXwHF3HlteQ1CN2f5KYofWEgdHDYweH6fAWbK SHTi2RbhmpynkXdkHZ2ihGMIkCmNY8JITHx3bPzPQTPC9quNOeRf2skUrZi0R0Bu4nTA C2CxEUsL2/fWFm1Iz9Z0ZkRzS7J6U716mDVP7TCDjcDKhHBrbdXpic60p8RHmQFf2y+/ W4a2HX3aC7mG+vrKI7D6iVMWnt4czMOXdnyULv0SMwhbceM23KiN/FATsBkd+YtquMAF BSLw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id i11si37877wmb.2.2019.01.29.22.55.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Jan 2019 22:55:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Received: from azat.m.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id x0U6sqoB016991 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 30 Jan 2019 07:55:16 +0100 From: "Maxim Yu. Osipov" To: isar-users@googlegroups.com Subject: [PATCH v2 5/6] meta-isar/recipes-app: add upstream hello rebuild example Date: Wed, 30 Jan 2019 06:54:51 +0000 Message-Id: <20190130065452.11589-6-mosipov@ilbers.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190130065452.11589-1-mosipov@ilbers.de> References: <20190130065452.11589-1-mosipov@ilbers.de> X-TUID: /tOSFMeJKcPB 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 | 19 +++++++++++++++++++ meta-isar/recipes-app/hello/hello_2.10.bb | 8 ++++++++ meta-isar/recipes-app/hello/hello_2.9.bb | 8 ++++++++ 3 files changed, 35 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..49e2eb9 --- /dev/null +++ b/meta-isar/recipes-app/hello/hello.inc @@ -0,0 +1,19 @@ +# 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 +} + + 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.11.0