On 2020-04-21 18:37:03 +0300, Reco wrote: > On Tue, Apr 21, 2020 at 05:31:38PM +0200, Vincent Lefevre wrote: > > On 2020-04-21 16:44:57 +0300, Reco wrote: > > > apt install apt-build > > > > > > Requires some scripting to run without a human intervention, it's > > > relatively simple. > > > > Can it handle the rebuild for multiple architectures? > > No. As far as I can tell, you cannot pass it that '-a' flag for > dpkg-buildpackage. > But then, '-a' means cross-compilation, and that tends to implement its > own, unique problems.
My solution handles that without any problem. I forgot to give an example for this case. For my rebuild of libtool, I have at the end of my script: arch=() for i in $(dpkg --print-foreign-architectures) do if dpkg -s libltdl-dev:$i >& /dev/null; then arch+=$i fi done md_build $arch Also I forgot to say that my script won't install build dependencies automatically. If there are missing build dependencies, debuild ends with a meaningful message, telling what is missing. > > And can one provide a log message associated with each patch? > > I'm unsure what you mean by that. It longs the whole building > process to stdout, that includes applying the patches. Patches don't add log messages in general. I meant like what dch does. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)