Package: debhelper Version: 7.4.13 Severity: normal Hi,
what is the recommended minimal debian/rules for building packages that
have binary packages only existing on some architectures?
I didn't find any documentation on recommended practice.
Consider a source package 'foobar' which builds 4 binary packages:
* foobar [any]
* foobar-doc [all]
* foo [i386]
* bar [amd64]
(a minimal source package .tar.gz is attached)
Using the simple default rule
%:
dh $@
results in errors like
dpkg-gencontrol: error: current host architecture 'amd64' does not
appear in package's architecture list (i386)
I would have expected dh to do the right thing automatically (not
building any foreign-arch packages which is expected to fail), but this
seems to need manual adjustments.
How does dh interact with DH_OPTIONS="-a -i" and does setting this
globally work well with dpkg-buildpackage -A/-B ?
Andreas
-- System Information:
Debian Release: squeeze/sid
APT prefers stable
APT policy: (800, 'stable'), (700, 'testing'), (600, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages debhelper depends on:
ii binutils 2.20-6 The GNU assembler, linker and bina
ii dpkg-dev 1.15.3.1 Debian package development tools
ii file 5.04-1 Determines file type using "magic"
ii html2text 1.3.2a-14 advanced HTML to text converter
ii man-db 2.5.7-1 on-line manual pager
ii perl 5.10.1-11 Larry Wall's Practical Extraction
ii perl-base 5.10.1-11 minimal Perl system
ii po-debconf 1.0.16 tool for managing templates file t
debhelper recommends no packages.
Versions of packages debhelper suggests:
ii dh-make 0.51 tool that converts source archives
-- no debconf information
foobar_2.0.0-1.tar.gz
Description: GNU Zip compressed data

