From owner-dev-commits-ports-all@freebsd.org Fri Apr 16 18:31:37 2021 Return-Path: Delivered-To: dev-commits-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 AF0055DACE4; Fri, 16 Apr 2021 18:31:37 +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 4FMPtd4f9nz4hB9; Fri, 16 Apr 2021 18:31:37 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 9294B193D; Fri, 16 Apr 2021 18:31:37 +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 13GIVbnO093166; Fri, 16 Apr 2021 18:31:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 13GIVbDw093165; Fri, 16 Apr 2021 18:31:37 GMT (envelope-from git) Date: Fri, 16 Apr 2021 18:31:37 GMT Message-Id: <202104161831.13GIVbDw093165@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Adriaan de Groot Subject: git: 885cc329af6c - main - devel/apitrace: fix build with CMake 3.20 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: adridg X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 885cc329af6ce8db740e4335bf2faf50d769d277 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2021 18:31:37 -0000 The branch main has been updated by adridg: URL: https://cgit.FreeBSD.org/ports/commit/?id=885cc329af6ce8db740e4335bf2faf50d769d277 commit 885cc329af6ce8db740e4335bf2faf50d769d277 Author: Adriaan de Groot AuthorDate: 2021-04-07 12:25:53 +0000 Commit: Adriaan de Groot CommitDate: 2021-04-16 18:31:05 +0000 devel/apitrace: fix build with CMake 3.20 Reported upstream as https://github.com/apitrace/apitrace/issues/727 An internal check that ends up defining HAVE_STDINT_H in CMake is no longer done; do this explicitly instead. --- devel/apitrace/Makefile | 1 + devel/apitrace/files/patch-CMakeLists.txt | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/devel/apitrace/Makefile b/devel/apitrace/Makefile index 6519068734dc..001a9ccc5df2 100644 --- a/devel/apitrace/Makefile +++ b/devel/apitrace/Makefile @@ -1,5 +1,6 @@ PORTNAME= apitrace DISTVERSION= 9.0 +PORTREVISION= 1 CATEGORIES= devel PATCH_SITES= https://github.com/a17r/${GH_PROJECT}/commit/ diff --git a/devel/apitrace/files/patch-CMakeLists.txt b/devel/apitrace/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..ed25e71f8bf1 --- /dev/null +++ b/devel/apitrace/files/patch-CMakeLists.txt @@ -0,0 +1,13 @@ +--- CMakeLists.txt.orig 2021-04-07 12:23:46 UTC ++++ CMakeLists.txt +@@ -408,6 +408,10 @@ test_big_endian (HAVE_BIGENDIAN) + if (HAVE_BIGENDIAN) + add_definitions (-DHAVE_BIGENDIAN) + endif () ++# CMake 3.20 doesn't do the tests internally in TestBigEndian ++# that end up setting HAVE_STDINT_H and similar. ++include(CheckTypeSize) ++CHECK_TYPE_SIZE("unsigned short" CMAKE_SIZEOF_UNSIGNED_SHORT LANGUAGE C) + + # Force certain components to always be built as release + macro (force_release_build)