mirror of
https://abf.rosa.ru/djam/0ad.git
synced 2025-02-23 06:52:48 +00:00
New version 0.0.21
Now uses mozjs-38 instead of mozjs-31
This commit is contained in:
parent
55a5aeaa18
commit
3736b85f77
5 changed files with 65 additions and 11 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
||||||
sources:
|
sources:
|
||||||
0ad-0.0.20-alpha-unix-build.tar.xz: 4c056ee114e6b50f456ad14be961a101728e99a3
|
0ad-0.0.21-alpha-unix-build.tar.xz: efcdc0a15011df39d604aefc7a5d784158a9b884
|
||||||
|
|
11
0ad-0.0.21-desktop.patch
Normal file
11
0ad-0.0.21-desktop.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
diff -urN 0ad-0.0.21-alpha/build/resources/0ad.desktop 0ad-0.0.21-alpha-patched/build/resources/0ad.desktop
|
||||||
|
--- 0ad-0.0.21-alpha/build/resources/0ad.desktop 2016-11-02 04:07:21.000000000 +1000
|
||||||
|
+++ 0ad-0.0.21-alpha-patched/build/resources/0ad.desktop 2016-12-05 15:54:01.181109914 +1000
|
||||||
|
@@ -6,7 +6,6 @@
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Categories=Game;StrategyGame;
|
||||||
|
-URL=https://play0ad.com/
|
||||||
|
Comment=A real-time strategy game of ancient warfare
|
||||||
|
Comment[de]=Ein Echtzeitstrategiespiel, das die Kriegsführung der Antike behandelt
|
||||||
|
Comment[es]=Un juego de estrategia en tiempo real de guerra antigua
|
38
0ad-mozjs-incompatible.patch
Normal file
38
0ad-mozjs-incompatible.patch
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
diff -uNr 0ad-0.0.21-alpha.orig/source/scriptinterface/ScriptTypes.h 0ad-0.0.21-alpha/source/scriptinterface/ScriptTypes.h
|
||||||
|
--- 0ad-0.0.21-alpha.orig/source/scriptinterface/ScriptTypes.h 2016-09-02 18:19:31.000000000 +0200
|
||||||
|
+++ 0ad-0.0.21-alpha/source/scriptinterface/ScriptTypes.h 2016-11-09 07:14:16.227277422 +0100
|
||||||
|
@@ -79,19 +79,6 @@
|
||||||
|
include paths.
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#if MOZJS_MINOR_VERSION != 3
|
||||||
|
-#error Your compiler is trying to use an untested minor version of the \
|
||||||
|
-SpiderMonkey library. If you are a package maintainer, please make sure \
|
||||||
|
-to check very carefully that this version does not change the behaviour \
|
||||||
|
-of the code executed by SpiderMonkey. Different parts of the game (e.g. \
|
||||||
|
-the multiplayer mode) rely on deterministic behaviour of the JavaScript \
|
||||||
|
-engine. A simple way for testing this would be playing a network game \
|
||||||
|
-with one player using the old version and one player using the new \
|
||||||
|
-version. Another way for testing is running replays and comparing the \
|
||||||
|
-final hash (check trac.wildfiregames.com/wiki/Debugging#Replaymode). \
|
||||||
|
-For more information check this link: trac.wildfiregames.com/wiki/Debugging#Outofsync
|
||||||
|
-#endif
|
||||||
|
-
|
||||||
|
class ScriptInterface;
|
||||||
|
|
||||||
|
#endif // INCLUDED_SCRIPTTYPES
|
||||||
|
diff -uNr 0ad-0.0.21-alpha.orig/source/simulation2/serialization/BinarySerializer.cpp 0ad-0.0.21-alpha/source/simulation2/serialization/BinarySerializer.cpp
|
||||||
|
--- 0ad-0.0.21-alpha.orig/source/simulation2/serialization/BinarySerializer.cpp 2016-09-18 11:34:45.000000000 +0200
|
||||||
|
+++ 0ad-0.0.21-alpha/source/simulation2/serialization/BinarySerializer.cpp 2016-11-09 07:29:10.293824242 +0100
|
||||||
|
@@ -145,11 +145,7 @@
|
||||||
|
const JSClass* jsclass = JS_GetClass(obj);
|
||||||
|
if (!jsclass)
|
||||||
|
throw PSERROR_Serialize_ScriptError("JS_GetClass failed");
|
||||||
|
-// TODO: Remove this workaround for upstream API breakage when updating SpiderMonkey
|
||||||
|
-// See https://bugzilla.mozilla.org/show_bug.cgi?id=1236373
|
||||||
|
-#define JSCLASS_CACHED_PROTO_WIDTH js::JSCLASS_CACHED_PROTO_WIDTH
|
||||||
|
JSProtoKey protokey = JSCLASS_CACHED_PROTO_KEY(jsclass);
|
||||||
|
-#undef JSCLASS_CACHED_PROTO_WIDTH
|
||||||
|
|
||||||
|
if (protokey == JSProto_Object)
|
||||||
|
{
|
|
@ -1,6 +1,7 @@
|
||||||
--- 0ad-0.0.16-alpha/build/premake/premake4.lua.orig 2014-05-17 22:21:52.787713008 +0200
|
diff -urN 0ad-0.0.21-alpha/build/premake/premake4.lua 0ad-0.0.21-alpha-patched/build/premake/premake4.lua
|
||||||
+++ 0ad-0.0.16-alpha/build/premake/premake4.lua 2014-05-17 22:22:39.659845979 +0200
|
--- 0ad-0.0.21-alpha/build/premake/premake4.lua 2016-09-18 18:54:27.000000000 +1000
|
||||||
@@ -356,26 +356,6 @@
|
+++ 0ad-0.0.21-alpha-patched/build/premake/premake4.lua 2016-12-05 13:42:29.678426569 +1000
|
||||||
|
@@ -368,26 +368,6 @@
|
||||||
defines { "INSTALLED_LIBDIR=" .. _OPTIONS["libdir"] }
|
defines { "INSTALLED_LIBDIR=" .. _OPTIONS["libdir"] }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -17,7 +18,7 @@
|
||||||
-
|
-
|
||||||
- -- Adding the executable path and taking care of correct escaping
|
- -- Adding the executable path and taking care of correct escaping
|
||||||
- if _ACTION == "gmake" then
|
- if _ACTION == "gmake" then
|
||||||
- linkoptions { "-Wl,-rpath,'$$ORIGIN'" }
|
- linkoptions { "-Wl,-rpath,'$$ORIGIN'" }
|
||||||
- elseif _ACTION == "codeblocks" then
|
- elseif _ACTION == "codeblocks" then
|
||||||
- linkoptions { "-Wl,-R\\\\$$$ORIGIN" }
|
- linkoptions { "-Wl,-R\\\\$$$ORIGIN" }
|
||||||
- end
|
- end
|
||||||
|
|
16
0ad.spec
16
0ad.spec
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
Summary: Cross-Platform RTS Game of Ancient Warfare
|
Summary: Cross-Platform RTS Game of Ancient Warfare
|
||||||
Name: 0ad
|
Name: 0ad
|
||||||
Version: 0.0.20
|
Version: 0.0.21
|
||||||
Release: 1
|
Release: 1
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
License: GPLv2+ and BSD and MIT and IBM
|
License: GPLv2+ and BSD and MIT and IBM
|
||||||
|
@ -28,12 +28,14 @@ Source0: http://releases.wildfiregames.com/%{name}-%{version}-alpha-unix-build.t
|
||||||
# and disabled options were not added to the manual page.
|
# and disabled options were not added to the manual page.
|
||||||
Source1: %{name}.6
|
Source1: %{name}.6
|
||||||
# http://trac.wildfiregames.com/ticket/1421
|
# http://trac.wildfiregames.com/ticket/1421
|
||||||
Patch0: %{name}-rpath.patch
|
Patch0: 0ad-rpath.patch
|
||||||
# Only do fcollada debug build with enabling debug maintainer mode
|
# Only do fcollada debug build with enabling debug maintainer mode
|
||||||
# It also prevents assumption there that it is building in x86
|
# It also prevents assumption there that it is building in x86
|
||||||
Patch1: %{name}-0.0.19-debug.patch
|
Patch1: 0ad-0.0.19-debug.patch
|
||||||
|
Patch2: 0ad-mozjs-incompatible.patch
|
||||||
# After some trial&error this corrects a %%check failure with gcc 4.9 on i686
|
# After some trial&error this corrects a %%check failure with gcc 4.9 on i686
|
||||||
Patch3: %{name}-check.patch
|
Patch3: 0ad-check.patch
|
||||||
|
Patch4: 0ad-0.0.21-desktop.patch
|
||||||
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
|
@ -55,7 +57,7 @@ BuildRequires: pkgconfig(libenet)
|
||||||
BuildRequires: pkgconfig(libpng)
|
BuildRequires: pkgconfig(libpng)
|
||||||
BuildRequires: pkgconfig(libxml-2.0)
|
BuildRequires: pkgconfig(libxml-2.0)
|
||||||
BuildRequires: pkgconfig(libzip)
|
BuildRequires: pkgconfig(libzip)
|
||||||
BuildRequires: pkgconfig(mozjs-31)
|
BuildRequires: pkgconfig(mozjs-38)
|
||||||
BuildRequires: pkgconfig(nspr)
|
BuildRequires: pkgconfig(nspr)
|
||||||
BuildRequires: pkgconfig(openal)
|
BuildRequires: pkgconfig(openal)
|
||||||
BuildRequires: pkgconfig(sdl2)
|
BuildRequires: pkgconfig(sdl2)
|
||||||
|
@ -96,7 +98,9 @@ hobbyist game developers, since 2001.
|
||||||
# disable debug build, and "int 0x3" to trap to debugger (x86 only)
|
# disable debug build, and "int 0x3" to trap to debugger (x86 only)
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%endif
|
%endif
|
||||||
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
|
%patch4 -p1
|
||||||
|
|
||||||
%if %{with_system_nvtt}
|
%if %{with_system_nvtt}
|
||||||
rm -fr libraries/nvtt
|
rm -fr libraries/nvtt
|
||||||
|
@ -111,7 +115,7 @@ build/workspaces/update-workspaces.sh \
|
||||||
--bindir %{_gamesbindir} \
|
--bindir %{_gamesbindir} \
|
||||||
--datadir %{_gamesdatadir}/%{name} \
|
--datadir %{_gamesdatadir}/%{name} \
|
||||||
--libdir %{_libdir}/%{name} \
|
--libdir %{_libdir}/%{name} \
|
||||||
--with-system-mozjs31 \
|
--with-system-mozjs38 \
|
||||||
%if %{with_system_nvtt}
|
%if %{with_system_nvtt}
|
||||||
--with-system-nvtt \
|
--with-system-nvtt \
|
||||||
%endif
|
%endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue