[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#345619: debian-policy: 4.8. binary-{arch, indep} should fail with error code 2 -> must



On Wed, Jan 04, 2006 at 10:30:04AM -0800, Russ Allbery wrote:
> Kari Pahula <kari@sammakko.yok.utu.fi> writes:
> 
> > But all of the above are just implementation details.  The important
> > change would be to make it a requirement for build-{arch,indep} to be
> > present.
> 
> The difficulty with this sort of change is that it requires changing every
> Debian package, or near to.  I'm going to have the same problem with

As far as changes go, this one can be minimally implemented by adding
these two lines to debian/rules:
build-arch: build
build-indep: build

Lintian can trivially catch the vast majority of missing targets by
running
make -n -f debian/rules build-arch build-indep >/dev/null || echo boo!

Plus, any package that follows this policy will look just the same to
any program that doesn't know about it.  debian/rules build will still
do the exact same thing.  Only if a tool wants to depend on build-*
being present will it have to check the standards-version of the
package.

IMHO this would be sufficient as a transition plan:
for next major patchlevel of policy:
 * build-arch and build-indep targets should be implemented
 * have a lintian warning if they're missing

for the next minor version:
 * build-arch and build-indep must be implemented
 * lintian error if they're missing



Reply to: