From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6517599416265736192 X-Received: by 10.28.0.11 with SMTP id 11mr475562wma.28.1517995560781; Wed, 07 Feb 2018 01:26:00 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.223.142.69 with SMTP id n63ls363373wrb.11.gmail; Wed, 07 Feb 2018 01:26:00 -0800 (PST) X-Google-Smtp-Source: AH8x227yZbR6VIZBrOkqSaSimYaJaGVQnHTuQ3SJ5+nF71xbBQJ/7HHHHEQKra/G4NM+ngYbYfZX X-Received: by 10.223.208.137 with SMTP id y9mr608087wrh.12.1517995560358; Wed, 07 Feb 2018 01:26:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517995560; cv=none; d=google.com; s=arc-20160816; b=g7ifHBjagKjefq4UUvKgRXeDSyDMflPlJMoNJa8psOqHBA6821EsajIT7fVA9+9s9p t8jqeG7g25+FWaunMTxqKXb80xwYFs4T7150wH7Faqt8xk4LlaWvzI8ErOi5hzkMkxdo WuL1X7xItewWznyu/Kro9Vpj/hVq3JCaKcp8gIvLvsNEcxPcN+sIChZMGYeN58W3PtG9 V9S1gsyQ6/U6TKeGNlkb73/Mx14CgEfysmE/9lbIAo2kU7KelHVvgs+o3042J7sqHBmv zMknsXpsmL1BHenB7rxoghWb0DunqN7Df34xaxO/lbvRz3J8PCM9jNip0PIgMW6xByj2 b9MQ== 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=Lr9c4+PpABex+XmYJDMJ6QI4Z4DHvIvYH9cpEbHf70E=; b=d5JuWUnyCoQt2UcoWpq5NIUBBPH5KbLN37WYNKKMX9c4MiPnDLxd7C4xQyxJRWCr+S UUy5nT1Pw8HkiXHPxyUjCmUtD8kXbKhyMrVilQU6EK2XGFSW6+D7duYF7bsv5eB51FZe rdAkVcK+YcfHyo70mYeLSobe9u8Oi9s/pZf7IYncDoA/LgvwdodIgSNx2EcaxrjBhl5q jJZZv8FN3FY0OwJVSCR1lswJv0A4ar+cjpuekhCLvq3X46Tc4ReJKi905Ru6DJjyYM82 ckc+57g3B7QmNn5AqQtfonfMBX2/AeAt8eFhDXIQhyr+3FOCxBjD1M13ZX8UMkPKYU4i AjYA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id 200si1165381wml.2.2018.02.07.01.26.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 01:26:00 -0800 (PST) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id w179PxUg023874 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 7 Feb 2018 10:26:00 +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 w179Pxx5014581; Wed, 7 Feb 2018 10:25:59 +0100 Subject: Re: Multi repo support To: Jan Kiszka , isar-users References: <7714f0e1-aaca-add2-eabc-738d4043c21c@siemens.com> <2d20812f-fe56-6920-e6bd-b9b523d10292@siemens.com> From: Claudius Heine Message-ID: <397fa2cf-c098-2fcb-d1da-891ac6b40748@siemens.com> Date: Wed, 7 Feb 2018 10:25:59 +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: <2d20812f-fe56-6920-e6bd-b9b523d10292@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: TYTU89mhOpGa Hi Jan, On 02/07/2018 10:21 AM, Jan Kiszka wrote: > On 2018-02-07 10:05, [ext] Claudius Heine wrote: >> 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? > > https://manpages.debian.org/stretch/multistrap/multistrap.1.en.html#Apt_preferences Great, thanks! Claudius > >>   - 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. > > As discussed offline, this sounds like valuable add-on for later. Until > then, the user should be able to replace repo lists that are pointing to > undesired URLs with own ones with the preferred URLs. > > Jan > -- 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