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

Bug#213466: dpkg-checkbuilddeps broken for [arch] dependencies



Package: dpkg
Version: 1.10.15

dpkg-checkbuilddeps does not complain (and exits OK) regardless
of unmet Build-Depends etc if at least one [arch] dependency is
specified in the control field.

Reason are incorrect calls to controllib function parsedep(), e.g.      
  build_depends(parsedep($fi{"C Build-Depends"}))

should probably read        
  build_depends(parsedep($fi{"C Build-Depends"}, 1, 1))

(with the given arguments, any [arch] dependency will cause parsedep
to fail, returning undef which is taken to be an empty dependency list
by build_depends()).

There is a second bug when Build-Conflicts(-Indep)? finally are
detected: they are erroneously listed as 
"Unmet build dependencies".

Reason:

if (defined($fi{"C Build-Conflicts"})) {
  push @unmet, build_conflicts(...);
}

should push @conflicts instead of @unmet.

Cheers, Roderich





Reply to: