10 Commits

Author SHA256 Message Date
70f978d97e Accepting request 1313084 from devel:languages:haxe
- Relax the mbedtls dependency since upstream supports building with version 3 boo#1252435

OBS-URL: https://build.opensuse.org/request/show/1313084
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hashlink?expand=0&rev=11
2025-10-23 14:37:27 +00:00
0756618101 - Relax the mbedtls dependency since upstream supports building with version 3 boo#1252435
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haxe/hashlink?expand=0&rev=26
2025-10-22 22:05:47 +00:00
2318561008 - Allow compiling with mbedtls 3, supported upstreama boo#1252435
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haxe/hashlink?expand=0&rev=25
2025-10-22 22:01:16 +00:00
be6ca86e31 Accepting request 1265352 from devel:languages:haxe
- Fix build on architectures different to ix86 and x86_64 by disabling the VM
  and adding implement_hl_debug_break_for_more_architectures.patch
- Drop fix_arm_compilation.patch

OBS-URL: https://build.opensuse.org/request/show/1265352
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hashlink?expand=0&rev=10
2025-03-31 09:42:16 +00:00
72626b155e - Fix build on architectures different to ix86 and x86_64 by disabling the VM
and adding implement_hl_debug_break_for_more_architectures.patch
- Drop fix_arm_compilation.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haxe/hashlink?expand=0&rev=23
2025-03-28 16:24:51 +00:00
76cd9c8b9c Accepting request 1256260 from devel:languages:haxe
- Update to version 1.15
  * added more GL functions
  * added heaps.hdll (contains mikkt, meshtools, convex hull)
  * added GUID type support (int64 with debugger string representation)
  * fixes in UI8/F32 handling
  * GC bug fixes
  * some other bugfixes and minor improvements
- Refresh 0001-fix-rpath.patch
- Add fix_arm_compilation.patch
- Drop 0001-cmake-Install-hlc_main.c-with-hl.h-and-hlc.h.patch,
  0001-Disable-the-JIT-tests-on-arm-architectures.patch,
  0001-cmake-Don-t-build-the-interpreter-on-ARM.patch,
  0001-cmake-Don-t-run-the-version-test-if-the-interpreter-.patch,
  fix_incompatible-pointer-types.patch

OBS-URL: https://build.opensuse.org/request/show/1256260
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hashlink?expand=0&rev=9
2025-03-26 20:23:48 +00:00
3bec58a374 - Update to version 1.15
* added more GL functions
  * added heaps.hdll (contains mikkt, meshtools, convex hull)
  * added GUID type support (int64 with debugger string representation)
  * fixes in UI8/F32 handling
  * GC bug fixes
  * some other bugfixes and minor improvements
- Refresh 0001-fix-rpath.patch
- Add fix_arm_compilation.patch
- Drop 0001-cmake-Install-hlc_main.c-with-hl.h-and-hlc.h.patch,
  0001-Disable-the-JIT-tests-on-arm-architectures.patch,
  0001-cmake-Don-t-build-the-interpreter-on-ARM.patch,
  0001-cmake-Don-t-run-the-version-test-if-the-interpreter-.patch,
  fix_incompatible-pointer-types.patch
- Add depenedncy on pkgconfig(glu)
- Add fix_incompatible-pointer-types.patch to fix build with more recent version of gcc
- Update to version 1.14
  * improved very significantly GC performances by using prefetch and multiple
    mark threads
  * reimplement CArray using native opcodes (requires Haxe 4.4+)
  * dynobj fields are now correctly ordered in the order they were set
  * added Prefetch and Asm opcodes (requires Haxe 4.4+)
  * added Intel VTune support (JIT only)
  * upgraded to PCRE2 for regular expressions
  * ... and many additional changes and fixes
- Drop 0001-fix-return-non-void-functions.patch
- Update to version 1.13
  * support for CArray (contiguous memory array of objects)
  * support for @:packed (requires latest Haxe) : declare an object field like
    in C struct
  * improved GC performances
  * completed int64 support, including int64 maps
  * added DirectX12 support
  * added SDL/DX mouse handle API (by @Yanrishatum)
  * added named threads support + debugger support
  * ... and many additional changes
- Add 0001-fix-return-non-void-functions.patch: fix build with -Werror=return-type
- Drop 0001-cmake-Link-sdl.hdll-with-OpenGL.patch: accepted upstream
- Add 0001-fix-rpath.patch: Fix the RPATH of the hl binary to comply with rpm validations
- Add 0001-cmake-Don-t-build-the-interpreter-on-ARM.patch and
  0001-cmake-Don-t-run-the-version-test-if-the-interpreter-.patch : disable the
  interpreter on ARM architectures
- Update to version 1.12
  * support for hot reload
  * added native int64 support (for x64 only, compile with -D hl-legacy32 to keep hl32 i64 emulation)
  * added field name to null access exceptions
  * added hl.Api.compact to compact a set of values into a single GC block
  * better stack primitives for faster haxe throw
  * added 16 bits PNG decoding (fmt)
  * added captured stack for closures (when debugger connected)
  * added ftell2/fseek2 for large file support
  * added optional library support @:native("?lib","name") static function foo() : Void allowing runtime detection of libraries (as well as hl.Api.isPrimLoaded)
  * changed Windows binary to use VS2015 (was VS2013)
- Move the libraries to subpackages and don't reference the devel subpackage from the main package
- Include the license in the devel subpackage
- 0001-Disable-the-JIT-tests-on-arm-architectures.patch : Add reference to pull request
- Add 0001-Disable-the-JIT-tests-on-arm-architectures.patch to disable JIT tests on ARM
- Use cmake to build the project
- Add 0001-cmake-Link-sdl.hdll-with-OpenGL.patch to fix linking with OpenGL
- Add 0001-cmake-Install-hlc_main.c-with-hl.h-and-hlc.h.patch to install hlc_main.c
- Initial version

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haxe/hashlink?expand=0&rev=21
2025-03-26 14:15:04 +00:00
2fd8eaa152 - Update to version 1.15
* added more GL functions
  * added heaps.hdll (contains mikkt, meshtools, convex hull)
  * added GUID type support (int64 with debugger string representation)
  * fixes in UI8/F32 handling
  * GC bug fixes
  * some other bugfixes and minor improvements
- Refresh 0001-fix-rpath.patch
- Drop 0001-cmake-Install-hlc_main.c-with-hl.h-and-hlc.h.patch,
  0001-Disable-the-JIT-tests-on-arm-architectures.patch,
  0001-cmake-Don-t-build-the-interpreter-on-ARM.patch,
  0001-cmake-Don-t-run-the-version-test-if-the-interpreter-.patch,
  fix_incompatible-pointer-types.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haxe/hashlink?expand=0&rev=20
2025-03-24 21:40:31 +00:00
a709566315 Accepting request 1253132 from devel:languages:haxe
- Add depenedncy on pkgconfig(glu)

OBS-URL: https://build.opensuse.org/request/show/1253132
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hashlink?expand=0&rev=8
2025-03-14 22:52:47 +00:00
0d939a2583 - Add depenedncy on pkgconfig(glu)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haxe/hashlink?expand=0&rev=18
2025-03-14 15:48:39 +00:00
11 changed files with 140 additions and 414 deletions

View File

@@ -1,127 +0,0 @@
From 4cfdad9d9b8344d9f871dba7a0201d54d1565833 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?=
<jaime.marquinez.ferrandiz@fastmail.net>
Date: Fri, 25 Feb 2022 17:42:27 +0100
Subject: [PATCH] Disable the JIT tests on arm architectures
Upstream: submitted
References: gh#HaxeFoundation/hashlink#521
---
CMakeLists.txt | 25 ++++++++++++++++---------
1 file changed, 16 insertions(+), 9 deletions(-)
Index: hashlink-1.14/CMakeLists.txt
===================================================================
--- hashlink-1.14.orig/CMakeLists.txt
+++ hashlink-1.14/CMakeLists.txt
@@ -194,41 +194,48 @@ if(BUILD_TESTING)
haxe
)
- #####################
- # hello.hl
-
- add_custom_command(OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/hello.hl
- COMMAND ${HAXE_COMPILER}
- -hl ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/hello.hl
- -cp ${CMAKE_SOURCE_DIR}/other/tests -main HelloWorld
- )
- add_custom_target(hello.hl ALL
- DEPENDS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/hello.hl
- )
-
- #####################
- # threads.hl
-
- add_custom_command(OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/threads.hl
- COMMAND ${HAXE_COMPILER}
- -hl ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/threads.hl
- -cp ${CMAKE_SOURCE_DIR}/other/tests -main Threads
- )
- add_custom_target(threads.hl ALL
- DEPENDS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/threads.hl
- )
-
- #####################
- # uvsample.hl
-
- add_custom_command(OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/uvsample.hl
- COMMAND ${HAXE_COMPILER}
- -hl ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/uvsample.hl
- -cp ${CMAKE_SOURCE_DIR}/other/uvsample -main UVSample
- )
- add_custom_target(uvsample.hl ALL
- DEPENDS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/uvsample.hl
- )
+ set(JIT_TEST_ENABLED TRUE)
+ if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm|aarch64")
+ set(JIT_TEST_ENABLED FALSE)
+ endif()
+
+ if(JIT_TEST_ENABLED)
+ #####################
+ # hello.hl
+
+ add_custom_command(OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/hello.hl
+ COMMAND ${HAXE_COMPILER}
+ -hl ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/hello.hl
+ -cp ${CMAKE_SOURCE_DIR}/other/tests -main HelloWorld
+ )
+ add_custom_target(hello.hl ALL
+ DEPENDS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/hello.hl
+ )
+
+ #####################
+ # threads.hl
+
+ add_custom_command(OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/threads.hl
+ COMMAND ${HAXE_COMPILER}
+ -hl ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/threads.hl
+ -cp ${CMAKE_SOURCE_DIR}/other/tests -main Threads
+ )
+ add_custom_target(threads.hl ALL
+ DEPENDS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/threads.hl
+ )
+
+ #####################
+ # uvsample.hl
+
+ add_custom_command(OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/uvsample.hl
+ COMMAND ${HAXE_COMPILER}
+ -hl ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/uvsample.hl
+ -cp ${CMAKE_SOURCE_DIR}/other/uvsample -main UVSample
+ )
+ add_custom_target(uvsample.hl ALL
+ DEPENDS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/uvsample.hl
+ )
+ ENDIF(JIT_TEST_ENABLED)
#####################
# hello.c
@@ -300,15 +307,17 @@ if(BUILD_TESTING)
#####################
# Tests
- add_test(NAME hello.hl
- COMMAND hl ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/hello.hl
- )
- add_test(NAME threads.hl
- COMMAND hl ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/threads.hl
- )
- add_test(NAME uvsample.hl
- COMMAND hl ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/uvsample.hl 6001
- )
+ IF(JIT_TEST_ENABLED)
+ add_test(NAME hello.hl
+ COMMAND hl ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/hello.hl
+ )
+ add_test(NAME threads.hl
+ COMMAND hl ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/threads.hl
+ )
+ add_test(NAME uvsample.hl
+ COMMAND hl ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/uvsample.hl 6001
+ )
+ ENDIF(JIT_TEST_ENABLED)
add_test(NAME hello
COMMAND hello
)

View File

@@ -1,130 +0,0 @@
From 5f294de79b17e9131f9c5fac583ba6c0273f072c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?=
<jaime.marquinez.ferrandiz@fastmail.net>
Date: Fri, 20 May 2022 18:28:05 +0200
Subject: [PATCH] cmake: Don't build the interpreter on ARM
Upstream: submitted
References: gh#HaxeFoundation/hashlink#521
---
CMakeLists.txt | 51 ++++++++++++++++++++++++++++++--------------------
1 file changed, 31 insertions(+), 20 deletions(-)
Index: hashlink-1.14/CMakeLists.txt
===================================================================
--- hashlink-1.14.orig/CMakeLists.txt
+++ hashlink-1.14/CMakeLists.txt
@@ -34,6 +34,11 @@ else()
set(CMAKE_C_STANDARD_REQUIRED ON)
endif()
+set(INTERPRETER_ENABLED TRUE)
+if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm|aarch64")
+ set(INTERPRETER_ENABLED FALSE)
+endif()
+
# put output in "bin"
set(OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/bin)
@@ -165,24 +170,28 @@ set_target_properties(libhl
COMPILE_DEFINITIONS "_USRDLL;LIBHL_EXPORTS;HAVE_CONFIG_H;PCRE2_CODE_UNIT_WIDTH=16"
)
-add_executable(hl
- src/code.c
- src/jit.c
- src/main.c
- src/module.c
- src/debugger.c
- src/profile.c
-)
+if(INTERPRETER_ENABLED)
+ add_executable(hl
+ src/code.c
+ src/jit.c
+ src/main.c
+ src/module.c
+ src/debugger.c
+ src/profile.c
+ )
-if (UNIX AND NOT APPLE)
- set_target_properties(hl PROPERTIES INSTALL_RPATH "$ORIGIN;${CMAKE_INSTALL_PREFIX}/lib")
-endif()
+ if (UNIX AND NOT APPLE)
+ set_target_properties(hl PROPERTIES INSTALL_RPATH "$ORIGIN;${CMAKE_INSTALL_PREFIX}/lib")
+ endif()
-target_link_libraries(hl libhl)
+ target_link_libraries(hl libhl)
+endif()
if(WIN32)
target_link_libraries(libhl ws2_32 user32)
- target_link_libraries(hl user32)
+ if(INTERPRETER_ENABLED)
+ target_link_libraries(hl user32)
+ endif()
else()
target_link_libraries(libhl m dl pthread)
endif()
@@ -194,12 +203,7 @@ if(BUILD_TESTING)
haxe
)
- set(JIT_TEST_ENABLED TRUE)
- if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm|aarch64")
- set(JIT_TEST_ENABLED FALSE)
- endif()
-
- if(JIT_TEST_ENABLED)
+ if(INTERPRETER_ENABLED)
#####################
# hello.hl
@@ -235,7 +239,7 @@ if(BUILD_TESTING)
add_custom_target(uvsample.hl ALL
DEPENDS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/uvsample.hl
)
- ENDIF(JIT_TEST_ENABLED)
+ ENDIF(INTERPRETER_ENABLED)
#####################
# hello.c
@@ -307,7 +311,7 @@ if(BUILD_TESTING)
#####################
# Tests
- IF(JIT_TEST_ENABLED)
+ IF(INTERPRETER_ENABLED)
add_test(NAME hello.hl
COMMAND hl ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/hello.hl
)
@@ -317,7 +321,7 @@ if(BUILD_TESTING)
add_test(NAME uvsample.hl
COMMAND hl ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/uvsample.hl 6001
)
- ENDIF(JIT_TEST_ENABLED)
+ ENDIF(INTERPRETER_ENABLED)
add_test(NAME hello
COMMAND hello
)
@@ -360,10 +364,15 @@ set(HDLL_DESTINATION
${CMAKE_INSTALL_LIBDIR}
)
+
+if(INTERPRETER_ENABLED)
+ set(INSTALL_TARGETS hl libhl)
+else()
+ set(INSTALL_TARGETS libhl)
+endif()
+
install(
- TARGETS
- hl
- libhl
+ TARGETS ${INSTALL_TARGETS}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}

View File

@@ -1,45 +0,0 @@
From 0bcdfac6782485dd8b3ba218e9f5b0e3b1bfe58f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?=
<jaime.marquinez.ferrandiz@fastmail.net>
Date: Sat, 21 May 2022 13:55:11 +0200
Subject: [PATCH] cmake: Don't run the version test if the interpreter is not
enabled
Upstream: submitted
References: gh#HaxeFoundation/hashlink#521
---
CMakeLists.txt | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
Index: hashlink-1.14/CMakeLists.txt
===================================================================
--- hashlink-1.14.orig/CMakeLists.txt
+++ hashlink-1.14/CMakeLists.txt
@@ -321,6 +321,13 @@ if(BUILD_TESTING)
add_test(NAME uvsample.hl
COMMAND hl ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test/uvsample.hl 6001
)
+ add_test(NAME version
+ COMMAND hl --version
+ )
+ set_tests_properties(version
+ PROPERTIES
+ PASS_REGULAR_EXPRESSION "${HL_VERSION}"
+ )
ENDIF(INTERPRETER_ENABLED)
add_test(NAME hello
COMMAND hello
@@ -331,13 +338,6 @@ if(BUILD_TESTING)
add_test(NAME uvsample
COMMAND uvsample 6002
)
- add_test(NAME version
- COMMAND hl --version
- )
- set_tests_properties(version
- PROPERTIES
- PASS_REGULAR_EXPRESSION "${HL_VERSION}"
- )
endif()

View File

@@ -1,31 +0,0 @@
From fe71a9ed1691901a22973386c2f0d7c1513f1433 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?=
<jaime.marquinez.ferrandiz@fastmail.net>
Date: Sat, 19 Feb 2022 21:00:13 +0100
Subject: [PATCH] cmake: Install hlc_main.c with hl.h and hlc.h
Upstream: submitted
References: gh#HaxeFoundation/hashlink#517
This matches the behaviour of the Makefile
---
CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 01c0014..d66d26a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -327,6 +327,10 @@ install(
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
+install(
+ FILES src/hlc_main.c
+ TYPE INCLUDE
+)
# uninstall target
# https://gitlab.kitware.com/cmake/community/wikis/FAQ#can-i-do-make-uninstall-with-cmake
--
2.35.1

View File

@@ -1,8 +1,8 @@
Index: hashlink-1.14/CMakeLists.txt
Index: hashlink-1.15/CMakeLists.txt
===================================================================
--- hashlink-1.14.orig/CMakeLists.txt
+++ hashlink-1.14/CMakeLists.txt
@@ -181,7 +181,7 @@ if(INTERPRETER_ENABLED)
--- hashlink-1.15.orig/CMakeLists.txt
+++ hashlink-1.15/CMakeLists.txt
@@ -188,7 +188,7 @@ if (WITH_VM)
)
if (UNIX AND NOT APPLE)

View File

@@ -1,58 +0,0 @@
From 1a820f5eacd76a03dada036e94a5457d08aaf501 Mon Sep 17 00:00:00 2001
From: Apprentice-Alchemist
<53486764+Apprentice-Alchemist@users.noreply.github.com>
Date: Tue, 21 May 2024 22:27:45 +0200
Subject: [PATCH] [mysql] Fix compilation.
References: gh#HaxeFoundation/hashlink#686
---
libs/mysql/my_api.c | 1 +
libs/mysql/socket.c | 2 +-
libs/sqlite/sqlite.c | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/libs/mysql/my_api.c b/libs/mysql/my_api.c
index d606438bb..cb70e5519 100644
--- a/libs/mysql/my_api.c
+++ b/libs/mysql/my_api.c
@@ -20,6 +20,7 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
+#define _GNU_SOURCE
#include <stdlib.h>
#include <memory.h>
#include <stdio.h>
diff --git a/libs/mysql/socket.c b/libs/mysql/socket.c
index 51ab16579..17daa7ac0 100644
--- a/libs/mysql/socket.c
+++ b/libs/mysql/socket.c
@@ -19,6 +19,7 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
+#define _GNU_SOURCE
#include "socket.h"
#include <string.h>
@@ -29,7 +30,6 @@
# define HANDLE_EINTR(x)
#else
-# define _GNU_SOURCE
# include <sys/types.h>
# include <sys/socket.h>
# include <sys/time.h>
diff --git a/libs/sqlite/sqlite.c b/libs/sqlite/sqlite.c
index 587465819..c40f96b4b 100644
--- a/libs/sqlite/sqlite.c
+++ b/libs/sqlite/sqlite.c
@@ -117,7 +117,7 @@ HL_PRIM sqlite_result *HL_NAME(request)(sqlite_database *db, vbyte *sql ) {
r->finalize = HL_NAME(finalize_result);
r->db = NULL;
- if( sqlite3_prepare16_v2(db->db, sql, -1, &r->r, &tl) != SQLITE_OK ) {
+ if( sqlite3_prepare16_v2(db->db, sql, -1, &r->r, (const void**)&tl) != SQLITE_OK ) {
HL_NAME(error)(db->db, false);
}

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7def473c8fa620011c7359dc36524246c83d0b6a25d495d421750ecb7182cc99
size 4620084

3
hashlink-1.15.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3c3e3d47ed05139163310cbe49200de8fb220cd343a979cd1f39afd91e176973
size 5694738

View File

@@ -1,3 +1,38 @@
-------------------------------------------------------------------
Wed Oct 22 21:55:28 UTC 2025 - Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>
- Relax the mbedtls dependency since upstream supports building with version 3 boo#1252435
-------------------------------------------------------------------
Fri Mar 28 16:07:46 UTC 2025 - Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>
- Fix build on architectures different to ix86 and x86_64 by disabling the VM
and adding implement_hl_debug_break_for_more_architectures.patch
- Drop fix_arm_compilation.patch
-------------------------------------------------------------------
Mon Mar 24 21:01:32 UTC 2025 - Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>
- Update to version 1.15
* added more GL functions
* added heaps.hdll (contains mikkt, meshtools, convex hull)
* added GUID type support (int64 with debugger string representation)
* fixes in UI8/F32 handling
* GC bug fixes
* some other bugfixes and minor improvements
- Refresh 0001-fix-rpath.patch
- Add fix_arm_compilation.patch
- Drop 0001-cmake-Install-hlc_main.c-with-hl.h-and-hlc.h.patch,
0001-Disable-the-JIT-tests-on-arm-architectures.patch,
0001-cmake-Don-t-build-the-interpreter-on-ARM.patch,
0001-cmake-Don-t-run-the-version-test-if-the-interpreter-.patch,
fix_incompatible-pointer-types.patch
-------------------------------------------------------------------
Fri Mar 14 15:26:21 UTC 2025 - Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>
- Add depenedncy on pkgconfig(glu)
-------------------------------------------------------------------
Tue Sep 3 18:08:48 UTC 2024 - Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>

View File

@@ -1,7 +1,7 @@
#
# spec file for package hashlink
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,29 +16,25 @@
#
%ifarch %{ix86} %{x86_64}
%define with_vm 1
%endif
Name: hashlink
Version: 1.14
Version: 1.15
Release: 0
Summary: A virtual machine for Haxe
License: MIT
URL: https://hashlink.haxe.org/
Source0: https://github.com/HaxeFoundation/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM
Patch01: 0001-cmake-Install-hlc_main.c-with-hl.h-and-hlc.h.patch
# PATCH-FIX-UPSTREAM
Patch02: 0001-Disable-the-JIT-tests-on-arm-architectures.patch
# PATCH-FIX-UPSTREAM
Patch03: 0001-cmake-Don-t-build-the-interpreter-on-ARM.patch
# PATCH-FIX-UPSTREAM
Patch04: 0001-cmake-Don-t-run-the-version-test-if-the-interpreter-.patch
# PATCH-FIX-OPENSUSE
Patch05: 0001-fix-rpath.patch
# PATCH-FIX-UPSTREAM https://github.com/HaxeFoundation/hashlink/pull/686
Patch06: fix_incompatible-pointer-types.patch
Patch0: 0001-fix-rpath.patch
# PATCH-FIX-UPSTREAM https://github.com/HaxeFoundation/hashlink/pull/765
Patch1: implement_hl_debug_break_for_more_architectures.patch
BuildRequires: cmake
BuildRequires: haxe >= 4.0
BuildRequires: mbedtls-devel < 3
BuildRequires: mbedtls-devel
BuildRequires: cmake(sdl2)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libturbojpeg)
BuildRequires: pkgconfig(libuv)
@@ -84,7 +80,7 @@ code generated by the haxe compiler.
# The build process for the tests uses haxe and requires the hashlink library
haxelib setup ./haxelib
haxelib dev hashlink other/haxelib
%cmake
%cmake -DWITH_VM=%{?with_vm:ON}%{!?with_vm:OFF}
%cmake_build
%install
@@ -98,7 +94,7 @@ haxelib dev hashlink other/haxelib
%postun -n libhl1 -p /sbin/ldconfig
%files
%ifnarch %{arm} %{arm64}
%if %{defined with_vm}
%{_bindir}/hl
%endif
%license LICENSE

View File

@@ -0,0 +1,86 @@
From 737a6629cada6960e2c8c7e73d75117b9baf5726 Mon Sep 17 00:00:00 2001
From: Apprentice-Alchemist
<53486764+Apprentice-Alchemist@users.noreply.github.com>
Date: Wed, 26 Mar 2025 12:09:51 +0100
Subject: [PATCH] Implement hl_debug_break for more architectures.
Unify Linux/macOS implementations and enable hl_debug_break for all non-console platforms.
Remove usage of .pushsection embed-breakpoint because it doesn't actually do anything.
---
src/hl.h | 49 +++++++++++++++++++++++++++++++++----------------
1 file changed, 33 insertions(+), 16 deletions(-)
diff --git a/src/hl.h b/src/hl.h
index 3f57a027b..30635013a 100644
--- a/src/hl.h
+++ b/src/hl.h
@@ -283,28 +283,40 @@ C_FUNCTION_END
C_FUNCTION_BEGIN
HL_API void hl_debug_break( void );
C_FUNCTION_END
-#elif defined(HL_LINUX)
-# ifdef HL_64
+#elif !defined(HL_CONSOLE)
+
+// use __builtin_debugtrap when available
+// fall back to breakpoint instructions for certain architectures
+// else raise SIGTRAP
+# ifdef __has_builtin
+# if __has_builtin(__builtin_debugtrap)
+# define USE_BUILTIN_DEBUG_TRAP 1
+# endif
+# endif
+
+# ifdef USE_BUILTIN_DEBUG_TRAP
# define hl_debug_break() \
if( hl_detect_debugger() ) \
- __asm__("0: int3;" \
- ".pushsection embed-breakpoints;" \
- ".quad 0b;" \
- ".popsection")
-# else
+ __builtin_debugtrap()
+# elif defined(__x86_64__) || defined(__i386__)
# define hl_debug_break() \
if( hl_detect_debugger() ) \
- __asm__("0: int3;" \
- ".pushsection embed-breakpoints;" \
- ".long 0b;" \
- ".popsection")
-# endif
-#elif defined(HL_MAC)
-#include <signal.h>
-#include <mach/mach.h>
+ __asm__("int3;")
+# elif defined(__aarch64__)
+# define hl_debug_break() \
+ if( hl_detect_debugger() ) \
+ __asm__("brk #0xf000;")
+# elif defined(__riscv)
# define hl_debug_break() \
if( hl_detect_debugger() ) \
- raise(SIGTRAP);//__builtin_trap();
+ __asm__("ebreak;")
+# else
+# include <signal.h>
+# define hl_debug_break() \
+ if( hl_detect_debugger() ) \
+ raise(SIGTRAP)
+# endif
+#undef USE_BUILTIN_DEBUG_TRAP
#else
# define hl_debug_break()
#endif
@@ -913,6 +925,11 @@ struct _hl_trap_ctx {
#define HL_MAX_EXTRA_STACK 64
+#ifdef HL_MAC
+#include <mach/mach.h>
+#include <signal.h>
+#endif
+
typedef struct {
int thread_id;
// gc vars