From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6545822013293854720 X-Received: by 10.46.136.78 with SMTP id z14mr297772ljj.13.1524128874668; Thu, 19 Apr 2018 02:07:54 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.146.13 with SMTP id k13ls704338ljg.4.gmail; Thu, 19 Apr 2018 02:07:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx49X3wzpxJ9rBkM0al4L463LuYGTVrJoV88XlbTw8cPirY8Pi8/3S/WTMVQXlY0DTNIzJSzZ X-Received: by 10.46.153.73 with SMTP id r9mr314137ljj.6.1524128874204; Thu, 19 Apr 2018 02:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524128874; cv=none; d=google.com; s=arc-20160816; b=MnUoqvRysQrLly5ZzY3E6I2X+aLZCFvFYhbuLOl7E+GtocraFjFSbll3qJa/cOeonM /521wk0XQO0bxy/DD8TszbTaerMufq/mBNZHZ3fPj+vKIxgMTmBwieYuBczzwYhEhtPO vr+wEbtyIKVadJTedDQ65bItdT6658aZ3q72gKCZ1BuHlwtFrHXz0CoiKUOz7T7LpISK ghoFyUJDk8XE28gt42cRMZOsyZjYrIWDjzzPok2e8iEIHojt83c1ZBmGNH0QisOoA3nC ajgRBz3ZN3U6pp/0WjnjzifXBgjoS8RX656UxGb/9ipq6E/0JJFXWtbCk2I4E0hk2SKf HHxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=Ecu//EQrHwh80TnXoOYPRal9Kk4KLPZgWtVXTlk6Luk=; b=fcpdJ/WZcKir1IEQvamJrq1ibTvE8j2RN975hchXvDVrfU7sIphVV5TvjBvA0d344F pvvBw+z7AcwWedo0Mhzqiyng7nzBhCpWx+3aQCT67kFlg2m0eH7xt86ry81KVA6+Xw0A YkFOyBj0Pv7WMjjL9VXZ26twlcuiaIiy9+XhvXl6ZafOIq+ntW6MlX+9QrFtx/Rh3eCZ 9ucTfNkxf/XWix7qcDCQc/JWEWyrCY9SfNsRcPpdJNWhd0NLN9NUkHB3okYJAuT3/VUl GvTvAnaESwpMSW5W4OBmBwvX8x4WBv5P43E6eBMUnz1SagWCCdrqgFYmQIy678mjCYr1 Atzg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of fdprnd@dave.eu designates 185.100.109.150 as permitted sender) smtp.mailfrom=fdprnd@dave.eu Return-Path: Received: from mx.dave-tech.it (mx.dave-tech.it. [185.100.109.150]) by gmr-mx.google.com with ESMTP id h11-v6si74295lfd.3.2018.04.19.02.07.53 for ; Thu, 19 Apr 2018 02:07:54 -0700 (PDT) Received-SPF: pass (google.com: domain of fdprnd@dave.eu designates 185.100.109.150 as permitted sender) client-ip=185.100.109.150; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of fdprnd@dave.eu designates 185.100.109.150 as permitted sender) smtp.mailfrom=fdprnd@dave.eu Received: from [127.0.0.1] (unknown [192.168.0.115]) by mx.dave-tech.it (Postfix) with ESMTPS id 3E0CE85 for ; Thu, 19 Apr 2018 11:07:53 +0200 (CEST) Subject: Re: Install debian packages from other sources To: isar-users@googlegroups.com References: <0fffdaa3-e4d6-90bd-d98f-5cd0e745ad25@dave.eu> <20180418202656.13f57c11@mmd1pvb1c.ad001.siemens.net> <6d4e88d9-4a5e-20dd-083e-e28009f13beb@siemens.com> From: Francesco Message-ID: <6bbe9d5c-73e8-019e-d79c-de2263879795@dave.eu> Date: Thu, 19 Apr 2018 11:07:53 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <6d4e88d9-4a5e-20dd-083e-e28009f13beb@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-TUID: 1gkHnnfTioQb Thanks for the example provided. I have now created a custom image file on another layer. Inside this image I set the IMAGE_PREINSTALL variable with other packages I want to install on my final target image. At the end of the building process I noticed that the version of the packages does not correspond to the version of the packages of my added repo, but it is instead that from the original repo. I also would like to ask another thing. I tried to write a recipe to install a custom application in .deb format. The deb file is this time fetched from the host fs. 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 supposed to write a recipe for this? Thanks Frank On 19/04/2018 09:10, Claudius Heine wrote: > Hi, > > On 2018-04-18 20:26, Henning Schild wrote: >> 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. > > 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: > >   conf/distro/custom.conf: >     require conf/distro/debian-stretch.conf >     DISTRO_APT_SOURCES += "conf/distro/custom.list" > >   conf/distro/custom.list: >     deb http://url/to/repo suite component > >   conf/multiconfig/custom-config.conf: >     require conf/multiconfig/qemuamd64-stretch.conf >     DISTRO = "custom" > > For just testing you could also put > 'DISTRO_APT_SOURCES_append = " conf/distro/custom.list"' > in the local.conf, you will also need the custom.list at the right place. > > Cheers, > Claudius > >> 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 : >> >>> 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 >>> >>> >> >