Bug 2049096

Summary: audit: FTBFS in Fedora Rawhide
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: auditAssignee: Steve Grubb <sgrubb>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: scorreia, sgrubb
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/audit
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-22 11:49:14 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: 1992484, 2016048, 2045102    

Description Tomáš Hrnčiar 2022-02-01 14:41:03 UTC
Description of problem:
Package audit fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
3.0.7-1.fc36

Steps to Reproduce:
koji build --scratch f36 audit-3.0.7-1.fc36.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/audit

Comment 1 Steve Grubb 2022-02-01 14:48:41 UTC
This is in autogenerated code from SWIG. We have no control over that.

Comment 2 Ben Cotton 2022-02-08 20:22:04 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 3 Steve Grubb 2022-02-21 18:39:21 UTC
Investigation of this seems to point to the declaration of struct audit_rules_data. The last element is buf[]; Gcc-12 doesn't like this. I started a discussion here:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/BSHYS7GEM3ZAL4RI67NVLAEIHVRS5DQY/

and easy fix is to make it buf[0]; but this will take some time to get in the upstream kernel.

Comment 4 Miro Hrončok 2022-06-22 11:49:14 UTC
Closing this in bulk as it built with Python 3.11. If this needs to remain open for a followup, feel free to reopen, I won't close in bulk again.