No subject

Thu May 22 12:28:38 UTC 2008

  The binary target must be all that is necessary for the user to build the binary
  package(s) produced from this source package. It is split into two parts:
  binary-arch builds the binary packages which are specific to a particular
  architecture, and binary-indep builds those which are not.


  Both binary-* targets should depend on the build target, or on the appropriate
  build-arch or build-indep target, if provided, so that the package is built if
  it has not been already. It should then create the relevant binary package(s),
  using dpkg-gencontrol to make their control files and dpkg-deb to build them and
  place them in the parent of the top level directory.

In the situation where the package needs to be built before the binary package
can be prepared, making the `binary` target will fail because CDBS does not have
the `binary-arch` or `binary-indep` targets depending on `build`.

I am working on a lockrun package through Debian mentors which you can grab:


The debian/rules can be viewed directly via:

In this instance, the `binary` target fails because the patches have been applied:

  nslater at bytesexual: ~/software/debian/lockrun/trunk $ fakeroot ./debian/rules binary
  test -x debian/rules
  dh_clean -k
  dh_installdirs -A
  sed "s/@version@/0~20080520/" < lockrun.c > lockrun.sed.c
  cc  lockrun.sed.c -o lockrun
  cp lockrun debian/lockrun/usr/bin
  help2man -N -n "a cron job overrun protection utility" ./lockrun > lockrun.1
  help2man: can't get `--help' info from ./lockrun
  make: *** [common-install-prehook-impl] Error 1

I have added the following line as a temporary workaround:

  binary-arch binary-indep: build

I am hoping something similar can be added to CDBS to fix this problem.


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cdbs depends on:
ii  debhelper                     7.0.10     helper programs for debian/rules

Versions of packages cdbs recommends:
ii  autotools-dev                 20080123.1 Update infrastructure for config.{

-- no debconf information

Noah Slater,

More information about the Build-common-hackers mailing list