[buildd-tools-devel] Bug#586275: sbuild: alternative build-deps and Provides do not work correctly

Ansgar Burchardt ansgar at 43-1.org
Mon Jul 5 08:47:47 UTC 2010


tags 586275 + patch
thanks

I prepared a patch for this bug which seems to work at least for my
problem:

1. Grab libdatetime-perl_2:0.5900-1 from the archive.
2. Change
     libmodule-build-perl (>= 0.360100)
   to
     libmodule-build-perl (>= 0.360100) | perl (>= 5.12)
   in the Build-Depends field in debian/control.
3. Try to build the package with sbuild's internal resolver.

Expected behavior:
sbuild will be able to build the package and resolve dependencies in the
same way.

Observed behavior:
Building the package will abort with the following error message:

  perl: already installed (5.10.1-13)
  debhelper: missing
  Using default version 7.9.3
  libmodule-build-perl: non-matching version installed (~*=PROVIDED=*= ! >= 0.360100)
  Using default version 0.360700-1
  perl: non-matching version installed (5.10.1-13 ! >= 5.12)
  Default version of perl not sufficient, Package installation not possible
  Source-dependencies not satisfied; skipping libdatetime-perl

After the patch is applied, sbuild is happy to only install the default
version of libmodule-build-perl and ignore the alternative dependency on
perl:

  perl: already installed (5.10.1-13)
  debhelper: missing
  Using default version 7.9.3
  libmodule-build-perl: non-matching version installed (~*=PROVIDED=*= ! >= 0.360100)
  Using default version 0.360700-1
  perl: already installed (5.10.1-13 >= 5.10.1 is satisfied)
  libparams-validate-perl: missing
  libdatetime-locale-perl: missing
  Using default version 1:0.45-1
  libdatetime-timezone-perl: missing
  Using default version 1:1.19-1+2010j
  libtest-exception-perl: missing
  libtest-warn-perl: missing

Note that I have not looked at the code in all detail and thus the patch
might break in other cases.

Regards,
Ansgar


More information about the Buildd-tools-devel mailing list