summaryrefslogtreecommitdiff
path: root/libopenni2-dev.spec
diff options
context:
space:
mode:
Diffstat (limited to 'libopenni2-dev.spec')
-rw-r--r--libopenni2-dev.spec17
1 files changed, 16 insertions, 1 deletions
diff --git a/libopenni2-dev.spec b/libopenni2-dev.spec
index 22b1a30..ad6f19f 100644
--- a/libopenni2-dev.spec
+++ b/libopenni2-dev.spec
@@ -2,12 +2,16 @@
# The upstream platform detection only knows x86 / x86_64 / arm32 and errors
# out on aarch64; Patch0 adds the aarch64 (Arm64) platform with neutral,
# SSE-free flags so the library and drivers build natively on aarch64.
+# Patch0 routes __aarch64__ to the arch-neutral Linux-x86 platform header in
+# BOTH platform-detection headers: ThirdParty/.../XnPlatform.h (XnLib
+# internal, used by Source/*) and Include/OniPlatform.h (OpenNI public API,
+# used by Source/DepthUtils via OniCTypes.h).
#
# topdir: libopenni2-dev-2.2.0
Name: libopenni2-dev
Version: 2.2.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: OpenNI 2 framework for 3D sensors (development package)
License: Apache-2.0
@@ -94,6 +98,17 @@ install -p -m 0644 Include/*.h %{buildroot}%{_includedir}/openni2/
%{_includedir}/openni2/
%changelog
+* Thu Sep 24 2026 openEuler Builder <builder@openeuler.org> - 2.2.0-3
+- Extend aarch64-support.patch: route __aarch64__ in Include/OniPlatform.h
+ (the OpenNI public API platform header) to the arch-neutral
+ Linux-x86/OniPlatformLinux-x86.h, mirroring the XnPlatform.h fix from -2.
+ The previous release fixed XnLib's XnPlatform.h so XnLib built, but
+ Source/DepthUtils includes OniPlatform.h (via OniCTypes.h) which still hit
+ '#error Unsupported Platform', cascading into 'uint16_t/uint8_t does not
+ name a type' and 'expected ) before *' errors. ONI_STDCALL/__stdcall is
+ only #define'd, never expanded on Linux (verified), so routing aarch64 to
+ the Linux-x86 header is safe.
+
* Thu Sep 24 2026 openEuler Builder <builder@openeuler.org> - 2.2.0-2
- Extend aarch64-support.patch: route __aarch64__ in XnPlatform.h to the
arch-neutral Linux-x86 platform header so the C++ build no longer hits