Johannes Schauer Marin Rodrigues, le jeu. 24 juil. 2025 09:43:19 +0200, a ecrit:
> Quoting Jochen Sprickerhof (2025-07-24 09:11:41)
> > * picca <pi...@debian.org> [2025-07-24 07:39]:
> > >I prepared a directory with a bunch of sources packages.
> > >
> > >Now I need to build them in the right order with sbuild.
> > >
> > >Do we have somethings which could do this out of the box.
> > >
> > >something like
> > >
> > >sbuild *.dsc -> which indeed fail :).
> > 
> > See
> > 
> > https://salsa.debian.org/lts-team/lts-extra-tasks/-/issues/60
> > 
> > For some available tools. In general this is a hard problem as the build
> > graph can contain cycles.
> 
> The problem is also hard because you only know the metadata of binary packages
> after you have built them. So lets say you have a bunch of generic *.dsc files
> in a directory and one of them Build-Depends: foo. What source package do you
> compile so that foo becomes available? Maybe foo is a virtual package and you
> have no way of knowing which source package builds a binary package that
> provides foo.
> 
> So for the general problem you would do it the other way round: repeatedly 
> test
> the Build-Depends of the *.dsc you want to build and queue those which have
> their B-D satisfied. Build them. Repeat. At some points you might run into
> cycles as Jochen mentioned and then you have to help manually. Once you write 
> a
> script that does that you have re-invented a part of rebootstrap.

Or debusine?

Samuel

Reply via email to