Accepting request 1074343 from games

Update to 4.0.1

OBS-URL: https://build.opensuse.org/request/show/1074343
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/godot?expand=0&rev=26
This commit is contained in:
Dominique Leuenberger 2023-03-26 18:19:34 +00:00 committed by Git OBS Bridge
commit ab53c9e70e
7 changed files with 54 additions and 67 deletions

View File

@ -1,59 +0,0 @@
From b113e6d4ff18dc1b1e6f4ec1bd0e307fd1d8623d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= <rverschelde@gmail.com>
Date: Thu, 9 Mar 2023 10:46:35 +0100
Subject: [PATCH] Vulkan: Fix VMA build with GCC 13
Fixes #74647.
---
thirdparty/vulkan/patches/VMA-fix-gcc13.patch | 26 +++++++++++++++++++
thirdparty/vulkan/vk_mem_alloc.h | 4 +++
2 files changed, 30 insertions(+)
create mode 100644 thirdparty/vulkan/patches/VMA-fix-gcc13.patch
diff --git a/thirdparty/vulkan/patches/VMA-fix-gcc13.patch b/thirdparty/vulkan/patches/VMA-fix-gcc13.patch
new file mode 100644
index 000000000000..08928503a768
--- /dev/null
+++ b/thirdparty/vulkan/patches/VMA-fix-gcc13.patch
@@ -0,0 +1,26 @@
+From 29d492b60c84ca784ea0943efc7d2e6e0f3bdaac Mon Sep 17 00:00:00 2001
+From: Adam Sawicki <adam.sawicki@amd.com>
+Date: Thu, 19 Jan 2023 13:19:55 +0100
+Subject: [PATCH] Added missing #include <cstdio>
+
+For snprintf, for compatibility with GCC 13.
+Fixes #312 - thanks @marxin !
+---
+ thirdparty/vulkan/vk_mem_alloc.h | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/thirdparty/vulkan/vk_mem_alloc.h b/thirdparty/vulkan/vk_mem_alloc.h
+index b787c36..0fe459b 100644
+--- a/thirdparty/vulkan/vk_mem_alloc.h
++++ b/thirdparty/vulkan/vk_mem_alloc.h
+@@ -2614,6 +2614,10 @@ VMA_CALL_PRE void VMA_CALL_POST vmaFreeStatsString(
+ #include <bit> // For std::popcount
+ #endif
+
++#if VMA_STATS_STRING_ENABLED
++ #include <cstdio> // For snprintf
++#endif
++
+ /*******************************************************************************
+ CONFIGURATION SECTION
+
diff --git a/thirdparty/vulkan/vk_mem_alloc.h b/thirdparty/vulkan/vk_mem_alloc.h
index 184ee005d827..ea30060649f2 100644
--- a/thirdparty/vulkan/vk_mem_alloc.h
+++ b/thirdparty/vulkan/vk_mem_alloc.h
@@ -2582,6 +2582,10 @@ VMA_CALL_PRE void VMA_CALL_POST vmaFreeStatsString(
#include <bit> // For std::popcount
#endif
+#if VMA_STATS_STRING_ENABLED
+ #include <cstdio> // For snprintf
+#endif
+
/*******************************************************************************
CONFIGURATION SECTION

View File

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

View File

@ -1 +0,0 @@
8d92d2250176e2e5751e126ece72b78e6a124ee556111a8d8374c106e801b67f godot-4.0-stable.tar.xz

View File

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

View File

@ -0,0 +1 @@
4a9725224f47cfb202d14ac5306eea475b2e4864780022a3df21d0cfffcd0fe1 godot-4.0.1-stable.tar.xz

View File

@ -1,3 +1,50 @@
-------------------------------------------------------------------
Tue Mar 22 12:00:00 UTC 2023 - cunix@mail.de
- Update to 4.0.1
Added:
* Set the unlit/unshaded extension when importing/exporting glTF
* Keycode project conversion
* Conversion for common Theme Overrides
* Remember previously selected TileMap tile
Changed:
* Check for type mismatch in PropertyTweener.from()
* Propagate errors when creating an OpenGL context fails in X11
* Automatically reparent editor message dialogs to avoid error spam
* Disallow creating a project in the Home or Documents folder
* No autocomplete numbers in GDScript
* Add invalid font scaling check, restrict Linux/BSD system fonts
lookup to TrueType/CFF only (fixes crash in donors screen)
* Do not convert lines that start with a comment
* Don't strip whitespace when converting
* Use linear filtering without mipmaps for ProceduralSkyMaterial
and PhysicalSkyMaterial
Fixed:
* VMA build with GCC 13
* Don't try to link system embree3 on unsupported archs
* Logic related to editing audio buses and prevent crashes
* Set properties of ImageTexture3D when creating
* Crashing on startup if project has scripted theme types
* Disable local space for Blender-style transforms
* Toaster notification circle flickering
* Crash when showing file in FileSystem dock
* Cache corruption when saving resources in the editor
* MultiNodeEdit not cleared after deleting nodes
* Crash when dumping extension API in a non-writable directory
* Missing handler for removing font sizes in the theme editor
* NavigationAgent3D debug path duplicated points
* Check if required xkb functions exist before using it
* Broken shortcut key input
* Avoid copying CanvasTexture when updating proxy
And more:
https://downloads.tuxfamily.org/godotengine/4.0.1/Godot_v4.0.1-stable_changelog_chrono.txt
- dropped upstreamed VMA-fix-gcc13.patch.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 9 12:00:00 UTC 2023 - cunix@mail.de Thu Mar 9 12:00:00 UTC 2023 - cunix@mail.de

View File

@ -24,7 +24,7 @@
%define ca_bundle %{_localstatedir}/lib/ca-certificates/ca-bundle.pem %define ca_bundle %{_localstatedir}/lib/ca-certificates/ca-bundle.pem
Name: godot Name: godot
Version: 4.0 Version: 4.0.1
Release: 0 Release: 0
Summary: Cross-Platform Game Engine with an Integrated Editor Summary: Cross-Platform Game Engine with an Integrated Editor
License: MIT License: MIT
@ -36,8 +36,8 @@ Source1: https://downloads.tuxfamily.org/godotengine/%{version}/%{name}-%
Patch0: certs_fallback.patch Patch0: certs_fallback.patch
# Heap-buffer-overflow in bundled tinyexr # Heap-buffer-overflow in bundled tinyexr
Patch1: tinyexr_thirdparty_upstream.patch Patch1: tinyexr_thirdparty_upstream.patch
Patch2: VMA-fix-gcc13.patch # regression in scons > 4.4.0, hopefully fixed in 4.5.2
Patch3: scons_regression.patch Patch2: scons_regression.patch
BuildRequires: Mesa-devel BuildRequires: Mesa-devel
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils
BuildRequires: fdupes BuildRequires: fdupes
@ -235,7 +235,6 @@ Bash command line completion support for %{name} and %{name}-runner
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1
cp thirdparty/README.md thirdparty_README.md cp thirdparty/README.md thirdparty_README.md