Bug#291939: Split System/Cpu for architecture handling
Package: dpkg
Version: 1.10.26+kbsd
Severity: wishlist
Tags: patch
Hi!
This is the continuation of bug #118910. Since you retitled it as
"[ARCH] clean up archtable", I considered you'd prefer me to file a separate
bug for this. Feel free to retitle/merge if you think otherwise.
The changes are pretty straightforwarded, but they should be enough to fix
most of the concerns that porters had with the limitations of dpkg architecture
handling during the last few years.
Patch available at http://people.debian.org/~rmh/patches/dpkg.diff. Quoting
the patch header:
With this patch, dpkg understands the following syntax for debian/control
(while maintaining full backwards compatibility). Some examples:
Build-Depends: bin86 [cpu: i386]
..where "bin86" is required only on _cpu_ i386 with any kernel (unlike [i386]
which silently implies linux).
Build-Depends: kernel-headers-2.4 [system: linux]
..where "kernel-headers-2.4" is required only on linux-gnu systems, on any
cpu.
Analogously, the "Architecture" field is split. Some examples:
Package: grub
Cpu: i386
System: any
Package: modutils
Cpu: any
System: linux
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: kfreebsd-i386 (i386)
Kernel: GNU/kFreeBSD 5.3+1-1
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Versions of packages dpkg depends on:
ii dselect 1.10.26+kbsd a user tool to manage Debian packa
ii libc0.1 2.3-1+kbsd.8 GNU C Library: Shared libraries an
-- no debconf information
Reply to: