Quoting Jochen Sprickerhof (2025-07-24 09:11:41)
* picca <[email protected]> [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.
Thanks!
cheers, josch
--==============x68047364457588793=MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Description: signature
Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmiB5BMACgkQ8sulx4+9 g+FrTQ/6A37biwLBVnAVOyuVJ5JtOeIEwZ4j+nkcGJ6falVq5/ayHQENHLeTPCxK LZVHN0avUT7BaWiJLwhzQQ/Hgx1o/64zJJVQhpG0KGb8vthf+PkF1wmYEKpAE0fo Y2Ospt4qPWHkqPwDDibqneeAmL22mAYdfJCC4m2Zqmp6PhDNoF4o8iAlhJwVUbbx qFywVvKWFZHh6zv8cDXmXCx049qfwAfA9TNdPN7zqYDqDiBimGt5xe0rw81Z9bQT AjrPAhGx/ckJjEu/TdFu6FL3JxoHZTi1+QWqYk1wq4KNWN7WrKQeAe15pgkUliAd 0Vwf9j0Jl0MzbEWc+5QKPkPBTCchxAy27Vb9bANSG0ZPhGb2sb3GyQbszUhz47nH SEZw5kwh9cyYPpm7FTgcl+zgjcTlapRa+Oo1we0iyb/FcBcVGG5Cr4Lq2rO4nuZ/ DmERFHGLi5CjCcI17gZyn8W+0T0CuIQd3Eicb9scV7l16iM3CuvDfz45RyeEsPMW 6Pm8hRXvUVWMAd6KpXkuOQ8xEMotUxoopyU5HOY9WQfytc7bNwqpRyQ54Cy/xdY9 wy16o4SSCAKMyM2WGd7/PaCmcVrZOEwYmrS5logbhMRmhieSbBvwd4zS7nuTduQP dGW4pwUVKUHgnWFgf4GJlSmKarDVcpd39QJcXu3tQcOp2iZQ3js=
=CO9N
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)