Accepting request 957395 from games
OBS-URL: https://build.opensuse.org/request/show/957395 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/0ad?expand=0&rev=2
This commit is contained in:
commit
9257ccc4dd
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Feb 20 14:52:56 UTC 2022 - Aaron Puchert <aaronpuchert@alice-dsl.net>
|
||||||
|
|
||||||
|
- Add glibc-2.35.patch: Fix build with glibc 2.35.
|
||||||
|
- Use system mozjs on Leap 15.4 as well.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 11 19:34:38 UTC 2022 - Simon Puchert <simonpuchert@alice.de>
|
Tue Jan 11 19:34:38 UTC 2022 - Simon Puchert <simonpuchert@alice.de>
|
||||||
|
|
||||||
|
7
0ad.spec
7
0ad.spec
@ -22,8 +22,8 @@
|
|||||||
%else
|
%else
|
||||||
%bcond_with nvtt
|
%bcond_with nvtt
|
||||||
%endif
|
%endif
|
||||||
#
|
# We can use the system mozjs on Tumbleweed and Leap 15.4.
|
||||||
%if 0%{?suse_version} >= 1550
|
%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150400
|
||||||
%bcond_without system_mozjs
|
%bcond_without system_mozjs
|
||||||
%else
|
%else
|
||||||
%bcond_with system_mozjs
|
%bcond_with system_mozjs
|
||||||
@ -44,6 +44,8 @@ Patch0: avoid_duplicate_global_symbol_from_asm.patch
|
|||||||
Patch1: no-version-check.patch
|
Patch1: no-version-check.patch
|
||||||
# PATCH-FIX-OPENSUSE -- Use the newer variant of this function (related to mozjs78 upgrade)
|
# PATCH-FIX-OPENSUSE -- Use the newer variant of this function (related to mozjs78 upgrade)
|
||||||
Patch2: PrepareZoneForGC.patch
|
Patch2: PrepareZoneForGC.patch
|
||||||
|
# PATCH-FIX-UPSTREAM -- Don't define M_PIf if glibc already provides it
|
||||||
|
Patch3: glibc-2.35.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libXcursor-devel
|
BuildRequires: libXcursor-devel
|
||||||
@ -93,6 +95,7 @@ flexible game engine.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}-alpha
|
%setup -q -n %{name}-%{version}-alpha
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch3 -p1
|
||||||
%if %{with system_mozjs}
|
%if %{with system_mozjs}
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
|
13
glibc-2.35.patch
Normal file
13
glibc-2.35.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.cpp
|
||||||
|
index d4796ec..d0e8c9a 100644
|
||||||
|
--- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.cpp
|
||||||
|
+++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.cpp
|
||||||
|
@@ -29,7 +29,9 @@ using AtlasMessage::Shareable;
|
||||||
|
|
||||||
|
static Observable<AtlasMessage::sEnvironmentSettings> g_EnvironmentSettings;
|
||||||
|
|
||||||
|
+#ifndef M_PIf
|
||||||
|
const float M_PIf = 3.14159265f;
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////
|
Loading…
x
Reference in New Issue
Block a user