Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/folly/
Date: Mon, 29 Aug 2022 20:13:10
Message-Id: 1661803975.d0807e01271d8c55cabd51ccf3dd8ad8a207b832.sam@gentoo
1 commit: d0807e01271d8c55cabd51ccf3dd8ad8a207b832
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 29 19:53:37 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 29 20:12:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0807e01
7
8 dev-cpp/folly: add 2022.08.29.00
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-cpp/folly/Manifest | 1 +
13 dev-cpp/folly/folly-2022.08.29.00.ebuild | 100 +++++++++++++++++++++++++++++++
14 2 files changed, 101 insertions(+)
15
16 diff --git a/dev-cpp/folly/Manifest b/dev-cpp/folly/Manifest
17 index b7f871234569..52b8ed055ebc 100644
18 --- a/dev-cpp/folly/Manifest
19 +++ b/dev-cpp/folly/Manifest
20 @@ -4,3 +4,4 @@ DIST folly-v2022.07.04.00.tar.gz 3647988 BLAKE2B ab8916ff4be1468d44dc08921264486
21 DIST folly-v2022.08.08.00.tar.gz 3684846 BLAKE2B 462c183effea452ca706a7a14ebba820f377bc5ba6fd1475b15ca10e3c21df60a16b529b6599cf5dd5df2913b1fbd0432a3c411ab0aa400a9c84bb6aecd2f70f SHA512 f44dbf96f42a86d44cad46129750ae2bc0abb6702e148de10def4b241a3c7afa62ad19acca96609e8a9bfdfeeb7eda3f19d8eb161b5e41702c943ca87a75c88e
22 DIST folly-v2022.08.15.00.tar.gz 3691439 BLAKE2B 96ba34a18b51ea91aacd2bbcdbfef855a8924004850534ef342799d1c36d6ece04b77100b8901053fd3d0a997d1764ffdfd5bcd60928b4a4f8c9480f5a6d8ee6 SHA512 72d8d29a1f26f5af33d13e1d2f7ed5ce439bc7345daecc3ed1d30e33b802e0aa4f1ca59fae16db25079e55da14f60cd6a548f0f31eef48abad49b71baa6e6307
23 DIST folly-v2022.08.22.00.tar.gz 3693126 BLAKE2B 1d28c114068d6d37bb0d57fddc9ab22438efc967aba810ba463b2e63c451a7d66152c5ec5b42d10879ed3d44467af5548d98998c52080b10f82aabfaec5f8b85 SHA512 b042a25c4e114d7098dbba94699a472e94a9074fe0814b1c5417e5bf995b69a22704613ae2a863d4e098511b0b8cc38c2e7c172a02b7bf772e238edcfe967c9e
24 +DIST folly-v2022.08.29.00.tar.gz 3696645 BLAKE2B c1ff618be8b6a73bf0a1249212cf904ac472711086e54da73dd631ecf002761e30496e8631d6591f51e279b736ae9b3fe50959de6b1f86f01f9d6bc08fe675fc SHA512 1437a1314e26624715a0bb781049e19300eb3a67648287b319c55ce0dfbc867a09bd9d2f0cece6fc75fc62b21899aa94b464ae49c12687be7c94fdf0c7b95790
25
26 diff --git a/dev-cpp/folly/folly-2022.08.29.00.ebuild b/dev-cpp/folly/folly-2022.08.29.00.ebuild
27 new file mode 100644
28 index 000000000000..455df9c64760
29 --- /dev/null
30 +++ b/dev-cpp/folly/folly-2022.08.29.00.ebuild
31 @@ -0,0 +1,100 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +# These must be bumped together:
38 +# dev-cpp/edencommon
39 +# dev-cpp/folly
40 +# dev-util/watchman
41 +
42 +inherit cmake toolchain-funcs
43 +
44 +DESCRIPTION="An open-source C++ library developed and used at Facebook"
45 +HOMEPAGE="https://github.com/facebook/folly"
46 +SRC_URI="https://github.com/facebook/folly/releases/download/v${PV}/${PN}-v${PV}.tar.gz"
47 +S="${WORKDIR}"
48 +
49 +LICENSE="Apache-2.0"
50 +SLOT="0/${PV}"
51 +KEYWORDS="~amd64"
52 +IUSE="llvm-libunwind test"
53 +RESTRICT="!test? ( test )"
54 +
55 +RDEPEND="app-arch/bzip2
56 + app-arch/lz4:=
57 + app-arch/snappy:=
58 + app-arch/xz-utils
59 + app-arch/zstd:=
60 + dev-cpp/gflags:=
61 + dev-cpp/glog:=[gflags]
62 + dev-libs/boost:=[context,threads(+)]
63 + dev-libs/double-conversion:=
64 + dev-libs/libaio
65 + dev-libs/libevent:=
66 + dev-libs/libfmt:=
67 + dev-libs/libsodium:=
68 + dev-libs/openssl:=
69 + >=sys-libs/liburing-2.2:=
70 + sys-libs/zlib
71 + llvm-libunwind? ( sys-libs/llvm-libunwind:= )
72 + !llvm-libunwind? ( sys-libs/libunwind:= )"
73 +# libiberty is linked statically
74 +DEPEND="${RDEPEND}
75 + sys-libs/binutils-libs
76 + test? ( dev-cpp/gtest )"
77 +BDEPEND="test? ( sys-devel/clang )"
78 +
79 +PATCHES=(
80 + "${FILESDIR}"/${PN}-2022.07.04.00-musl-fix.patch
81 +)
82 +
83 +pkg_setup() {
84 + [[ ${BUILD_TYPE} == binary ]] && return
85 +
86 + if use test && ! tc-is-clang ; then
87 + # Always build w/ Clang for now to avoid gcc ICE
88 + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106230
89 + #if [[ $(gcc-major-version) -eq 12 ]] ; then
90 + # return
91 + #fi
92 +
93 + ## Only older GCC 11 is broken
94 + #if [[ $(gcc-major-version) -eq 11 && $(gcc-minor-version) -ge 3 && $(gcc-micro-version) -ge 1 ]] ; then
95 + # return
96 + #fi
97 +
98 + ewarn "Forcing build with Clang due to GCC bug (because tests are enabled)"
99 + #ewarn "(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104008)"
100 +
101 + export CC=${CHOST}-clang
102 + export CXX=${CHOST}-clang++
103 + fi
104 +}
105 +
106 +src_configure() {
107 + # Fragile when changing compilers
108 + export CCACHE_DISABLE=1
109 +
110 + # TODO: liburing could in theory be optional but fails to link
111 + local mycmakeargs=(
112 + -DLIB_INSTALL_DIR="$(get_libdir)"
113 +
114 + -DBUILD_TESTS=$(usex test)
115 + )
116 +
117 + cmake_src_configure
118 +}
119 +
120 +src_test() {
121 + local myctestargs=(
122 + # - timeseries_histogram_test.TimeseriesHistogram.Percentile|HHWheelTimerTest
123 + # Long-standing known test failure
124 + # TODO: report upstream
125 + # - HHWheelTimerTest.HHWheelTimerTest.CancelTimeout
126 + # Timeouts are fragile
127 + -E "(timeseries_histogram_test.TimeseriesHistogram.Percentile|HHWheelTimerTest.HHWheelTimerTest.CancelTimeout)"
128 + )
129 +
130 + cmake_src_test
131 +}