From nobody Fri Sep 16 22:22:46 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MTpVG6bsPz4cGjV; Fri, 16 Sep 2022 22:22:46 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MTpVG4qwWz3jrT; Fri, 16 Sep 2022 22:22:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663366966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Y+8MSf718/hjvGY3oZSlGXLDrLORFvWc/5nASJuOrxQ=; b=EGa9oFpOoc3GNC3L+GRXnWIRVJ20BWqABt76Zv2MoGRsZS7siSJxs8alZVNNm/0qfko7Kz RlXyDwpec0C4LXn5FuhNSZkW6rEjSYq4ROXlZ9GMMaFmN4ThOF27LiVoA/pq43MczEfRz1 o4TtcDbU/6PrjFrr3HpGRcxZs+LZy1RLdWKg3BA1poQgWyUnMK5/KHOLBoakxdY/hr2KNg uv66/JvClhSV9rqw8yyeu8XMcGSTCPRQsEjzFKrQjk6zdq8UgxFBd2XSXpaY+oTS519LZf oBZlXQZ1DTagAkaS2Eu2CfV/V3RhuzVMVMwswqlrfhHJJKvIgpWZ9HL8r9RpIw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MTpVG3vY8zW4Q; Fri, 16 Sep 2022 22:22:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28GMMkoJ075197; Fri, 16 Sep 2022 22:22:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28GMMk7Z075196; Fri, 16 Sep 2022 22:22:46 GMT (envelope-from git) Date: Fri, 16 Sep 2022 22:22:46 GMT Message-Id: <202209162222.28GMMk7Z075196@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: aed3a7bf4e82 - main - graphics/igt-gpu-tools: fix build on big-endian List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: aed3a7bf4e82969d372a32ed107a75dabee37b80 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663366966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Y+8MSf718/hjvGY3oZSlGXLDrLORFvWc/5nASJuOrxQ=; b=LpLeV5V/EbXep9pLFcbI60ZeDNNuBiMZTTK7HdTRV1s1xIRYwYe84wwhLRSlXWEHUD/RPE TH4A/AJM5bsKghtaPjQUlvP4LReqqFmGOvIqDBxP/cNaeZhYrQSsJ3i2ZaYCn/el/2Z9UX oDR0c/HNzv1OY/wd3nJGR8PIqQUH0CeJzf3n0Ps6+ilwvUQFswWsWBAZlW0Akz2ZKnqvSw vmxyfYSkrsCl/5zehhimIDlAIWzU3P80oOaueaI19A0Ga+2j6Z4XF9wz+te5yN5XxlgKor DI3833UxETe/wAJ4mpVzDtH9fKC729Eola46WJ/vx1rl2ds6Hou8cX5frFsEPQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663366966; a=rsa-sha256; cv=none; b=OOZXz7GzuGatN0cJuXXsXRrS3wxjFTt11yGUHZCyAcahVgfkgK1LmjN6GO9K0BeyAHiyBa 8VCQwnMsWpHQ0zA309agVks7bSc2IPTVSQc1b8G3aSGsn/pO8bU4DN4Xw2cWUidTjlVKDV yR0Ac0FmaeQK38hsPulbaxt52t16PDXziaEIC8hreCVsCcpICRuD/A14LUHt3HkckYGIoV rDfuHmTTuK04ditQvZkQefnpphM8ArsUjU0lc7B+TPRILNRL8KsL8+S50tSiuFmYmTch4A HYyO9hNQ0FEbR3cW1aDArqpUM05+MbCViXjXKhTGeCF/DD0EGDFL9KWKhp5CTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=aed3a7bf4e82969d372a32ed107a75dabee37b80 commit aed3a7bf4e82969d372a32ed107a75dabee37b80 Author: Piotr Kubaj AuthorDate: 2022-09-16 21:02:37 +0000 Commit: Piotr Kubaj CommitDate: 2022-09-16 21:02:37 +0000 graphics/igt-gpu-tools: fix build on big-endian ../lib/igt_fb.c:4476:21: error: implicit declaration of function 'bswap_32' is invalid in C99 [-Werror,-Wimplicit-function-declaration] uint32_t pixel = le32_to_cpu(line[x]); ^ ../lib/igt_core.h:1459:25: note: expanded from macro 'le32_to_cpu' --- graphics/igt-gpu-tools/files/patch-lib_igt__core.h | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/graphics/igt-gpu-tools/files/patch-lib_igt__core.h b/graphics/igt-gpu-tools/files/patch-lib_igt__core.h index 42c8b79da821..38659894f470 100644 --- a/graphics/igt-gpu-tools/files/patch-lib_igt__core.h +++ b/graphics/igt-gpu-tools/files/patch-lib_igt__core.h @@ -1,16 +1,18 @@ ---- lib/igt_core.h.orig 2022-08-31 20:00:01 UTC +--- lib/igt_core.h.orig 2022-08-30 07:06:59 UTC +++ lib/igt_core.h -@@ -31,7 +31,9 @@ +@@ -31,7 +31,11 @@ #define IGT_CORE_H #include +#ifdef __linux__ #include ++#elif defined(__FreeBSD__) ++#include +#endif #include #include #include -@@ -47,6 +49,10 @@ +@@ -47,6 +51,10 @@ #define IGT_LOG_DOMAIN (NULL) #endif @@ -21,3 +23,14 @@ #ifndef STATIC_ANALYSIS_BUILD #if defined(__clang_analyzer__) || defined(__COVERITY__) || defined(__KLOCWORK__) +@@ -1449,8 +1457,8 @@ void igt_kmsg(const char *format, ...); + #define WRITE_ONCE(x, v) do *(volatile typeof(x) *)(&(x)) = (v); while (0) + + #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ +-#define cpu_to_le32(x) bswap_32(x) +-#define le32_to_cpu(x) bswap_32(x) ++#define cpu_to_le32(x) bswap32(x) ++#define le32_to_cpu(x) bswap32(x) + #else + #define cpu_to_le32(x) (x) + #define le32_to_cpu(x) (x)