Accepting request 1154589 from devel:microos

OBS-URL: https://build.opensuse.org/request/show/1154589
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/abseil-cpp?expand=0&rev=35
This commit is contained in:
Ana Guerrero 2024-03-05 17:46:57 +00:00 committed by Git OBS Bridge
commit 2db0eb977b
7 changed files with 44 additions and 25 deletions

BIN
abseil-cpp-20230802.1.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

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

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Sun Mar 3 06:35:57 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
- update to 20240116.1:
* Add absl::NoDestructor<T> to simplify defining static types
that do not need to be destructed upon program exit.
* Add configurable verbose logging (also known as VLOG).
* Added absl::Overload(), which returns a functor that provides
overloads based on the functors passed to it. Note that this
functionality requires C++17 or newer.
* Breaking Change: AbslHashValue() no longer accepts C-style
arrays as a parameter, caller need to wrap C-string literals in
absl::string_view.
* Breaking Change: absl::weak_equality and absl::strong_equality
have been removed. The corresponding std types were removed
before C++20 was finalized
-------------------------------------------------------------------
Fri Jan 19 15:53:47 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@ -16,15 +16,18 @@
#
%define lname libabsl2308_0_0
%define lname libabsl2401_0_0
Name: abseil-cpp
Version: 20230802.1
Version: 20240116.1
Release: 0
Summary: C++11 libraries which augment the C++ stdlib
License: Apache-2.0
URL: https://abseil.io/
Source0: https://github.com/abseil/abseil-cpp/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source0: https://github.com/abseil/abseil-cpp/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1: baselibs.conf
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: pkgconfig
%if 0%{?suse_version} && 0%{?suse_version} < 1500
BuildRequires: gcc7
BuildRequires: gcc7-c++
@ -32,9 +35,6 @@ BuildRequires: gcc7-c++
BuildRequires: gcc >= 7
BuildRequires: gcc-c++ >= 7
%endif
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: pkgconfig
# PATCH-FIX-OPENSUSE options-{old,cxx17}.patch Ensure ABI stability regardless of compiler options
%if 0%{?suse_version} && 0%{?suse_version} < 1550
Patch0: options-old.patch
@ -82,14 +82,14 @@ export CXX="g++-7"
%cmake_install
%fdupes %{buildroot}/%{_prefix}
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%ldconfig_scriptlets -n %{lname}
%files -n %{lname}
%license LICENSE
%{_libdir}/libabsl_*.so.*
%files devel
%license LICENSE
%doc README.md
%{_includedir}/absl
%{_libdir}/cmake/absl

View File

@ -1 +1 @@
libabsl2308_0_0
libabsl2401_0_0

View File

@ -3,10 +3,10 @@ to avoid mysterious linker errors when using wrong C++ version in compiler.
This version of patch is for new systems (Tumbleweed) where Abseil is built with C++17 support.
For more information, see “notice for package managers” in options.h
Index: abseil-cpp-20230125.2/absl/base/options.h
Index: abseil-cpp-20240116.1/absl/base/options.h
===================================================================
--- abseil-cpp-20230125.2.orig/absl/base/options.h
+++ abseil-cpp-20230125.2/absl/base/options.h
--- abseil-cpp-20240116.1.orig/absl/base/options.h
+++ abseil-cpp-20240116.1/absl/base/options.h
@@ -94,7 +94,7 @@
// User code should not inspect this macro. To check in the preprocessor if
// absl::any is a typedef of std::any, use the feature macro ABSL_USES_STD_ANY.
@ -41,5 +41,5 @@ Index: abseil-cpp-20230125.2/absl/base/options.h
-#define ABSL_OPTION_USE_STD_VARIANT 2
+#define ABSL_OPTION_USE_STD_VARIANT 1
// ABSL_OPTION_USE_INLINE_NAMESPACE
// ABSL_OPTION_USE_STD_ORDERING
//

View File

@ -3,9 +3,11 @@ to avoid mysterious linker errors when using wrong C++ version in compiler.
This version of the patch is for old systems where the system compiler does not use C++17.
For more information, see “notice for package managers” in options.h
--- a/absl/base/options.h 2021-11-03 16:26:14.000000000 +0100
+++ b/absl/base/options.h 2022-06-28 22:49:52.830727200 +0200
@@ -100,7 +100,7 @@
Index: abseil-cpp-20240116.1/absl/base/options.h
===================================================================
--- abseil-cpp-20240116.1.orig/absl/base/options.h
+++ abseil-cpp-20240116.1/absl/base/options.h
@@ -94,7 +94,7 @@
// User code should not inspect this macro. To check in the preprocessor if
// absl::any is a typedef of std::any, use the feature macro ABSL_USES_STD_ANY.
@ -14,7 +16,7 @@ For more information, see “notice for package managers” in options.h
// ABSL_OPTION_USE_STD_OPTIONAL
@@ -127,7 +127,7 @@
@@ -121,7 +121,7 @@
// absl::optional is a typedef of std::optional, use the feature macro
// ABSL_USES_STD_OPTIONAL.
@ -23,7 +25,7 @@ For more information, see “notice for package managers” in options.h
// ABSL_OPTION_USE_STD_STRING_VIEW
@@ -154,7 +154,7 @@
@@ -148,7 +148,7 @@
// absl::string_view is a typedef of std::string_view, use the feature macro
// ABSL_USES_STD_STRING_VIEW.
@ -32,12 +34,12 @@ For more information, see “notice for package managers” in options.h
// ABSL_OPTION_USE_STD_VARIANT
//
@@ -180,7 +180,7 @@
@@ -174,7 +174,7 @@
// absl::variant is a typedef of std::variant, use the feature macro
// ABSL_USES_STD_VARIANT.
-#define ABSL_OPTION_USE_STD_VARIANT 2
+#define ABSL_OPTION_USE_STD_VARIANT 0
// ABSL_OPTION_USE_INLINE_NAMESPACE
// ABSL_OPTION_USE_STD_ORDERING
//