Skip to content

Commit

Permalink
Fix pathfix usage in spec
Browse files Browse the repository at this point in the history
Python 3.12 removes the pathfix utility but in Fedora it's just moved to
python3-rpm-macros.

Fixes broken build and broken CI on Rawhide.

Described in: https://fedoraproject.org/wiki/Changes/Python3.12#pathfix.py_tool_will_be_removed
Similar to: https://src.fedoraproject.org/rpms/openscap/pull-request/17#request_diff

Fixes: OpenSCAP#1997
  • Loading branch information
jan-cerny committed Jul 20, 2023
1 parent 9f83ba0 commit e441bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openscap.spec
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ ctest -V %{?_smp_mflags}
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'

# fix python shebangs
pathfix.py -i %{__python3} -p -n $RPM_BUILD_ROOT%{_bindir}/scap-as-rpm
%{__python3} %{_rpmconfigdir}/redhat/pathfix.py -i %{__python3} -p -n $RPM_BUILD_ROOT%{_bindir}/scap-as-rpm

%ldconfig_scriptlets

Expand Down

0 comments on commit e441bfe

Please sign in to comment.