Bug 2126078

Summary: openscap: FTBFS in Fedora Rawhide
Product: [Fedora] Fedora Reporter: Jitka Plesnikova <jplesnik>
Component: openscapAssignee: Šimon <simi+fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: evgenyz, jcerny, matyc, mhaicman, mmarhefk, pvrabec, simi+fedora, vpolasek, wsato
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/openscap
Whiteboard:
Fixed In Version: openscap-1.3.6-11.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-10-26 13:14:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2117176    

Description Jitka Plesnikova 2022-09-12 11:09:29 UTC
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

Comment 1 Jitka Plesnikova 2022-10-17 10:12:57 UTC
If you want to use macro %{_unitdir} then systemd-rpm-macros should be listed in build-requires.

Comment 2 Fedora Update System 2022-10-17 12:05:01 UTC
FEDORA-2022-a8b7559a31 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-a8b7559a31

Comment 3 Fedora Update System 2022-10-26 13:14:16 UTC
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.