diff options
| -rw-r--r-- | libopenni2-dev.spec | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/libopenni2-dev.spec b/libopenni2-dev.spec index 1b34d81..3cc8bdb 100644 --- a/libopenni2-dev.spec +++ b/libopenni2-dev.spec @@ -4,10 +4,18 @@ # SSE-free flags so the library and drivers build natively on aarch64. # # topdir: libopenni2-dev-2.2.0 +# +# The upstream Makefile builds Release with -O2 -DNDEBUG and deliberately no +# -g, so the produced .so files carry no DWARF debug info. mock's +# find-debuginfo therefore cannot emit any source mapping, leaving +# debugsourcefiles.list empty, which rpmbuild treats as a hard +# "Empty %files file" error. Disable the debug/debugsource subpackages: +# there are no symbols to ship anyway, so nothing useful is lost. +%define debug_package %{nil} Name: libopenni2-dev Version: 2.2.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: OpenNI 2 framework for 3D sensors (development package) License: Apache-2.0 @@ -93,6 +101,19 @@ install -p -m 0644 Include/*.h %{buildroot}%{_includedir}/openni2/ %{_includedir}/openni2/ %changelog +* Mon Sep 28 2026 openEuler Builder <builder@openeuler.org> - 2.2.0-5 +- Disable the debug/debugsource subpackages with %%define debug_package + %%{nil}. Build 113193 finally compiled, linked and installed all artefacts + (libOpenNI2.so + the four driver plugins + headers) on aarch64, but the + build then failed at debuginfo packaging with "error: Empty %%files file + .../debugsourcefiles.list". Root cause: the upstream Makefile builds + Release with -O2 -DNDEBUG and no -g, so the .so files carry no DWARF + symbols (the gdb-add-index stage logged "No debugging symbols" for all + five .so files); find-debuginfo can't emit any source mapping, leaving + debugsourcefiles.list empty. As there are no symbols to ship anyway, + disabling the debug subpackages loses nothing and resolves the hard + error. This is a no-op on any other arch / chroot (a global spec macro). + * Mon Sep 28 2026 openEuler Builder <builder@openeuler.org> - 2.2.0-4 - Fix aarch64-support.patch: the Include/OniPlatform.h hunk header was miscounted (@@ -42,6 +42,10 @@ claimed 6 context / 10 total lines but |
