Diff sanlock-3.8.5 with a sanlock-4.2.0

/usr/portage/sys-cluster/sanlock/sanlock-4.2.0.ebuild 2026-02-19 11:18:08.271302825 +0300
1
# Copyright 1999-2025 Gentoo Authors
1
# Copyright 1999-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
PYTHON_COMPAT=( python3_{11..12} )
7
inherit flag-o-matic linux-info python-r1 systemd
6
DISTUTILS_EXT=1
7
DISTUTILS_USE_PEP517=setuptools
8
PYTHON_COMPAT=( python3_{11..13} )
9
inherit flag-o-matic linux-info distutils-r1 systemd
8 10

  
9 11
DESCRIPTION="shared storage lock manager"
10 12
HOMEPAGE="https://pagure.io/sanlock"
......
12 14

  
13 15
LICENSE="LGPL-2+ GPL-2 GPL-2+"
14 16
SLOT="0"
15
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ~ppc ppc64 ~riscv ~s390 ~sparc x86"
17
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
16 18
IUSE="python"
17 19

  
18 20
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
......
27 29
	acct-group/${PN}
28 30
	${DEPEND}
29 31
"
30
BDEPEND="sys-apps/which"
31 32

  
32 33
PATCHES=(
33
	"${FILESDIR}/sanlock-fence_sanlock-LDFLAGS.patch"
34 34
	"${FILESDIR}/sanlock-3.8.4-implicit-func-decls.patch"
35 35
)
36 36

  
......
42 42
	# https://pagure.io/sanlock/issue/10
43 43
	filter-lto
44 44

  
45
	for d in wdmd src fence_sanlock reset; do
45
	for d in wdmd src reset; do
46 46
		emake -C ${d}
47 47
	done
48 48

  
49 49
	if use python; then
50
		python_foreach_impl emake -C python
50
		pushd python
51
		distutils-r1_src_compile
52
		popd
51 53
	fi
52 54
}
53 55

  
54 56
src_install() {
55
	for d in wdmd src fence_sanlock reset; do
57
	for d in wdmd src reset; do
56 58
		emake -C ${d} DESTDIR="${D}" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
57 59
	done
58 60

  
59 61
	if use python; then
60
		python_foreach_impl emake -C python DESTDIR="${D}" install
62
		distutils-r1_src_install
61 63
	fi
62 64

  
63 65
	# config
......
72 74
	newinitd "${FILESDIR}"/sanlock.initd sanlock
73 75
	newinitd "${FILESDIR}"/wdmd.initd wdmd
74 76
	#doinitd ${FILESDIR}/sanlk-resetd.initd
75
	#doinitd ${FILESDIR}/fence_sanlockd.initd
76 77

  
77 78
	# systemd
79
	local utildir="$(systemd_get_utildir)"
80
	exeinto "${utildir#"${EPREFIX}"}"
81
	doexe init.d/systemd-wdmd
78 82
	systemd_newunit init.d/sanlock.service.native sanlock.service
79
	sed -i 's,^ExecStartPre=,#ExecStartPre=,' init.d/wdmd.service.native || die
80
	systemd_newunit init.d/wdmd.service.native wdmd.service
83
	systemd_dounit init.d/wdmd.service
81 84
	systemd_dounit init.d/sanlk-resetd.service
82
	#systemd_dounit ${FILESDIR}/fence_sanlockd.service
83 85
}
Thank you!