Discussion:
Bug#865308: khronos-api is not Multi-Arch compatible
Hugh McMaster
2017-06-20 12:18:37 UTC
Permalink
Package: khronos-api
Version: 0~svn29735-1.1
Severity: wishlist

Dear Maintainer,

The package khronos-api is not Multi-Arch compatible, so the
package cannot be installed concurrently for multiple architectures
(e.g. amd64 and i386).

This is a limitation to building 32-bit Wine on amd64, as the
package is a build dependency for both i386 and amd64 architectures.

The package does not have any files in /usr/lib, so there are
no conflicts. The headers are also identical, as the package is
marked as "Architecture: all".

I patched the control file to add "Multi-Arch: foreign" and
installed the package on amd64.

I then ran "apt-get build-dep -a i386 wine-development".
khronos-api was no longer listed as a conflict.

With this result, I propose the following patch:

--- control 2017-06-20 22:08:31.523946867 +1000
+++ control 2017-06-20 22:09:06.249300867 +1000
@@ -1,6 +1,7 @@
Package: khronos-api
Version: 0~svn29735-1.1
Architecture: all
+Multi-Arch: foreign
Maintainer: Michael Gilbert <***@debian.org>
Installed-Size: 4383
Section: x11




-- System Information:
Debian Release: 9.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- no debconf information
Michael Gilbert
2017-07-10 02:13:01 UTC
Permalink
Post by Hugh McMaster
This is a limitation to building 32-bit Wine on amd64, as the
package is a build dependency for both i386 and amd64 architectures.
Wine's documentation is missing note about this. Building the i386
version is only supported on an i386 host (or chroot).

If you use dpkg-buildpackage --target-arch=i386, it will end up
building amd64 binaries. That should probably be handled more
gracefully.

So adding this to khronos-api won't get you very far.

Best wishes,
Mike
Michael Gilbert
2017-07-31 03:11:15 UTC
Permalink
I just uploaded 0~svn33340-0.1 to delayed/10, debdiff attached.
khronos-api (0~svn33340-0.1) unstable; urgency=medium
* Non-maintainer upload.
* New (and final in svn) upstream revision 33340.
* Refresh timestamps.patch.
* Make package Multi-Arch: foreign (closes: #865308).
Thanks to Hugh McMaster
* Minor improvement to the package description (closes: #865307).
* Bump standards version to 4.0.0, no changes needed.
* Fix file exclusion in tarball generation.
Hi Jens,

This isn't really a great version, but ok it will land later today.
It would be far better to update to upstream git, which is now in sync
with the latest opengl 4.5 spec.

By the way, NMUs are not supposed to touch maintainer fields like the
standards version, but it's not a big deal.

Best wishes,
Mike

Loading...