From owner-svn-ports-all@freebsd.org Fri Dec 18 15:09:10 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C19F04BB19A; Fri, 18 Dec 2020 15:09:10 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CyC1y54fHz4m3p; Fri, 18 Dec 2020 15:09:10 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9CB564EC5; Fri, 18 Dec 2020 15:09:10 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0BIF9Ac2005097; Fri, 18 Dec 2020 15:09:10 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0BIF9AhA005096; Fri, 18 Dec 2020 15:09:10 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <202012181509.0BIF9AhA005096@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Fri, 18 Dec 2020 15:09:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r558381 - head/games/eureka/files X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: head/games/eureka/files X-SVN-Commit-Revision: 558381 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Dec 2020 15:09:10 -0000 Author: pkubaj Date: Fri Dec 18 15:09:10 2020 New Revision: 558381 URL: https://svnweb.freebsd.org/changeset/ports/558381 Log: games/eureka: fix build on powerpc64 head clang can't build this code: In file included from src/e_basis.cc:27: In file included from src/main.h:86: src/sys_endian.h:66:58: error: unsupported inline asm: input with type 'int' matching output with type 'u16_t' (aka 'unsigned short') __asm__("rlwimi %0,%2,8,16,23" : "=&r" (result) : "0" (x >> 8), "r" (x)); Approved by: tier 2 blanket Added: head/games/eureka/files/patch-src_sys__endian.h (contents, props changed) Added: head/games/eureka/files/patch-src_sys__endian.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/eureka/files/patch-src_sys__endian.h Fri Dec 18 15:09:10 2020 (r558381) @@ -0,0 +1,11 @@ +--- src/sys_endian.h.orig 2020-12-18 15:02:12 UTC ++++ src/sys_endian.h +@@ -58,7 +58,7 @@ static inline u16_t UT_Swap16(u16_t x) + __asm__("xchgb %b0,%h0" : "=Q" (x) : "0" (x)); + return x; + } +-#elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__)) ++#elif defined(__GNUC__) && !defined(__clang__) && (defined(__powerpc__) || defined(__ppc__)) + static inline u16_t UT_Swap16(u16_t x) + { + u16_t result;