diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-08-16 00:44:55 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-08-16 00:44:55 +0000 |
| commit | 30b706f90135dd67c79f7d731ad66cbac1dae12f (patch) | |
| tree | 9b156bf34773b14a39a85807384505b1b6e6874a /dev-cpp | |
| parent | bd81cbb94eb6f594075ebbc72f6f5a748e848b26 (diff) | |
| download | baldeagleos-repo-30b706f90135dd67c79f7d731ad66cbac1dae12f.tar.gz baldeagleos-repo-30b706f90135dd67c79f7d731ad66cbac1dae12f.tar.xz baldeagleos-repo-30b706f90135dd67c79f7d731ad66cbac1dae12f.zip | |
Adding metadata
Diffstat (limited to 'dev-cpp')
| -rw-r--r-- | dev-cpp/edencommon/Manifest | 2 | ||||
| -rw-r--r-- | dev-cpp/edencommon/edencommon-0_pre20220815.ebuild | 44 | ||||
| -rw-r--r-- | dev-cpp/edencommon/edencommon-2022.08.15.00.ebuild | 41 | ||||
| -rw-r--r-- | dev-cpp/folly/Manifest | 1 | ||||
| -rw-r--r-- | dev-cpp/folly/files/folly-2022.08.15.00-liburing-headers.patch | 102 | ||||
| -rw-r--r-- | dev-cpp/folly/folly-2022.08.15.00-r1.ebuild | 99 | ||||
| -rw-r--r-- | dev-cpp/gtest/gtest-1.11.0.ebuild | 1 | ||||
| -rw-r--r-- | dev-cpp/gtest/gtest-9999.ebuild | 3 | ||||
| -rw-r--r-- | dev-cpp/highway/highway-0.16.0-r1.ebuild | 1 | ||||
| -rw-r--r-- | dev-cpp/highway/highway-0.17.0.ebuild | 1 | ||||
| -rw-r--r-- | dev-cpp/highway/highway-1.0.0.ebuild | 1 | ||||
| -rw-r--r-- | dev-cpp/highway/highway-9999.ebuild | 1 | ||||
| -rw-r--r-- | dev-cpp/notcurses/notcurses-3.0.5.ebuild | 1 |
13 files changed, 290 insertions, 8 deletions
diff --git a/dev-cpp/edencommon/Manifest b/dev-cpp/edencommon/Manifest index 9e3cc214c845..bfb6a1bf649a 100644 --- a/dev-cpp/edencommon/Manifest +++ b/dev-cpp/edencommon/Manifest @@ -1 +1,3 @@ DIST edencommon-0_pre20220808.tar.gz 142458 BLAKE2B 0dd501069bc511973e89b21b9dbdce7eeb0e87e31ecd05e585fe83c515894691a02e5725de8c912c4bd0fb70f4172445070ef8fec205243e1df9c35a3ccaffe4 SHA512 63f60e1c406d834cf618e2747c21f928e43fe2a475a97152070aecb61b11b5e515bdfd1c9571a93a159d91fa185c9f89caebe8d41421a94e636e8ff43fd11a3a +DIST edencommon-0_pre20220815.tar.gz 142456 BLAKE2B 64e2b8e155e56ff50ca348ae53f3e55e123b32816ec199cebf760dcd4b08da920b15b56aab1254a782d202b89e1d119a8180f7d5382da8a94f67752ecb6924db SHA512 7263fb3f85c6142862eac9472c2de2ac94a2b3c5205e0d87ca2f6694d4ed3c5b9f2643c35266141e6bbbb1d45079a59cf5803de3065ef46a9a8d7f321b15bc99 +DIST edencommon-2022.08.15.00.gh.tar.gz 142467 BLAKE2B e3d72f1ae5845db2c18003202ca6360cc9496c3544eff2cad8eee486098dae3649bc54a0b7b9ea57fb72a1669a1f4307a017a85693499ca353f553f0de79dc6b SHA512 211a6f0e22b662e743cc944b7bc3d9ad63c1e4dd55b515db958fdfc04463357caef39ad43a9089417ac61929a8f32375f2fd673a113c04a162e94f6419737e81 diff --git a/dev-cpp/edencommon/edencommon-0_pre20220815.ebuild b/dev-cpp/edencommon/edencommon-0_pre20220815.ebuild new file mode 100644 index 000000000000..2c1ede94a485 --- /dev/null +++ b/dev-cpp/edencommon/edencommon-0_pre20220815.ebuild @@ -0,0 +1,44 @@ +# Copyright 2022 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/folly +# dev-util/watchman + +inherit cmake + +# No proper tags yet (https://github.com/facebookexperimental/edencommon/issues/2) +MY_COMMIT="ca22cf964f1163c2a198d7cd3545f0c9b04b3c75" +DESCRIPTION="Shared library for Watchman and Eden projects" +HOMEPAGE="https://github.com/facebookexperimental/edencommon" +SRC_URI="https://github.com/facebookexperimental/edencommon/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${PN}-${MY_COMMIT} + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="llvm-libunwind" + +RDEPEND=" + dev-cpp/gflags:= + dev-cpp/glog:=[gflags] + dev-cpp/folly:= + llvm-libunwind? ( sys-libs/llvm-libunwind:= ) + !llvm-libunwind? ( sys-libs/libunwind:= ) +" +DEPEND=" + ${RDEPEND} + dev-cpp/gtest +" + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_DIR="$(get_libdir)/cmake/${PN}" + -DLIB_INSTALL_DIR="$(get_libdir)" + ) + + cmake_src_configure +} diff --git a/dev-cpp/edencommon/edencommon-2022.08.15.00.ebuild b/dev-cpp/edencommon/edencommon-2022.08.15.00.ebuild new file mode 100644 index 000000000000..5c158b468234 --- /dev/null +++ b/dev-cpp/edencommon/edencommon-2022.08.15.00.ebuild @@ -0,0 +1,41 @@ +# Copyright 2022 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/folly +# dev-util/watchman + +inherit cmake + +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" +IUSE="llvm-libunwind" + +RDEPEND=" + dev-cpp/gflags:= + dev-cpp/glog:=[gflags] + dev-cpp/folly:= + llvm-libunwind? ( sys-libs/llvm-libunwind:= ) + !llvm-libunwind? ( sys-libs/libunwind:= ) +" +DEPEND=" + ${RDEPEND} + dev-cpp/gtest +" + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_DIR="$(get_libdir)/cmake/${PN}" + -DLIB_INSTALL_DIR="$(get_libdir)" + ) + + cmake_src_configure +} diff --git a/dev-cpp/folly/Manifest b/dev-cpp/folly/Manifest index 23c3b4d7dca4..94ae8e64d336 100644 --- a/dev-cpp/folly/Manifest +++ b/dev-cpp/folly/Manifest @@ -2,3 +2,4 @@ DIST folly-2022.03.28.00.tar.gz 3616507 BLAKE2B da003701abe599f20ac87a2785fe9a4c DIST folly-2022.04.11.00.tar.gz 3632587 BLAKE2B 13820f6dc600727fa97603181be97a568cc8b3c713659717592853827dac050d5f1f6d98178e3054871233b48ac18f713589bf43b36ea29445cad557ce13bacf SHA512 7aa0be95d6f8b21aaa88558cf5921c526ab5a8c8121b858eb6e7ea19946d7a82dff06d90b7a365cef5c56a43d8d57af8d01b8b11b27262fbed9ee8c9e701b5ac DIST folly-v2022.07.04.00.tar.gz 3647988 BLAKE2B ab8916ff4be1468d44dc0892126448682554ea95ce879166f457b621c3157cb22d0292fe2c58744494efe0fbabbf77732184335cd22244724c740910cf3a8303 SHA512 11fc32768539d8d42c7396eeac522238450617c8dde302b45c64bb93fd6ceaef7bb193b897802962782e8211c3931d31bf8df68e06741ce855d9725510677d7a DIST folly-v2022.08.08.00.tar.gz 3684846 BLAKE2B 462c183effea452ca706a7a14ebba820f377bc5ba6fd1475b15ca10e3c21df60a16b529b6599cf5dd5df2913b1fbd0432a3c411ab0aa400a9c84bb6aecd2f70f SHA512 f44dbf96f42a86d44cad46129750ae2bc0abb6702e148de10def4b241a3c7afa62ad19acca96609e8a9bfdfeeb7eda3f19d8eb161b5e41702c943ca87a75c88e +DIST folly-v2022.08.15.00.tar.gz 3691439 BLAKE2B 96ba34a18b51ea91aacd2bbcdbfef855a8924004850534ef342799d1c36d6ece04b77100b8901053fd3d0a997d1764ffdfd5bcd60928b4a4f8c9480f5a6d8ee6 SHA512 72d8d29a1f26f5af33d13e1d2f7ed5ce439bc7345daecc3ed1d30e33b802e0aa4f1ca59fae16db25079e55da14f60cd6a548f0f31eef48abad49b71baa6e6307 diff --git a/dev-cpp/folly/files/folly-2022.08.15.00-liburing-headers.patch b/dev-cpp/folly/files/folly-2022.08.15.00-liburing-headers.patch new file mode 100644 index 000000000000..f485ee2175fc --- /dev/null +++ b/dev-cpp/folly/files/folly-2022.08.15.00-liburing-headers.patch @@ -0,0 +1,102 @@ +Fix build w/ older kernel headers. + +https://github.com/facebook/folly/commit/ae20efa9fa8cea81079df519d93dcbd1523c8dc3 + +From ae20efa9fa8cea81079df519d93dcbd1523c8dc3 Mon Sep 17 00:00:00 2001 +From: Dylan Yudaken <dylany@fb.com> +Date: Mon, 15 Aug 2022 08:32:53 -0700 +Subject: [PATCH] io_uring: support older versions of liburing + +Summary: Some #if to support older versions of liburing as reported here; https://github.com/facebook/folly/issues/1832 + +Reviewed By: Orvid + +Differential Revision: D38650359 + +fbshipit-source-id: eb78a7607eaaf151dc394cef72df3826c83fdfbc +--- a/folly/experimental/io/IoUringBackend.cpp ++++ b/folly/experimental/io/IoUringBackend.cpp +@@ -40,6 +40,16 @@ extern "C" FOLLY_ATTR_WEAK void eb_poll_loop_pre_hook(uint64_t* call_time); + extern "C" FOLLY_ATTR_WEAK void eb_poll_loop_post_hook( + uint64_t call_time, int ret); + ++// there is no builtin macro we can use in liburing to tell what version we are ++// on or if features are supported. We will try and get this into the next ++// release but for now in the latest release there was also added multishot ++// accept - and so we can use it's pressence to suggest that we can safely use ++// newer features ++#if defined(IORING_ACCEPT_MULTISHOT) ++#define FOLLY_IO_URING_UP_TO_DATE 1 ++#else ++#define FOLLY_IO_URING_UP_TO_DATE 0 ++#endif + namespace folly { + + namespace { +@@ -296,11 +306,7 @@ std::chrono::time_point<std::chrono::steady_clock> getTimerExpireTime( + return now + us; + } + +-// there is no builtin macro we can use in liburing to tell if buffer rings are +-// supported. However in the release that added them, there was also added +-// multishot accept - and so we can use it's pressence to suggest that we can +-// safely use provided buffer rings +-#if defined(IORING_ACCEPT_MULTISHOT) ++#if FOLLY_IO_URING_UP_TO_DATE + + class ProvidedBuffersBuffer { + public: +@@ -738,7 +744,11 @@ IoUringBackend::IoUringBackend(Options options) + params_.flags |= IORING_SETUP_CQSIZE; + params_.cq_entries = options.capacity; + if (options_.taskRunCoop) { ++#if FOLLY_IO_URING_UP_TO_DATE + params_.flags |= IORING_SETUP_COOP_TASKRUN; ++#else ++ // this has no functional change so just leave it ++#endif + } + + // poll SQ options +@@ -1237,9 +1247,12 @@ int IoUringBackend::eb_event_base_loop(int flags) { + } + + if (options_.registerRingFd) { ++ // registering just has some perf impact, so no need to fall back ++#if FOLLY_IO_URING_UP_TO_DATE + if (io_uring_register_ring_fd(&ioRing_) < 0) { + LOG(ERROR) << "unable to register io_uring ring fd"; + } ++#endif + } + } + +@@ -1496,9 +1509,11 @@ void IoUringBackend::cancel(IoSqeBase* ioSqe) { + auto* sqe = get_sqe(); + io_uring_prep_cancel64(sqe, (uint64_t)ioSqe, 0); + io_uring_sqe_set_data(sqe, (void*)&ioSqeNop); // just need something unique ++#if FOLLY_IO_URING_UP_TO_DATE + if (params_.features & IORING_FEAT_CQE_SKIP) { + sqe->flags |= IOSQE_CQE_SKIP_SUCCESS; + } ++#endif + } + + int IoUringBackend::cancelOne(IoSqe* ioSqe) { +@@ -1848,9 +1863,15 @@ void IoUringBackend::processFileOp(IoSqe* sqe, int64_t res) noexcept { + } + + bool IoUringBackend::kernelHasNonBlockWriteFixes() const { ++#if FOLLY_IO_URING_UP_TO_DATE + // this was fixed in 5.18, which introduced linked file + // fixed in "io_uring: only wake when the correct events are set" + return params_.features & IORING_FEAT_LINKED_FILE; ++#else ++ // this indicates that sockets have to manually remove O_NONBLOCK ++ // which is a bit slower but shouldnt cause any functional changes ++ return false; ++#endif + } + + namespace { + diff --git a/dev-cpp/folly/folly-2022.08.15.00-r1.ebuild b/dev-cpp/folly/folly-2022.08.15.00-r1.ebuild new file mode 100644 index 000000000000..15a7565d9977 --- /dev/null +++ b/dev-cpp/folly/folly-2022.08.15.00-r1.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2022 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/folly +# dev-util/watchman + +inherit 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" +S="${WORKDIR}" + +LICENSE="Apache-2.0" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="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/gflags:= + dev-cpp/glog:=[gflags] + dev-libs/boost:=[context,threads(+)] + dev-libs/double-conversion:= + dev-libs/libaio + dev-libs/libevent:= + dev-libs/libfmt:= + dev-libs/libsodium:= + dev-libs/openssl:= + >=sys-libs/liburing-2.2:= + sys-libs/zlib + llvm-libunwind? ( sys-libs/llvm-libunwind:= ) + !llvm-libunwind? ( sys-libs/libunwind:= )" +# libiberty is linked statically +DEPEND="${RDEPEND} + sys-libs/binutils-libs + test? ( dev-cpp/gtest )" +BDEPEND="test? ( sys-devel/clang )" + +PATCHES=( + "${FILESDIR}"/${PN}-2022.07.04.00-musl-fix.patch + "${FILESDIR}"/${P}-liburing-headers.patch +) + +pkg_setup() { + [[ ${BUILD_TYPE} == binary ]] && return + + if use test && ! tc-is-clang ; then + # Always build w/ Clang for now to avoid gcc ICE + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106230 + #if [[ $(gcc-major-version) -eq 12 ]] ; then + # return + #fi + + ## Only older GCC 11 is broken + #if [[ $(gcc-major-version) -eq 11 && $(gcc-minor-version) -ge 3 && $(gcc-micro-version) -ge 1 ]] ; then + # return + #fi + + ewarn "Forcing build with Clang due to GCC bug (because tests are enabled)" + #ewarn "(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104008)" + + export CC=${CHOST}-clang + export CXX=${CHOST}-clang++ + fi +} + +src_configure() { + # TODO: liburing could in theory be optional but fails to link + + local mycmakeargs=( + -DLIB_INSTALL_DIR="$(get_libdir)" + + -DBUILD_TESTS=$(usex test) + ) + + cmake_src_configure +} + +src_test() { + local myctestargs=( + # - timeseries_histogram_test.TimeseriesHistogram.Percentile|HHWheelTimerTest + # Long-standing known test failure + # TODO: report upstream + # - HHWheelTimerTest.HHWheelTimerTest.CancelTimeout + # Timeouts are fragile + -E "(timeseries_histogram_test.TimeseriesHistogram.Percentile|HHWheelTimerTest.HHWheelTimerTest.CancelTimeout)" + ) + + cmake_src_test +} diff --git a/dev-cpp/gtest/gtest-1.11.0.ebuild b/dev-cpp/gtest/gtest-1.11.0.ebuild index ce75947120fe..1da69155234f 100644 --- a/dev-cpp/gtest/gtest-1.11.0.ebuild +++ b/dev-cpp/gtest/gtest-1.11.0.ebuild @@ -6,7 +6,6 @@ EAPI=8 # Python is required for tests and some build tasks. PYTHON_COMPAT=( python3_{7,8,9,10} ) -CMAKE_ECLASS=cmake inherit cmake-multilib python-any-r1 if [[ ${PV} == "9999" ]]; then diff --git a/dev-cpp/gtest/gtest-9999.ebuild b/dev-cpp/gtest/gtest-9999.ebuild index 8c58ec77bd85..5c3550f8db62 100644 --- a/dev-cpp/gtest/gtest-9999.ebuild +++ b/dev-cpp/gtest/gtest-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -6,7 +6,6 @@ EAPI=8 # Python is required for tests and some build tasks. PYTHON_COMPAT=( python3_{7,8,9,10} ) -CMAKE_ECLASS=cmake inherit cmake-multilib python-any-r1 if [[ ${PV} == "9999" ]]; then diff --git a/dev-cpp/highway/highway-0.16.0-r1.ebuild b/dev-cpp/highway/highway-0.16.0-r1.ebuild index 7d9849c329da..12542df4d1cb 100644 --- a/dev-cpp/highway/highway-0.16.0-r1.ebuild +++ b/dev-cpp/highway/highway-0.16.0-r1.ebuild @@ -3,7 +3,6 @@ EAPI=8 -CMAKE_ECLASS=cmake inherit cmake-multilib DESCRIPTION="Performance-portable, length-agnostic SIMD with runtime dispatch" diff --git a/dev-cpp/highway/highway-0.17.0.ebuild b/dev-cpp/highway/highway-0.17.0.ebuild index 0eaed47ff327..f3a07ff5166a 100644 --- a/dev-cpp/highway/highway-0.17.0.ebuild +++ b/dev-cpp/highway/highway-0.17.0.ebuild @@ -3,7 +3,6 @@ EAPI=8 -CMAKE_ECLASS=cmake inherit cmake-multilib DESCRIPTION="Performance-portable, length-agnostic SIMD with runtime dispatch" diff --git a/dev-cpp/highway/highway-1.0.0.ebuild b/dev-cpp/highway/highway-1.0.0.ebuild index 89b07a85a587..b9e18db6095b 100644 --- a/dev-cpp/highway/highway-1.0.0.ebuild +++ b/dev-cpp/highway/highway-1.0.0.ebuild @@ -3,7 +3,6 @@ EAPI=8 -CMAKE_ECLASS=cmake inherit cmake-multilib DESCRIPTION="Performance-portable, length-agnostic SIMD with runtime dispatch" diff --git a/dev-cpp/highway/highway-9999.ebuild b/dev-cpp/highway/highway-9999.ebuild index 89b07a85a587..b9e18db6095b 100644 --- a/dev-cpp/highway/highway-9999.ebuild +++ b/dev-cpp/highway/highway-9999.ebuild @@ -3,7 +3,6 @@ EAPI=8 -CMAKE_ECLASS=cmake inherit cmake-multilib DESCRIPTION="Performance-portable, length-agnostic SIMD with runtime dispatch" diff --git a/dev-cpp/notcurses/notcurses-3.0.5.ebuild b/dev-cpp/notcurses/notcurses-3.0.5.ebuild index 5ec6a07f7781..7e6e9a6d462f 100644 --- a/dev-cpp/notcurses/notcurses-3.0.5.ebuild +++ b/dev-cpp/notcurses/notcurses-3.0.5.ebuild @@ -3,7 +3,6 @@ EAPI=8 -CMAKE_ECLASS="cmake" inherit cmake-multilib DESCRIPTION="Blingful TUIs and character graphics" |
