diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-09-17 16:53:05 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-09-17 16:53:05 +0000 |
| commit | 27edaa0c23fe927bdc5c84bc01f37358fd34b44d (patch) | |
| tree | f578210d560e9ba1d3a344870beca29e06c66650 /dev-cpp | |
| parent | 890b4527a2b4a35e821f750ad70f9fbfbe7d2239 (diff) | |
| download | baldeagleos-repo-27edaa0c23fe927bdc5c84bc01f37358fd34b44d.tar.gz baldeagleos-repo-27edaa0c23fe927bdc5c84bc01f37358fd34b44d.tar.xz baldeagleos-repo-27edaa0c23fe927bdc5c84bc01f37358fd34b44d.zip | |
Adding metadata
Diffstat (limited to 'dev-cpp')
| -rw-r--r-- | dev-cpp/folly/files/folly-2025.04.14.00-boost-1.89.patch | 22 | ||||
| -rw-r--r-- | dev-cpp/folly/folly-2025.04.14.00-r2.ebuild | 123 | ||||
| -rw-r--r-- | dev-cpp/mvfst/files/mvfst-2025.04.14.00-boost-1.89.patch | 23 | ||||
| -rw-r--r-- | dev-cpp/mvfst/mvfst-2025.04.14.00-r1.ebuild | 67 |
4 files changed, 235 insertions, 0 deletions
diff --git a/dev-cpp/folly/files/folly-2025.04.14.00-boost-1.89.patch b/dev-cpp/folly/files/folly-2025.04.14.00-boost-1.89.patch new file mode 100644 index 000000000000..eb9e55e5739c --- /dev/null +++ b/dev-cpp/folly/files/folly-2025.04.14.00-boost-1.89.patch @@ -0,0 +1,22 @@ +https://bugs.gentoo.org/962946 +https://github.com/facebook/folly/issues/2489 +--- a/CMake/folly-config.cmake.in ++++ b/CMake/folly-config.cmake.in +@@ -38,7 +38,6 @@ find_dependency(Boost 1.51.0 MODULE + filesystem + program_options + regex +- system + thread + REQUIRED + ) +--- a/CMake/folly-deps.cmake ++++ b/CMake/folly-deps.cmake +@@ -41,7 +41,6 @@ find_package(Boost 1.51.0 MODULE + filesystem + program_options + regex +- system + thread + REQUIRED + ) diff --git a/dev-cpp/folly/folly-2025.04.14.00-r2.ebuild b/dev-cpp/folly/folly-2025.04.14.00-r2.ebuild new file mode 100644 index 000000000000..bdb37c3b957d --- /dev/null +++ b/dev-cpp/folly/folly-2025.04.14.00-r2.ebuild @@ -0,0 +1,123 @@ +# 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="io-uring llvm-libunwind test" +RESTRICT="!test? ( test )" + +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-1.71:=[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:= ) + io-uring? ( >=sys-libs/liburing-2.10:= ) +" +DEPEND=" + ${RDEPEND} + sys-libs/binutils-libs + test? ( dev-cpp/gtest ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-2024.11.04.00-musl-fix.patch + "${FILESDIR}"/${PN}-2025.04.14.00-boost-1.89.patch +) + +src_unpack() { + # Workaround for bug #889420 + mkdir -p "${S}" || die + cd "${S}" || die + default +} + +src_prepare() { + # Folly has no configuration option for disabling io_uring support + # so we need to patch it out. + if use !io-uring; then + eapply "${FILESDIR}"/${PN}-2025.04.14.00-force-liburing-off.patch + eapply "${FILESDIR}"/${PN}-2025.04.14.00-CMake-Avoid-finding-liburing.patch + fi + + cmake_src_prepare +} + +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/files/mvfst-2025.04.14.00-boost-1.89.patch b/dev-cpp/mvfst/files/mvfst-2025.04.14.00-boost-1.89.patch new file mode 100644 index 000000000000..14cc3814a138 --- /dev/null +++ b/dev-cpp/mvfst/files/mvfst-2025.04.14.00-boost-1.89.patch @@ -0,0 +1,23 @@ +https://bugs.gentoo.org/962946 +https://github.com/facebook/folly/issues/2489 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -44,7 +44,6 @@ set(QUIC_FBCODE_ROOT ${CMAKE_CURRENT_SOURCE_DIR}) + find_package(Boost 1.62 + REQUIRED COMPONENTS + iostreams +- system + thread + filesystem + regex +--- a/cmake/mvfst-config.cmake.in ++++ b/cmake/mvfst-config.cmake.in +@@ -20,7 +20,7 @@ include(CMakeFindDependencyMacro) + find_dependency(folly) + find_dependency(Fizz) + find_dependency(Threads) +-find_dependency(Boost COMPONENTS iostreams system thread filesystem regex context) ++find_dependency(Boost COMPONENTS iostreams thread filesystem regex context) + + if(NOT TARGET mvfst::mvfst_transport) + include("${CMAKE_CURRENT_LIST_DIR}/mvfst-targets.cmake") diff --git a/dev-cpp/mvfst/mvfst-2025.04.14.00-r1.ebuild b/dev-cpp/mvfst/mvfst-2025.04.14.00-r1.ebuild new file mode 100644 index 000000000000..67fd4aa6f0af --- /dev/null +++ b/dev-cpp/mvfst/mvfst-2025.04.14.00-r1.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 + +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 ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-2025.04.14.00-boost-1.89.patch +) + +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 +} |
