Skip to contentSkip to conversation

package/irrlicht: new package

PATCH New Romain Naour 2 participants 31 messages Jun 12, 2017 – Jul 13, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/13 package/irrlicht: new package

---
v2: Move to Target packages > Libraries > Graphics (Bernd)
Place Zlib license first (Arnout)
Add an explanation why we can't use libraries provided by Buildroot. (Arnout))

---
 DEVELOPERS                                         |  1 +
 package/Config.in                                  |  1 +
 ...-CPPFLAGS-CXXFLAGS-and-CFLAGS-in-Makefile.patch | 44 ++++++++++++++++
 package/irrlicht/0002-remove-sys-sysctl.h.patch    | 38 ++++++++++++++
 package/irrlicht/Config.in                         | 17 +++++++
 package/irrlicht/irrlicht.hash                     |  5 ++
 package/irrlicht/irrlicht.mk                       | 58 ++++++++++++++++++++++
 7 files changed, 164 insertions(+)
 create mode 100644 package/irrlicht/0001-override-CPPFLAGS-CXXFLAGS-and-CFLAGS-in-Makefile.patch
 create mode 100644 package/irrlicht/0002-remove-sys-sysctl.h.patch
 create mode 100644 package/irrlicht/Config.in
 create mode 100644 package/irrlicht/irrlicht.hash
 create mode 100644 package/irrlicht/irrlicht.mk
DEVELOPERS +1 -0
index 7d8b410..5ec1d7d 100644
@@ -1382,6 +1382,7 @@ F:	package/efl/
 F:	package/enlightenment/
 F:	package/expedite/
 F:	package/iqvlinux/
+F:	package/irrlicht/
 F:	package/liblinear/
 F:	package/lensfun/
 F:	package/linux-syscall-support/
package/Config.in +1 -0
index 3a99c86..938235f 100644
@@ -1029,6 +1029,7 @@ menu "Graphics"
 	source "package/gtksourceview/Config.in"
 	source "package/harfbuzz/Config.in"
 	source "package/ijs/Config.in"
+	source "package/irrlicht/Config.in"
 	source "package/imlib2/Config.in"
 	source "package/jasper/Config.in"
 	source "package/jpeg/Config.in"
package/irrlicht/0001-override-CPPFLAGS-CXXFLAGS-and-CFLAGS-in-Makefile.patch new file +44 -0

44 lines not on this page · raw message

package/irrlicht/0002-remove-sys-sysctl.h.patch new file +38 -0
new file mode 100644
index 0000000..d9142a9
@@ -0,0 +1,38 @@
+From 5382142d37730f6758753b758c91e257ffd5892c Mon Sep 17 00:00:00 2001
+From: Romain Naour <[email protected]>
+Date: Sun, 9 Apr 2017 22:20:19 +0200
+Subject: [PATCH] remove sys/sysctl.h
+
+With musl irrlicht doesn't build due to missing sys/sysctl.h
+
+fatal error: sys/sysctl.h: No such file or directory
+
+From [1]
+"sysctl does not work, and NEVER worked. using it is bogus.
+it was a bogus experimental syscall that was deprecated before
+it was ever used (basically, a broken binary version of
+/proc/sys, without any stability between kernel versions for
+what the binary constants meant)."
+
+[1] https://devsonacid.wordpress.com/tag/musl/
+
+Signed-off-by: Romain Naour <[email protected]>
+---
+ source/Irrlicht/COSOperator.cpp | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/source/Irrlicht/COSOperator.cpp b/source/Irrlicht/COSOperator.cpp
+index 0899d1d..ccf5ef5 100644
+--- a/source/Irrlicht/COSOperator.cpp
++++ b/source/Irrlicht/COSOperator.cpp
+@@ -13,7 +13,6 @@
+ #include <unistd.h>
+ #ifndef _IRR_SOLARIS_PLATFORM_
+ #include <sys/types.h>
+-#include <sys/sysctl.h>
+ #endif
+ #endif
+ 
+-- 
+2.9.3
+
package/irrlicht/Config.in new file +17 -0
new file mode 100644
index 0000000..edd182b
@@ -0,0 +1,17 @@
+config BR2_PACKAGE_IRRLICHT
+	bool "irrlicht"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_PACKAGE_XORG7
+	depends on BR2_PACKAGE_HAS_LIBGL # use GLX
+	select BR2_PACKAGE_XLIB_LIBXXF86VM # libXxf86vm
+	help
+	  An open source high performance realtime 3D graphics engine.
+
+	  http://irrlicht.sourceforge.net/
+
+comment "irrlicht needs a toolchain w/ C++"
+	depends on !BR2_INSTALL_LIBSTDCPP
+
+comment "irrlicht needs X11 and an OpenGL provider"
+	depends on !BR2_PACKAGE_HAS_LIBGL || !BR2_PACKAGE_XORG7
+	depends on BR2_INSTALL_LIBSTDCPP
package/irrlicht/irrlicht.hash new file +5 -0
new file mode 100644
index 0000000..489790e
@@ -0,0 +1,5 @@
+# From https://sourceforge.net/projects/irrlicht/files/Irrlicht%20SDK/1.8/1.8.4
+md5 9401cfff801395010b0912211f3cbb4f irrlicht-1.8.4.zip
+sha1 38bf0223fe868d243d6a39d0dc191c8df6e03b3b irrlicht-1.8.4.zip
+# locally calculated
+sha256 f42b280bc608e545b820206fe2a999c55f290de5c7509a02bdbeeccc1bf9e433  irrlicht-1.8.4.zip
package/irrlicht/irrlicht.mk new file +58 -0

58 lines not on this page · raw message

Signature · 1 line
2.9.4
#1 lore raw

PATCH v2 2/13 package/libspatialindex: new package

---
test-pkg reported an internal compiler error on microblaze (br-microblazeel-full)
Index.cc: In member function 'void SpatialIndex::RTree::Index::adjustTree(SpatialIndex::RTree::Node*, std::stack<long long int>&)':
Index.cc:327:1: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1027

---
 DEVELOPERS                                   |  1 +
 package/Config.in                            |  1 +
 package/libspatialindex/Config.in            | 30 ++++++++++++++++++++++++++++
 package/libspatialindex/libspatialindex.hash |  4 ++++
 package/libspatialindex/libspatialindex.mk   | 14 +++++++++++++
 5 files changed, 50 insertions(+)
 create mode 100644 package/libspatialindex/Config.in
 create mode 100644 package/libspatialindex/libspatialindex.hash
 create mode 100644 package/libspatialindex/libspatialindex.mk
DEVELOPERS +1 -0
index 5ec1d7d..dd12cfe 100644
@@ -1385,6 +1385,7 @@ F:	package/iqvlinux/
 F:	package/irrlicht/
 F:	package/liblinear/
 F:	package/lensfun/
+F:	package/libspatialindex/
 F:	package/linux-syscall-support/
 F:	package/lugaru/
 F:	package/mcelog/
package/Config.in +1 -0
index 938235f..75b2436 100644
@@ -1409,6 +1409,7 @@ menu "Other"
 	source "package/libseccomp/Config.in"
 	source "package/libsigc/Config.in"
 	source "package/libsigsegv/Config.in"
+	source "package/libspatialindex/Config.in"
 	source "package/libtasn1/Config.in"
 	source "package/libtommath/Config.in"
 	source "package/libtpl/Config.in"
package/libspatialindex/Config.in new file +30 -0
new file mode 100644
index 0000000..0d066f6
@@ -0,0 +1,30 @@
+config BR2_PACKAGE_LIBSPATIALINDEX
+	bool "libspatialindex"
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  The purpose of libspatialindex is to provide:
+
+	  * An extensible framework that will support robust spatial
+	    indexing methods.
+
+	  * Support for sophisticated spatial queries. Range, point
+	    location, nearest neighbor and k-nearest neighbor as well
+	    as parametric queries (defined by spatial constraints)
+	    should be easy to deploy and run.
+
+	  * Easy to use interfaces for inserting, deleting and updating
+	    information.
+
+	  * Wide variety of customization capabilities. Basic index and
+	    storage characteristics like the page size, node capacity,
+	    minimum fan-out, splitting algorithm, etc. should be easy
+	    to customize.
+
+	  * Index persistence. Internal memory and external memory
+	    structures should be supported. Clustered and non-clustered
+	    indices should be easy to be persisted.
+
+	  https://libspatialindex.github.io
+
+comment "libspatialindex needs a toolchain w/ C++"
+	depends on !BR2_INSTALL_LIBSTDCPP
package/libspatialindex/libspatialindex.hash new file +4 -0
new file mode 100644
index 0000000..3aa636d
@@ -0,0 +1,4 @@
+# From http://download.osgeo.org/libspatialindex/spatialindex-src-1.8.5.tar.bz2.md5
+md5 3303c47fd85aa17e64ef52ebec212762 spatialindex-src-1.8.5.tar.bz2
+# Locally computed
+sha256 31ec0a9305c3bd6b4ad60a5261cba5402366dd7d1969a8846099717778e9a50a spatialindex-src-1.8.5.tar.bz2
package/libspatialindex/libspatialindex.mk new file +14 -0
new file mode 100644
index 0000000..d815364
@@ -0,0 +1,14 @@
+################################################################################
+#
+# libspatialindex
+#
+################################################################################
+
+LIBSPATIALINDEX_VERSION = 1.8.5
+LIBSPATIALINDEX_SITE = http://download.osgeo.org/libspatialindex
+LIBSPATIALINDEX_SOURCE = spatialindex-src-$(LIBSPATIALINDEX_VERSION).tar.bz2
+LIBSPATIALINDEX_INSTALL_STAGING = YES
+LIBSPATIALINDEX_LICENSE = MIT
+LIBSPATIALINDEX_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
Signature · 1 line
2.9.4
#5 lore raw

PATCH v2 3/13 package/minetest: new package

In reply to Romain Naour

---
v2: add package dependencies comments
add hash file (Bernd)
bump to 0.4.16 (Bernd)
version 0.4.15 Tested-by Bernd
Add a new patch fixing linking with libintl when necessary

---
 DEVELOPERS                                         |  1 +
 package/Config.in                                  |  1 +
 .../0001-CMake-link-with-Intl-when-necessary.patch | 55 +++++++++++++++++
 package/minetest/Config.in                         | 70 ++++++++++++++++++++++
 package/minetest/minetest.hash                     |  2 +
 package/minetest/minetest.mk                       | 44 ++++++++++++++
 6 files changed, 173 insertions(+)
 create mode 100644 package/minetest/0001-CMake-link-with-Intl-when-necessary.patch
 create mode 100644 package/minetest/Config.in
 create mode 100644 package/minetest/minetest.hash
 create mode 100644 package/minetest/minetest.mk
DEVELOPERS +1 -0
index dd12cfe..6ef7b23 100644
@@ -1389,6 +1389,7 @@ F:	package/libspatialindex/
 F:	package/linux-syscall-support/
 F:	package/lugaru/
 F:	package/mcelog/
+F:	package/minetest/
 F:	package/openpowerlink/
 F:	package/physfs/
 F:	package/stress-ng/
package/Config.in +1 -0
index 75b2436..4d59a68 100644
@@ -226,6 +226,7 @@ menu "Games"
 	source "package/lbreakout2/Config.in"
 	source "package/ltris/Config.in"
 	source "package/lugaru/Config.in"
+	source "package/minetest/Config.in"
 	source "package/opentyrian/Config.in"
 	source "package/opentyrian-data/Config.in"
 	source "package/prboom/Config.in"
package/minetest/0001-CMake-link-with-Intl-when-necessary.patch new file +55 -0

55 lines not on this page · raw message

package/minetest/Config.in new file +70 -0

70 lines not on this page · raw message

package/minetest/minetest.hash new file +2 -0
new file mode 100644
index 0000000..e4276c6
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 0ef3793de9f569746ea78af7a66fe96ef65400019e5e64a04a5c3fa26a707655  minetest-0.4.16.tar.gz
package/minetest/minetest.mk new file +44 -0

44 lines not on this page · raw message

Signature · 1 line
2.9.4
#10 lore raw

PATCH v2 4/13 package/minetest: add libcurl optional dependency

In reply to Romain Naour
---
 package/minetest/minetest.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/minetest/minetest.mk +7 -1
index 929016a..e9abb04 100644
@@ -13,7 +13,6 @@ MINETEST_DEPENDENCIES = irrlicht gmp jpeg jsoncpp luajit sqlite zlib
 
 MINETEST_CONF_OPTS = \
 	-DDEFAULT_RUN_IN_PLACE=OFF \
-	-DENABLE_CURL=OFF \
 	-DENABLE_GETTEXT=OFF \
 	-DENABLE_SOUND=OFF \
 	-DENABLE_GLES=OFF \
@@ -41,4 +40,11 @@ else
 MINETEST_CONF_OPTS += -DBUILD_SERVER=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_LIBCURL),y)
+MINETEST_DEPENDENCIES += libcurl
+MINETEST_CONF_OPTS += -DENABLE_CURL=ON
+else
+MINETEST_CONF_OPTS += -DENABLE_CURL=OFF
+endif
+
 $(eval $(cmake-package))
Signature · 1 line
2.9.4
#11 lore raw

PATCH v2 5/13 package/minetest: add gettext optional dependency

In reply to Romain Naour
---
 package/minetest/minetest.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/minetest/minetest.mk +7 -1
index e9abb04..3b2668b 100644
@@ -13,7 +13,6 @@ MINETEST_DEPENDENCIES = irrlicht gmp jpeg jsoncpp luajit sqlite zlib
 
 MINETEST_CONF_OPTS = \
 	-DDEFAULT_RUN_IN_PLACE=OFF \
-	-DENABLE_GETTEXT=OFF \
 	-DENABLE_SOUND=OFF \
 	-DENABLE_GLES=OFF \
 	-DENABLE_FREETYPE=OFF \
@@ -40,6 +39,13 @@ else
 MINETEST_CONF_OPTS += -DBUILD_SERVER=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_GETTEXT),y)
+MINETEST_DEPENDENCIES += gettext
+MINETEST_CONF_OPTS += -DENABLE_GETTEXT=ON
+else
+MINETEST_CONF_OPTS += -DENABLE_GETTEXT=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_LIBCURL),y)
 MINETEST_DEPENDENCIES += libcurl
 MINETEST_CONF_OPTS += -DENABLE_CURL=ON
Signature · 1 line
2.9.4
#16 lore raw

PATCH v2 6/13 package/minetest: add freetype optional dependency

In reply to Romain Naour
---
 package/minetest/minetest.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/minetest/minetest.mk +7 -1
index 3b2668b..5075fc0 100644
@@ -15,7 +15,6 @@ MINETEST_CONF_OPTS = \
 	-DDEFAULT_RUN_IN_PLACE=OFF \
 	-DENABLE_SOUND=OFF \
 	-DENABLE_GLES=OFF \
-	-DENABLE_FREETYPE=OFF \
 	-DENABLE_LUAJIT=ON \
 	-DENABLE_CURSES=OFF \
 	-DENABLE_POSTGRESQL=OFF \
@@ -39,6 +38,13 @@ else
 MINETEST_CONF_OPTS += -DBUILD_SERVER=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_FREETYPE),y)
+MINETEST_DEPENDENCIES += freetype
+MINETEST_CONF_OPTS += -DENABLE_FREETYPE=ON
+else
+MINETEST_CONF_OPTS += -DENABLE_FREETYPE=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_GETTEXT),y)
 MINETEST_DEPENDENCIES += gettext
 MINETEST_CONF_OPTS += -DENABLE_GETTEXT=ON
Signature · 1 line
2.9.4
#17 lore raw

PATCH v2 7/13 package/minetest: add gles optional dependency

In reply to Romain Naour
---
 package/minetest/minetest.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/minetest/minetest.mk +7 -1
index 5075fc0..0302bd3 100644
@@ -14,7 +14,6 @@ MINETEST_DEPENDENCIES = irrlicht gmp jpeg jsoncpp luajit sqlite zlib
 MINETEST_CONF_OPTS = \
 	-DDEFAULT_RUN_IN_PLACE=OFF \
 	-DENABLE_SOUND=OFF \
-	-DENABLE_GLES=OFF \
 	-DENABLE_LUAJIT=ON \
 	-DENABLE_CURSES=OFF \
 	-DENABLE_POSTGRESQL=OFF \
@@ -52,6 +51,13 @@ else
 MINETEST_CONF_OPTS += -DENABLE_GETTEXT=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
+MINETEST_DEPENDENCIES += libgles
+MINETEST_CONF_OPTS += -DENABLE_GLES=ON
+else
+MINETEST_CONF_OPTS += -DENABLE_GLES=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_LIBCURL),y)
 MINETEST_DEPENDENCIES += libcurl
 MINETEST_CONF_OPTS += -DENABLE_CURL=ON
Signature · 1 line
2.9.4
#20 lore raw

PATCH v2 8/13 package/minetest: enable sound support

In reply to Romain Naour
---
 package/minetest/Config.in   | 8 ++++++++
 package/minetest/minetest.mk | 8 +++++++-
 2 files changed, 15 insertions(+), 1 deletion(-)
package/minetest/Config.in +8 -0
index d0613a2..a15a8f7 100644
@@ -55,6 +55,14 @@ config BR2_PACKAGE_MINETEST_CLIENT_SERVER
 
 endchoice
 
+config BR2_PACKAGE_MINETEST_SOUND
+	bool "enable sound"
+	depends on BR2_PACKAGE_MINETEST_CLIENT
+	depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
+	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # openal
+	select BR2_PACKAGE_LIBVORBIS
+	select BR2_PACKAGE_OPENAL
+
 endif
 
 comment "minetest needs a toolchain w/ C++, gcc >= 4.7, threads"
package/minetest/minetest.mk +7 -1
index 0302bd3..42c8888 100644
@@ -13,7 +13,6 @@ MINETEST_DEPENDENCIES = irrlicht gmp jpeg jsoncpp luajit sqlite zlib
 
 MINETEST_CONF_OPTS = \
 	-DDEFAULT_RUN_IN_PLACE=OFF \
-	-DENABLE_SOUND=OFF \
 	-DENABLE_LUAJIT=ON \
 	-DENABLE_CURSES=OFF \
 	-DENABLE_POSTGRESQL=OFF \
@@ -37,6 +36,13 @@ else
 MINETEST_CONF_OPTS += -DBUILD_SERVER=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_MINETEST_SOUND),y)
+MINETEST_DEPENDENCIES += libvorbis openal
+MINETEST_CONF_OPTS += -DENABLE_SOUND=ON
+else
+MINETEST_CONF_OPTS += -DENABLE_SOUND=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_FREETYPE),y)
 MINETEST_DEPENDENCIES += freetype
 MINETEST_CONF_OPTS += -DENABLE_FREETYPE=ON
Signature · 1 line
2.9.4
#23 lore raw

PATCH v2 9/13 package/minetest: add postgresql optional dependency

In reply to Romain Naour
---
 package/minetest/minetest.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/minetest/minetest.mk +7 -1
index 42c8888..742b2d1 100644
@@ -15,7 +15,6 @@ MINETEST_CONF_OPTS = \
 	-DDEFAULT_RUN_IN_PLACE=OFF \
 	-DENABLE_LUAJIT=ON \
 	-DENABLE_CURSES=OFF \
-	-DENABLE_POSTGRESQL=OFF \
 	-DENABLE_LEVELDB=OFF \
 	-DENABLE_REDIS=OFF \
 	-DENABLE_SPATIAL=OFF \
@@ -71,4 +70,11 @@ else
 MINETEST_CONF_OPTS += -DENABLE_CURL=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
+MINETEST_DEPENDENCIES += postgresql
+MINETEST_CONF_OPTS += -DENABLE_POSTGRESQL=ON
+else
+MINETEST_CONF_OPTS += -DENABLE_POSTGRESQL=OFF
+endif
+
 $(eval $(cmake-package))
Signature · 1 line
2.9.4
#24 lore raw

PATCH v2 10/13 package/minetest: add hiredis optional dependency

In reply to Romain Naour
---
 package/minetest/minetest.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/minetest/minetest.mk +7 -1
index 742b2d1..40df470 100644
@@ -16,7 +16,6 @@ MINETEST_CONF_OPTS = \
 	-DENABLE_LUAJIT=ON \
 	-DENABLE_CURSES=OFF \
 	-DENABLE_LEVELDB=OFF \
-	-DENABLE_REDIS=OFF \
 	-DENABLE_SPATIAL=OFF \
 	-DAPPLY_LOCALE_BLACKLIST=OFF \
 	-DENABLE_SYSTEM_GMP=ON \
@@ -49,6 +48,13 @@ else
 MINETEST_CONF_OPTS += -DENABLE_FREETYPE=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_HIREDIS),y)
+MINETEST_DEPENDENCIES += hiredis
+MINETEST_CONF_OPTS += -DENABLE_REDIS=ON
+else
+MINETEST_CONF_OPTS += -DENABLE_REDIS=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_GETTEXT),y)
 MINETEST_DEPENDENCIES += gettext
 MINETEST_CONF_OPTS += -DENABLE_GETTEXT=ON
Signature · 1 line
2.9.4
#25 lore raw

PATCH v2 11/13 package/minetest: add leveldb optional dependency

In reply to Romain Naour
---
 package/minetest/minetest.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/minetest/minetest.mk +7 -1
index 40df470..ba8b2a1 100644
@@ -15,7 +15,6 @@ MINETEST_CONF_OPTS = \
 	-DDEFAULT_RUN_IN_PLACE=OFF \
 	-DENABLE_LUAJIT=ON \
 	-DENABLE_CURSES=OFF \
-	-DENABLE_LEVELDB=OFF \
 	-DENABLE_SPATIAL=OFF \
 	-DAPPLY_LOCALE_BLACKLIST=OFF \
 	-DENABLE_SYSTEM_GMP=ON \
@@ -62,6 +61,13 @@ else
 MINETEST_CONF_OPTS += -DENABLE_GETTEXT=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_LEVELDB),y)
+MINETEST_DEPENDENCIES += leveldb
+MINETEST_CONF_OPTS += -DENABLE_LEVELDB=ON
+else
+MINETEST_CONF_OPTS += -DENABLE_LEVELDB=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
 MINETEST_DEPENDENCIES += libgles
 MINETEST_CONF_OPTS += -DENABLE_GLES=ON
Signature · 1 line
2.9.4
#26 lore raw

PATCH v2 12/13 package/minetest: add libspatialindex optional dependency

In reply to Romain Naour
---
 package/minetest/minetest.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/minetest/minetest.mk +7 -1
index ba8b2a1..d2b9651 100644
@@ -15,7 +15,6 @@ MINETEST_CONF_OPTS = \
 	-DDEFAULT_RUN_IN_PLACE=OFF \
 	-DENABLE_LUAJIT=ON \
 	-DENABLE_CURSES=OFF \
-	-DENABLE_SPATIAL=OFF \
 	-DAPPLY_LOCALE_BLACKLIST=OFF \
 	-DENABLE_SYSTEM_GMP=ON \
 	-DENABLE_SYSTEM_JSONCPP=ON
@@ -82,6 +81,13 @@ else
 MINETEST_CONF_OPTS += -DENABLE_CURL=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSPATIALINDEX),y)
+MINETEST_DEPENDENCIES += libspatialindex
+MINETEST_CONF_OPTS += -DENABLE_SPATIAL=ON
+else
+MINETEST_CONF_OPTS += -DENABLE_SPATIAL=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
 MINETEST_DEPENDENCIES += postgresql
 MINETEST_CONF_OPTS += -DENABLE_POSTGRESQL=ON
Signature · 1 line
2.9.4
#27 lore raw

PATCH v2 13/13 package/minetest_game: new package

In reply to Romain Naour

---
v2: update to 0.4.16
update license file
Add a hash file
backport an upstream patch due to regression.

---
 DEVELOPERS                                         |  1 +
 package/Config.in                                  |  1 +
 ...lt-Revert-Default-Shorter-and-better-ABMs.patch | 54 ++++++++++++++++++++++
 package/minetest_game/Config.in                    |  7 +++
 package/minetest_game/minetest_game.hash           |  2 +
 package/minetest_game/minetest_game.mk             | 40 ++++++++++++++++
 6 files changed, 105 insertions(+)
 create mode 100644 package/minetest_game/0001-Default-Revert-Default-Shorter-and-better-ABMs.patch
 create mode 100644 package/minetest_game/Config.in
 create mode 100644 package/minetest_game/minetest_game.hash
 create mode 100644 package/minetest_game/minetest_game.mk
DEVELOPERS +1 -0
index 6ef7b23..a610ac7 100644
@@ -1390,6 +1390,7 @@ F:	package/linux-syscall-support/
 F:	package/lugaru/
 F:	package/mcelog/
 F:	package/minetest/
+F:	package/minetest_game/
 F:	package/openpowerlink/
 F:	package/physfs/
 F:	package/stress-ng/
package/Config.in +1 -0
index 4d59a68..f922d35 100644
@@ -227,6 +227,7 @@ menu "Games"
 	source "package/ltris/Config.in"
 	source "package/lugaru/Config.in"
 	source "package/minetest/Config.in"
+	source "package/minetest_game/Config.in"
 	source "package/opentyrian/Config.in"
 	source "package/opentyrian-data/Config.in"
 	source "package/prboom/Config.in"
package/minetest_game/0001-Default-Revert-Default-Shorter-and-better-ABMs.patch new file +54 -0

54 lines not on this page · raw message

package/minetest_game/Config.in new file +7 -0
new file mode 100644
index 0000000..75978e9
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_MINETEST_GAME
+	bool "minetest_game"
+	depends on BR2_PACKAGE_MINETEST
+	help
+	  The main subgame for the Minetest engine.
+
+	  https://github.com/minetest/minetest_game
package/minetest_game/minetest_game.hash new file +2 -0
new file mode 100644
index 0000000..1e8ca90
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 ea914555949b4faccda5e13143cb021d2f9a5fa19abd1f5e4b7b65004cbd2b5a minetest_game-0.4.16.tar.gz
package/minetest_game/minetest_game.mk new file +40 -0
new file mode 100644
index 0000000..c01aae5
@@ -0,0 +1,40 @@
+################################################################################
+#
+# minetest_game
+#
+################################################################################
+
+MINETEST_GAME_VERSION = 0.4.16
+MINETEST_GAME_SITE = $(call github,minetest,minetest_game,$(MINETEST_GAME_VERSION))
+MINETEST_GAME_LICENSE = LGPL-2.1+, CC-BY-SA-2.0, CC-BY-SA-3.0, \
+	CC-BY-SA-4.0, MIT, CC0 1.0, CC-BY-2.0
+MINETEST_GAME_LICENSE_FILES = LICENSE.txt \
+	mods/screwdriver/license.txt \
+	mods/tnt/license.txt \
+	mods/stairs/license.txt \
+	mods/bucket/license.txt \
+	mods/walls/license.txt \
+	mods/wool/license.txt \
+	mods/flowers/license.txt \
+	mods/bones/license.txt \
+	mods/boats/license.txt \
+	mods/default/license.txt \
+	mods/give_initial_stuff/license.txt \
+	mods/dye/license.txt \
+	mods/farming/license.txt \
+	mods/xpanes/license.txt \
+	mods/vessels/license.txt \
+	mods/carts/license.txt \
+	mods/sethome/license.txt \
+	mods/fire/license.txt \
+	mods/nyancat/license.txt \
+	mods/doors/license.txt \
+	mods/creative/license.txt \
+	mods/beds/license.txt
+
+define MINETEST_GAME_INSTALL_TARGET_CMDS
+	mkdir -p $(TARGET_DIR)/usr/share/minetest/games/minetest_game
+	rsync -av $(@D)/* --exclude=".*" $(TARGET_DIR)/usr/share/minetest/games/minetest_game
+endef
+
+$(eval $(generic-package))
Signature · 1 line
2.9.4
#2 lore raw

PATCH v2 2/13 package/libspatialindex: new package

In reply to Romain Naour

Hello,

Quoted 2 lines · Romain Naour

Applied, thanks!

Quoted 3 lines

test-pkg reported an internal compiler error on microblaze (br-microblazeel-full)
Index.cc: In member function 'void SpatialIndex::RTree::Index::adjustTree(SpatialIndex::RTree::Node*, std::stack<long long int>&)':
Index.cc:327:1: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1027

Does this bug still exists with gcc 7.x? If so, can we report the bug to upstream gcc? Or is it a bug that has already been reported, because it happens with other packages as well?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH v2 2/13 package/libspatialindex: new package

Hi Thomas,

Le 12/06/2017 ? 23:45, Thomas Petazzoni a ?crit :

Quoted 8 lines

Hello,

Quoted 2 lines · Romain Naour

Applied, thanks!

Quoted 7 lines
Quoted 3 lines

test-pkg reported an internal compiler error on microblaze (br-microblazeel-full)
Index.cc: In member function 'void SpatialIndex::RTree::Index::adjustTree(SpatialIndex::RTree::Node*, std::stack<long long int>&)':
Index.cc:327:1: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1027

Does this bug still exists with gcc 7.x? If so, can we report the bug to upstream gcc? Or is it a bug that has already been reported, because it happens with other packages as well?

I need to test again with the new br-microblazeel-full toolchain added today.

Best regards,
Romain

Quoted 5 lines

Thanks!

Thomas

#4 lore raw

PATCH v2 2/13 package/libspatialindex: new package

Thomas,

Le 12/06/2017 ? 23:49, Romain Naour a ?crit :

Quoted 15 lines

Hi Thomas,

Le 12/06/2017 ? 23:45, Thomas Petazzoni a ?crit :

Quoted 12 lines

Hello,

Quoted 2 lines · Romain Naour

Applied, thanks!

Quoted 3 lines

test-pkg reported an internal compiler error on microblaze (br-microblazeel-full)
Index.cc: In member function 'void SpatialIndex::RTree::Index::adjustTree(SpatialIndex::RTree::Node*, std::stack<long long int>&)':
Index.cc:327:1: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1027

Quoted 5 lines
Quoted 3 lines

Does this bug still exists with gcc 7.x? If so, can we report the bug to upstream gcc? Or is it a bug that has already been reported, because it happens with other packages as well?

I need to test again with the new br-microblazeel-full toolchain added today.

Reproduced with br-microblaze-full-2017.05-444-g6c704ba.tar.bz2

Node.cc:1082:1: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1025
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.buildroot.net/> for instructions.
Makefile:388 : la recette pour la cible ? Node.lo ? a ?chou?e make[4]: *** [Node.lo] Erreur 1
make[4]: *** Attente des t?ches non termin?es....
Index.cc: In member function 'void SpatialIndex::RTree::Index::adjustTree(SpatialIndex::RTree::Node*, std::stack<long long int>&)':
Index.cc:327:1: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1025
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.buildroot.net/> for instructions.
Makefile:388 : la recette pour la cible ? Index.lo ? a ?chou?e make[4]: *** [Index.lo] Erreur 1
RTree.cc: In member function 'virtual bool SpatialIndex::RTree::RTree::isIndexValid()':
RTree.cc:800:1: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1025
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.buildroot.net/> for instructions.

I don't really know if there is an existing bug report. I'll check that later.

Best regards,
Romain

Quoted 10 lines

Best regards,
Romain

Quoted 5 lines

Thanks!

Thomas

#30 lore raw

PATCH v2 1/13 package/irrlicht: new package

In reply to Romain Naour

Hello,

package/irrlicht/irrlicht.mk line 15

Quoted 3 lines · Romain Naour
package/irrlicht/irrlicht.mk new file +3 -0
+# Bundled libraries: bzip2, libaesGladman, libpng, lzma, zlib,
+# The handcrafted Makefile can only use bundled libraries.
+IRRLICHT_LICENSE = Zlib (irrlicht), bzip2 license, jpeg-license (BSD-3-Clause-like), Libpng

Why didn't you use SPDX license codes here? Also, what we put between parenthesis is not details about the license, but the components on which the license applies. So I've changed this line to:

IRRLICHT_LICENSE = Zlib (irrlicht), BSD-3-Clause (libaesGladman), bzip2-1.0.5 (bzip2), IJG (libjpeg), Libpng (libpng)

Applied to master after fixing this. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#6 lore raw

PATCH v2 3/13 package/minetest: new package

In reply to Romain Naour

Hello,

package/minetest/0001-CMake-link-with-Intl-when-necessary.patch line 28

Quoted 4 lines · Romain Naour
package/minetest/0001-CMake-link-with-Intl-when-necessary.patch new file +4 -0
+ 		message(STATUS "GetText enabled; locales found: ${GETTEXT_AVAILABLE_LOCALES}")
++		# On some platforms, such as Linux with GNU libc, the gettext
++		# functions are present in the C standard library and libintl
++		# is not required. For other libc (uClibc-ng or musl) libintl

Only uClibc-ng in fact. musl has stub gettext functionality.

Quoted 25 lines
package/minetest/Config.in new file +25 -0
+if BR2_PACKAGE_MINETEST
+
+config BR2_PACKAGE_MINETEST_CLIENT
+	bool
+	select BR2_PACKAGE_BZIP2
+	select BR2_PACKAGE_LIBPNG
+	select BR2_PACKAGE_JPEG
+	select BR2_PACKAGE_XLIB_LIBXXF86VM
+
+config BR2_PACKAGE_MINETEST_SERVER
+	bool
+
+choice
+	prompt "minetest build"
+
+config BR2_PACKAGE_MINETEST_CLIENT_ONLY
+	bool "client only"
+	select BR2_PACKAGE_MINETEST_CLIENT
+	help
+	  Build Minetest client only.
+
+config BR2_PACKAGE_MINETEST_SERVER_ONLY
+	bool "server only"
+	select BR2_PACKAGE_MINETEST_SERVER
+	help

package/minetest/Config.in line 56

Quoted 10 lines
package/minetest/Config.in new file +10 -0
+	  Build Minetest server only.
+
+config BR2_PACKAGE_MINETEST_CLIENT_SERVER
+	bool "client and server"
+	select BR2_PACKAGE_MINETEST_CLIENT
+	select BR2_PACKAGE_MINETEST_SERVER
+	help
+	  Build Minetest client and server.
+
+endchoice

Why are you doing all this instead of having just two sub-options, one to enable the client, one to enable the server?

Is it because you need at least one of them to be enabled? If so, then just add a "select BR2_PACKAGE_MINETEST_CLIENT
if !BR2_PACKAGE_MINETEST_SERVER" in the BR2_PACKAGE_MINETEST definition.

package/minetest/Config.in line 63

Quoted 4 lines
package/minetest/Config.in new file +4 -0
+comment "minetest needs a toolchain w/ C++, gcc >= 4.7, threads"
+	depends on !BR2_INSTALL_LIBSTDCPP \
+		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 \
+		|| !BR2_TOOLCHAIN_HAS_THREADS

Missing depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS

package/minetest/Config.in line 70

Quoted 7 lines
package/minetest/Config.in new file +7 -0
+
+comment "minetest needs X11, an OpenGL provider, luajit"
+	depends on (BR2_INSTALL_LIBSTDCPP \
+		&& BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 \
+		&& BR2_TOOLCHAIN_HAS_THREADS)
+	depends on !BR2_PACKAGE_HAS_LIBGL || !BR2_PACKAGE_XORG7 \
+		|| !BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS

Mentioning LuaJIT is useless, since you're selecting it. However, you shouldn't display this comment if BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS is not enabled.

BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS is an architecture dependency, very much like BR2_USE_MMU, so we don't add comments about it, since there's nothing the user can do about it.

package/minetest/minetest.mk line 9

Quoted 3 lines
package/minetest/minetest.mk new file +3 -0
+MINETEST_VERSION = 0.4.16
+MINETEST_SITE = $(call github,minetest,minetest,$(MINETEST_VERSION))
+MINETEST_LICENSE = LGPL-2.1+, CC-BY-SA-3.0

Maybe mention what is under LGPL, what is under CC-BY-SA? if it's clearly understood.

package/minetest/minetest.mk line 12

Quoted 3 lines
package/minetest/minetest.mk new file +3 -0
+MINETEST_LICENSE_FILES = README.txt
+
+MINETEST_DEPENDENCIES = irrlicht gmp jpeg jsoncpp luajit sqlite zlib

Alphabetic ordering would be nicer (j before g).

Quoted 10 lines
package/minetest/minetest.mk new file +10 -0
+
+MINETEST_CONF_OPTS = \
+	-DDEFAULT_RUN_IN_PLACE=OFF \
+	-DENABLE_CURL=OFF \
+	-DENABLE_GETTEXT=OFF \
+	-DENABLE_SOUND=OFF \
+	-DENABLE_GLES=OFF \
+	-DENABLE_FREETYPE=OFF \
+	-DENABLE_LUAJIT=ON \
+	-DENABLE_CURSES=OFF \

package/minetest/minetest.mk line 32

Quoted 10 lines
package/minetest/minetest.mk new file +10 -0
+	-DENABLE_POSTGRESQL=OFF \
+	-DENABLE_LEVELDB=OFF \
+	-DENABLE_REDIS=OFF \
+	-DENABLE_SPATIAL=OFF \
+	-DAPPLY_LOCALE_BLACKLIST=OFF \
+	-DENABLE_SYSTEM_GMP=ON \
+	-DENABLE_SYSTEM_JSONCPP=ON
+
+ifeq ($(BR2_PACKAGE_MINETEST_CLIENT),y)
+MINETEST_DEPENDENCIES += bzip2 jpeg libgl libpng xlib_libXxf86vm

jpeg is already part of the unconditional dependencies.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#12 lore raw

PATCH v2 5/13 package/minetest: add gettext optional dependency

In reply to Romain Naour

Hello,

Quoted 7 lines · Romain Naour

MINETEST_CONF_OPTS = \

package/minetest/minetest.mk +0 -1
 	-DDEFAULT_RUN_IN_PLACE=OFF \
-	-DENABLE_GETTEXT=OFF \
 	-DENABLE_SOUND=OFF \
 	-DENABLE_GLES=OFF \
 	-DENABLE_FREETYPE=OFF \

package/minetest/minetest.mk else · line 47

Quoted 9 lines
package/minetest/minetest.mk +6 -0
@@ -40,6 +39,13 @@ else
 MINETEST_CONF_OPTS += -DBUILD_SERVER=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_GETTEXT),y)
+MINETEST_DEPENDENCIES += gettext
+MINETEST_CONF_OPTS += -DENABLE_GETTEXT=ON
+else
+MINETEST_CONF_OPTS += -DENABLE_GETTEXT=OFF
+endif

What is this ENABLE_GETTEXT=ON/OFF option doing exactly?

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#18 lore raw

PATCH v2 7/13 package/minetest: add gles optional dependency

In reply to Romain Naour

Hello,

Quoted 18 lines · Romain Naour
---
 package/minetest/minetest.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/minetest/minetest.mk +0 -1
index 5075fc0..0302bd3 100644
@@ -14,7 +14,6 @@ MINETEST_DEPENDENCIES = irrlicht gmp jpeg jsoncpp luajit sqlite zlib
 MINETEST_CONF_OPTS = \
 	-DDEFAULT_RUN_IN_PLACE=OFF \
 	-DENABLE_SOUND=OFF \
-	-DENABLE_GLES=OFF \
 	-DENABLE_LUAJIT=ON \
 	-DENABLE_CURSES=OFF \
 	-DENABLE_POSTGRESQL=OFF \

package/minetest/minetest.mk else · line 59

Quoted 9 lines
package/minetest/minetest.mk +6 -0
@@ -52,6 +51,13 @@ else
 MINETEST_CONF_OPTS += -DENABLE_GETTEXT=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
+MINETEST_DEPENDENCIES += libgles
+MINETEST_CONF_OPTS += -DENABLE_GLES=ON
+else
+MINETEST_CONF_OPTS += -DENABLE_GLES=OFF
+endif

The overall minetest package already depends on libGL support, inherited from irrlicht. Do we have useful situations where GLES support can be leveraged, since anyway you require libGL+X11 ?

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#21 lore raw

PATCH v2 8/13 package/minetest: enable sound support

In reply to Romain Naour

Hello,

package/minetest/Config.in config BR2_PACKAGE_MINETEST_CLIENT_SERVER · line 62

Quoted 13 lines · Romain Naour
package/minetest/Config.in +5 -0
index d0613a2..a15a8f7 100644
@@ -55,6 +55,14 @@ config BR2_PACKAGE_MINETEST_CLIENT_SERVER
 
 endchoice
 
+config BR2_PACKAGE_MINETEST_SOUND
+	bool "enable sound"
+	depends on BR2_PACKAGE_MINETEST_CLIENT
+	depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
+	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # openal

-> Config.in comment for this dependency?

package/minetest/Config.in config BR2_PACKAGE_MINETEST_CLIENT_SERVER · line 66

Quoted 4 lines
package/minetest/Config.in +3 -0
+	select BR2_PACKAGE_LIBVORBIS
+	select BR2_PACKAGE_OPENAL
+
 endif

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#28 lore raw

PATCH v2 13/13 package/minetest_game: new package

In reply to Romain Naour

Hello,

Quoted 6 lines · Romain Naour

---
v2: update to 0.4.16
update license file
Add a hash file
backport an upstream patch due to regression.

I'm not a big fan of underscores in the name of packages, but I agree it's the upstream name... and we already have a few packages with underscores in their name, so I guess it's more a personal taste than a real rule here.

package/minetest_game/minetest_game.mk line 37

Quoted 3 lines
package/minetest_game/minetest_game.mk new file +3 -0
+define MINETEST_GAME_INSTALL_TARGET_CMDS
+	mkdir -p $(TARGET_DIR)/usr/share/minetest/games/minetest_game
+	rsync -av $(@D)/* --exclude=".*" $(TARGET_DIR)/usr/share/minetest/games/minetest_game

What about using "cp -dpfr", which we use more commonly in packages to copy entire file/directory hierarchies?

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#7 lore raw

PATCH v2 3/13 package/minetest: new package

In reply to Thomas Petazzoni

Hi Thomas,

Le 24/06/2017 ? 17:19, Thomas Petazzoni a ?crit :

Quoted 10 lines

Hello,

package/minetest/0001-CMake-link-with-Intl-when-necessary.patch line 28

Quoted 4 lines · Romain Naour
package/minetest/0001-CMake-link-with-Intl-when-necessary.patch new file +4 -0
+ 		message(STATUS "GetText enabled; locales found: ${GETTEXT_AVAILABLE_LOCALES}")
++		# On some platforms, such as Linux with GNU libc, the gettext
++		# functions are present in the C standard library and libintl
++		# is not required. For other libc (uClibc-ng or musl) libintl

Only uClibc-ng in fact. musl has stub gettext functionality.

So, with your series applied during the summer camp this is not true even with uClibc-ng.
I think BR2_SYSTEM_ENABLE_NLS should be used in minetest.mk.

Quoted 40 lines
Quoted 26 lines
package/minetest/Config.in new file +25 -0
+if BR2_PACKAGE_MINETEST
+
+config BR2_PACKAGE_MINETEST_CLIENT
+	bool
+	select BR2_PACKAGE_BZIP2
+	select BR2_PACKAGE_LIBPNG
+	select BR2_PACKAGE_JPEG
+	select BR2_PACKAGE_XLIB_LIBXXF86VM
+
+config BR2_PACKAGE_MINETEST_SERVER
+	bool
+
+choice
+	prompt "minetest build"
+
+config BR2_PACKAGE_MINETEST_CLIENT_ONLY
+	bool "client only"
+	select BR2_PACKAGE_MINETEST_CLIENT
+	help
+	  Build Minetest client only.
+
+config BR2_PACKAGE_MINETEST_SERVER_ONLY
+	bool "server only"
+	select BR2_PACKAGE_MINETEST_SERVER
+	help

package/minetest/Config.in line 56

Quoted 10 lines
package/minetest/Config.in new file +10 -0
+	  Build Minetest server only.
+
+config BR2_PACKAGE_MINETEST_CLIENT_SERVER
+	bool "client and server"
+	select BR2_PACKAGE_MINETEST_CLIENT
+	select BR2_PACKAGE_MINETEST_SERVER
+	help
+	  Build Minetest client and server.
+
+endchoice

Why are you doing all this instead of having just two sub-options, one to enable the client, one to enable the server?

Quoted 1 line

Is it because you need at least one of them to be enabled?

Indeed.

If so, then

Quoted 2 lines

just add a "select BR2_PACKAGE_MINETEST_CLIENT
if !BR2_PACKAGE_MINETEST_SERVER" in the BR2_PACKAGE_MINETEST definition

Done.

Quoted 19 lines

package/minetest/Config.in line 63

Quoted 5 lines
package/minetest/Config.in new file +4 -0
+comment "minetest needs a toolchain w/ C++, gcc >= 4.7, threads"
+	depends on !BR2_INSTALL_LIBSTDCPP \
+		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 \
+		|| !BR2_TOOLCHAIN_HAS_THREADS

Missing depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS>

package/minetest/Config.in line 70

Quoted 7 lines
package/minetest/Config.in new file +7 -0
+
+comment "minetest needs X11, an OpenGL provider, luajit"
+	depends on (BR2_INSTALL_LIBSTDCPP \
+		&& BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 \
+		&& BR2_TOOLCHAIN_HAS_THREADS)
+	depends on !BR2_PACKAGE_HAS_LIBGL || !BR2_PACKAGE_XORG7 \
+		|| !BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS

Mentioning LuaJIT is useless, since you're selecting it. However, you shouldn't display this comment if BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS is not enabled.

Quoted 3 lines

BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS is an architecture dependency, very much like BR2_USE_MMU, so we don't add comments about it, since there's nothing the user can do about it.

Fixed.

Quoted 7 lines

package/minetest/minetest.mk line 9

Quoted 4 lines
package/minetest/minetest.mk new file +3 -0
+MINETEST_VERSION = 0.4.16
+MINETEST_SITE = $(call github,minetest,minetest,$(MINETEST_VERSION))
+MINETEST_LICENSE = LGPL-2.1+, CC-BY-SA-3.0

Maybe mention what is under LGPL, what is under CC-BY-SA? if it's clearly understood.

Done.

Quoted 6 lines

package/minetest/minetest.mk line 12

Quoted 4 lines
package/minetest/minetest.mk new file +3 -0
+MINETEST_LICENSE_FILES = README.txt
+
+MINETEST_DEPENDENCIES = irrlicht gmp jpeg jsoncpp luajit sqlite zlib

Alphabetic ordering would be nicer (j before g).

You mean g before i :)
Fixed.

Quoted 15 lines
Quoted 15 lines
package/minetest/minetest.mk new file +14 -0
+
+MINETEST_CONF_OPTS = \
+	-DDEFAULT_RUN_IN_PLACE=OFF \
+	-DENABLE_CURL=OFF \
+	-DENABLE_GETTEXT=OFF \
+	-DENABLE_SOUND=OFF \
+	-DENABLE_GLES=OFF \
+	-DENABLE_FREETYPE=OFF \
+	-DENABLE_LUAJIT=ON \
+	-DENABLE_CURSES=OFF \
+	-DENABLE_POSTGRESQL=OFF \
+	-DENABLE_LEVELDB=OFF \
+	-DENABLE_REDIS=OFF \
+	-DENABLE_SPATIAL=OFF \
Quoted 8 lines

package/minetest/minetest.mk line 32

Quoted 6 lines
package/minetest/minetest.mk new file +6 -0
+	-DAPPLY_LOCALE_BLACKLIST=OFF \
+	-DENABLE_SYSTEM_GMP=ON \
+	-DENABLE_SYSTEM_JSONCPP=ON
+
+ifeq ($(BR2_PACKAGE_MINETEST_CLIENT),y)
+MINETEST_DEPENDENCIES += bzip2 jpeg libgl libpng xlib_libXxf86vm

jpeg is already part of the unconditional dependencies.

Fixed.

Best regards,
Romain

Quoted 5 lines

Best regards,

Thomas

#13 lore raw

PATCH v2 5/13 package/minetest: add gettext optional dependency

In reply to Thomas Petazzoni

Le 24/06/2017 ? 17:20, Thomas Petazzoni a ?crit :

Quoted 14 lines

Hello,

Quoted 10 lines · Romain Naour

MINETEST_CONF_OPTS = \

package/minetest/minetest.mk +0 -1
 	-DDEFAULT_RUN_IN_PLACE=OFF \
-	-DENABLE_GETTEXT=OFF \
 	-DENABLE_SOUND=OFF \
 	-DENABLE_GLES=OFF \
 	-DENABLE_FREETYPE=OFF \
@@ -40,6 +39,13 @@ else
 MINETEST_CONF_OPTS += -DBUILD_SERVER=OFF
 endif
 
Quoted 8 lines

package/minetest/minetest.mk else · line 47

Quoted 6 lines
package/minetest/minetest.mk +6 -0
+ifeq ($(BR2_PACKAGE_GETTEXT),y)
+MINETEST_DEPENDENCIES += gettext
+MINETEST_CONF_OPTS += -DENABLE_GETTEXT=ON
+else
+MINETEST_CONF_OPTS += -DENABLE_GETTEXT=OFF
+endif

What is this ENABLE_GETTEXT=ON/OFF option doing exactly?

It allows using translations.

When enabled msgfmt tool is used to create *.mo files etc...

https://github.com/minetest/minetest/blob/master/README.txt#L180

Best regards,
Romain

Quoted 3 lines

Thomas

#19 lore raw

PATCH v2 7/13 package/minetest: add gles optional dependency

In reply to Thomas Petazzoni

Hi Thomas,

Le 24/06/2017 ? 17:21, Thomas Petazzoni a ?crit :

Quoted 24 lines

Hello,

Quoted 21 lines · Romain Naour
---
 package/minetest/minetest.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/minetest/minetest.mk +0 -1
index 5075fc0..0302bd3 100644
@@ -14,7 +14,6 @@ MINETEST_DEPENDENCIES = irrlicht gmp jpeg jsoncpp luajit sqlite zlib
 MINETEST_CONF_OPTS = \
 	-DDEFAULT_RUN_IN_PLACE=OFF \
 	-DENABLE_SOUND=OFF \
-	-DENABLE_GLES=OFF \
 	-DENABLE_LUAJIT=ON \
 	-DENABLE_CURSES=OFF \
 	-DENABLE_POSTGRESQL=OFF \
@@ -52,6 +51,13 @@ else
 MINETEST_CONF_OPTS += -DENABLE_GETTEXT=OFF
 endif
 
Quoted 10 lines

package/minetest/minetest.mk else · line 59

Quoted 6 lines
package/minetest/minetest.mk +6 -0
+ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
+MINETEST_DEPENDENCIES += libgles
+MINETEST_CONF_OPTS += -DENABLE_GLES=ON
+else
+MINETEST_CONF_OPTS += -DENABLE_GLES=OFF
+endif

The overall minetest package already depends on libGL support, inherited from irrlicht. Do we have useful situations where GLES support can be leveraged, since anyway you require libGL+X11 ?

I looked in the code and it seems that GLES is used only for Android build.

https://github.com/minetest/minetest/blob/master/src/client/tile.cpp#L43

I'll remove this patch the v3.

Best regards,
Romain

Quoted 5 lines

Best regards,

Thomas

#22 lore raw

PATCH v2 8/13 package/minetest: enable sound support

In reply to Thomas Petazzoni

Hi Thomas,

Le 24/06/2017 ? 17:21, Thomas Petazzoni a ?crit :

Quoted 12 lines

Hello,

Quoted 8 lines · Romain Naour
package/minetest/Config.in +0 -0
index d0613a2..a15a8f7 100644
@@ -55,6 +55,14 @@ config BR2_PACKAGE_MINETEST_CLIENT_SERVER
 
 endchoice
 
Quoted 7 lines

package/minetest/Config.in config BR2_PACKAGE_MINETEST_CLIENT_SERVER · line 62

Quoted 5 lines
package/minetest/Config.in +5 -0
+config BR2_PACKAGE_MINETEST_SOUND
+	bool "enable sound"
+	depends on BR2_PACKAGE_MINETEST_CLIENT
+	depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
+	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # openal

-> Config.in comment for this dependency?

Done.

Best regards,
Romain

Quoted 10 lines

package/minetest/Config.in config BR2_PACKAGE_MINETEST_CLIENT_SERVER · line 66

Quoted 5 lines
package/minetest/Config.in +3 -0
+	select BR2_PACKAGE_LIBVORBIS
+	select BR2_PACKAGE_OPENAL
+
 endif

Thanks,

Thomas

#29 lore raw

PATCH v2 13/13 package/minetest_game: new package

In reply to Thomas Petazzoni

Hi Thomas,

Le 24/06/2017 ? 17:29, Thomas Petazzoni a ?crit :

Quoted 15 lines

Hello,

Quoted 6 lines · Romain Naour

---
v2: update to 0.4.16
update license file
Add a hash file
backport an upstream patch due to regression.

I'm not a big fan of underscores in the name of packages, but I agree it's the upstream name... and we already have a few packages with underscores in their name, so I guess it's more a personal taste than a real rule here.

Quoted 6 lines

package/minetest_game/minetest_game.mk line 37

Quoted 3 lines
package/minetest_game/minetest_game.mk new file +3 -0
+define MINETEST_GAME_INSTALL_TARGET_CMDS
+	mkdir -p $(TARGET_DIR)/usr/share/minetest/games/minetest_game
+	rsync -av $(@D)/* --exclude=".*" $(TARGET_DIR)/usr/share/minetest/games/minetest_game

What about using "cp -dpfr", which we use more commonly in packages to copy entire file/directory hierarchies?

I wanted to avoid copying .gitignore .luacheckrc .travis.yml to
$(TARGET_DIR)/usr/share/minetest/games/minetest_game.

But ok, it's small files...

Done.

Thanks for the review.

Best regards,
Romain

Quoted 5 lines

Thanks,

Thomas

#8 lore raw

PATCH v2 3/13 package/minetest: new package

In reply to Romain Naour

Hello,

Quoted 10 lines · Romain Naour

Le 24/06/2017 ? 17:19, Thomas Petazzoni a ?crit :

Quoted 9 lines

Hello,

Quoted 4 lines · Romain Naour
package/minetest/0001-CMake-link-with-Intl-when-necessary.patch new file +4 -0
+ 		message(STATUS "GetText enabled; locales found: ${GETTEXT_AVAILABLE_LOCALES}")
++		# On some platforms, such as Linux with GNU libc, the gettext
++		# functions are present in the C standard library and libintl
++		# is not required. For other libc (uClibc-ng or musl) libintl  
Quoted 4 lines
Quoted 1 line

Only uClibc-ng in fact. musl has stub gettext functionality.

So, with your series applied during the summer camp this is not true even with uClibc-ng.

Correct: now all C libraries provide some gettext implementation.

Quoted 1 line

I think BR2_SYSTEM_ENABLE_NLS should be used in minetest.mk.

Why?

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#14 lore raw

PATCH v2 5/13 package/minetest: add gettext optional dependency

In reply to Romain Naour

Hello,

Quoted 21 lines · Romain Naour
Quoted 12 lines · Romain Naour
Quoted 11 lines

MINETEST_CONF_OPTS = \

package/minetest/minetest.mk +0 -1
 	-DDEFAULT_RUN_IN_PLACE=OFF \
-	-DENABLE_GETTEXT=OFF \
 	-DENABLE_SOUND=OFF \
 	-DENABLE_GLES=OFF \
 	-DENABLE_FREETYPE=OFF \
@@ -40,6 +39,13 @@ else
 MINETEST_CONF_OPTS += -DBUILD_SERVER=OFF
 endif
 
Quoted 8 lines

package/minetest/minetest.mk else · line 47

Quoted 6 lines
package/minetest/minetest.mk +6 -0
+ifeq ($(BR2_PACKAGE_GETTEXT),y)
+MINETEST_DEPENDENCIES += gettext
+MINETEST_CONF_OPTS += -DENABLE_GETTEXT=ON
+else
+MINETEST_CONF_OPTS += -DENABLE_GETTEXT=OFF
+endif  

What is this ENABLE_GETTEXT=ON/OFF option doing exactly?

Quoted 5 lines

It allows using translations.

When enabled msgfmt tool is used to create *.mo files etc...

https://github.com/minetest/minetest/blob/master/README.txt#L180

Then simply do:

MINETEST_DEPENDENCIES += $(TARGET_NLS_DEPENDENCIES)

ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
pass -DENABLE_GETTEXT=ON
else
pass -DENABLE_GETTEXT=OFF
endif

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#9 lore raw

PATCH v2 3/13 package/minetest: new package

In reply to Thomas Petazzoni

Hi Thomas,

Le 13/07/2017 ? 10:24, Thomas Petazzoni a ?crit :

Quoted 14 lines

Hello,

Quoted 10 lines · Romain Naour

Le 24/06/2017 ? 17:19, Thomas Petazzoni a ?crit :

Quoted 9 lines

Hello,

Quoted 4 lines · Romain Naour
package/minetest/0001-CMake-link-with-Intl-when-necessary.patch new file +4 -0
+ 		message(STATUS "GetText enabled; locales found: ${GETTEXT_AVAILABLE_LOCALES}")
++		# On some platforms, such as Linux with GNU libc, the gettext
++		# functions are present in the C standard library and libintl
++		# is not required. For other libc (uClibc-ng or musl) libintl  
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Only uClibc-ng in fact. musl has stub gettext functionality.

So, with your series applied during the summer camp this is not true even with uClibc-ng.

Correct: now all C libraries provide some gettext implementation.

So this patch is not required anymore since gettext stub will be used.

Quoted 4 lines
Quoted 2 lines

I think BR2_SYSTEM_ENABLE_NLS should be used in minetest.mk.

Why?

I mean BR2_SYSTEM_ENABLE_NLS should be used for gettext handling, see the followup patch.

Best regards,
Romain

Quoted 3 lines

Thomas

#15 lore raw

PATCH v2 5/13 package/minetest: add gettext optional dependency

In reply to Thomas Petazzoni

Hi Thomas,

Le 13/07/2017 ? 10:25, Thomas Petazzoni a ?crit :

Quoted 33 lines

Hello,

Quoted 21 lines · Romain Naour
Quoted 12 lines · Romain Naour
Quoted 11 lines

MINETEST_CONF_OPTS = \

package/minetest/minetest.mk +0 -1
 	-DDEFAULT_RUN_IN_PLACE=OFF \
-	-DENABLE_GETTEXT=OFF \
 	-DENABLE_SOUND=OFF \
 	-DENABLE_GLES=OFF \
 	-DENABLE_FREETYPE=OFF \
@@ -40,6 +39,13 @@ else
 MINETEST_CONF_OPTS += -DBUILD_SERVER=OFF
 endif
 
Quoted 8 lines

package/minetest/minetest.mk else · line 47

Quoted 6 lines
package/minetest/minetest.mk +6 -0
+ifeq ($(BR2_PACKAGE_GETTEXT),y)
+MINETEST_DEPENDENCIES += gettext
+MINETEST_CONF_OPTS += -DENABLE_GETTEXT=ON
+else
+MINETEST_CONF_OPTS += -DENABLE_GETTEXT=OFF
+endif  

What is this ENABLE_GETTEXT=ON/OFF option doing exactly?

Quoted 5 lines

It allows using translations.

When enabled msgfmt tool is used to create *.mo files etc...

https://github.com/minetest/minetest/blob/master/README.txt#L180

Then simply do:

Quoted 7 lines

MINETEST_DEPENDENCIES += $(TARGET_NLS_DEPENDENCIES)

ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
pass -DENABLE_GETTEXT=ON
else
pass -DENABLE_GETTEXT=OFF
endif

Yes, that what I wanted to do.

Best regards,
Romain

Quoted 5 lines

Best regards,

Thomas