From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6545822013293854720 X-Received: by 10.80.141.196 with SMTP id s4mr1978652edh.8.1524139345371; Thu, 19 Apr 2018 05:02:25 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.80.203.73 with SMTP id h9ls3740619edi.4.gmail; Thu, 19 Apr 2018 05:02:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx492VKX0G6q59TkgdjwrjFcNTAx4DaU2aSSgMQf0XFgvrBliRK3czg6nLYbxk2MJv0Z2pttr X-Received: by 10.80.165.200 with SMTP id b8mr1975124edc.1.1524139344773; Thu, 19 Apr 2018 05:02:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524139344; cv=none; d=google.com; s=arc-20160816; b=G0YRqfRRgTj4IuFkkeUwIwCVleG8BjYvXK5mZZbBio03ppxNWqZl11XLIwHnpC/GpR K3mNNNyZkHU7zmCbZw2tcYO+uCyEuMlFWfwXmXvXeEY4tTeSaygv//UkkaURK4bw61gV 62NFmT5mRapc59jymb9JGEYYwyiQJ6gXe9xjkXn+ofczKSLK5IH3tbbvgMj6BHc8o6GW MUfXRI21tvgn3cxuj9cjyUA888trMGv3p46AB4yGPjEOhOcLE6oWLJg+zuWuszNyRhqt eNknYvqbvWOAUzOeBlIFuWbwlagqdY0VoF73BadZRihxMdsTqQwF8q9CIMHTIZO/hHsd +nmQ== 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:arc-authentication-results; bh=h0cgYl0D4nm6f00LlFyTQg4rRv36hD7hFbnRfi7rk9Q=; b=pMYIArKe8YhOOTv90WXW8GgAGpLdjAqyuR6yK9dIKLFyeEC+ndSPhpdo4tzLwxX1K4 2otpyRc9zirtHArZiCpy1Z6WIkutfRc3B5Bb41ehvRe5Aipbsi+9W1oto+KkCpcjbv/t OsBXq5DSSoZyFuMNoQZD31HNSVEgOsCoudMK4P4ZmYowkTxRZGspNQOrQIOg7quJQUFH 8o1b+9nHjxGXyffSkRgCagyly4qfrJcSgqJxqPgx1xpwBH53wG4WSlaY8ZfVo03C0c26 o1kn+XyeHyOH7N6T36neFvbcWCe2PBxnAm9hxiNzvI7blhangK2uhpvhhzjpuuMvk0pD hrHA== 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 4si77083edx.3.2018.04.19.05.02.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 05:02:24 -0700 (PDT) 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.siemens.de (mail1.siemens.de [139.23.33.14]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id w3JC2LnI018939 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Apr 2018 14:02:22 +0200 Received: from mmd1pvb1c.ad001.siemens.net (md1pvb1c.ad001.siemens.net [139.25.68.40] (may be forged)) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id w3JC2LmN015424; Thu, 19 Apr 2018 14:02:21 +0200 Date: Thu, 19 Apr 2018 14:02:21 +0200 From: Henning Schild To: Francesco Cc: Subject: Re: Install debian packages from other sources Message-ID: <20180419140221.20c11d1b@mmd1pvb1c.ad001.siemens.net> In-Reply-To: <6bbe9d5c-73e8-019e-d79c-de2263879795@dave.eu> References: <0fffdaa3-e4d6-90bd-d98f-5cd0e745ad25@dave.eu> <20180418202656.13f57c11@mmd1pvb1c.ad001.siemens.net> <6d4e88d9-4a5e-20dd-083e-e28009f13beb@siemens.com> <6bbe9d5c-73e8-019e-d79c-de2263879795@dave.eu> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-TUID: YyXD1ZqNxF7O Am Thu, 19 Apr 2018 11:07:53 +0200 schrieb Francesco : > Thanks for the example provided. >=20 > I have now created a custom image file on another layer. Inside this=20 > image I set the IMAGE_PREINSTALL variable with other packages I want > to install on my final target image. >=20 > At the end of the building process I noticed that the version of the=20 > packages does not correspond to the version of the packages of my > added repo, but it is instead that from the original repo. >=20 > I also would like to ask another thing. I tried to write a recipe to=20 > install a custom application in .deb format. The deb file is this > time fetched from the host fs. >=20 > My custom image inherits from the isar-base-image, and I would like > to simply execute dpkg -i mypackage from the target rootfs. How am I=20 > supposed to write a recipe for this? "dpkg -i" is evil and not supported The best way to do that is to write a recipe: foobar_4.1.2.bb > inherit dpkg-base > SRC_URI=3D"file://${P}.deb;unpack=3Dfalse" > dpkg_runbuild() { > true > } And put foobar_4.1.2.deb into the FILESDIR of the recipe. Or use FILESPATH =3D. "/dir/to/drop/location/" to fetch with file:// from outside your layer. Finally add IMAGE_INSTALL +=3D "foobar" to your image. Now the .deb will be put into the isar-apt repository and be installed with apt-get from that repo. Henning > Thanks >=20 > Frank >=20 >=20 > On 19/04/2018 09:10, Claudius Heine wrote: > > Hi, > > > > On 2018-04-18 20:26, Henning Schild wrote: =20 > >> Hi, > >> > >> you can do two things. You can actually go ahead and just > >> fetch .deb files from somewhere in a package-recipe. Or you could > >> derive and image-recipe from isar-image-base where you add another > >> sources.list file to DISTRO_APT_SOURCES. =20 > > > > Yes 'DISTRO_APT_SOURCES' is the right variable, but setting it in > > an image recipe doesn't do anything. You have to expand it in a > > *.conf file or in a isar-bootstrap.bbappend file. > > > > Personally I would create a new configs like this: > > > > =C2=A0 conf/distro/custom.conf: > > =C2=A0=C2=A0=C2=A0 require conf/distro/debian-stretch.conf > > =C2=A0=C2=A0=C2=A0 DISTRO_APT_SOURCES +=3D "conf/distro/custom.list" > > > > =C2=A0 conf/distro/custom.list: > > =C2=A0=C2=A0=C2=A0 deb http://url/to/repo suite component > > > > =C2=A0 conf/multiconfig/custom-config.conf: > > =C2=A0=C2=A0=C2=A0 require conf/multiconfig/qemuamd64-stretch.conf > > =C2=A0=C2=A0=C2=A0 DISTRO =3D "custom" > > > > For just testing you could also put > > 'DISTRO_APT_SOURCES_append =3D " conf/distro/custom.list"' > > in the local.conf, you will also need the custom.list at the right > > place. > > > > Cheers, > > Claudius > > =20 > >> We still lack an example for that, but Claudius might have one. > > >> If we are talking about a proper repo and not some random > >> drop-location for .debs the latter would be the way to go. > >> > >> Henning > >> > >> Am Wed, 18 Apr 2018 18:12:31 +0200 > >> schrieb Francesco : > >> =20 > >>> Hello again, > >>> > >>> I would like to fetch debian packages from other repositories and > >>> then install them into the rootfs. > >>> > >>> Which is the right way to achieve this? > >>> > >>> Thanks > >>> > >>> Frank > >>> > >>> =20 > >> =20 > > =20 >=20