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] [WIP] Draft for change from Godot 3 to 4.
Date: Wed, 18 Jan 2023 09:59:24 +0100	[thread overview]
Message-ID: <20230118085924.t3YVbDgsohmhEJYVOBPQT-5lxbMH_qozS91LeRZ6ZxM@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: 1186 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

[WIP] Draft for change from Godot 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: 4845 bytes --]

From af404e84c881cecb8916f45520cacf436ce1a26c Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Wed, 18 Jan 2023 09:59:07 +0100
Subject: [PATCH] New package: godot-beta

---
 common/shlibs                                |  1 +
 srcpkgs/godot-beta/files/godot-beta.desktop  |  9 ++++
 srcpkgs/godot-beta/patches/10-fix-musl.patch | 13 +++++
 srcpkgs/godot-beta/template                  | 51 ++++++++++++++++++++
 srcpkgs/godot-beta/update                    |  1 +
 5 files changed, 75 insertions(+)
 create mode 100644 srcpkgs/godot-beta/files/godot-beta.desktop
 create mode 100644 srcpkgs/godot-beta/patches/10-fix-musl.patch
 create mode 100644 srcpkgs/godot-beta/template
 create mode 100644 srcpkgs/godot-beta/update

diff --git a/common/shlibs b/common/shlibs
index 32b6337a4f92..c08459747b23 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -2391,6 +2391,7 @@ libtbbmalloc_proxy_debug.so.2 tbb-4.3_1
 libtbbmalloc_proxy.so.2 tbb-4.3_1
 libtbbmalloc.so.2 tbb-4.3_1
 libembree.so.3 embree-3.12.2_1
+libembree3.so.3 embree-3.12.2_1
 libtbb_debug.so.2 tbb-4.3_1
 libtbb.so.2 tbb-4.3_1
 libtbbmalloc_debug.so.2 tbb-4.3_1
diff --git a/srcpkgs/godot-beta/files/godot-beta.desktop b/srcpkgs/godot-beta/files/godot-beta.desktop
new file mode 100644
index 000000000000..acce6dd12c93
--- /dev/null
+++ b/srcpkgs/godot-beta/files/godot-beta.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Godot(Beta)
+Comment=Application for making games
+Exec=/usr/bin/godot-beta %U
+Icon=godot-beta
+Terminal=false
+Type=Application
+Categories=Utility;Game;
+
diff --git a/srcpkgs/godot-beta/patches/10-fix-musl.patch b/srcpkgs/godot-beta/patches/10-fix-musl.patch
new file mode 100644
index 000000000000..42e6111c6afe
--- /dev/null
+++ b/srcpkgs/godot-beta/patches/10-fix-musl.patch
@@ -0,0 +1,13 @@
+--- a/joystick_linux.cpp  2017-12-12 21:28:08.263329050 +0100
++++ b/platform/linuxbsd/joypad_linux.cpp     2017-12-12 21:29:25.500336429 +0100
+@@ -42,6 +42,10 @@
+ #include <libudev.h>
+ #endif
+
++#if !defined(__GLIBC__)
++#include <byteswap.h>
++#endif
++
+ #define LONG_BITS (sizeof(long) * 8)
+ #define test_bit(nr, addr) (((1UL << ((nr) % LONG_BITS)) & ((addr)[(nr) / LONG_BITS])) != 0)
+ #define NBITS(x) ((((x)-1) / LONG_BITS) + 1)
diff --git a/srcpkgs/godot-beta/template b/srcpkgs/godot-beta/template
new file mode 100644
index 000000000000..165c714cba8b
--- /dev/null
+++ b/srcpkgs/godot-beta/template
@@ -0,0 +1,51 @@
+# Template file for 'godot-beta'
+pkgname=godot-beta
+version=4.0
+_betaver=beta13
+revision=1
+archs="x86_64* i686* aarch64* armv7* ppc64*"
+build_style=scons
+make_build_args="platform=linuxbsd target=editor progress=no production=yes
+ optimize=speed deprecated=no builtin_embree=false 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 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 embree-devel harfbuzz-devel libzstd-devel"
+short_desc="Multiplatform 2D and 3D engine"
+maintainer="dataCobra <datacobra@thinkbot.de>"
+license="MIT"
+homepage="https://www.godotengine.org/"
+distfiles="https://downloads.tuxfamily.org/godotengine/${version}/${_betaver}/godot-${version}-${_betaver}.tar.xz"
+checksum=1d3f85c48a644b75a27c8ce4a8b4a7f25a9de703e9efc63cd65d2d714814c144
+nocross=https://build.voidlinux.org/builders/armv7l_builder/builds/6342/steps/shell_3/logs/stdio
+
+CFLAGS+=" -fPIE -fPIC"
+LDFLAGS+=" -pie"
+
+post_extract() {
+	vsed -e 's/#ifdef CRASH_HANDLER_ENABLED/#if defined(CRASH_HANDLER_ENABLED) \&\& defined(__GLIBC__)/' \
+		-i platform/linuxbsd/crash_handler_linuxbsd.cpp
+}
+
+pre_build() {
+	export CXXFLAGS=" $CXXFLAGS "
+}
+
+do_install() {
+	vlicense LICENSE.txt
+	vinstall ${FILESDIR}/godot-beta.desktop 644 /usr/share/applications/
+	vinstall ${wrksrc}/icon.png 644 /usr/share/pixmaps/godot-beta.png
+
+	case "$XBPS_TARGET_MACHINE" in
+		x86_64*|aarch64*) vbin bin/godot.linuxbsd.editor.x86_64 godot-beta;;
+		ppc64*) vbin bin/godot.linuxbsd.editor.ppc64 godot-beta;;
+		*) vbin bin/godot.linuxbsd.editor.x86_32 godot-beta;;
+	esac
+}
diff --git a/srcpkgs/godot-beta/update b/srcpkgs/godot-beta/update
new file mode 100644
index 000000000000..6aa1db057e86
--- /dev/null
+++ b/srcpkgs/godot-beta/update
@@ -0,0 +1 @@
+pattern='/archive/refs/tags/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=-stable\.tar\.gz")'

  parent reply	other threads:[~2023-01-18  8:59 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 [this message]
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 ` [PR PATCH] [Updated] " dataCobra
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=20230118085924.t3YVbDgsohmhEJYVOBPQT-5lxbMH_qozS91LeRZ6ZxM@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).