From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6514905122349252608 X-Received: by 10.28.192.26 with SMTP id q26mr3823443wmf.29.1517485040102; Thu, 01 Feb 2018 03:37:20 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.47.71 with SMTP id v68ls1721687wmv.6.gmail; Thu, 01 Feb 2018 03:37:19 -0800 (PST) X-Google-Smtp-Source: AH8x2278AZaBxEURUVeMFRgBcvIYVkokjungXyw6A85msBaY1jYn66TYjGtGRqoWedrUuL4osBvY X-Received: by 10.223.157.147 with SMTP id p19mr159751wre.30.1517485039544; Thu, 01 Feb 2018 03:37:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517485039; cv=none; d=google.com; s=arc-20160816; b=jrStrV9+qMt/Ku2frWt3hDV2uOQAKpMRjAw+V4KDrTRLXoZ24p3xM4H+6nZ+jIvE8U rPldR/E5oXy95wzBQlgZGISBViKEzXtKeLpVDyFpjTY3apq5IZbD4fgbqReiR+V0Bsf3 lw3dVOFn+qhT3UkLDRpAHUNWwX/GW9ASDPDM2K3r7BH+tIFqJzBwgdiuZUrIcXslmvog fUVy9A+fm+wxRIAE5ujz6yW3KgJaoBbuGq59N7/9BaLOO6TSjRZB+wP9+dzgEOVq6OEL 5Lyj745lFRD8P8kIGzpCY82WvniCuCQqFbvIDbR7/urSLuqyN8W8RRAcXfvmRn3clrgT fWhg== 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 :arc-authentication-results; bh=ghEyjH1oz++XazQAodMym1v9YIk64H+CO/q+L3f4+Yg=; b=UPmlR4DleOl581xl72BNEAZ7sZpBstYE3R2wXDMb41WmeBKsPxJhA5GQuyZBN9Bwwe 9RGyfD2g8ESEggGb6hYrGbbw5YqF6ZK1NjbIpSFJk/Znibp8jCJG4MriVpzKbhSBETsN 77Jae2DGhrcbcPB+ta/y7wAJ4bsbofd14RONW/hzh9YZAyRMHlZk+BGpLz/fcqYYpQzf WcAKberWm0LbOF9JWOon/qvzuYa4Dp4VFjCVrtVaRqCAMnAtlc7AcO0HV52yJlXYTXy/ Ja3u0IOriOGPtWJAmI7aa3T8U9ZDV1KkbaFBZP8in/Ku+UoUGDGLQXjz4J+owjXzRo3I Tz4A== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id a12si132805wmg.4.2018.02.01.03.37.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Feb 2018 03:37:19 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w11BbJ8c014273 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 1 Feb 2018 12:37:19 +0100 Received: from [139.25.68.37] (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id w11BbI0Q003720; Thu, 1 Feb 2018 12:37:18 +0100 Subject: Re: [PATCH 2/3] build.sh: Install newly built packages To: Benedikt Niedermayr , Alexander Smirnov , isar-users@googlegroups.com, Henning Schild References: <20180125083851.5887-1-asmirnov@ilbers.de> <20180125083851.5887-3-asmirnov@ilbers.de> <9217577f-03ce-1357-5e1b-97a1850328ab@googlemail.com> <427d7ef3-eff1-042d-bca1-b1224bee10ab@googlemail.com> From: Jan Kiszka Message-ID: <9358910b-0d5c-b161-933e-e67aa998ca32@siemens.com> Date: Thu, 1 Feb 2018 12:37:17 +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: <427d7ef3-eff1-042d-bca1-b1224bee10ab@googlemail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: T2w7Nq1fYRI+ On 2018-02-01 11:09, 'Benedikt Niedermayr' via isar-users wrote: > Am 01.02.2018 um 09:07 schrieb Alexander Smirnov: >> Please take a look to dpkg class and to example-hello application. > > Ok, > > but when I look into example-hello then I'm able to comprehend that, but > > when I take look at example-raw which only inlcudes dpkg-raw then I > can't see any possibility to build > > the package out from its sources. > > > So when including dpkg.bbclass then I'm able to build out from sources. > > But when I also need to "debianize" my sources I have to include > dpkg-raw, which in turn will overwrite the > > dpkg_runbuild task. > > I think the dpkg_runbuild of dpkg-raw should also call "sudo chroot > ${BUILDCHROOT_DIR} /build.sh ${PP}/${SRC_DIR}" ? There are currently three ways to build a package: - the sources comes with debian/ control files -> inherit dpkg - the sources are not debianized and you don't want to do that -> inherit dpkg-raw, build manually (if needed at all), define artifacts and let the raw class do that ad-hoc binary packaging - the sources are not debianized, but your recipe can fill that gap -> inherit dpkg-base, provide a debian/ folder, overload dpkg_runbuild to trigger a debianized build I'm going the last path with the upcoming custom kernel recipe. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux