Package: dosbox
Version: 0.74-4.1
Severity: wishlist
Tags: patch
Control: block 792125 by -1

Hi,

since dosbox 0.74-4.1 you can run 16-bit Windows applications by typing
"wine FOO.EXE". Thanks for that!

Now I wanted to add a dependency from wine on dosbox (see bug #792125),
but noted that this only works if the 32-bit part of wine is installed.
This is wine32 which is only built on 32-bit architectures. On 64-bit
architectures you install it from a foreign architecture. E.g. on amd64
you install wine32:i386.

Now, on a amd64 system with wine32 depending on dosbox, this dependency
is only satisfied by the foreign dosbox:i386. But what I want (and what
works) is the native dosbox:amd64.

The shortcut in the wine packaging would be to add the dependency on
dosbox in the arch all package "wine", but this doesn't reflect the
requirement for wine32 being installed.


Therefore I ask you to make dosbox multi-arch aware by changing it from
the implicit "Multi-Arch: no" to "Multi-Arch: foreign". This allows
dosbox to satisfy dependencies from another arch, but doesn't change
anything in dosbox (e.g. its files continue to be installed to the same
places as before). See attached patch, which I successfully built and
tested on amd64. No special dependencies or build-dependencies are
needed in order to use Multi-Arch: foreign.

Thanks
jre



For reference see https://wiki.ubuntu.com/MultiarchSpec:

Multi-Arch: no
The package is not co-installable and it must not be used to satisfy the
dependency of any package of another architecture than its own.
This is the pre-multiarch behavior.

Multi-Arch: foreign
The package is not co-installable and should be allowed to satisfy the
dependencies of a package of another architecture than its own.
If a package is declared Multi-Arch: foreign, preference should be given
to a package for the native architecture if available; if it is not
available, the package manager may automatically install any available
package, regardless of architecture, or it may choose to make this an
option controlled by user configuration.


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dosbox depends on:
ii  libasound2                1.0.29-1
ii  libc6                     2.19-22
ii  libgcc1                   1:5.2.1-21
ii  libgl1-mesa-glx [libgl1]  10.6.8-1
ii  libpng12-0                1.2.50-2+b2
ii  libsdl-net1.2             1.2.8-4
ii  libsdl-sound1.2           1.0.3-7+b1
ii  libsdl1.2debian           1.2.15-11
ii  libstdc++6                5.2.1-21
ii  libx11-6                  2:1.6.3-1
ii  zlib1g                    1:1.2.8.dfsg-2+b1

dosbox recommends no packages.

dosbox suggests no packages.

-- no debconf information
diff --git a/debian/control b/debian/control
index 70aa1d4..0fe2da6 100644
--- a/debian/control
+++ b/debian/control
@@ -11,6 +11,7 @@ Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/dosbox.git
 
 Package: dosbox
 Architecture: any
+Multi-Arch: foreign
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: x86 emulator with Tandy/Herc/CGA/EGA/VGA/SVGA graphics, sound and DOS
  DOSBox is a x86 emulator with Tandy/Hercules/CGA/EGA/VGA/SVGA graphics, 

Reply via email to