Github messages for voidlinux
 help / color / mirror / Atom feed
From: dataCobra <dataCobra@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Upgrade Godot from 3 to 4
Date: Wed, 01 Mar 2023 20:19:56 +0100	[thread overview]
Message-ID: <20230301191956.4GnAKs9FCwgIy-puB6ujPFGa-SYE51OkE9oKd20U4xY@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41675@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1170 bytes --]

There is an updated pull request by dataCobra against master on the void-packages repository

https://github.com/dataCobra/void-packages godot-beta
https://github.com/void-linux/void-packages/pull/41675

Upgrade Godot from 3 to 4
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

To check which changes to the template need to be made for Godot 4 to work.
I created the new package godot-beta which can exist beside the regular package.

First and foremost, this PR is about testing. Since the package only can be build on native architectures. We could consider adding this PR to Void but since beta will be obsolete with Godot 4 release I wouldn't recommend it.

Please test the PR on different architectures and give feedback here about the usability.

[ci skip]

A patch file from https://github.com/void-linux/void-packages/pull/41675.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-godot-beta-41675.patch --]
[-- Type: text/x-diff, Size: 7029 bytes --]

From 76acccb1d5b1d9b59979643b685bb310e437e012 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Wed, 1 Mar 2023 20:19:43 +0100
Subject: [PATCH] godot: update to 4.0.

---
 srcpkgs/godot/patches/10-fix-musl.patch |  2 +-
 srcpkgs/godot/patches/ppc.patch         | 87 -------------------------
 srcpkgs/godot/template                  | 40 +++++-------
 3 files changed, 19 insertions(+), 110 deletions(-)
 delete mode 100644 srcpkgs/godot/patches/ppc.patch

diff --git a/srcpkgs/godot/patches/10-fix-musl.patch b/srcpkgs/godot/patches/10-fix-musl.patch
index ed32914e0708..42e6111c6afe 100644
--- a/srcpkgs/godot/patches/10-fix-musl.patch
+++ b/srcpkgs/godot/patches/10-fix-musl.patch
@@ -1,5 +1,5 @@
 --- a/joystick_linux.cpp  2017-12-12 21:28:08.263329050 +0100
-+++ b/platform/x11/joypad_linux.cpp     2017-12-12 21:29:25.500336429 +0100
++++ b/platform/linuxbsd/joypad_linux.cpp     2017-12-12 21:29:25.500336429 +0100
 @@ -42,6 +42,10 @@
  #include <libudev.h>
  #endif
diff --git a/srcpkgs/godot/patches/ppc.patch b/srcpkgs/godot/patches/ppc.patch
deleted file mode 100644
index a6e4d3638fd4..000000000000
--- a/srcpkgs/godot/patches/ppc.patch
+++ /dev/null
@@ -1,87 +0,0 @@
-From 9ae32c08a4cab0a77eed682c9fb188ce7fc6f85a Mon Sep 17 00:00:00 2001
-From: q66 <daniel@octaforge.org>
-Date: Mon, 1 Nov 2021 21:05:31 +0100
-Subject: [PATCH] add ppc detection
-
----
- core/os/os.cpp                    | 14 ++++++++++++++
- modules/lightmapper_cpu/config.py |  3 +++
- modules/raycast/config.py         |  3 +++
- platform/x11/detect.py            |  8 ++++++++
- 4 files changed, 28 insertions(+)
-
-diff --git a/core/os/os.cpp b/core/os/os.cpp
-index 35896d8..948c79a 100644
---- a/core/os/os.cpp
-+++ b/core/os/os.cpp
-@@ -699,6 +699,20 @@ bool OS::has_feature(const String &p_feature) {
- 	if (p_feature == "arm") {
- 		return true;
- 	}
-+#elif defined(__powerpc__)
-+#if defined(__powerpc64__)
-+#if defined(__LITTLE_ENDIAN__)
-+	if (p_feature == "ppc64le") {
-+		return true;
-+	}
-+#endif
-+	if (p_feature == "ppc64") {
-+		return true;
-+	}
-+#endif
-+	if (p_feature == "ppc") {
-+		return true;
-+	}
- #endif
- 
- 	if (_check_internal_feature_support(p_feature))
-diff --git a/modules/lightmapper_cpu/config.py b/modules/lightmapper_cpu/config.py
-index a3a33b3..842f9ae 100644
---- a/modules/lightmapper_cpu/config.py
-+++ b/modules/lightmapper_cpu/config.py
-@@ -15,6 +15,9 @@ def can_build(env, platform):
-     if env["bits"] == "32":
-         return False
- 
-+    if env["arch"].startswith("ppc"):
-+        return False
-+
-     return True
- 
- 
-diff --git a/modules/raycast/config.py b/modules/raycast/config.py
-index 6ea8e0a..bc2d40c 100644
---- a/modules/raycast/config.py
-+++ b/modules/raycast/config.py
-@@ -14,6 +14,9 @@ def can_build(env, platform):
-     if env["bits"] == "32":
-         return False
- 
-+    if env["arch"].startswith("ppc"):
-+        return False
-+
-     return True
- 
- 
-diff --git a/platform/x11/detect.py b/platform/x11/detect.py
-index b6472e2..c1858a7 100644
---- a/platform/x11/detect.py
-+++ b/platform/x11/detect.py
-@@ -119,6 +119,14 @@ def configure(env):
-     if env["bits"] == "default":
-         env["bits"] = "64" if is64 else "32"
- 
-+    if env["arch"] == "":
-+        if platform.machine() == "ppc64le":
-+            env["arch"] = "ppc64le"
-+        elif platform.machine() == "ppc64":
-+            env["arch"] = "ppc64"
-+        elif platform.machine() == "ppc":
-+            env["arch"] = "ppc"
-+
-     ## Compiler configuration
- 
-     if "CXX" in env and "clang" in os.path.basename(env["CXX"]):
--- 
-2.33.0
-
diff --git a/srcpkgs/godot/template b/srcpkgs/godot/template
index aa4fb90e11fc..c273b8bb4052 100644
--- a/srcpkgs/godot/template
+++ b/srcpkgs/godot/template
@@ -1,32 +1,28 @@
 # Template file for 'godot'
 pkgname=godot
-version=3.5.1
+version=4.0
 revision=1
 archs="x86_64* i686* aarch64* armv7* ppc64*"
 build_style=scons
-# Godot contains private copies of libraries
-# that already have been packaged elsewhere.
-# Use builtin bullet for now as it's too old in repos (needs 2.89)
-# Toggle to not use builtin once bullet has been updated
-make_build_args="platform=x11 tools=yes target=release_debug dev=no progress=no
- builtin_bullet=false builtin_libpng=false builtin_libvpx=false
- builtin_libwebp=false builtin_libogg=false builtin_libtheora=false
- builtin_opus=false builtin_libvorbis=false builtin_enet=false
- builtin_zlib=false builtin_freetype=false builtin_mbedtls=false
- builtin_miniupnpc=false builtin_pcre2=false"
+# Build currently fails with embree-4.0.0
+make_build_args="platform=linuxbsd target=editor progress=no production=yes
+ builtin_embree=true builtin_enet=false builtin_freetype=false
+ builtin_graphite=false builtin_harfbuzz=false builtin_libogg=false
+ builtin_libpng=false builtin_libtheora=false builtin_libvorbis=false
+ builtin_libwebp=false builtin_mbedtls=false builtin_miniupnpc=false
+ builtin_pcre2=false builtin_zlib=false builtin_zstd=false"
 hostmakedepends="pkg-config clang"
-makedepends="
- alsa-lib-devel freetype-devel glu-devel libXcursor-devel libXi-devel
- libXinerama-devel libXrender-devel libXrandr-devel libX11-devel
- bullet-devel libpng-devel libvpx-devel libwebp-devel libogg-devel libtheora-devel
- opus-devel opusfile-devel libvorbis-devel libenet-devel zlib-devel mbedtls-devel
- miniupnpc-devel pcre2-devel pulseaudio-devel"
+makedepends="alsa-lib-devel freetype-devel mesa glu-devel libXcursor-devel
+ libXi-devel libXinerama-devel libXrender-devel libXrandr-devel libX11-devel
+ libpng-devel libwebp-devel libogg-devel libtheora-devel libvorbis-devel
+ libenet-devel zlib-devel mbedtls-devel miniupnpc-devel pcre2-devel
+ pulseaudio-devel graphite-devel harfbuzz-devel libzstd-devel"
 short_desc="Multiplatform 2D and 3D engine"
 maintainer="Nick Hahn <nick.hahn@hotmail.de>"
 license="MIT"
 homepage="https://www.godotengine.org/"
 distfiles="https://github.com/godotengine/godot/archive/${version}-stable.tar.gz"
-checksum=164523c1c8aef0b69b135645794f5bece3f63788556a56aa293c118cde457023
+checksum=e6cf28411ae4196db0bcd608f77bcafc0c019ea6dd6cc8c750ca3cc3755df547
 nocross=https://build.voidlinux.org/builders/armv7l_builder/builds/6342/steps/shell_3/logs/stdio
 
 CFLAGS+=" -fPIE -fPIC"
@@ -34,7 +30,7 @@ LDFLAGS+=" -pie"
 
 post_extract() {
 	vsed -e 's/#ifdef CRASH_HANDLER_ENABLED/#if defined(CRASH_HANDLER_ENABLED) \&\& defined(__GLIBC__)/' \
-		-i platform/x11/crash_handler_x11.cpp
+		-i platform/linuxbsd/crash_handler_linuxbsd.cpp
 }
 
 pre_build() {
@@ -47,8 +43,8 @@ do_install() {
 	vinstall ${wrksrc}/icon.png 644 /usr/share/pixmaps/ godot.png
 
 	case "$XBPS_TARGET_MACHINE" in
-		x86_64*|aarch64*) vbin bin/godot.x11.opt.tools.64 godot;;
-		ppc64*) vbin bin/godot.x11.opt.tools.ppc64 godot;;
-		*) vbin bin/godot.x11.opt.tools.32 godot;;
+		x86_64*|aarch64*) vbin bin/godot.linuxbsd.editor.x86_64 godot;;
+		ppc64*) vbin bin/godot.linuxbsd.editor.ppc64 godot;;
+		*) vbin bin/godot.linuxbsd.editor.x86_32 godot;;
 	esac
 }

  parent reply	other threads:[~2023-03-01 19:19 UTC|newest]

Thread overview: 86+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-16  8:14 [PR PATCH] [WIP] New package: godot-beta dataCobra
2023-01-16  8:16 ` classabbyamp
2023-01-18  8:59 ` [PR PATCH] [Updated] [WIP] Draft for change from Godot 3 to 4 dataCobra
2023-01-18  8:59 ` dataCobra
2023-03-01 17:16 ` lun-4
2023-03-01 17:31 ` dataCobra
2023-03-01 17:32 ` dataCobra
2023-03-01 18:18 ` [PR PATCH] [Updated] " dataCobra
2023-03-01 19:16 ` [PR PATCH] [Updated] Upgrade Godot from " dataCobra
2023-03-01 19:18 ` dataCobra
2023-03-01 19:19 ` dataCobra [this message]
2023-03-01 19:21 ` dataCobra
2023-03-01 19:23 ` dataCobra
2023-03-05 19:52 ` jstnas
2023-03-08  6:29 ` [PR PATCH] [Updated] " dataCobra
2023-03-08  6:30 ` dataCobra
2023-03-08 18:36 ` jstnas
2023-03-09  8:17 ` dataCobra
2023-03-21  0:22 ` zen0bit
2023-03-21 12:59 ` jstnas
2023-03-21 13:38 ` eljamm
2023-03-21 18:18 ` jstnas
2023-03-23  6:23 ` [PR PATCH] [Updated] " dataCobra
2023-03-23  6:25 ` dataCobra
2023-03-23  6:32 ` dataCobra
2023-03-23  6:33 ` [PR PATCH] [Updated] " dataCobra
2023-03-23  6:34 ` dataCobra
2023-03-23 13:43 ` dataCobra
2023-03-23 16:55 ` fgietzen
2023-03-24  1:50 ` zen0bit
2023-03-24  1:53 ` zen0bit
2023-03-24  1:53 ` zen0bit
2023-03-26 16:37 ` Newchair2644
2023-03-26 16:40 ` Newchair2644
2023-03-28  9:54 ` eljamm
2023-03-28  9:55 ` eljamm
2023-03-29  2:52 ` Newchair2644
2023-03-29 12:30 ` eljamm
2023-04-12  8:08 ` [PR PATCH] [Updated] " dataCobra
2023-04-12  8:11 ` godot: update to 4.0.2 dataCobra
2023-04-12  8:12 ` dataCobra
2023-04-12 12:56 ` eljamm
2023-05-14  7:33 ` [PR PATCH] [Updated] " dataCobra
2023-05-15  5:37 ` dataCobra
2023-05-25 15:12 ` [PR PATCH] [Updated] " dataCobra
2023-05-25 15:39 ` dataCobra
2023-05-27 18:18 ` godot: update to 4.0.3 bilebucket
2023-05-28 13:26 ` eljamm
2023-06-02 12:50 ` obunden
2023-06-04  8:04 ` bilebucket
2023-06-12  7:45 ` [PR PATCH] [Updated] " dataCobra
2023-06-16 11:30 ` dataCobra
2023-06-16 11:45 ` [PR REVIEW] " leahneukirchen
2023-06-16 11:50 ` dataCobra
2023-06-25 18:25 ` [PR PATCH] [Updated] " dataCobra
2023-06-27  8:30 ` dataCobra
2023-06-27  8:37 ` [PR REVIEW] " dataCobra
2023-06-27  8:38 ` dataCobra
2023-06-27 16:23 ` leahneukirchen
2023-06-27 18:39 ` [PR PATCH] [Updated] " dataCobra
2023-06-27 18:42 ` [PR REVIEW] " dataCobra
2023-06-29  6:21 ` [PR PATCH] [Updated] " dataCobra
2023-06-29 13:15 ` leahneukirchen
2023-06-29 13:45 ` [PR PATCH] [Updated] " dataCobra
2023-06-29 13:46 ` dataCobra
2023-06-29 13:53 ` dataCobra
2023-06-29 13:53 ` dataCobra
2023-07-01  6:23 ` astralchan
2023-07-01  6:25 ` astralchan
2023-07-01  6:34 ` [PR REVIEW] " astralchan
2023-07-01  6:38 ` astralchan
2023-07-01  6:50 ` astralchan
2023-07-01 14:38 ` leahneukirchen
2023-07-01 14:46 ` dataCobra
2023-07-01 14:53 ` leahneukirchen
2023-07-01 15:06 ` dataCobra
2023-07-02  7:05 ` dataCobra
2023-07-02  7:07 ` dataCobra
2023-07-02  7:08 ` dataCobra
2023-07-02  7:09 ` [PR PATCH] [Updated] " dataCobra
2023-07-02  7:12 ` dataCobra
2023-07-02  7:17 ` dataCobra
2023-07-02  8:45 ` dataCobra
2023-07-02  8:45 ` dataCobra
2023-07-03 12:19 ` [PR PATCH] [Merged]: " leahneukirchen
2023-07-04  3:59 ` [PR REVIEW] " astralchan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230301191956.4GnAKs9FCwgIy-puB6ujPFGa-SYE51OkE9oKd20U4xY@z \
    --to=datacobra@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).