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

Re: how to satisfy a patched build-dependency in debuild / pdebuild



On Wed, May 20, 2009 at 02:28:52PM +0200, Malte Forkel wrote:

> an optional patch that I'd like to add to a package requires an
> additional build dependency. If I append that dependency to
> Build-Depends in debian/control as part of my patch, it is not checked
> in time. It seems, the build dependencies are checked (by debuild) or
> checked and satisfied (by pdebuild) before the patches are applied. But
> if I add the dependency by permanently modifying the control file, it
> needs to be fulfilled even when the patch is not used.

Note that sbuild gets the build dependencies from the .dsc /not/
debian/control.  Thus if you patch debian/control the correct
build-deps will be picked up.

Obviously you need to build once with dpkg-buildpackage to generate
a correct .dsc after which it should then build correctly with any
build tool.  I don't know if pbuilder checks the .dsc, but it
should do.

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.


Reply to: