diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-04-22 06:58:07 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-04-22 06:58:07 +0000 |
| commit | bb96bc8d0f3302220568a00ac7f22af7936889dc (patch) | |
| tree | ff383ced0ef617338152c81c327a4ab3af61c93a /dev-cpp | |
| parent | 5518d4fe34f4c2539c0be73c806f1614be941a7c (diff) | |
| download | baldeagleos-repo-bb96bc8d0f3302220568a00ac7f22af7936889dc.tar.gz baldeagleos-repo-bb96bc8d0f3302220568a00ac7f22af7936889dc.tar.xz baldeagleos-repo-bb96bc8d0f3302220568a00ac7f22af7936889dc.zip | |
Adding metadata
Diffstat (limited to 'dev-cpp')
| -rw-r--r-- | dev-cpp/edencommon/Manifest | 1 | ||||
| -rw-r--r-- | dev-cpp/edencommon/edencommon-2025.04.14.00.ebuild | 67 | ||||
| -rw-r--r-- | dev-cpp/fb303/Manifest | 1 | ||||
| -rw-r--r-- | dev-cpp/fb303/fb303-2025.04.14.00.ebuild | 53 | ||||
| -rw-r--r-- | dev-cpp/fb303/files/fb303-2025.04.14.00-Fix-using-the-Thrift-annotation-library-for-the-Pyth.patch | 28 | ||||
| -rw-r--r-- | dev-cpp/fbthrift/Manifest | 1 | ||||
| -rw-r--r-- | dev-cpp/fbthrift/fbthrift-2025.04.14.00.ebuild | 60 | ||||
| -rw-r--r-- | dev-cpp/fbthrift/files/fbthrift-2025.04.14.00-Use-FOLLY_HAS_LIBURING-to-check-for-liburing-support.patch | 27 | ||||
| -rw-r--r-- | dev-cpp/fizz/Manifest | 1 | ||||
| -rw-r--r-- | dev-cpp/fizz/fizz-2025.04.14.00.ebuild | 57 | ||||
| -rw-r--r-- | dev-cpp/folly/Manifest | 1 | ||||
| -rw-r--r-- | dev-cpp/folly/files/folly-2025.04.14.00-force-liburing-off.patch | 27 | ||||
| -rw-r--r-- | dev-cpp/folly/folly-2025.04.14.00.ebuild | 121 | ||||
| -rw-r--r-- | dev-cpp/mvfst/Manifest | 1 | ||||
| -rw-r--r-- | dev-cpp/mvfst/mvfst-2025.04.14.00.ebuild | 63 | ||||
| -rw-r--r-- | dev-cpp/wangle/Manifest | 1 | ||||
| -rw-r--r-- | dev-cpp/wangle/wangle-2025.04.14.00.ebuild | 69 | ||||
| -rw-r--r-- | dev-cpp/xsimd/xsimd-13.1.0.ebuild | 2 |
18 files changed, 580 insertions, 1 deletions
diff --git a/dev-cpp/edencommon/Manifest b/dev-cpp/edencommon/Manifest index 8565d9281f21..5cd4f95ddaf3 100644 --- a/dev-cpp/edencommon/Manifest +++ b/dev-cpp/edencommon/Manifest @@ -1,2 +1,3 @@ DIST edencommon-2023.06.19.00.gh.tar.gz 146697 BLAKE2B 8b2419671c50eea43aa4b8d5d85eee75ed24ff9745a71c2d11b1994605552ffc288b55520639585631aed0e2528482a01daa9b47ef676fed7c14b4c7d75d018f SHA512 47b37a6acf93a6c6f2903f3113021aa1d54230cf3e31a8071aa7f276601a8eae56bd95767ec23c3027695367261d4db1483b637513c72ce220778f1f1a4c42ce DIST edencommon-2024.11.04.00.gh.tar.gz 311977 BLAKE2B 2b152c3cc243c684b8b802981494816b5114e100bc31cc07a96d000dae2be70da4e205d52a30776e930c7c01d63e01baa102cb49a431c961ef133ed936c5eb76 SHA512 c1c428d7392d279e1b0c4348b0fd41ef9a53e50d8a65ff513a56919a7834c118af4adb1145153d10821efb7c8b30b62c1c6d6365b368b90cd567e350c8be0e81 +DIST edencommon-2025.04.14.00.gh.tar.gz 321818 BLAKE2B da50e90bfa6f020ac9b41b4214b52359500e6b8c60e6a5794749b4a87724940aada0493c56e1d6a9b42a0d4d2363b13084a3dee02527fb52defc4fdcf845c326 SHA512 ebf66941d622443a439e3c40ba891e60d274ba259e795b6e046a342be57c0d3c3cdb70f9cada11086b51c2b7f64a4593ba6ab8bc33380aba4976a91d793d0326 diff --git a/dev-cpp/edencommon/edencommon-2025.04.14.00.ebuild b/dev-cpp/edencommon/edencommon-2025.04.14.00.ebuild new file mode 100644 index 000000000000..3bf3c414765e --- /dev/null +++ b/dev-cpp/edencommon/edencommon-2025.04.14.00.ebuild @@ -0,0 +1,67 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# These must be bumped together: +# dev-cpp/edencommon +# dev-cpp/fb303 +# dev-cpp/fbthrift +# dev-cpp/fizz +# dev-cpp/folly +# dev-cpp/mvfst +# dev-cpp/wangle +# dev-util/watchman + +inherit cmake toolchain-funcs + +DESCRIPTION="Shared library for Watchman and Eden projects" +HOMEPAGE="https://github.com/facebookexperimental/edencommon" +SRC_URI="https://github.com/facebookexperimental/edencommon/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm64" +IUSE="llvm-libunwind test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-cpp/glog:= + ~dev-cpp/folly-${PV}:= + ~dev-cpp/fb303-${PV}:= + dev-libs/boost:= + dev-libs/libfmt:= + llvm-libunwind? ( llvm-runtimes/libunwind:= ) + !llvm-libunwind? ( sys-libs/libunwind:= ) +" +DEPEND=" + ${RDEPEND} + test? ( dev-cpp/gtest ) +" + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_DIR="$(get_libdir)/cmake/${PN}" + -DLIB_INSTALL_DIR="$(get_libdir)" + ) + + cmake_src_configure +} + +src_test() { + CMAKE_SKIP_TESTS=( + # Tests fail because they try to obtain the real UID/username, + # which is different from the test runner (portage). + # https://github.com/facebookexperimental/edencommon/issues/25 + "ProcessInfoTest.readUserInfoForCurrentProcess" + "ProcessInfoTest.testUidToUsername" + ) + + # This test fails on GCC 13. + # https://github.com/facebookexperimental/edencommon/issues/22 + if tc-is-gcc && ver_test $(gcc-version) -lt 14.0.0; then + CMAKE_SKIP_TESTS+=(PathFuncs.move_or_copy) + fi + + cmake_src_test +} diff --git a/dev-cpp/fb303/Manifest b/dev-cpp/fb303/Manifest index 78209c541e02..e14857c8b999 100644 --- a/dev-cpp/fb303/Manifest +++ b/dev-cpp/fb303/Manifest @@ -1 +1,2 @@ DIST fb303-2024.11.04.00.gh.tar.gz 256825 BLAKE2B a7cb9b56f38f0a8f20a860b4b288f37cb59315242b50ac757bcd472e0310491a575149b2580a67a837a52badaf7ca4b72a769293d248830f90a0cf48f351835a SHA512 4ec54931f23267197e74cc0c3a0dd500f443221d5c4a6bb6a4d707feb6fbc377ef6c16f8fa94f2162e2c0a192fce01016f249890f7384a6c042b5f94b657dc11 +DIST fb303-2025.04.14.00.gh.tar.gz 265271 BLAKE2B f1075ecd4af340a3f801c67b72dfb04ed8e40fbfb818967fd059565a554569dd9caac195abfa1ff8dab3d0beb8f7ccfbd4b52005dc1bb334a944577188ea6366 SHA512 00f0859d22c907665cd7d4381797b0436bb36c8acd64f69cb001eec86a6e4a51ac17cb0e1cd6e3d329e0a4c850d46d8b54c042676d13549da6e2cdcb8515307c diff --git a/dev-cpp/fb303/fb303-2025.04.14.00.ebuild b/dev-cpp/fb303/fb303-2025.04.14.00.ebuild new file mode 100644 index 000000000000..a3f81fb910ff --- /dev/null +++ b/dev-cpp/fb303/fb303-2025.04.14.00.ebuild @@ -0,0 +1,53 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# These must be bumped together: +# dev-cpp/edencommon +# dev-cpp/fb303 +# dev-cpp/fbthrift +# dev-cpp/fizz +# dev-cpp/folly +# dev-cpp/mvfst +# dev-cpp/wangle +# dev-util/watchman + +inherit cmake + +DESCRIPTION="Core set of Thrift functions querying stats and other information from a service" +HOMEPAGE="https://github.com/facebook/fb303" +SRC_URI="https://github.com/facebook/fb303/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm64" +IUSE="test" + +# See https://github.com/facebook/fb303/issues/61 +RESTRICT="test" + +RDEPEND=" + ~dev-cpp/fbthrift-${PV}:= + ~dev-cpp/folly-${PV}:= + dev-cpp/gflags:= + dev-cpp/glog:=[gflags] + dev-libs/libfmt:= +" +DEPEND=" + ${RDEPEND} + test? ( dev-cpp/gtest ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-2025.04.14.00-Fix-using-the-Thrift-annotation-library-for-the-Pyth.patch +) + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_DIR="$(get_libdir)/cmake/${PN}" + -DLIB_INSTALL_DIR="$(get_libdir)" + ) + + cmake_src_configure +} diff --git a/dev-cpp/fb303/files/fb303-2025.04.14.00-Fix-using-the-Thrift-annotation-library-for-the-Pyth.patch b/dev-cpp/fb303/files/fb303-2025.04.14.00-Fix-using-the-Thrift-annotation-library-for-the-Pyth.patch new file mode 100644 index 000000000000..0983529dd3ce --- /dev/null +++ b/dev-cpp/fb303/files/fb303-2025.04.14.00-Fix-using-the-Thrift-annotation-library-for-the-Pyth.patch @@ -0,0 +1,28 @@ +From bedbdc263694291f04f8df51f1f44671920ead65 Mon Sep 17 00:00:00 2001 +From: sin-ack <sin-ack@protonmail.com> +Date: Mon, 21 Apr 2025 17:12:13 +0200 +Subject: [PATCH] Fix using the Thrift annotation library for the Python + generator + +Same as commit 536ff1c00, but this time for the Python code generator. + +Ref: https://github.com/facebook/fb303/commit/536ff1c002cfc2e20a044b474bb73a21350c5d69 +--- + build/fbcode_builder/CMake/FBThriftPyLibrary.cmake | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/build/fbcode_builder/CMake/FBThriftPyLibrary.cmake b/build/fbcode_builder/CMake/FBThriftPyLibrary.cmake +index fa77cde71..1aed8fbf4 100644 +--- a/build/fbcode_builder/CMake/FBThriftPyLibrary.cmake ++++ b/build/fbcode_builder/CMake/FBThriftPyLibrary.cmake +@@ -87,6 +87,7 @@ function(add_fbthrift_py_library LIB_NAME THRIFT_FILE) + --legacy-strict + --gen "py:${GEN_ARG_STR}" + "${thrift_include_options}" ++ -I "${FBTHRIFT_INCLUDE_DIR}" + -o "${output_dir}" + "${CMAKE_CURRENT_SOURCE_DIR}/${THRIFT_FILE}" + WORKING_DIRECTORY +-- +2.49.0 + diff --git a/dev-cpp/fbthrift/Manifest b/dev-cpp/fbthrift/Manifest index 211037528008..01937fbbcad1 100644 --- a/dev-cpp/fbthrift/Manifest +++ b/dev-cpp/fbthrift/Manifest @@ -1 +1,2 @@ DIST fbthrift-2024.11.04.00.gh.tar.gz 15541383 BLAKE2B 447fdeba8b9f270e77066d7cf8dedd64ff0e74baf58b8848b0225e936c5d0815cae764f0b38c26c4ce17d9b0f2c0ba46df3a03b2512065b7bd5d685ac7dc99d6 SHA512 b2175eac20ef9b4f15b5d9002583db7339549f660d03a1ced34289009cd99a4308a9ce340b9a37b9771a32340e80b7877b7c5498619241819cf0664e1e395bf7 +DIST fbthrift-2025.04.14.00.gh.tar.gz 15021132 BLAKE2B aba075fc0c7bf915b3927135c63fd06d902bef8943e09c0984601ffd910838d7458fee109895851135c38d99f53cd6bdd462ae71f1d1d659ffff848752b631b2 SHA512 ee109564121c28472980ee0bad975918b81997a0b0d544030a7e5c0c717d8c2d7e8bdb29adef851802271ce8f97fd637a8fe993b9f1c0e176b3f24414a9f9af7 diff --git a/dev-cpp/fbthrift/fbthrift-2025.04.14.00.ebuild b/dev-cpp/fbthrift/fbthrift-2025.04.14.00.ebuild new file mode 100644 index 000000000000..d1fe71adac53 --- /dev/null +++ b/dev-cpp/fbthrift/fbthrift-2025.04.14.00.ebuild @@ -0,0 +1,60 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# These must be bumped together: +# dev-cpp/edencommon +# dev-cpp/fb303 +# dev-cpp/fbthrift +# dev-cpp/fizz +# dev-cpp/folly +# dev-cpp/mvfst +# dev-cpp/wangle +# dev-util/watchman + +inherit cmake + +DESCRIPTION="Facebook's branch of Apache Thrift (C++ bindings)" +HOMEPAGE="https://github.com/facebook/fbthrift" +SRC_URI="https://github.com/facebook/fbthrift/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm64" +IUSE="test" + +# See https://github.com/facebook/fbthrift/issues/628 +RESTRICT="test" + +DEPEND=" + ~dev-cpp/fizz-${PV}:= + ~dev-cpp/folly-${PV}:= + ~dev-cpp/wangle-${PV}:= + dev-cpp/gflags:= + dev-cpp/glog:=[gflags] + dev-libs/boost:=[nls(+)] + dev-libs/double-conversion:= + dev-libs/libfmt:= + dev-libs/openssl:= + dev-libs/xxhash + sys-libs/zlib:= +" +RDEPEND=" + ${DEPEND} + test? ( dev-cpp/gtest ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-2025.04.14.00-Use-FOLLY_HAS_LIBURING-to-check-for-liburing-support.patch +) + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_DIR="$(get_libdir)/cmake/${PN}" + -DLIB_INSTALL_DIR="$(get_libdir)" + -Denable_tests=$(usex test 'ON' 'OFF') + -Wno-dev + ) + cmake_src_configure +} diff --git a/dev-cpp/fbthrift/files/fbthrift-2025.04.14.00-Use-FOLLY_HAS_LIBURING-to-check-for-liburing-support.patch b/dev-cpp/fbthrift/files/fbthrift-2025.04.14.00-Use-FOLLY_HAS_LIBURING-to-check-for-liburing-support.patch new file mode 100644 index 000000000000..bcb039ad8e4d --- /dev/null +++ b/dev-cpp/fbthrift/files/fbthrift-2025.04.14.00-Use-FOLLY_HAS_LIBURING-to-check-for-liburing-support.patch @@ -0,0 +1,27 @@ +From 99f1ffbd2ff912d0407aa75f980ef918187c6525 Mon Sep 17 00:00:00 2001 +From: sin-ack <sin-ack@protonmail.com> +Date: Mon, 21 Apr 2025 16:31:18 +0200 +Subject: [PATCH] Use FOLLY_HAS_LIBURING to check for liburing support in Folly + +Folly may not be compiled with liburing support enabled, in which case +the liburing classes must not be used. +--- + thrift/lib/cpp2/security/SSLUtil.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/thrift/lib/cpp2/security/SSLUtil.cpp b/thrift/lib/cpp2/security/SSLUtil.cpp +index 52a15b66de..dbc67dfd81 100644 +--- a/thrift/lib/cpp2/security/SSLUtil.cpp ++++ b/thrift/lib/cpp2/security/SSLUtil.cpp +@@ -133,7 +133,7 @@ folly::AsyncSocketTransport::UniquePtr moveToPlaintext(FizzSocket* fizzSock) { + + auto sock = fizzSock->template getUnderlyingTransport<folly::AsyncSocket>(); + folly::AsyncSocketTransport::UniquePtr plaintextTransport; +-#if defined(__linux__) && __has_include(<liburing.h>) ++#if FOLLY_HAS_LIBURING + if (!sock && + fizzSock->template getUnderlyingTransport<folly::AsyncIoUringSocket>()) { + // `AsyncFdSocket` currently lacks uring support, so hardcode `AsyncSocket` +-- +2.49.0 + diff --git a/dev-cpp/fizz/Manifest b/dev-cpp/fizz/Manifest index cfcd6fbbd6e1..9de574e6c824 100644 --- a/dev-cpp/fizz/Manifest +++ b/dev-cpp/fizz/Manifest @@ -1 +1,2 @@ DIST fizz-2024.11.04.00.gh.tar.gz 736821 BLAKE2B af8ecc3f78dfc98d854b402f3e44f8be7b57684d09a34c4a6a19d7c47d7663cc835f27328ed0ee0a25465e7d8dbbb46c8f8085c0b9da7948c99aaf868c8c1fcc SHA512 004665bca243ac835be3628e2196450fee30852e414b068ae98555193c3e9788800536a6280e218614df89061c3f05e501dfd89f08f3c5ba3942c3e9d476bf2c +DIST fizz-2025.04.14.00.gh.tar.gz 752503 BLAKE2B e7d23ba77e5d788cca84826ec670b1279c21a0576211916cff15135166891e779e4c77ba9d5f8cd3e543e7736a4bb8abf2e7ccb18e4c00a38733664a0f6e0e0d SHA512 89572d49c353b0f29c701d1dce5aa0840074907ec3b43617f95f6938375a3ead2a3a22b6794b78892722be05f0e1d2b75090612bace8fd3fcc1fa9023c920123 diff --git a/dev-cpp/fizz/fizz-2025.04.14.00.ebuild b/dev-cpp/fizz/fizz-2025.04.14.00.ebuild new file mode 100644 index 000000000000..2d4381e9da12 --- /dev/null +++ b/dev-cpp/fizz/fizz-2025.04.14.00.ebuild @@ -0,0 +1,57 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# These must be bumped together: +# dev-cpp/edencommon +# dev-cpp/fb303 +# dev-cpp/fbthrift +# dev-cpp/fizz +# dev-cpp/folly +# dev-cpp/mvfst +# dev-cpp/wangle +# dev-util/watchman + +CMAKE_USE_DIR="${S}/fizz" + +inherit cmake + +DESCRIPTION="C++14 implementation of the TLS-1.3 standard" +HOMEPAGE="https://github.com/facebookincubator/fizz" +SRC_URI="https://github.com/facebookincubator/fizz/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm64" +IUSE="test" +RESTRICT="!test? ( test )" + +# NOTE: Fizz supports multiple backends but the CMake build only +# allows building against OpenSSL. Can't do anything about +# that unless Facebook supports other backends in CMake. +RDEPEND=" + app-arch/zstd:= + ~dev-cpp/folly-${PV}:= + dev-cpp/gflags:= + dev-cpp/glog:=[gflags] + dev-libs/double-conversion:= + dev-libs/libfmt:= + dev-libs/libsodium:= + dev-libs/openssl:= + sys-libs/zlib +" +uEPEND=" + ${RDEPEND} + test? ( dev-cpp/gtest ) +" + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_DIR="$(get_libdir)/cmake/${PN}" + -DLIB_INSTALL_DIR="$(get_libdir)" + -DBUILD_TESTS="$(usex test ON OFF)" + ) + + cmake_src_configure +} diff --git a/dev-cpp/folly/Manifest b/dev-cpp/folly/Manifest index 529f0a646c6e..c4bbc6ffb626 100644 --- a/dev-cpp/folly/Manifest +++ b/dev-cpp/folly/Manifest @@ -1,2 +1,3 @@ DIST folly-v2023.06.19.00.tar.gz 3850872 BLAKE2B 6332b6de28fd4a0c19b20c4b23fa7093bded940fb07de92ad9fa7f44b8347fb5e5543e5a57c32d2414f345b4f7b306eed806c5d48a871a06833c1d2a71a34584 SHA512 9189adddf59019787969c7edb27a3e57436c2dca772f3142cdbf66e3a69b398be7ae4f2c36a9576c7ad9c51fd3703555e2a7ad6ed1ddce4036f8760d8095d371 DIST folly-v2024.11.04.00.tar.gz 4185762 BLAKE2B 16eca3bde4320b2c5dd535afddb2640f567135ea90e7a270814bda56eb0d2ba4e864e07015879bb79d1146c68e05695eb06e2219e3dd3b4f71a1434e6f2998a5 SHA512 918ec7217a58789818c502c47302d9296867456bb3dd1c36480406905875eae9a7d52900def34ac1a936af9be6010b8b77897b351c36aa8ca09c16fe1775f508 +DIST folly-v2025.04.14.00.tar.gz 4297358 BLAKE2B df2687d1fe27cc71b0e5a5bfc4b82e1b45d7537bd372f51b3db7c2d20b467d3f0354b377f1c0a64a795f125fd56fb472b585eaad656e07df84c83efe9373d1dd SHA512 19623482df0372a9e2b43b0e718aeed22571f773b0f4e479a41b3e2cac58814f7dc73fb4ae3a3311e87d2836b32c72b92cbe51ef8621242a059e820a70a75e48 diff --git a/dev-cpp/folly/files/folly-2025.04.14.00-force-liburing-off.patch b/dev-cpp/folly/files/folly-2025.04.14.00-force-liburing-off.patch new file mode 100644 index 000000000000..e0c76d131a29 --- /dev/null +++ b/dev-cpp/folly/files/folly-2025.04.14.00-force-liburing-off.patch @@ -0,0 +1,27 @@ +From 1a86fa74e6468f1e10a361a79a441e95f2706d0d Mon Sep 17 00:00:00 2001 +From: sin-ack <sin-ack@protonmail.com> +Date: Mon, 21 Apr 2025 14:43:56 +0200 +Subject: [PATCH] Forcibly disable liburing support + +Folly doesn't have a configure option for disabling liburing, so we +must manually disable it with this patch. +--- + folly/io/async/Liburing.h | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/folly/io/async/Liburing.h b/folly/io/async/Liburing.h +index 8e81aaae9..64c3ffc0c 100644 +--- a/folly/io/async/Liburing.h ++++ b/folly/io/async/Liburing.h +@@ -16,8 +16,4 @@ + + #pragma once + +-#if defined(__linux__) && __has_include(<liburing.h>) +-#define FOLLY_HAS_LIBURING 1 +-#else + #define FOLLY_HAS_LIBURING 0 +-#endif +-- +2.49.0 + diff --git a/dev-cpp/folly/folly-2025.04.14.00.ebuild b/dev-cpp/folly/folly-2025.04.14.00.ebuild new file mode 100644 index 000000000000..05ec9d0a3f03 --- /dev/null +++ b/dev-cpp/folly/folly-2025.04.14.00.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# These must be bumped together: +# dev-cpp/edencommon +# dev-cpp/fb303 +# dev-cpp/fbthrift +# dev-cpp/fizz +# dev-cpp/folly +# dev-cpp/mvfst +# dev-cpp/wangle +# dev-util/watchman + +inherit flag-o-matic cmake toolchain-funcs + +DESCRIPTION="An open-source C++ library developed and used at Facebook" +HOMEPAGE="https://github.com/facebook/folly" +SRC_URI="https://github.com/facebook/folly/releases/download/v${PV}/${PN}-v${PV}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm64 ~ppc64" +IUSE="llvm-libunwind test" +RESTRICT="!test? ( test )" + +# NOTE: liburing support is disabled because Folly depends on features +# that are not available in the current stable version of liburing. +# +# See: https://github.com/facebook/folly/issues/2420 +# +# NOTE: Re-check during next bump whether liburing released a version with +# zcrx support. +RDEPEND=" + app-arch/bzip2 + app-arch/lz4:= + app-arch/snappy:= + app-arch/xz-utils + app-arch/zstd:= + dev-cpp/fast_float:= + dev-cpp/gflags:= + dev-cpp/glog:=[gflags] + dev-libs/boost:=[context] + dev-libs/double-conversion:= + dev-libs/libaio + dev-libs/libevent:= + dev-libs/libfmt:= + dev-libs/libsodium:= + dev-libs/openssl:= + sys-libs/zlib + llvm-libunwind? ( llvm-runtimes/libunwind:= ) + !llvm-libunwind? ( sys-libs/libunwind:= ) +" +# libiberty is linked statically +DEPEND=" + ${RDEPEND} + sys-libs/binutils-libs + test? ( dev-cpp/gtest ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-2024.11.04.00-musl-fix.patch + # NOTE: Disable liburing support as mentioned above. Folly doesn't have + # a configure flag for this so we must patch the check out. + "${FILESDIR}"/${PN}-2025.04.14.00-force-liburing-off.patch +) + +src_unpack() { + # Workaround for bug #889420 + mkdir -p "${S}" || die + cd "${S}" || die + default +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_DIR="$(get_libdir)/cmake/${PN}" + -DLIB_INSTALL_DIR="$(get_libdir)" + + -DBUILD_TESTS=$(usex test) + + # https://github.com/gentoo/gentoo/pull/29393 + -DCMAKE_LIBRARY_ARCHITECTURE=$(usex amd64 x86_64 ${ARCH}) + ) + + # https://github.com/facebook/folly/issues/1984 + use arm64 && append-cxxflags "-flax-vector-conversions" + + cmake_src_configure +} + +src_test() { + CMAKE_SKIP_TESTS=( + # Mysterious "invalid json" failure + io_async_ssl_session_test.SSLSessionTest + singleton_thread_local_test.SingletonThreadLocalDeathTest + # TODO: All SIGSEGV, report upstream! + 'concurrency_concurrent_hash_map_test.*' + ) + + if use arm64; then + CMAKE_SKIP_TESTS+=( + # Tests are flaky/timing dependent on both QEMU chroot and real hardware + io_async_hh_wheel_timer_test.HHWheelTimerTest + # Times out on real hardware + concurrent_skip_list_test.ConcurrentSkipList + futures_retrying_test.RetryingTest.largeRetries + ) + fi + + if [[ $(tc-get-cxx-stdlib) == libc++ ]]; then + CMAKE_SKIP_TESTS+=( + # Aborts with libc++. + # https://github.com/facebook/folly/issues/2345 + buffered_atomic_test.BufferedAtomic.singleThreadUnguardedAccess + ) + fi + + cmake_src_test +} diff --git a/dev-cpp/mvfst/Manifest b/dev-cpp/mvfst/Manifest index 404d5e40b48e..16254b7df1fd 100644 --- a/dev-cpp/mvfst/Manifest +++ b/dev-cpp/mvfst/Manifest @@ -1 +1,2 @@ DIST mvfst-2024.11.04.00.gh.tar.gz 1983543 BLAKE2B 9c8b0da32baddd04af29e892a379333f89af45957a415dfa7f6da86f9a9b39fc8fbc73e450deb51e7a61b4ddfd37f08dc3d9ba8f48f83557aab4ae762068ec14 SHA512 4a000583884777fa876f3bfc52a3420c9cf8818f943c07898ac3b313837092fc173d8db497fd59027ef405d8fa5e3114a53b3bc5cf3fef398ca712c06a1da3e0 +DIST mvfst-2025.04.14.00.gh.tar.gz 2046690 BLAKE2B 7d8861d082b027b4c5b95cb755bc89907037b7e5e71be0bbb97806fa37d24bfec48979e1a8576c1c49b3007babe9e327c16d0d0971a66899e0a0ef9f373a8be7 SHA512 65fe3d5aee2ccffd0d459b3d07901c9d1085d6ec195d896ea66eb509ec1d662d4721b39242bab44ef10cafa479aae335a7a8904214871e28728857fc709061df diff --git a/dev-cpp/mvfst/mvfst-2025.04.14.00.ebuild b/dev-cpp/mvfst/mvfst-2025.04.14.00.ebuild new file mode 100644 index 000000000000..718303e3ffd6 --- /dev/null +++ b/dev-cpp/mvfst/mvfst-2025.04.14.00.ebuild @@ -0,0 +1,63 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# These must be bumped together: +# dev-cpp/edencommon +# dev-cpp/fb303 +# dev-cpp/fbthrift +# dev-cpp/fizz +# dev-cpp/folly +# dev-cpp/mvfst +# dev-cpp/wangle +# dev-util/watchman + +inherit cmake + +DESCRIPTION="An implementation of the QUIC transport protocol" +HOMEPAGE="https://github.com/facebook/mvfst" +SRC_URI="https://github.com/facebook/mvfst/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm64" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + ~dev-cpp/fizz-${PV}:= + ~dev-cpp/folly-${PV}:= + dev-cpp/gflags:= + dev-cpp/glog:=[gflags] + dev-libs/double-conversion:= + dev-libs/libfmt:= + dev-libs/openssl:= +" +DEPEND=" + ${RDEPEND} + test? ( dev-cpp/gtest ) +" + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_MODULE_DIR="$(get_libdir)/cmake/${PN}" + -DCMAKE_INSTALL_LIBDIR="$(get_libdir)" + -DBUILD_TESTS="$(usex test ON OFF)" + ) + + cmake_src_configure +} + +src_test() { + if use arm64; then + # These tests segfault on arm64. + # https://github.com/facebook/mvfst/issues/363 + CMAKE_SKIP_TESTS=( + QuicClientTransportIntegrationTest.ResetClient + QuicClientTransportIntegrationTest.TestStatelessResetToken + ) + fi + + cmake_src_test +} diff --git a/dev-cpp/wangle/Manifest b/dev-cpp/wangle/Manifest index aa9e398f55a5..0e219585fcaa 100644 --- a/dev-cpp/wangle/Manifest +++ b/dev-cpp/wangle/Manifest @@ -1 +1,2 @@ DIST wangle-2024.11.04.00.gh.tar.gz 372838 BLAKE2B 5d6636aa9cbea7f1438269a8c935b93dd5e3c6abef0cc6c668088d883a9b9326f44409649d809c80c08e79c2fa0527fd26a4db7ceed616f27aea2a3921c5ae75 SHA512 d44f3553b04f378935c2a6cf072d6b4a911be3bb71f3480ccdbb269f83c0f62dce4451bcb2edb365d9b398f719c7162269690d07aab07054dafaa55b5b38e0ad +DIST wangle-2025.04.14.00.gh.tar.gz 368600 BLAKE2B 092e7fcc97016158aeefa64018a0ef4e5e91542d11677d7b20adcda128817f85a7155aee71618add311dcab2dde88d54a19a04da950da4cb05393ca1905e1bd6 SHA512 d3aa8dc6ef184356f520341b858d9064f18a413cccec52d541cb4fc7895f700c1cbbf00ede7ee8ac52d6cc7c0779e68c6078a475ace25f24854c706bbe462798 diff --git a/dev-cpp/wangle/wangle-2025.04.14.00.ebuild b/dev-cpp/wangle/wangle-2025.04.14.00.ebuild new file mode 100644 index 000000000000..855a40ce89ff --- /dev/null +++ b/dev-cpp/wangle/wangle-2025.04.14.00.ebuild @@ -0,0 +1,69 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# These must be bumped together: +# dev-cpp/edencommon +# dev-cpp/fb303 +# dev-cpp/fbthrift +# dev-cpp/fizz +# dev-cpp/folly +# dev-cpp/mvfst +# dev-cpp/wangle +# dev-util/watchman + +CMAKE_USE_DIR="${S}/wangle" + +inherit cmake + +DESCRIPTION="A framework providing common abstractions for building services" +HOMEPAGE="https://github.com/facebook/wangle" +SRC_URI="https://github.com/facebook/wangle/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm64" +IUSE="test" + +RESTRICT="!test? ( test )" + +RDEPEND=" + ~dev-cpp/fizz-${PV}:= + ~dev-cpp/folly-${PV}:= + dev-cpp/gflags:= + dev-cpp/glog:=[gflags] + dev-libs/double-conversion:= + dev-libs/libfmt:= + dev-libs/openssl:= +" +DEPEND=" + ${RDEPEND} + test? ( dev-cpp/gtest ) +" + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_DIR="$(get_libdir)/cmake/${PN}" + -DLIB_INSTALL_DIR="$(get_libdir)" + -DBUILD_TESTS="$(usex test ON OFF)" + ) + + cmake_src_configure +} + +src_test() { + CMAKE_SKIP_TESTS=( + # These tests expect test certificates to be present in /usr/include/folly/io/async/test/certs/, which folly + # doesn't install. + SSLContextManagerTest + ) + + if use arm64; then + # This test fails on arm64. + # https://github.com/facebook/wangle/issues/241 + CMAKE_SKIP_TESTS+=(TLSInMemoryTicketProcessorTest) + fi + + cmake_src_test +} diff --git a/dev-cpp/xsimd/xsimd-13.1.0.ebuild b/dev-cpp/xsimd/xsimd-13.1.0.ebuild index e225f4fbd3d0..29a0c64f142f 100644 --- a/dev-cpp/xsimd/xsimd-13.1.0.ebuild +++ b/dev-cpp/xsimd/xsimd-13.1.0.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/xtensor-stack/${PN}/archive/refs/tags/${PV}.tar.gz LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 arm arm64 ~hppa ~loong ~ppc ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="amd64 arm arm64 ~hppa ~loong ~ppc ppc64 ~riscv ~s390 ~sparc x86" IUSE="doc test" RESTRICT="!test? ( test )" |
