From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7BE321581EE for ; Fri, 28 Mar 2025 13:37:28 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 602A734318B for ; Fri, 28 Mar 2025 13:37:28 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 8DC8C1104B2; Fri, 28 Mar 2025 13:37:23 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 82BB71104B2 for ; Fri, 28 Mar 2025 13:37:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 378C13430E6 for ; Fri, 28 Mar 2025 13:37:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BE882283B for ; Fri, 28 Mar 2025 13:37:21 +0000 (UTC) From: "Marc Schiffbauer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marc Schiffbauer" Message-ID: <1743169035.a1f02c72655d7b77d36f16db0f628c91b4866c10.mschiff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/sanlock/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/sanlock/sanlock-3.8.5-r1.ebuild X-VCS-Directories: sys-cluster/sanlock/ X-VCS-Committer: mschiff X-VCS-Committer-Name: Marc Schiffbauer X-VCS-Revision: a1f02c72655d7b77d36f16db0f628c91b4866c10 X-VCS-Branch: master Date: Fri, 28 Mar 2025 13:37:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 24e840a5-fb86-4ba0-b6eb-b860dae89b4b X-Archives-Hash: a3226383baac699e2ef3ab1efe84c9f7 commit: a1f02c72655d7b77d36f16db0f628c91b4866c10 Author: Marc Schiffbauer gentoo org> AuthorDate: Fri Mar 28 13:36:31 2025 +0000 Commit: Marc Schiffbauer gentoo org> CommitDate: Fri Mar 28 13:37:15 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1f02c72 sys-cluster/sanlock: add py3.13 Closes: https://bugs.gentoo.org/952732 Signed-off-by: Marc Schiffbauer gentoo.org> sys-cluster/sanlock/sanlock-3.8.5-r1.ebuild | 83 +++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/sys-cluster/sanlock/sanlock-3.8.5-r1.ebuild b/sys-cluster/sanlock/sanlock-3.8.5-r1.ebuild new file mode 100644 index 000000000000..69b184570572 --- /dev/null +++ b/sys-cluster/sanlock/sanlock-3.8.5-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +inherit flag-o-matic linux-info python-r1 systemd + +DESCRIPTION="shared storage lock manager" +HOMEPAGE="https://pagure.io/sanlock" +SRC_URI="https://releases.pagure.org/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2+ GPL-2 GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="python" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND=" + dev-libs/libaio + sys-apps/util-linux + python? ( ${PYTHON_DEPS} ) +" +RDEPEND=" + acct-user/${PN} + acct-group/${PN} + ${DEPEND} +" +BDEPEND="sys-apps/which" + +PATCHES=( + "${FILESDIR}/sanlock-fence_sanlock-LDFLAGS.patch" + "${FILESDIR}/sanlock-3.8.4-implicit-func-decls.patch" +) + +CONFIG_CHECK="~SOFT_WATCHDOG" + +src_compile() { + # -Werror=lto-type-mismatch + # https://bugs.gentoo.org/863734 + # https://pagure.io/sanlock/issue/10 + filter-lto + + for d in wdmd src fence_sanlock reset; do + emake -C ${d} + done + + if use python; then + python_foreach_impl emake -C python + fi +} + +src_install() { + for d in wdmd src fence_sanlock reset; do + emake -C ${d} DESTDIR="${D}" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install + done + + if use python; then + python_foreach_impl emake -C python DESTDIR="${D}" install + fi + + # config + dodir /etc/wdmd.d + dodir /etc/sanlock + insinto /etc/sanlock + doins src/sanlock.conf + + # init + newconfd init.d/sanlock.sysconfig sanlock + newconfd init.d/wdmd.sysconfig wdmd + newinitd "${FILESDIR}"/sanlock.initd sanlock + newinitd "${FILESDIR}"/wdmd.initd wdmd + #doinitd ${FILESDIR}/sanlk-resetd.initd + #doinitd ${FILESDIR}/fence_sanlockd.initd + + # systemd + systemd_newunit init.d/sanlock.service.native sanlock.service + sed -i 's,^ExecStartPre=,#ExecStartPre=,' init.d/wdmd.service.native || die + systemd_newunit init.d/wdmd.service.native wdmd.service + systemd_dounit init.d/sanlk-resetd.service + #systemd_dounit ${FILESDIR}/fence_sanlockd.service +}