From 6b9b4beb21fc1b66f5ae121c0130fe8b731ff61d Mon Sep 17 00:00:00 2001 From: Vanilla Date: Tue, 23 May 2023 18:06:26 +0800 Subject: [PATCH] [folly]: fix build with gcc 13. --- ports/folly/fix-build-with-gcc-13.patch | 27 +++++++++++++++++++++++++ ports/folly/portfile.cmake | 1 + ports/folly/vcpkg.json | 2 +- versions/baseline.json | 2 +- versions/f-/folly.json | 5 +++++ 5 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 ports/folly/fix-build-with-gcc-13.patch diff --git a/ports/folly/fix-build-with-gcc-13.patch b/ports/folly/fix-build-with-gcc-13.patch new file mode 100644 index 00000000000000..9b33c8b4456fc0 --- /dev/null +++ b/ports/folly/fix-build-with-gcc-13.patch @@ -0,0 +1,27 @@ +From e3cba5dd4f59c695d9cbf6bd02249af7103cc300 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Sun, 22 Jan 2023 05:06:16 +0000 +Subject: [PATCH] Fix build with GCC 13 (add missing includes) + +GCC 13 (as usual for new compiler releases) shuffles around some +internal includes and so etc is no longer transitively included. + +Signed-off-by: Sam James +--- + folly/system/AtFork.cpp | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/folly/system/AtFork.cpp b/folly/system/AtFork.cpp +index e888e52858a..a5570330dc3 100644 +--- a/folly/system/AtFork.cpp ++++ b/folly/system/AtFork.cpp +@@ -14,6 +14,9 @@ + * limitations under the License. + */ + ++#include ++#include ++ + #include + + #include diff --git a/ports/folly/portfile.cmake b/ports/folly/portfile.cmake index 9b421a6203f748..bc7730c884a91a 100644 --- a/ports/folly/portfile.cmake +++ b/ports/folly/portfile.cmake @@ -17,6 +17,7 @@ vcpkg_from_github( boost-1.70.patch fix-windows-minmax.patch fix-deps.patch + fix-build-with-gcc-13.patch ) file(REMOVE "${SOURCE_PATH}/CMake/FindFmt.cmake") diff --git a/ports/folly/vcpkg.json b/ports/folly/vcpkg.json index 3d6ec5b774096a..592927b476a620 100644 --- a/ports/folly/vcpkg.json +++ b/ports/folly/vcpkg.json @@ -1,7 +1,7 @@ { "name": "folly", "version-string": "2022.10.31.00", - "port-version": 6, + "port-version": 7, "description": "An open-source C++ library developed and used at Facebook. The library is UNSTABLE on Windows", "homepage": "https://github.com/facebook/folly", "license": "Apache-2.0", diff --git a/versions/baseline.json b/versions/baseline.json index 8d0700e6c55847..fbbeb2ddf03a71 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2558,7 +2558,7 @@ }, "folly": { "baseline": "2022.10.31.00", - "port-version": 6 + "port-version": 7 }, "font-chef": { "baseline": "1.1.0", diff --git a/versions/f-/folly.json b/versions/f-/folly.json index 290ef385592883..7e6326416b1082 100644 --- a/versions/f-/folly.json +++ b/versions/f-/folly.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "003ae8b1bc9dc0a460b5c6f6cacda76fa5931cf8", + "version-string": "2022.10.31.00", + "port-version": 7 + }, { "git-tree": "204d88dbc53dc5ff37c58459c1af0c6f19f446db", "version-string": "2022.10.31.00",