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" : > > > Am Thu, 1 Feb 2018 15:54:26 +0100 > > schrieb "[ext] Claudius Heine" : > > > > > 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. > > 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. > > 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 -- 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