Package Details: godot 2.1.4-2

Git Clone URL: https://aur.archlinux.org/godot.git (read-only)
Package Base: godot
Description: An advanced, feature packed, multi-platform 2D and 3D game engine
Upstream URL: http://www.godotengine.org
Keywords: 2d 3d engine game
Licenses: MIT
Conflicts: godot-git, godot-pulse
Submitter: shackra
Maintainer: shackra
Last Packager: shackra
Votes: 77
Popularity: 2.557868
First Submitted: 2014-12-21 19:46
Last Updated: 2017-10-29 04:12

Pinned Comments

shackra commented on 2017-10-29 04:16

fix: Updates Python scripts to be compatible with Python 2/3

Latest Comments

shackra commented on 2017-10-29 19:46

I was able to build Godot inside a clean chroot just the patch I applied!

Check your environment because that's not normal

schraf commented on 2017-10-29 19:42

I also had to make the following changes for me to build:

diff --git a/SConstruct b/SConstruct
index 0ea0ca3..8410fcb 100644
--- a/SConstruct
+++ b/SConstruct
@@ -260,17 +260,17 @@ if selected_platform in platform_list:
CCFLAGS = env.get('CCFLAGS', '')
env['CCFLAGS'] = ''

- env.Append(CCFLAGS=string.split(str(CCFLAGS)))
+ env.Append(CCFLAGS=str(CCFLAGS).split())

CFLAGS = env.get('CFLAGS', '')
env['CFLAGS'] = ''

- env.Append(CFLAGS=string.split(str(CFLAGS)))
+ env.Append(CFLAGS=str(CFLAGS).split())

LINKFLAGS = env.get('LINKFLAGS', '')
env['LINKFLAGS'] = ''

- env.Append(LINKFLAGS=string.split(str(LINKFLAGS)))
+ env.Append(LINKFLAGS=str(LINKFLAGS).split())

flag_list = platform_flags[selected_platform]
for f in flag_list:
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index 9e2c9f6..469f713 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -94,7 +94,7 @@ def configure(env):
# Hack to prevent building this branch with GCC 6+, which trigger segfaults due to UB when dereferencing pointers in Object::cast_to
# This is fixed in the master branch, for 2.1 we just prevent using too recent GCC versions.
import subprocess
- gcc_major = subprocess.check_output(['gcc', '-dumpversion'])[0].split()[0]
+ gcc_major = subprocess.check_output(['gcc', '-dumpversion']).decode('utf-8')[0]
if (int(gcc_major) > 5):
print("Your configured compiler appears to be GCC %s, which triggers issues in release builds for this version of Godot (fixed in Godot 3.0+)." % gcc_major)
print("You can use the Clang compiler instead with the `use_llvm=yes` option, or configure another compiler such as GCC 5 using the CC, CXX and LD flags.")
@@ -148,7 +148,7 @@ def configure(env):
# Currently not compatible with OpenSSL 1.1.0+
# https://github.com/godotengine/godot/issues/8624
import subprocess
- openssl_version = subprocess.check_output(['pkg-config', 'openssl', '--modversion']).strip('\n')
+ openssl_version = subprocess.check_output(['pkg-config', 'openssl', '--modversion']).decode('utf-8').strip('\n')
if (openssl_version >= "1.1.0"):
print("Error: Found system-installed OpenSSL %s, currently only supporting version 1.0.x." % openssl_version)
print("Aborting.. You can compile with 'builtin_openssl=yes' to use the bundled version.\n")

shackra commented on 2017-10-29 04:16

fix: Updates Python scripts to be compatible with Python 2/3

shackra commented on 2017-10-20 17:18

@vicp74 that's why I just reported the bug, because I hit the spiral of pain too lol

vicp74 commented on 2017-10-19 21:40

Thank you for your time @shackra.

Scons 3.0.0 claims to support Python 2.7 too, but I don't know if it's by default or there's some undocumented flag. Either way it doesn't support the print function without parentheses. I've tried to fix every *.py and scons' file in this package but it was an infinite spiral of pain! So I'll wait for the official devs.

shackra commented on 2017-10-19 18:06

@vicp74 I have reported the issue here https://github.com/godotengine/godot/issues/12109

The best is to wait until they fix this, because the alternative is to install scons for Python2 during the install with pip and I don't think that's a good idea. You could try this thou.

shackra commented on 2017-10-14 22:47

@vicp74 seems like scons depends on python which replaces python3 thus the error, let me fix it.

shackra commented on 2017-10-14 22:37

@vicp74 let me take a look at it because it compiles for me

vicp74 commented on 2017-10-14 22:34

It doesn't build for me. It seems to expect python2, so it'd be strange to be the only one with this problem. Am I doing something wrong? Here's the output of the build() using makepkg:

scons: Reading SConscript files ...
File "godot/src/godot-2.1.4-stable/methods.py", line 24
print x

^
SyntaxError: Missing parentheses in call to 'print'

shackra commented on 2017-09-24 14:32

Thanks @Lenovsky

All comments