From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6517599416265736192 X-Received: by 10.80.134.135 with SMTP id r7mr1724176eda.1.1517994308943; Wed, 07 Feb 2018 01:05:08 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.80.204.215 with SMTP id b23ls714688edj.8.gmail; Wed, 07 Feb 2018 01:05:08 -0800 (PST) X-Google-Smtp-Source: AH8x224n/Mdb6khxXouLrh4EkFFzVp1PE/NQXPdie6kPNlf2OtHdDYn/TiR2fquBMp+oNBA9ia1Y X-Received: by 10.80.184.23 with SMTP id j23mr1723692ede.3.1517994308326; Wed, 07 Feb 2018 01:05:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517994308; cv=none; d=google.com; s=arc-20160816; b=tjKVwV+03BiyNBH2Bpi3c2qfZ/2ArNa4dqw6cdFEPlHIwz+eMdUWge3Z2gGz1sCUfR BrAs2ngTe6ae4eVZPve6SCFdvTT7E6yIMUYbvWlnU8SqYhaFnMPq8r8gEYTmC6XJlRGu nSSvGsDHJxNbMIoHbBgy+2nJc6K1R0sP0sU9XKbIpFZ7FBnB9Gacy0pu98oaCDWQ4EiV aCPNM4DayX9DV25qEYzF/zZ+JuXatEIKino4PCZuWtRlE58gaF1TqEAY/28xYjlFamLy igb4oRAes91OBdYv5NHWyUIfdC2Rm5yJPm39PZc6z/4mircG81ZYXsihbX7mBCgFZ0V5 wbHw== 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:references:to:from:subject :arc-authentication-results; bh=DLp2GTnQTmvOb5oyALq/PWtngx9MJHclq5kxYaEhWfA=; b=i8FxFre1S8FRhWKtnpYW6wGsYD+r0FwhIzjLkhsOWzO68YquBULNrg01A0iN/aoxMG YhEI8f0UOWb5yQtrX9AdTN3F/1QEQq9T2I/QeR/Vm6gobs1/b//ELn0op31+DuIsl4v7 dyv4uXD4uS3uRZm+gB+5zFU65ck39nCifJnTtVDoOkQ7Tlf86N2TwwZbdLIQxIqJ1Eve lBR2juzZ1PvWvBRKeB5Y5SMkVUhxcd+bfI30+b0Ll1vv3XTb7zMwQGxlRrKux0e1LUeK lA8hXN1wTQW6XSoOwKYAvdR0W9xL506wfYFiSsaIK+A1z9QqX0LO8Y3ha72GtlmgHaGc LIiA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id v28si60210edd.3.2018.02.07.01.05.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 01:05:08 -0800 (PST) Received-SPF: pass (google.com: domain of claudius.heine.ext@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 claudius.heine.ext@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id w17957Hb015848 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 7 Feb 2018 10:05:07 +0100 Received: from [139.25.68.223] (linux-ses-ext02.ppmd.siemens.net [139.25.68.223]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id w179572J027478 for ; Wed, 7 Feb 2018 10:05:07 +0100 Subject: Re: Multi repo support From: Claudius Heine To: isar-users References: <7714f0e1-aaca-add2-eabc-738d4043c21c@siemens.com> Message-ID: Date: Wed, 7 Feb 2018 10:05:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <7714f0e1-aaca-add2-eabc-738d4043c21c@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: 75Kr4g/vV34g Hi, On 02/01/2018 03:54 PM, [ext] Claudius Heine wrote: > Hi, > > I would like to start the discussion about how to best implement muti > repository support in isar. > > Does someone already has some ideas or even something in the pipeline > for this? > > If not then I do have an idea that was outlined together with Jan: > > Adding and configuring apt repositories should be done via config files. > It should be possible to define own multiconfigs while including > multiconfigs from other layers. These configs then append filepaths to a > global variable. > > Every file that is added this way contains 'sources.list' compatible > repository definitions. So one repo each line. > > For every line in those files a repository entry for multistrap.conf is > created. Here we might need some more complex code to convert such a apt > repo tripel to the right format multistrap expects. But by using the > 'sources.lists' format we would be independent of multistrap and become > more future proof. > > Comments are welcome. So for reference here are the points gathered from the comments in this thread: - It needs some way to handle package name collision. For instance if custom packages have the same name as an upstream package. Suggestion: Use apt-preferences to prefer packages from the 'isar' repo. To consider: How to teach multistrap about those preferences? - Overwriting source entries with local mirrors. Suggestion: Similar to how oe does it with PREMIRRORS. e.g. DEBIAN_APT_MIRROR_append = "regex replace\n" To be implemented later. Cheers, Claudius -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de