From nobody Fri Aug 19 09:55:34 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 4M8HF239vcz4YccP; Fri, 19 Aug 2022 09:55:34 +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 4M8HF22gdtz3ql0; Fri, 19 Aug 2022 09:55:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660902934; 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=JYI3dgLTBMoApOwOGTNTedcS8B2bVLBOhlns0s1Qx4E=; b=M6OivdALUM068j6VHjN6EAsddMF4ftsFiuq9AHcndyAiy9vpYuyVX3iiPrU517FJTbZw5F y4m0o1GadLdmreKC8ScdbbDKzInGbu1uXZYeGWHW801P5MMzwEcFHruX6gw1ClENzQ39a9 5wQ1+fbkpWCvsAifEd4YHbiF5zvGdZ09Vd4hjZZ/FbVq9yeJ8VicRTpDafj5iLo9ytC0U9 18I5KfMe67usojbSAx4i/y4xD1csS/1SMdv7W7NokwLd4nZVWIZGPSM0l6HvG3LmyRyu6m j2JSy4lGvE6L/Opt6amvzN3ayMEZn7SgdCkYW27azJgXKwruYFfZDeBvTs2ekw== 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 4M8HF21h4VzpZC; Fri, 19 Aug 2022 09:55:34 +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 27J9tYJb012390; Fri, 19 Aug 2022 09:55:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27J9tYOu012388; Fri, 19 Aug 2022 09:55:34 GMT (envelope-from git) Date: Fri, 19 Aug 2022 09:55:34 GMT Message-Id: <202208190955.27J9tYOu012388@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mikael Urankar Subject: git: 0b0b0bad03a8 - main - net-im/libsignal-node: Fix build on FreeBSD 12.x and 13.x 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: mikael X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0b0b0bad03a8cd5e802bf3a64f7d2331aba52e7f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660902934; 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=JYI3dgLTBMoApOwOGTNTedcS8B2bVLBOhlns0s1Qx4E=; b=GXXQvzXjkGQZ8qsDF14U1rlMYTATQNlDttJQ545sj1lNABNU7KbUmiJzdUGrQ1Ji+Ec+Ha qKGzNzxV6UfEOaJgt4me4sMvOglnr6CXFaUGrU0rm0DslkgJ485sXx5vOCSOevTaESFUVg 4FsY1MDVLZWtDLqHdKSIBQWFYtVK+2PKbG4PUtxMB++2O5F0gke8R5Cq3pv/P6aTBb/L1W HYUQqTXN1PdSBu7bdQ/nLQZ8MCPAKmErRMUKaw6Ob8wUiAKt1bNPZyBPtTg49jEabw49Je SMqJbRSNWnQ2GVELOiDwwzOseU6LraeSxxCfRkO7xYmdoc1DKUeOhG2AQjJxTA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660902934; a=rsa-sha256; cv=none; b=qV6Bd1R+zijbggG90oBM1HNQUjvhSIIpd1jWGFdnVwzRnjFWkkGaETqJvMfxRnStQazljB tXhAM3W/B02uvGScGr9yUFJ+ttWZL7EzO+dTgWwTP1+NWhuuL1vgZrAHNS7oSmYvZ5yVXU IEgfPuWDT1A3niEuq0jRAvDjmjedZodFCDRLXgzT8gdoOvtxVVDGeVQi+YJFAD4ZSHJbMC C7kxe3EIvWzp8WIcyJ8Ev/BcshuIAwJEGbb561fZ0OaTu/85axBWgNthDUNEVbbDSMF5uG FtfA2+UhInRFVfouraG5s3kkEBPjhmy1rg+2TWRj3IfsWHy39fbGFcMrzmCFlA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mikael: URL: https://cgit.FreeBSD.org/ports/commit/?id=0b0b0bad03a8cd5e802bf3a64f7d2331aba52e7f commit 0b0b0bad03a8cd5e802bf3a64f7d2331aba52e7f Author: Mikael Urankar AuthorDate: 2022-08-19 09:13:16 +0000 Commit: Mikael Urankar CommitDate: 2022-08-19 09:55:16 +0000 net-im/libsignal-node: Fix build on FreeBSD 12.x and 13.x Limit _XOPEN_SOURCE to Linux as it breaks FreeBSD build. This is an import of an upstream patch: https://github.com/google/boringssl/commit/387f82054c8ffa7d2b9e31d908586fbd47f34039 --- .../files/patch-limit_XOPEN_SOURCE_to_Linux | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/net-im/libsignal-node/files/patch-limit_XOPEN_SOURCE_to_Linux b/net-im/libsignal-node/files/patch-limit_XOPEN_SOURCE_to_Linux new file mode 100644 index 000000000000..a9f0dc35014b --- /dev/null +++ b/net-im/libsignal-node/files/patch-limit_XOPEN_SOURCE_to_Linux @@ -0,0 +1,31 @@ +https://github.com/google/boringssl/commit/387f82054c8ffa7d2b9e31d908586fbd47f34039 + +Limit _XOPEN_SOURCE to Linux. + +POSIX feature macros are a mess. Reportedly, FreeBSD also breaks with +_XOPEN_SOURCE, so try leaving it unset by default. + +Update-Note: It's possible this will break yet another obscure UNIX. +Hopefully we can eventually find a combination that works? + +Bug: 471 +Change-Id: I103f8093110d343789b9c5a22eb056ab78d9cd14 +Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/51145 +Reviewed-by: Adam Langley + + +--- ../boring-e1c719c0964ba37e6935355e9bf19821b072797e/boring-sys/deps/boringssl/CMakeLists.txt.orig 2022-08-19 10:54:32.212105000 +0200 ++++ ../boring-e1c719c0964ba37e6935355e9bf19821b072797e/boring-sys/deps/boringssl/CMakeLists.txt 2022-08-19 10:55:12.577991000 +0200 +@@ -21,8 +21,11 @@ endif() + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fno-common -std=c11") + endif() + +-# pthread_rwlock_t requires a feature flag. +-if(NOT WIN32) ++# pthread_rwlock_t on Linux requires a feature flag. We limit this to Linux ++# because, on Apple platforms, it instead disables APIs we use. See compat(5) ++# and sys/cdefs.h. Reportedly, FreeBSD also breaks when this is set. See ++# https://crbug.com/boringssl/471. ++if(CMAKE_SYSTEM_NAME STREQUAL "Linux") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_XOPEN_SOURCE=700") + endif()