SHA256
5
0
forked from c_cpp/folly

15 Commits

Author SHA256 Message Date
2dfcfdf3ff Delete _link
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/folly?expand=0&rev=24
2024-04-12 10:57:23 +00:00
e58ce0bbc7 - Update to release 2024.02.12.00
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/folly?expand=0&rev=23
2024-02-22 22:13:32 +00:00
afd6ac1303 - update to 2023.11.20.00:
* Automated release from TagIt
  * no changelog available

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/folly?expand=0&rev=21
2023-11-25 19:18:56 +00:00
cdd1fd1710 - Add arm.diff to unbreak ARMv7 build
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/folly?expand=0&rev=19
2023-11-01 15:37:48 +00:00
e7360890fc - Update to release 2023.10.30
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/folly?expand=0&rev=18
2023-11-01 13:43:03 +00:00
7d757ec290 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/folly?expand=0&rev=16 2023-05-05 09:38:36 +00:00
57807645e0 - Update to release 2023.05.01
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/folly?expand=0&rev=15
2023-05-05 08:13:14 +00:00
321b4b41e5 Accepting request 1068314 from home:dirkmueller:Factory
- update to 2023.02.27:
  * no changelog available 

- update to 2022.12.26:
  * no changelog available

- update to 2022.12.12:
  * no changelog available
- drop 0001-Fix-iouring-under-32-bit-linux.patch (upstream)

OBS-URL: https://build.opensuse.org/request/show/1068314
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/folly?expand=0&rev=13
2023-03-01 16:49:31 +00:00
4bbc298a4b - Add 0001-Fix-iouring-under-32-bit-linux.patch
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/folly?expand=0&rev=11
2022-08-29 22:41:03 +00:00
d388adf163 do something about the ppc64 failures
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/folly?expand=0&rev=10
2022-08-29 22:15:45 +00:00
534ad830cb - Update to 2022.08.29
- Add uring.diff

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/folly?expand=0&rev=9
2022-08-29 13:31:22 +00:00
0e2273d9f8 - Update to 2022.08.22
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/folly?expand=0&rev=8
2022-08-27 07:34:45 +00:00
eddf4573d5 - Cure rpmlint "E: executable-stack (Badness: 10000)" by
reworking fix-asm-execstack.patch

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/folly?expand=0&rev=6
2022-07-07 00:13:41 +00:00
6ee8b7688d OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/folly?expand=0&rev=4 2022-05-24 00:31:02 +00:00
0ce682d4be - Update to release 2022.05.23
- Change fix-asm-execstack.patch to use @progbits, not %progbits.
- Edit fix-asm-execstack.patch and remove hunk for memcpy.S,
  because memcpy.S already has had a @progbits line.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/folly?expand=0&rev=3
2022-05-24 00:30:32 +00:00
6 changed files with 107 additions and 48 deletions

22
arm.diff Normal file
View File

@@ -0,0 +1,22 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2023-11-01 16:15:17.230309534 +0100
References: https://sourceware.org/bugzilla/show_bug.cgi?id=31021
---
folly/memcpy.S | 4 ++++
1 file changed, 4 insertions(+)
Index: folly-2023.10.30.00/folly/memcpy.S
===================================================================
--- folly-2023.10.30.00.orig/folly/memcpy.S
+++ folly-2023.10.30.00/folly/memcpy.S
@@ -288,5 +288,9 @@ __folly_memcpy:
#endif
#ifdef __linux__
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
#endif
+#endif

View File

@@ -1,36 +0,0 @@
From: Matthias Gerstner <matthias.gerstner@suse.com>
Date: Mon Jan 31 08:53:38 UTC 2022
Add unconditional section markers to assembler units to avoid the library
getting an executable stack.
Index: folly-2022.01.24.00/folly/memset.S
===================================================================
--- folly-2022.01.24.00.orig/folly/memset.S
+++ folly-2022.01.24.00/folly/memset.S
@@ -18,6 +18,10 @@
#define LABEL(x) .L##x
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
+
.text
.p2align 5, 0x90
.global __folly_memset
Index: folly-2022.01.24.00/folly/memcpy.S
===================================================================
--- folly-2022.01.24.00.orig/folly/memcpy.S
+++ folly-2022.01.24.00/folly/memcpy.S
@@ -70,6 +70,10 @@
* @author Logan Evans <lpe@fb.com>
*/
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
+
#if defined(__AVX2__)
// This threshold is half of L1 cache on a Skylake machine, which means that

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d83e364dd210d04afc345f6def27f22efed2ed4bad32e94dd8b3af51e45654b0
size 3550981

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e0c8386eea1a317ff17f1edc36c29362db94aeca8689659f1c530ea777779409
size 3963621

View File

@@ -1,3 +1,73 @@
-------------------------------------------------------------------
Thu Feb 22 22:08:27 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2024.02.12.00
* No changelog was provided
-------------------------------------------------------------------
Sat Nov 25 19:18:35 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 2023.11.20.00:
* Automated release from TagIt
-------------------------------------------------------------------
Wed Nov 1 13:28:43 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2023.10.30
* No changelog was provided
- Add arm.diff to unbreak ARMv7 build
-------------------------------------------------------------------
Fri May 5 08:10:39 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2023.05.01
* Add support for per-write dynamic Cmsgs
* Support dwarf5 version of split dwarf
* Add Blake3 support
- Disable static gtest and static zstd to unfail build
-------------------------------------------------------------------
Tue Feb 28 20:14:56 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 2023.02.27:
* no changelog available
-------------------------------------------------------------------
Mon Jan 2 08:16:19 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 2022.12.26:
* no changelog available
-------------------------------------------------------------------
Sun Dec 18 18:48:05 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 2022.12.12:
* no changelog available
- drop 0001-Fix-iouring-under-32-bit-linux.patch (upstream)
-------------------------------------------------------------------
Sat Aug 27 07:30:14 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Update to 2022.08.29
* No chngelog provided
- Delete fix-asm-execstack.patch (merged)
- Add 0001-Fix-iouring-under-32-bit-linux.patch
-------------------------------------------------------------------
Thu Jul 7 00:12:44 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Cure rpmlint "E: executable-stack (Badness: 10000)" by
reworking fix-asm-execstack.patch
-------------------------------------------------------------------
Tue May 24 00:19:35 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2022.05.23
* No changelog provided
- Change fix-asm-execstack.patch to use @progbits, not %progbits.
- Edit fix-asm-execstack.patch and remove hunk for memcpy.S,
because memcpy.S already has had a @progbits line.
-------------------------------------------------------------------
Tue Feb 15 15:09:53 UTC 2022 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package folly
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,22 +16,23 @@
#
%define lname libfolly-v2022_01_24_00
%define _lto_cflags %nil
%define lname libfolly-v2024_04_01_00
Name: folly
Version: 2022.01.24.00
Version: 2024.04.01.00
Release: 0
Summary: A C++ utility library
License: MIT
URL: https://github.com/facebook/folly
Source: https://github.com/facebook/folly/releases/download/v%version/folly-v%version.tar.gz
Patch1: fix-asm-execstack.patch
Patch1: arm.diff
BuildRequires: binutils-devel
BuildRequires: boost-devel
BuildRequires: cmake
BuildRequires: double-conversion-devel
BuildRequires: fmt-devel
BuildRequires: gcc-c++
BuildRequires: gflags-devel-static
BuildRequires: gflags-devel
BuildRequires: glog-devel
BuildRequires: libaio-devel
BuildRequires: libboost_context-devel
@@ -49,17 +50,18 @@ BuildRequires: libdwarf-devel-static >= 20170103
%endif
BuildRequires: libevent-devel
BuildRequires: liblz4-devel
BuildRequires: xz-devel
BuildRequires: libsodium-devel
BuildRequires: libunwind-devel
BuildRequires: liburing-devel
BuildRequires: libzstd-devel
BuildRequires: libzstd-devel-static
BuildRequires: lzlib-devel
BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: snappy-devel
BuildRequires: xz-devel
BuildRequires: zlib-devel-static
# BE arches
ExcludeArch: %mips ppc64 s390 s390x %sparc
%description
Folly is a C++ utility library developed at Facebook.
@@ -87,8 +89,9 @@ Development files library for folly, a C++ utility library.
# Since its introduction for ABI purposes, PACKAGE_VERSION was never
# again modified *sigh*
#
%cmake -DCMAKE_CXX_FLAGS="%optflags -ffat-lto-objects" \
-DBUILD_SHARED_LIBS:BOOL=ON -DPACKAGE_VERSION="v%version"
%cmake -DCMAKE_CXX_FLAGS="%optflags -ffat-lto-objects -fPIC" \
-DBUILD_SHARED_LIBS:BOOL=ON -DPACKAGE_VERSION="v%version" \
-DCMAKE_LIBRARY_ARCHITECTURE="%_target_cpu"
%cmake_build
%install