Re: debian/control - Build-Depends vs. Build-Depends-Indep for newbies (+solution)
Hello Joachim,
Joachim Reichel <joachim.reichel@gmx.de> wrote:
>> I had the idea to finally separate the build-dependencies between
>> Build-Depends and Build-Depends-Indep in debian/control. The criterion is the
>> following: put in Build-Depends all those packages that are absolutely
>> necessary to build architecture-dependent files (e.g. you compile a few .c
>> files into executable binaries). The rest goes into Build-Depends-Indep.
>
> the last time I tried this I did not work because sbuild used on the
> autobuilders did not confirm to policy (has this changed?).
No.
>> Go back to your cowbuilder login, cd to root/ and run "dpkg-source -x
>> foo.dsc". Then do an "apt-get install" for all the packages in Build-Dependent.
>>
>> Now here's the part that I forgot: debian/rules usually has a binary-arch and
>> binary-indep target. Run "debian/rules clean binary-arch" and now you can
>> check whether the package will also run fine on a Debian autobuilder.
>
> The problem is that sbuild invokes the build target (which also depends
> on build-indep), but does not pay attention to Build-Depends-Indep.
You can use, as a workaround, an empty build target and let binary-arch
depend on build-arch. Sbuild invokes later binary-arch, so the build is
only remitted.
Bye, Jörg.
--
Geld allein macht nicht glücklich, aber es ist besser in einem Taxi zu
weinen, als in der Straßenbahn.
(Marcel Reich‐Ranicki)
Reply to: