Package: steam
Version: 1.0.0.56-1
Severity: minor
Tags: patch

If you have an amd64 system (as I would expect essentially all Steam
users do), the Debian steam package can't be built with debuild -ai386
due to two minor issues:

* the Build-Depends on python3 wants a host-architecture (i386) version
  of python3, but should use python3:any to accept a build-architecture
  (amd64) version, since we are not compiling Python extensions

* d/rules mixes up DEB_BUILD_ARCH with DEB_HOST_ARCH

Patch attached.

    smcv
>From 8218cb0a0f83a280605307c4216d48ebc1be88a0 Mon Sep 17 00:00:00 2001
From: Simon McVittie <s...@collabora.com>
Date: Tue, 13 Nov 2018 14:49:21 +0000
Subject: [PATCH 5/7] Allow cross-compilation for i386 on a non-i386 build
 machine

Signed-off-by: Simon McVittie <s...@collabora.com>
---
 debian/control | 2 +-
 debian/rules   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index f1c44a4..e8d4c65 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Maintainer: Debian Games Team <pkg-games-de...@lists.alioth.debian.org>
 Uploaders: Michael Gilbert <mgilb...@debian.org>
 Build-Depends:
  debhelper (>= 11),
- python3,
+ python3:any,
  libx11-6,
 XS-Autobuild: yes
 Standards-Version: 4.2.1
diff --git a/debian/rules b/debian/rules
index 643516d..f7124aa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,8 +8,8 @@ orig=../steam_$(uversion).orig.tar.xz
 dest=../steam-$(uversion).orig
 
 build-arch:
-ifneq ($(DEB_BUILD_ARCH), i386)
-	@echo "error: $(DEB_BUILD_ARCH) is not a supported architecture"
+ifneq ($(DEB_HOST_ARCH), i386)
+	@echo "error: $(DEB_HOST_ARCH) is not a supported architecture"
 	@exit 1
 endif
 
-- 
2.20.0

Reply via email to