#1 Update to 2021.06.28.00
Merged 2 years ago by dcavalca. Opened 2 years ago by dcavalca.
rpms/ dcavalca/folly v2021.06.28.00  into  rawhide

file modified
+1
@@ -1,1 +1,2 @@ 

  /folly-2021.06.07.00.tar.gz

+ /folly-2021.06.28.00.tar.gz

@@ -1,39 +0,0 @@ 

- From c935fd75f8ac68b1f1ec7a4c68cdc736a431f95b Mon Sep 17 00:00:00 2001

- From: Michel Alexandre Salim <michel@michel-slm.name>

- Date: Mon, 16 Nov 2020 15:07:38 -0800

- Subject: [PATCH] FixedStringTest: Remove failing tests

- 

- Signed-off-by: Michel Alexandre Salim <michel@michel-slm.name>

- ---

-  folly/test/FixedStringTest.cpp | 15 ---------------

-  1 file changed, 15 deletions(-)

- 

- diff --git a/folly/test/FixedStringTest.cpp b/folly/test/FixedStringTest.cpp

- index 50f76f704..faab24449 100644

- --- a/folly/test/FixedStringTest.cpp

- +++ b/folly/test/FixedStringTest.cpp

- @@ -415,21 +415,6 @@ TEST(FixedStringEraseTest, RuntimeEraseTest) {

-    EXPECT_STREQ("ax", x.c_str());

-  }

-  

- -TEST(FixedStringEraseTest, CEraseTest) {

- -  constexpr auto x = FS("abcdefghijklmnopqrstuvwxyz"), y = x;

- -  constexpr auto tmp0 = x.cerase(x.size());

- -  static_assert(26u == tmp0.size(), "");

- -  static_assert(y == tmp0, "");

- -  constexpr auto tmp1 = tmp0.cerase(25u).cerase(24u);

- -  static_assert(24u == tmp1.size(), "");

- -  static_assert("abcdefghijklmnopqrstuvwx" == tmp1, "");

- -  constexpr auto tmp2 = tmp1.cerase(1u, tmp1.size() - 2u);

- -  static_assert(2u == tmp2.size(), "");

- -  static_assert("ax" == tmp2, "");

- -  constexpr auto tmp3 = tmp2.cerase();

- -  static_assert("" == tmp3, "");

- -}

- -

-  TEST(FixedStringFindTest, FindString) {

-    constexpr folly::FixedString<10> tmp{"hijdefghij"};

-    static_assert(tmp.find(FS("hij")) == 0u, "");

- -- 

- 2.28.0

- 

@@ -1,38 +0,0 @@ 

- From d3d55cef70937b10888bca0828d4af49700b5425 Mon Sep 17 00:00:00 2001

- From: Michel Alexandre Salim <michel@michel-slm.name>

- Date: Tue, 22 Dec 2020 17:33:46 -0800

- Subject: [PATCH] Fix for ppc64le

- 

- Inlining `getStackTraceInPlace` fails on Rawhide with

- 

- ```

- /builddir/build/BUILD/folly-2020.12.21.00/folly/experimental/symbolizer/StackTrace.cpp: In function 'folly::symbolizer::(anonymous namespace)::getStackTraceInPlace(ucontext_t&, unw_cursor&, unsigned long*, unsigned long)':

- /builddir/build/BUILD/folly-2020.12.21.00/folly/experimental/symbolizer/StackTrace.cpp:88:9: error: function 'folly::symbolizer::(anonymous namespace)::getStackTraceInPlace(ucontext_t&, unw_cursor&, unsigned long*, unsigned long)' can never be inlined because it uses setjmp

-    88 | ssize_t getStackTraceInPlace(

-       |         ^~~~~~~~~~~~~~~~~~~~

- ```

- 

- Signed-off-by: Michel Alexandre Salim <michel@michel-slm.name>

- ---

-  folly/experimental/symbolizer/StackTrace.cpp | 4 ++++

-  1 file changed, 4 insertions(+)

- 

- diff --git a/folly/experimental/symbolizer/StackTrace.cpp b/folly/experimental/symbolizer/StackTrace.cpp

- index a2aaefe21..f091be4d4 100644

- --- a/folly/experimental/symbolizer/StackTrace.cpp

- +++ b/folly/experimental/symbolizer/StackTrace.cpp

- @@ -84,7 +84,11 @@ inline bool getFrameInfo(unw_cursor_t* cursor, uintptr_t& ip) {

-    return true;

-  }

-  

- +// on ppc64le, fails with

- +// function can never be inlined because it uses setjmp

- +#if FOLLY_PPC64 == 0

-  FOLLY_ALWAYS_INLINE

- +#endif

-  ssize_t getStackTraceInPlace(

-      unw_context_t& context,

-      unw_cursor_t& cursor,

- -- 

- 2.28.0

- 

file modified
+5 -6
@@ -6,17 +6,13 @@ 

  %global _static_builddir static_build

  

  Name:           folly

- Version:        2021.06.07.00

- Release:        2%{?dist}

+ Version:        2021.06.28.00

+ Release:        1%{?dist}

  Summary:        An open-source C++ library developed and used at Facebook

  

  License:        ASL 2.0

  URL:            https://github.com/facebook/folly

  Source0:        %{url}/archive/v%{version}/folly-%{version}.tar.gz

- # fixed_string_test fails with "error: non-constant condition for static assertion"

- Patch0:         %{name}-cleanup_fixed_string_tests.patch

- # getStackTraceInPlace uses setjmp on ppc64le and can't be inlined

- Patch1:         %{name}-fix_ppc64le_inlining.patch

  

  # Folly is known not to work on big-endian CPUs

  # https://bugzilla.redhat.com/show_bug.cgi?id=1892151
@@ -238,6 +234,9 @@ 

  

  

  %changelog

+ * Thu Jul 08 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 2021.06.28.00-1

+ - Update to 2021.06.28.00

+ 

  * Mon Jul 05 2021 Richard Shaw <hobbes1069@gmail.com> - 2021.06.07.00-2

  - Rebuild for new fmt version.

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (folly-2021.06.07.00.tar.gz) = 3521d4ac738498d6f2c8d0c533dc51a035d202dc268cdcda1464a93520b4ca778a4e98e3b1ec2848ecf483ea33dc67aa8841262fd5ccd5e8e9736d4db426aa96

+ SHA512 (folly-2021.06.28.00.tar.gz) = 1e915aece4097b70548393b4ede49e565505c930f3af9be3525ca17ed6b18efb75638f4965fe136d9b7ac596b43a936b9db5880dbd8cba2461c1348a5dba1df4