From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wNHaEL2GtF8AcgAA0tVLHw (envelope-from ) for ; Wed, 18 Nov 2020 02:28:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CMfdDL2GtF/7LQAAB5/wlQ (envelope-from ) for ; Wed, 18 Nov 2020 02:28:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5B7FB940118 for ; Wed, 18 Nov 2020 02:28:12 +0000 (UTC) Received: from localhost ([::1]:48848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfDCb-0007Xb-LD for larch@yhetil.org; Tue, 17 Nov 2020 21:28:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfDCT-0007XU-Ug for guix-patches@gnu.org; Tue, 17 Nov 2020 21:28:01 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50191) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfDCT-0000so-LT for guix-patches@gnu.org; Tue, 17 Nov 2020 21:28:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kfDCT-0001Xs-Hr for guix-patches@gnu.org; Tue, 17 Nov 2020 21:28:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44681] [PATCH] gnu: gnubg: Prevent building with avx instructions. Resent-From: Kei Kebreau Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 18 Nov 2020 02:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44681 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Michael Rohleder Cc: 44681@debbugs.gnu.org Received: via spool by 44681-submit@debbugs.gnu.org id=B44681.16056664435894 (code B ref 44681); Wed, 18 Nov 2020 02:28:01 +0000 Received: (at 44681) by debbugs.gnu.org; 18 Nov 2020 02:27:23 +0000 Received: from localhost ([127.0.0.1]:33504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfDBq-0001X0-Qh for submit@debbugs.gnu.org; Tue, 17 Nov 2020 21:27:23 -0500 Received: from mout01.posteo.de ([185.67.36.65]:48101) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfDBn-0001Wh-4V for 44681@debbugs.gnu.org; Tue, 17 Nov 2020 21:27:21 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 9E2CE16005C for <44681@debbugs.gnu.org>; Wed, 18 Nov 2020 03:27:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1605666432; bh=BBM0wsVxlgqGSE3sdg+HsdaM8jlHk/QMTySoKVVI+04=; h=From:To:Cc:Subject:Date:From; b=Dtz2CSOMlZpqaprzX9Gadq3BvCbqOBCopbZwBV3IpXUGzSVCZW7dlEOsGFzxe9I5e HZQi0miwWJtTxs5ThAR8fhcANHP/KKg7vVYIToTeigSqVMzmWQSZba27la1nGA/Y/l +mCfMLzYh5qcJKvAlqa09A01HYvWLqEkz7drtYCwNfWM/8Q1eJ5bDZG55OjBYU5ltV 8xcHQnePbSGIfSpQVVM4aNrEw+UngJa/mkivmhMmgbxXMSRezA738ua3GXGHsLtKyh UJGCseu0A4iPCK8u7+Vhz+sB/aFdOQHBlellgXGAroHehtGE9i6BId+Lq07a4pZrYp 5XvQpYf4ZZ6UA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CbRXb2gZsz9rxG; Wed, 18 Nov 2020 03:27:11 +0100 (CET) From: Kei Kebreau References: <20201116121737.22825-1-mike@rohleder.de> Date: Tue, 17 Nov 2020 21:27:09 -0500 In-Reply-To: <20201116121737.22825-1-mike@rohleder.de> (Michael Rohleder's message of "Mon, 16 Nov 2020 13:17:37 +0100") Message-ID: <87pn4bv1qa.fsf@posteo.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=posteo.net header.s=2017 header.b=Dtz2CSOM; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -2.01 X-TUID: VKyl/fcYOdWE --=-=-= Content-Type: text/plain Hi Michael! Michael Rohleder writes: > * gnu/packages/games.scm (gnubg): Prevent building with avx instructions. > [arguments]: Add configure-flags for Intel systems. I'd modify the commit message to be a bit shorter, like so: gnu: gnubg: Prevent building with AVX instructions. * gnu/packages/games.scm (gnubg)[arguments]: Add configure-flags for Intel systems to build without AVX instructions. > --- > gnu/packages/games.scm | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm > index 97b0cb976d..12cc64fefa 100644 > --- a/gnu/packages/games.scm > +++ b/gnu/packages/games.scm > @@ -1605,7 +1605,14 @@ such as chess or stockfish.") > (native-inputs `(("python-2" ,python-2) > ("pkg-config" ,pkg-config))) > (arguments > - `(#:phases > + `(#:configure-flags > + ;; SSE instructions are available on Intel systems only. > + (list ,@(if (any (cute string-prefix? <> (or (%current-target-system) > + (%current-system))) > + '("x86_64" "i686")) > + '("--enable-simd=sse2") ; prevent avx instructions > + '())) > + #:phases > (modify-phases %standard-phases > (add-after 'install 'install-desktop-file > (lambda* (#:key outputs #:allow-other-keys) Otherwise, the patch looks and works fine. I didn't even know that GNU Backgammon didn't work on my machine until I tested this patch! Please let me know whether you're okay with the commit message modification, and I'll push this for you. Thanks, Kei --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEg7ZwOtzKO2lLzi2m5qXuPBlGeg0FAl+0hn0ACgkQ5qXuPBlG eg0Kug//UkPC2JuAb8V0SiL5CwlyRyNHiIG9I9h+nxkWqLTExzlLUPndJAZi8mf1 PBi8vSfgtb6mMPzkP5ulBxOpW/EeVwJsDojfXKct/OCXg5k5PDaKOKwIuz2u5k0f qoI87zjWaqJWEgr2t+QKK1gIgGDQ6tWSBWp3Pul9T/is7Qom1WpRrBGvTpmJAVOc WtlhsmSn1Wg/OgualelVZLrA0j2bCfvfWIl95MNHpXnc4iQWaWybv7u0fNiYdoMa uENlk3DYkrojat1ydhgR033z0BhFmhDqEUkdOklETQRf3l3NXCT8FtkceKKLDRRx Bs0JyBGVEdzKiVJWE7/HLxqMHmyGyj8kX1Wpcb829exhSNrrRbLRqnFV/NNHynLd oxJ5uFeVlwkMjpjXhQ7mnWEDi0NmwBsherzk3+pZiJ4xTvG/3eSq51EQVfVd4bQn sTCZxK+E0G7lVCaakug4VtUZvPRDiXL+HlgeT/T4DzKy2SNB4E7EsvJxT4HS96DF H/nspRq0/23wuYyEsgerFx6saRJwdlJZPEL90Nqb4+JjoM48c5xw3yv6P3DHBTuU yQKjg+DRq1eK/91utzSRI77ZxpuKwQoFv5IhCZMbvEq+Eb/4XrPVWhQcLaMo9kZu 0oKT/LYzt4qyI5hEC40kBGZ5nM30F5KB6BtveoMVpRdOX3TVQ88= =VjAT -----END PGP SIGNATURE----- --=-=-=--