From 6f9f7e2e4a896eed26a0628d716bc7ecff12c229 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Thu, 6 Jul 2023 13:28:46 -0400 Subject: [PATCH] Fix build with Python 3.12 pathfix.py is no longer installed, but this macro is compatible with all supported versions. --- ceph.spec | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ceph.spec b/ceph.spec index 2de97c4..2b820d1 100644 --- a/ceph.spec +++ b/ceph.spec @@ -504,9 +504,6 @@ BuildRequires: libcryptopp-devel BuildRequires: libnuma-devel %endif %endif -%if 0%{?rhel} >= 8 -BuildRequires: /usr/bin/pathfix.py -%endif %description Ceph is a massively scalable, open-source, distributed storage system that runs @@ -1538,8 +1535,7 @@ install -m 0644 -D udev/50-rbd.rules %{buildroot}%{_udevrulesdir}/50-rbd.rules install -m 0440 -D sudoers.d/ceph-smartctl %{buildroot}%{_sysconfdir}/sudoers.d/ceph-smartctl %if 0%{?rhel} >= 8 -pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/* -pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_sbindir}/* +%py3_shebang_fix %{buildroot}%{_bindir}/* %{buildroot}%{_sbindir}/* %endif #set up placeholder directories