6885 Commits

Author SHA1 Message Date
ec7fc8c94c Work around LuaJIT issues on aarch64 (issue 9614 at upstream)
* Related to [#9614](https://github.com/minetest/minetest/issues/7842)
  backported commit 1344b5dcc3683153187053afb584701c7d7e20f1
- Move the text segment below the 47-bit limit,
  needed for script_exception_wrapper which must be lightuserdata
- Replace CUSTOM_RIDX_SCRIPTAPI with full userdata
- Fix FreeBSD aarch64 faulies when use luajit
* FreeBSD uses lld, and lld does not support -Ttext-segment,
  suggesting --image-base instead. Not sure if it's equivalent change
  for the purpose at least if fixes build on FreeBSD/aarch64.
  Note that the code checks for FreeBSD, while it should really check
  for lld on any system, however I don't know any CMake facilities which allow this
* minenux/minetest-engine#16
2023-01-06 14:06:13 -04:00
8cf6e9fe56 use pkg-config to find luajit as last instance
* From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
* Date: Tue, 27 Dec 2016 15:23:09 +0100
* backported from 7336cbdfe2
2023-01-06 13:21:44 -04:00
68acdf12b4 fix the Fix get_server_status() segfault due to uninitialized m_env
* Related to [#7857](https://github.com/minetest/minetest/issues/7857)
  due to uninitialized m_env , so rest of the diff was not necesary
* ajust commit 13ad926546def65f01b5941ebb21493278189bea that was
  incorrectly backported, due t_session variable type from mt 5.X
2023-01-06 12:56:50 -04:00
3206cb8f0f fix CI jobs, use right packages in debian builds 2023-01-05 18:01:43 -04:00
0711676786 configure CI gitlab builder and deployer, use debian 8,9,11 and winbuntu equivalents
* configure debian 8, debian 9 and debian 11, use same packages as my OBS ones
* configure winbuntus 14.10, 17.04, 20.04, sue equivalents to debian stables
* configure feladora shit 32 and fine tune feladora shit 24
2023-01-05 17:39:47 -04:00
d9518b1954 fix misctake from previous commit get_server_status() segfaults m_env
* Fix the fix commit 78d1c731e3181ee77af3dbabcec40b10e473702c
  for Fix get_server_status() segfault due to uninitialized m_env
  that refers to https://github.com/minetest/minetest/issues/7857
2023-01-05 16:56:30 -04:00
78d1c731e3 Fix get_server_status() segfault due to uninitialized m_env
* Fixes [#7857](https://github.com/minetest/minetest/issues/7857)
  minetest.get_server_status() causes a Segmentation fault
  tacken from 81d55338fa
* backported commit 13ad926546def65f01b5941ebb21493278189bea
2023-01-05 16:41:15 -04:00
fa1d056316 Fix core.download_file() creating empty files on HTTP error
* backported commit 55a77e8094994cd5bb970b38b6a2bd394346ec36
2023-01-05 16:34:19 -04:00
512e670de9 link with Intl only from cmake find modules, not assumed
* follow commit 80d97d28d and set as must be
2023-01-05 16:33:23 -04:00
eddb536850 remove rtmp due fails in some linuxes due extra package need
* related to minenux/minetest-engine#13
* backported from commit 3eabd6eba350443ae724f54e65a1a4caee7c5f9f
2023-01-05 16:07:25 -04:00
80d97d28d3 CMake: link with Intl when necessary for kfreebsd of non-glibc libs like alpine
* non Glibc system linking with Intl library may be needed whenGettext support is enabled.
* https://git.alpinelinux.org/aports/tree/community/minetest/0001-CMake-link-with-Intl-when-necessary.patch
* Fixes: clientlauncher.cpp:(.text+0xcac): undefined reference to `libintl_gettext'
* backported df01036c3f
2023-01-05 16:00:51 -04:00
88a9023d12 backported relocation header fix from alpine for 0.4
* backported from dda9276abb0c819a6cc7d2550062268b792957b6
2023-01-05 15:38:21 -04:00
a125db579e again fix for miscspelled sintax in CMakefile for compiling
* fix miscspelled sintax in cmakefile
* fix missing packages for debian based distros ad ci gitlab
* change server description after a search
  this backported https://gituhub.com/minetest/minetest/issues/6074
2023-01-05 15:18:32 -04:00
fbabea7c60 fix micspelled sintax in cmakefile at src and missing --force in CI build 2023-01-05 14:14:07 -04:00
13696f2a43 ajust build for older debian using gitlab CI
* build fails due missing --force-yes on debian builds
* assume good event if some repos fails to update in debian based shit distros
2023-01-05 14:03:32 -04:00
e3d46356c0 finally got compilinig flags for C++11 using gnu extensions only for gcc
* use normal right extension on clang, only gnu for gcc
* related to minenux/minetest-engine-minetest#18
* use c++11 but with gnu xtensions
* related to minenux/minetest-engine-minetest#14
* complete fix for 4ef3bc602f and set C++11/C++0X depends on compiler
* final set continuation of commit 83a552ed1a
* fix cmake if-else misctakes error sintax
* backported from 6a757711fbaa1b6c845dc6bf50ed7260d999cec9
2023-01-05 13:49:08 -04:00
2ba4f559aa try to fix curl linking problems, cos stupid minetest developers dont use pkg-config
* related to minenux/minetest-engine#13
* reported as https://github.com/minetest/minetest/issues/8483
* solved as https://github.com/minetest/minetest/issues/8482#issuecomment-485378755
* the problem was ignored by minetest stupid developers
2023-01-05 12:00:51 -04:00
1d10314a6d Install the locale directory in a standard location
* fixed builds in linux distributions
* backported 2349d31bae
* related: https://github.com/minetest/minetest/pull/9618
* backported ca8957f500
* Fix detection of in-place path_locale when RUN_IN_PLACE=0
* related: https://github.com/minetest/minetest/issues/9745
2023-01-05 11:36:23 -04:00
be06a8ad6b Disable shaders GUI on unsupported drivers
* address [#7563](https://github.com/minetest/minetest/issues/7563)
* Disable shaders GUI on unsupported drivers
  [#2060](https://github.com/minetest/minetest/issues/2060)
* Disable shaders if unavailable
* also backported "shaders disabled by default"
   continue of commit 21b1462b58
2023-01-05 09:29:24 -04:00
b920208550 Fix build for newer versions of GCC
* build with newer gcc 11
* backported 7c2826cbc0
2023-01-05 09:25:04 -04:00
2e7be0b9f1 Look for PostgreSQL library properly and fix CI
* fixed in cmake 3.20 but it's relatively easy to add a workaround
* This was only fixed by Kitware/CMake@8b066f1 (CMake 3.20),
* backported a24899bf2d
* https://codeberg.org/minenux/minenux/issues/32
2023-01-05 08:55:05 -04:00
2cf3b684f2 initialization standars for C++1 on mayor cases
* backported ffba2b7646
* Fix initialization standars for C++11 on mayor cases
* Let compatibilty for GCC 4.4+
2023-01-04 18:03:01 -04:00
cf6a378eae Fix build for stupid compilers
* issue http://github.com/minetest/minetest/issue/10256
* author Seeker on Date: Mon Aug 3 14:38:45 2020 -0700
* backported from d22fd6fc34
2023-01-04 17:53:53 -04:00
3022363dfb backported compilinig flags for C++11 using gnu extensions
* adapt  backorted commit 6a757711fbaa1b6c845dc6bf50ed7260d999cec9
* finally got compilinig flags for C++11 using gnu extensions
* related to minenux/minetest-engine#18
* use c++11 but with gnu xtensions
* related to minenux/minetest-engine#14
* complete fix for 4ef3bc602f and set C++11/C++0X depends on compiler
* final set continuation of commit 83a552ed1a
* fix cmake if-else misctakes error sintax
2023-01-04 17:49:31 -04:00
47c2970313 featured powered player setttings
* dragon fire hacked
2023-01-04 17:31:38 -04:00
db479a9e97 Merge branch 'stable-4.0' into stable-4.0-next, sync float limits
* fix commits 00114e9c23 and 8afa292ed8  and c63593ec39, merge
  the solution with stable-4.0-next to define final release soon
2023-01-04 16:36:43 -04:00
mckaygerhard
055ab7c38a Adap the "Remove unnecessary float limits from script API" to checks of floats
* backport 8ff3fadba0
* issues related:
    * https://github.com/minetest/minetest/issues/11742
    * https://github.com/minetest/minetest/issues/6129
* really close #4
* TODO adapt to use FLOAT checks
2022-07-20 22:01:31 +02:00
00114e9c23 Invalid float vector dimension range: clamp and warn instead of crash
* backported from https://github.com/minetest/minetest/pull/12389
* issues related:
    * https://github.com/minetest/minetest/issues/11742
    * https://github.com/minetest/minetest/issues/6129
* close https://codeberg.org/minenux/minetest-engine-minetest/issues/4
2022-06-03 16:43:48 -04:00
5a91e3a240 Invalid float vector dimension range: clamp and warn instead of crash
* backported from https://github.com/minetest/minetest/pull/12389
* issues related:
    * https://github.com/minetest/minetest/issues/11742
    * https://github.com/minetest/minetest/issues/6129
* close https://codeberg.org/minenux/minetest-engine-minetest/issues/4
2022-06-03 16:35:11 -04:00
9044b300d5 retrieve more client info on minetest 0.4 or 4.0 for minetest4
* take from https://forum.minetest.net/viewtopic.php?p=354631#p354631
* usefull for give more info for idetificatin of clients cheaters
2021-11-19 21:13:02 -04:00
e38c8177fe do not write auth.txt on each new user - added comit new command to
* do not write on each new user
* but let to write if set new password or any other case
* added new commit command
2021-11-03 16:47:39 -04:00
a42129a1a9 Key change menu: Fix for translating empty string
* Fix for incorrect translation of empty strings in key change menu
  In the key change menu, when a button key not have name
  an empty string is passed to gettext. The empty string is reserved
  for gettext to return de header of the .po file an this is shoved in the button
* backported 67cceb5064
2021-11-03 13:14:33 -04:00
eb306b9f36 Fix nodes dropping the wrong item
* Regression from minetest#5819 which caused handle_node_drops
  to ignore drops in a node's definition.
* backported da2b5212d12802a566f0fd13e257bf8ebe674f5a
2021-11-03 08:54:42 -04:00
dc8d041819 fix for a warning
* use __extension__ for lua_CFunction in loadlib.c
2021-11-02 18:36:07 -04:00
Loïc Blot
426b5d3149 Fix a crash on Android with Align2Npot2 (#8070)
* Fix a crash on Android with Align2Npot2

glGetString can be NULL. If stored in a string it triggers a SIGSEGV.
Instead do a basic strstr and verify the pointer
* Better Align2Npot2 check (+ performance)
2019-01-07 17:05:54 +01:00
Loïc Blot
dda844be16
Drop libgmp on Android and use mini-gmp (#8047) 2019-01-04 16:41:42 +01:00
Loïc Blot
899dcbf1ee Bump android version code for next Play Store version 2019-01-04 14:16:09 +01:00
Loïc Blot
957c59a678 Revert "upright_sprite: Fix texture position for players"
This reverts commit d58801ab3204757e6c49892a05633281144f4f44.
2019-01-03 12:04:51 +01:00
stujones11
3d15a6774d
Android: Fix start-up crashes on version 4.x (#8003)
* Android: Load shared STL library

* Android: Fix exception with window background image
2018-12-22 19:02:27 +01:00
Loic Blot
3c24f941e0
Add missing variables since previous cherry-pick 2018-12-22 17:28:22 +01:00
Maksim
9d64805ec1
Update Android java code (#7820)
Targets SDK 26 as required by the playstore.
Fixes screen auto-rotation closing game.
Hides on-screen navigation bar if present.

Update gradlew.
Fix display aspect on 18+/:9 displays (like a Samsung Galaxy S9).
Remove small app icons, not required.
Fix xml in unpacking activity.
Support Android permission: On Android 6.0+ you need to manually give write
permission (as required by google).
Background during unpacking (just a demo for now).
Material Design: no more Android 2 interface.
Immersive mode (Android 4.4+ - hide NavBar for fullscreen mode).
2018-12-22 17:25:38 +01:00
rubenwardy
ce4497224f
Android: Fix memory leak when displaying images in the mainmenu (#8011) 2018-12-22 17:20:18 +01:00
stujones11
a873a3f4f8
Include alpha channel reference in MaterialTypeParam 2018-12-22 17:15:39 +01:00
Loic Blot
86e29ae586
Update android version code (rebuild) 2018-12-04 19:11:03 +01:00
Loic Blot
dd5f03731a Bump android version to 20 2018-06-28 19:11:01 +02:00
Loic Blot
5e7faf3f50 Update cURL (7.60.0) & SQLite3 (3.24.0) 2018-06-28 19:11:01 +02:00
stujones11
8427ae529a Android: Use correct temporary path (#7463) 2018-06-28 19:11:01 +02:00
sfan5
2e85254e91 Fix MurmurHash implementation to really be unaligned (#7482) 2018-06-28 19:11:01 +02:00
red-001
971dea7efd Fix crash caused by Lua error during startup (#7473) 2018-06-28 19:11:01 +02:00
red-001
85ce23b165 Fix buffer overrun in SRP (#7484)
The old code got a pointer to the array instead of the first element, this resulted in a buffer overflow when the function was used more than once.
2018-06-28 19:11:01 +02:00