Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/ros-humble-spacenavd.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS_SP3-aarch64-1792664211.222533/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/ros-humble-spacenavd.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/ros-humble-spacenavd-1.3.1-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/ros-humble-spacenavd.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS_SP3-aarch64-1792664211.222533/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/ros-humble-spacenavd.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/ros-humble-spacenavd-1.3.1-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/ros-humble-spacenavd.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS_SP3-aarch64-1792664211.222533/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/ros-humble-spacenavd.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.GQomME + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ros-humble-spacenavd-1.3.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ros-humble-spacenavd-1.3.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ros-humble-spacenavd-1.3.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.iOyT9l + umask 022 + cd /builddir/build/BUILD + cd ros-humble-spacenavd-1.3.1 + ./configure --prefix=/usr --cfgdir=/etc ./configure: line 83: git: command not found configuring spacenavd - v1.3.1 Looking for header: alloca.h ... found Looking for header: malloc.h ... found Looking for header: stdint.h ... found Looking for header: inttypes.h ... found Looking for header: linux/uinput.h ... found Looking for header: X11/extensions/XInput2.h ... found Looking for header: X11/extensions/XTest.h ... found Check for vsnprintf ... found Build configuration: prefix: /usr config dir: /etc optimize for speed: yes include debugging symbols: yes x11 communication method: yes use hotplug: yes uinput for keyboard emulation: yes creating Makefile ... creating config.h Done. You can now type make (or gmake) to compile spacenavd. + sed -i 's/^#define VERSION.*/#define VERSION "1.3.1"/' src/config.h + /usr/bin/make -O -j4 V=1 VERBOSE=1 cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/client.c -o src/client.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/dev_usb.c -o src/dev_usb.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/dev_usb_darwin.c -o src/dev_usb_darwin.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/dev_usb_freebsd.c -o src/dev_usb_freebsd.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/dev.c -o src/dev.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/dummy_usb.c -o src/dummy_usb.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/dev_serial.c -o src/dev_serial.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/hotplug_darwin.c -o src/hotplug_darwin.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/hotplug_freebsd.c -o src/hotplug_freebsd.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/hotplug_linux.c -o src/hotplug_linux.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/event.c -o src/event.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/dev_usb_linux.c -o src/dev_usb_linux.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/cfgfile.c -o src/cfgfile.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/kbemu.c -o src/kbemu.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/keymap.c -o src/keymap.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/logger.c -o src/logger.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/kbemu_x11.c -o src/kbemu_x11.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/kbemu_uinput.c -o src/kbemu_uinput.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/proto.c -o src/proto.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/spnavd_win32.c -o src/spnavd_win32.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/xdetect.c -o src/xdetect.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/xdetect_freebsd.c -o src/xdetect_freebsd.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/xdetect_linux.c -o src/xdetect_linux.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/proto_x11.c -o src/proto_x11.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/spnavd.c -o src/spnavd.o cc -pedantic -Wall -MMD -g3 -O2 -fno-strict-aliasing -I./src -c src/proto_unix.c -o src/proto_unix.o cc -o spacenavd src/cfgfile.o src/client.o src/dev.o src/dev_serial.o src/dev_usb.o src/dev_usb_darwin.o src/dev_usb_freebsd.o src/dev_usb_linux.o src/dummy_usb.o src/event.o src/hotplug_darwin.o src/hotplug_freebsd.o src/hotplug_linux.o src/kbemu.o src/kbemu_uinput.o src/kbemu_x11.o src/keymap.o src/logger.o src/proto.o src/proto_unix.o src/proto_x11.o src/spnavd.o src/spnavd_win32.o src/xdetect.o src/xdetect_freebsd.o src/xdetect_linux.o -lXi -lXtst -lX11 -lXext -lm + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.6porGm + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/ros-humble-spacenavd-1.3.1-1.aarch64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/ros-humble-spacenavd-1.3.1-1.aarch64 ++ dirname /builddir/build/BUILDROOT/ros-humble-spacenavd-1.3.1-1.aarch64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/ros-humble-spacenavd-1.3.1-1.aarch64 + cd ros-humble-spacenavd-1.3.1 + make install DESTDIR=/builddir/build/BUILDROOT/ros-humble-spacenavd-1.3.1-1.aarch64 mkdir -p /builddir/build/BUILDROOT/ros-humble-spacenavd-1.3.1-1.aarch64/usr/bin cp spacenavd /builddir/build/BUILDROOT/ros-humble-spacenavd-1.3.1-1.aarch64/usr/bin/spacenavd cp ./spnavd_ctl /builddir/build/BUILDROOT/ros-humble-spacenavd-1.3.1-1.aarch64/usr/bin/spnavd_ctl cd . && ./setup_init --no-install --- Spacenavd installation complete --- To have spacenavd start automatically at bootup, you must add an appropriate init script. Refer to your system's manual for details on how to do that. An example init script is available in the spacenavd source directory. If you wish to attempt and install an init script automatically, run ./setup_init + sed -i 's|/usr/local/bin/spacenavd|/usr/bin/spacenavd|' contrib/systemd/spacenavd.service + install -D -m 644 contrib/systemd/spacenavd.service '/builddir/build/BUILDROOT/ros-humble-spacenavd-1.3.1-1.aarch64%{_unitdir}/spacenavd.service' + install -D -m 644 doc/example-spnavrc /builddir/build/BUILDROOT/ros-humble-spacenavd-1.3.1-1.aarch64/etc/spnavrc + /usr/bin/find-debuginfo -j4 --strict-build-id -i --build-id-seed 1.3.1-1 --unique-debug-suffix -1.3.1-1.aarch64 --unique-debug-src-base ros-humble-spacenavd-1.3.1-1.aarch64 -S debugsourcefiles.list /builddir/build/BUILD/ros-humble-spacenavd-1.3.1 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/ros-humble-spacenavd-1.3.1-1.aarch64/usr/bin/spacenavd extracting debug info from /builddir/build/BUILDROOT/ros-humble-spacenavd-1.3.1-1.aarch64/usr/bin/spacenavd 394 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 1 + /usr/lib/rpm/brp-python-hardlink Processing files: ros-humble-spacenavd-1.3.1-1.aarch64 error: File must begin with "/": %{_unitdir}/spacenavd.service Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.Wt1b8L + umask 022 + cd /builddir/build/BUILD + cd ros-humble-spacenavd-1.3.1 + DOCDIR=/builddir/build/BUILDROOT/ros-humble-spacenavd-1.3.1-1.aarch64/usr/share/doc/ros-humble-spacenavd + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/ros-humble-spacenavd-1.3.1-1.aarch64/usr/share/doc/ros-humble-spacenavd + cp -pr README.md /builddir/build/BUILDROOT/ros-humble-spacenavd-1.3.1-1.aarch64/usr/share/doc/ros-humble-spacenavd + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.P2bhk0 + umask 022 + cd /builddir/build/BUILD + cd ros-humble-spacenavd-1.3.1 + LICENSEDIR=/builddir/build/BUILDROOT/ros-humble-spacenavd-1.3.1-1.aarch64/usr/share/licenses/ros-humble-spacenavd + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/ros-humble-spacenavd-1.3.1-1.aarch64/usr/share/licenses/ros-humble-spacenavd + cp -pr COPYING /builddir/build/BUILDROOT/ros-humble-spacenavd-1.3.1-1.aarch64/usr/share/licenses/ros-humble-spacenavd + RPM_EC=0 ++ jobs -p + exit 0 RPM build errors: File must begin with "/": %{_unitdir}/spacenavd.service Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/ros-humble-spacenavd.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/ros-humble-spacenavd.spec