3 Commits

Author SHA256 Message Date
78e8cd5420 Fix build on 32-bit arm with a workaround 2025-02-03 09:57:28 +01:00
f01ee0e53d Fix build with python 3.13
Remove distributed python.m4 to use the system one that's up to date.
The python.m4 script in contrib/aclocal/python.m4 uses the distutils
module. This module is not present in python > 3.11.
2025-01-24 09:01:17 +01:00
00a808796c Remove dependency on /usr/bin/python3 2024-08-29 15:28:46 +02:00
2 changed files with 35 additions and 1 deletions

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Mon Feb 3 08:37:11 UTC 2025 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Fix build on 32-bit arm with a workaround
-------------------------------------------------------------------
Fri Jan 24 08:00:04 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Fix build with python 3.13, remove distributed python.m4 to use the
system one that's up to date.
-------------------------------------------------------------------
Thu Aug 22 18:11:49 UTC 2024 - pgajdos@suse.com
- remove dependency on /usr/bin/python3 using
%python3_fix_shebang{,_path} macros, [bsc#1212476]
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Dec 15 08:56:08 UTC 2023 - Jan Engelhardt <jengelh@inai.de> Fri Dec 15 08:56:08 UTC 2023 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package glusterfs # spec file for package glusterfs
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -147,9 +147,15 @@ links.
%prep %prep
%autosetup -p1 %autosetup -p1
# Remove old python.m4 to use system default. Makes it compatible with python3.13
rm contrib/aclocal/python.m4
%build %build
%define _lto_cflags %nil %define _lto_cflags %nil
%ifarch %{arm}
# https://github.com/gluster/glusterfs/issues/2979#issuecomment-976739179
export CFLAGS="%{optflags} -DUATOMIC_NO_LINK_ERROR"
%endif
./autogen.sh ./autogen.sh
%configure \ %configure \
--without-tcmalloc \ --without-tcmalloc \
@@ -171,6 +177,17 @@ chmod -v u-s "%buildroot/%_bindir/fusermount-glusterfs"
rm -fv "%buildroot/%_sbindir/conf.py" rm -fv "%buildroot/%_sbindir/conf.py"
rm -f "%buildroot/etc/bash_completion.d/gluster.bash" rm -f "%buildroot/etc/bash_completion.d/gluster.bash"
%fdupes %buildroot/%_prefix %fdupes %buildroot/%_prefix
%python3_fix_shebang
%if %{suse_version} >= 1600
%python3_fix_shebang_path %{buildroot}%{_libexecdir}/ganesha/*
%python3_fix_shebang_path %{buildroot}%{_libexecdir}/glusterfs/*
%python3_fix_shebang_path %{buildroot}%{_libexecdir}/glusterfs/gfevents/*
%python3_fix_shebang_path %{buildroot}%{_libexecdir}/glusterfs/glusterfind/*
%python3_fix_shebang_path %{buildroot}%{_libexecdir}/glusterfs/python/syncdaemon/*
%python3_fix_shebang_path %{buildroot}%{_libexecdir}/glusterfs/gfind_missing_files/*
%python3_fix_shebang_path %{buildroot}%{_libexecdir}/glusterfs/scripts/*
%python3_fix_shebang_path %{buildroot}%{_datadir}/glusterfs/scripts/*
%endif
%pre %pre
%service_add_pre glusterd.service glustereventsd.service glusterfssharedstorage.service gluster-ta-volume.service %service_add_pre glusterd.service glustereventsd.service glusterfssharedstorage.service gluster-ta-volume.service