summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-28 09:28:27 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-28 09:28:27 +0000
commit3a247c78bd12d5a4e071f44d8a25d995b177b992 (patch)
tree40ed7eb427f96a35a8f99f52072f7bc0ffbfd50c
parente7ee91929bd6cdd515694008696915718ac51aa9 (diff)
automatic import of libopenni2-dev
-rw-r--r--aarch64-support.patch14
-rw-r--r--libopenni2-dev.spec9
-rw-r--r--sources2
3 files changed, 23 insertions, 2 deletions
diff --git a/aarch64-support.patch b/aarch64-support.patch
index e34967a..309698d 100644
--- a/aarch64-support.patch
+++ b/aarch64-support.patch
@@ -31,3 +31,17 @@ index 0000000..2eb8966
+# 2014-era C++ sources: build against gnu++14 to stay clear of C++17
+# removals (dynamic exception specifications, the register keyword, etc.).
+CFLAGS += -std=gnu++14
+diff --git a/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h b/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h
+--- a/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h
++++ b/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h
+@@ -53,6 +53,10 @@
+ #include "Linux-x86/XnPlatformLinux-x86.h"
+ #elif (__linux__ && __arm__)
+ #include "Linux-Arm/XnPlatformLinux-Arm.h"
++#elif (__linux__ && __aarch64__)
++// aarch64 is little-endian LP64 Linux; the Linux-x86 platform header defines
++// only arch-neutral C types and POSIX macros (no SSE/inline-asm), so reuse it.
++#include "Linux-x86/XnPlatformLinux-x86.h"
+ #elif _ARC
+ #include "ARC/XnPlaformARC.h"
+ #elif (__APPLE__)
diff --git a/libopenni2-dev.spec b/libopenni2-dev.spec
index 002c513..fee6619 100644
--- a/libopenni2-dev.spec
+++ b/libopenni2-dev.spec
@@ -7,7 +7,7 @@
Name: libopenni2-dev
Version: 2.2.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: OpenNI 2 framework for 3D sensors (development package)
License: Apache-2.0
@@ -93,5 +93,12 @@ install -p -m 0644 Include/*.h %{buildroot}%{_includedir}/openni2/
%{_includedir}/openni2/
%changelog
+* Mon Sep 28 2026 openEuler Builder <builder@openeuler.org> - 2.2.0-2
+- Extend aarch64-support.patch: add __aarch64__ branch to XnPlatform.h so the
+ C/C++ platform-abstraction header includes the Linux-x86 types header
+ (XnChar, XnUInt32, XN_INVALID_FILE_HANDLE, ...). The previous patch only
+ handled the Makefile-level platform detection; the C preprocessor still
+ hit "#error Unsupported Platform" and every type stayed undefined.
+
* Thu Sep 24 2026 openEuler Builder <builder@openeuler.org> - 2.2.0-1
- Initial package of OpenNI 2.2.0 for openEuler (aarch64 native build)
diff --git a/sources b/sources
index d87fd95..e8dc236 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-17db5637ce3de6109205891461fa8e41 libopenni2-dev-2.2.0.tar.gz
+dc494adf85397fc808fb1a00137ec6c9 libopenni2-dev-2.2.0.tar.gz