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:
dget http://mentors.debian.net/debian/pool/main/l/lockrun/lockrun_0~20080520-1.dsc
The debian/rules can be viewed directly via:
http://svn.debian.org/wsvn/collab-maint/deb-maint/lockrun/trunk/debian/rules?op=file&rev=10271&sc=1
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_testroot
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.
Thanks,
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.20.3-bytemark-uml-2
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, http://bytesexual.org/nslater/
More information about the Build-common-hackers
mailing list