Description of problem: Package openscap fails to build from source in Fedora Rawhide. Processing files: openscap-scanner-1.3.6-10.fc38.x86_64 error: File not found: /builddir/build/BUILDROOT/openscap-1.3.6-10.fc38.x86_64/usr/libexec/oscap-remediate error: File must begin with "/": %{_unitdir}/oscap-remediate.service error: File must begin with "/": %{_unitdir}/system-update.target.wants/ RPM build errors: File not found: /builddir/build/BUILDROOT/openscap-1.3.6-10.fc38.x86_64/usr/libexec/oscap-remediate File must begin with "/": %{_unitdir}/oscap-remediate.service File must begin with "/": %{_unitdir}/system-update.target.wants/ Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/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: Version-Release number of selected component (if applicable): 1.3.6-10.fc37 Steps to Reproduce: koji build --scratch f38 openscap-1.3.6-10.fc37.src.rpm Additional info: This package is tracked by Koschei. See: https://koschei.fedoraproject.org/package/openscap Dependency changes from the last successful build: https://koschei.fedoraproject.org/build/13546966
If you want to use macro %{_unitdir} then systemd-rpm-macros should be listed in build-requires.
FEDORA-2022-a8b7559a31 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-a8b7559a31
FEDORA-2022-a8b7559a31 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.