From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6517599416265736192 X-Received: by 10.80.230.18 with SMTP id y18mr13691945edm.2.1517511116971; Thu, 01 Feb 2018 10:51:56 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.80.158.236 with SMTP id a99ls232298edf.7.gmail; Thu, 01 Feb 2018 10:51:56 -0800 (PST) X-Google-Smtp-Source: AH8x227Owo6/MZx9t1f36fAQgBjdz0XcmTZOmQLOJR+D9V38IUHf9fZhoaoV0PbBLwf174yUaw/A X-Received: by 10.80.186.135 with SMTP id x7mr3186026ede.0.1517511116277; Thu, 01 Feb 2018 10:51:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517511116; cv=none; d=google.com; s=arc-20160816; b=NJA5NC1fLJn/GQWKf+aqPfY2C8POOpmfyvsNcVRnW/0xZQxL6ZdBC0tQxXnAdYdckn iJ3bjmuKalARy2yaIxo+9RdlZPl9u+HjrjyjBJW8xevO5yiL0JFUvyDUm/WjEBXBZJQ6 lYooFIhEhABzlIAVX+JJAv1LHB6iBSLnRZXeTgEwAJ/HC7io8PCWUizOdkxXSWWc1VcL bghBWDuEtNUPiPUAvdMcYCu2jFaofBdCUpad0OL0KkKEnYlTHRLjPP9m76/Flo79ijW+ Vywk891b4+sMrEG/nWtjF4cFROumyVwuYV/xLkFNXdCSKMHZRN7osTk7fSSHybwBAbee R8Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=/WlOSR0OXGJvPx+Kv0K6cmpmdmI4nJA5ZKQ7+N1Yffg=; b=mCvrx64Ou8SMlIV5gr96qpMUw/rOT21rlowzKqkXNuQcoDuhwPKi106fuVH+qGyViU C46QgQEva1ai20d4D8PGBCOeUGhm0mQU6Kpxugtit/mEoeoRhoodGFLoyOfq9RjMObT7 1KlPkZ0M5wmXOAws2uIsHwhI4NHYu3aMH45CZC8vlZbtLeHlsInLvovtnukJfEw1MqXK /ofDbhe5iMoxKXyXmkvnQ4VkPz5xujz0dxzfSUUS8kERsxc0EV/FkN/u77gS0HSo7rj+ qTgNC6yEvPYftPa1KHY3Xd6Wk/1sEYWI1igtKSkjl+TVDdu5/iXP0IVCxagwbnAk6cDX 9t1g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of ch@denx.de) smtp.mailfrom=ch@denx.de Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id g45si61639eda.0.2018.02.01.10.51.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Feb 2018 10:51:56 -0800 (PST) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of ch@denx.de) client-ip=212.18.0.9; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of ch@denx.de) smtp.mailfrom=ch@denx.de Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3zXTk372dvz1qxVH; Thu, 1 Feb 2018 19:51:55 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3zXTk36clxz1t8pj; Thu, 1 Feb 2018 19:51:55 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id tg-VQ2PZqur3; Thu, 1 Feb 2018 19:51:51 +0100 (CET) X-Auth-Info: I/kSHqwgp57lt5HPhPModVRdB48aFJn0cbUymQfgYvg= Received: from Orrorin.lan (ipservice-092-217-126-008.092.217.pools.vodafone-ip.de [92.217.126.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 1 Feb 2018 19:51:51 +0100 (CET) Message-ID: <1517511108.2646.24.camel@denx.de> Subject: Re: Multi repo support From: Claudius Heine To: Henning Schild , "[ext] Claudius Heine" , Alexander Smirnov Cc: isar-users Date: Thu, 01 Feb 2018 19:51:48 +0100 In-Reply-To: <20180201193458.24b6ac3f@mmd1pvb1c.ad001.siemens.net> References: <7714f0e1-aaca-add2-eabc-738d4043c21c@siemens.com> <20180201161658.6b0af973@mmd1pvb1c.ad001.siemens.net> <20180201193458.24b6ac3f@mmd1pvb1c.ad001.siemens.net> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-y2d7fXpX35/NCHJtnUVg" X-Mailer: Evolution 3.26.4 Mime-Version: 1.0 X-TUID: srIhv8hOScwl --=-y2d7fXpX35/NCHJtnUVg Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Thu, 2018-02-01 at 19:34 +0100, Henning Schild wrote: > Am Thu, 1 Feb 2018 16:16:58 +0100 > schrieb "[ext] Henning Schild" : >=20 > > Am Thu, 1 Feb 2018 15:54:26 +0100 > > schrieb "[ext] Claudius Heine" : > >=20 > > > Hi, > > >=20 > > > I would like to start the discussion about how to best implement > > > muti repository support in isar. > > >=20 > > > Does someone already has some ideas or even something in the > > > pipeline for this? > > >=20 > > > If not then I do have an idea that was outlined together with > > > Jan: > > >=20 > > > 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. > > >=20 > > > Every file that is added this way contains 'sources.list' > > > compatible repository definitions. So one repo each line. > > >=20 > > > 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. >=20 > We will also need a way to tell apt the priorities of these repos. > Multistrap just adds them and apt-get installs packages according to > its default behavior. > That means that a package with the same name and version will get > picked from a "random" repo. Overlays will need to make sure to > always > have a greater version or we will need apt configuration. > https://wiki.debian.org/AptPreferences > The big question here is how/whether multistrap will handle apt > preference. >=20 > Alex already ran into that when he wanted to modify "hello". Renaming > packages - like Alex suggested - is not the way to go. Because the > ones > we do overlay could be deps of packages we do not overlay. Thanks, yes that is a very good point. I would prefer the apt preferences settings. Maybe handle it similar to how I proposed the multi-repo support. A global variable where apt preference file paths are appended. If multistrap cannot support them with a reasonable complex conversion script then it might be time to say multistrap goodbye. Claudius --=20 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 PGP key: 6FF2 E59F 00C6 BC28 31D8 64C1 1173 CB19 9808 B153 Keyserver: hkp://pool.sks-keyservers.net --=-y2d7fXpX35/NCHJtnUVg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEb/LlnwDGvCgx2GTBEXPLGZgIsVMFAlpzYcQACgkQEXPLGZgI sVOZlA//Xdk3ywihty/WvYJcid48KOQjKaiBf4TXCwFxNEtIwbcecS7gvMTywGjv 1oYaR3w0DkDwFsVVoO7GgINmdcKxIuA5f4nDVjPx6ceAEQXbw9GpUU/vPeif+R79 tZQh5An3imdR6lyuLLFwWhTQHATUOy92gLrWXmqpe9WtatoSEcGfcwL2URTXU7yb qo2f4RPhY19N+eMm4fMP4exgjTbGPB7lIQ5HgSgZUARwisJWrslhy88yY4z7gsIX fdL3UVfTLm94m4L39or62KSVcr7dSBOb/1tSC2gBMY5rx/9/VC4+D3xDVzON6v6E xQ4W16nYb5DHGPFNvuqQcIfwUCUla496AfXg3MAH3qLk1A10u2dgS5cSXEoIhdJz QLFC5qLJFMSsA+FfmZh10/G2xSw9cV3Kxp68jtM28jrkVPj7da/+t/a2JaJOo6+7 Yz76p9EsvII3WfBge3XmUAlmqPKEkRx1bMxLgWztTp9f2gy/uL/I58fgFymx40oW 6t3St+buroFOuL86R0vXjreLP2aePh3GfkgqSerlgVyXeTw8HYW4R5T+q2HhvBCC VzQDnh9pLoSuN2T5++510WP2o4J0piBlZ8s/ULytfpyOcXYIUWEQFqM/7dxMLvBI yksZk/s+NQQzWzGStn/dmjHY3A6hWLWsMWEcyh33osWXzszyDfM= =fnZ8 -----END PGP SIGNATURE----- --=-y2d7fXpX35/NCHJtnUVg--