diff --git a/srcpkgs/glusterfs/template b/srcpkgs/glusterfs/template index 7b7e514bb15..eabb5e07397 100644 --- a/srcpkgs/glusterfs/template +++ b/srcpkgs/glusterfs/template @@ -1,13 +1,18 @@ # Template file for 'glusterfs' pkgname=glusterfs -version=9.4 -revision=4 +version=9.6 +revision=1 build_style=gnu-configure -configure_args="--with-mountutildir=/usr/bin ac_cv_file__etc_debian_version=no - ac_cv_file__etc_SuSE_release=no ac_cv_file__etc_redhat_release=no - ac_cv_file__etc_centos_release=no" +configure_args=" + --with-mountutildir=/usr/bin + ac_cv_file__etc_debian_version=no + ac_cv_file__etc_SuSE_release=no + ac_cv_file__etc_redhat_release=no + ac_cv_file__etc_centos_release=no + am_cv_python_version=${py3_ver} +" pycompile_dirs="/usr/libexec/glusterfs/python/syncdaemon" -hostmakedepends="automake flex libtool pkg-config python3 rpcsvc-proto" +hostmakedepends="flex pkg-config python3-setuptools rpcsvc-proto" makedepends="acl-devel libaio-devel libtirpc-devel openssl-devel liburcu-devel liburing-devel libxml2-devel rdma-core-devel sqlite-devel" # python is required by gsyncd. @@ -17,12 +22,22 @@ maintainer="Noel Cower " license="GPL-2.0-or-later, LGPL-3.0-only" homepage="https://www.gluster.org/" distfiles="https://download.gluster.org/pub/gluster/glusterfs/${version%.*}/${version}/${pkgname}-${version}.tar.gz" -checksum=07f360c9b43cb1101a857706494e310328e9d6a4e6b2f0697a3bc3f165c2652a +checksum=55ebe404ca887e387b1b6ecf952400f795be275f475295014dfc7ad4c1ed1464 case "$XBPS_TARGET_MACHINE" in *-musl) broken="not yet supported";; esac +post_extract() { + # The py-compile helper uses the imp module, removed in Python 3.12; + # besides, we don't want the module pre-compiled anyway, so just drop it + : > py-compile + cat > py-compile <<-'EOF' + #!/bin/sh + : "$@" + EOF +} + post_install() { rm -rf ${DESTDIR}/var ${DESTDIR}/usr/share/glusterfs/scripts/gsync-sync-gfid vsv glusterfsd