Merge branch 'rawhide' into epel8

This commit is contained in:
salimma 2022-02-23 16:11:03 -08:00
commit dcea06772f
3 changed files with 54 additions and 14 deletions

View file

@ -1 +1 @@
SHA512 (wangle-2021.11.29.00.tar.gz) = 8af2b3794831e17d087bd7e229f58626ef850b3099a3b01783f119ad41a5fc530749310c8a49fc509b9e18533f50d44cdabb94cb6ceabf49049e3fbbb6b59593
SHA512 (wangle-2022.02.21.00.tar.gz) = ce3a85b203afebc5d339fbda6828fcaae341b34f1865aa7e482e548caaac55f9856627479f2c39e3371c4cee32f62ff42cdd7f55abc3544bb3baf6d2260f4f92

View file

@ -0,0 +1,33 @@
diff -ruN wangle-2021.12.20.00/wangle/bootstrap/test/BootstrapTest.cpp wangle-disable_failed_tests/wangle/bootstrap/test/BootstrapTest.cpp
--- wangle-2021.12.20.00/wangle/bootstrap/test/BootstrapTest.cpp 2021-12-19 19:29:28.000000000 -0800
+++ wangle-disable_failed_tests/wangle/bootstrap/test/BootstrapTest.cpp 2021-12-23 12:04:07.412647589 -0800
@@ -353,6 +353,7 @@
server.bind(0);
}
+/* fine on mock, failed on Koji
TEST(Bootstrap, UDPClientServerTest) {
connections = 0;
@@ -382,6 +383,7 @@
EXPECT_EQ(connections, 1);
}
+*/
TEST(Bootstrap, UnixServer) {
TestServer server;
diff -ruN wangle-2021.12.20.00/wangle/CMakeLists.txt wangle-disable_failed_tests/wangle/CMakeLists.txt
--- wangle-2021.12.20.00/wangle/CMakeLists.txt 2021-12-19 19:29:28.000000000 -0800
+++ wangle-disable_failed_tests/wangle/CMakeLists.txt 2021-12-23 12:01:23.779810003 -0800
@@ -295,7 +295,9 @@
# add_gtest(service/test/ServiceTest.cpp ServiceTest)
# this test requires arguments?
# add_gtest(ssl/test/SSLCacheTest.cpp SSLCacheTest)
- add_gtest(ssl/test/SSLContextManagerTest.cpp SSLContextManagerTest)
+ # this test fails against the packaged folly
+ # E1223 11:17:23.030416 2602 SSLContextManager.cpp:491] error loading client CA folly/io/async/test/certs/client_chain.pem: std::runtime_error: SSL_CTX_load_verify_locations: SSL error # 80000002; no such file; system lib
+ # add_gtest(ssl/test/SSLContextManagerTest.cpp SSLContextManagerTest)
add_gtest(ssl/test/TLSCredProcessorTest.cpp TLSCredProcessorTest)
add_gtest(util/test/FilePollerTest.cpp FilePollerTest)
endif()

View file

@ -7,21 +7,20 @@
%endif
# Tests are not currently passing
%bcond_with tests
%bcond_without tests
%global _static_builddir static_build
# Use C++20 standard, required for folly coroutines.
%global build_cxxflags -std=c++20 %{optflags}
Name: wangle
Version: 2021.11.29.00
Version: 2022.02.21.00
Release: %autorelease
Summary: Framework for building services in a consistent/modular/composable way
License: ASL 2.0
URL: https://github.com/facebook/wangle
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
# disable failing tests, see patch for context
Patch0: %{name}-disable_failed_tests.patch
# Folly is known not to work on big-endian CPUs
# https://bugzilla.redhat.com/show_bug.cgi?id=1892807
@ -30,25 +29,32 @@ ExcludeArch: s390x
BuildRequires: cmake
BuildRequires: gcc-c++
# Library dependencies
BuildRequires: fizz-devel
BuildRequires: folly-devel
BuildRequires: fizz-devel = %{version}
BuildRequires: folly-devel = %{version}
%if %{with static}
BuildRequires: fizz-static
BuildRequires: folly-static
BuildRequires: fizz-static = %{version}
BuildRequires: folly-static = %{version}
%endif
%if %{with tests}
BuildRequires: gmock-devel
BuildRequires: gtest-devel
%endif
%description
%global _description %{expand:
Wangle is a library that makes it easy to build protocols, application clients,
and application servers.
It's like Netty + Finagle smooshed together, but in C++.
It's like Netty + Finagle smooshed together, but in C++.}
%description %{_description}
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
%description devel %{_description}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
@ -58,7 +64,8 @@ developing applications that use %{name}.
Summary: Static development libraries for %{name}
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
%description static
%description static %{_description}
The %{name}-static package contains static libraries for
developing applications that use %{name}.
%endif