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 334D11584AD for ; Fri, 02 May 2025 21:19:51 +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 10FD5342FB7 for ; Fri, 02 May 2025 21:19:51 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 0B10A110287; Fri, 02 May 2025 21:19:50 +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 02E2F110287 for ; Fri, 02 May 2025 21:19:49 +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 A7198341256 for ; Fri, 02 May 2025 21:19:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3492919F6 for ; Fri, 02 May 2025 21:19:48 +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: <1746220747.eb4b443fd0c60f029809312d5f991d5a0b7de18c.mschiff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/sanlock/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/sanlock/Manifest sys-cluster/sanlock/sanlock-4.0.0.ebuild X-VCS-Directories: sys-cluster/sanlock/ X-VCS-Committer: mschiff X-VCS-Committer-Name: Marc Schiffbauer X-VCS-Revision: eb4b443fd0c60f029809312d5f991d5a0b7de18c X-VCS-Branch: master Date: Fri, 02 May 2025 21:19:48 +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: 79cbaebb-e794-4942-8590-7a81a640eeb2 X-Archives-Hash: 4847b649e693e52ad2f46d78f96ef02d commit: eb4b443fd0c60f029809312d5f991d5a0b7de18c Author: Marc Schiffbauer gentoo org> AuthorDate: Fri May 2 21:19:07 2025 +0000 Commit: Marc Schiffbauer gentoo org> CommitDate: Fri May 2 21:19:07 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb4b443f sys-cluster/sanlock: add 4.0.0 Closes: https://bugs.gentoo.org/954350 Signed-off-by: Marc Schiffbauer gentoo.org> sys-cluster/sanlock/Manifest | 1 + sys-cluster/sanlock/sanlock-4.0.0.ebuild | 85 ++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) diff --git a/sys-cluster/sanlock/Manifest b/sys-cluster/sanlock/Manifest index 72c6c8f0c631..c7a61d2f2e55 100644 --- a/sys-cluster/sanlock/Manifest +++ b/sys-cluster/sanlock/Manifest @@ -1 +1,2 @@ DIST sanlock-3.8.5.tar.gz 270911 BLAKE2B 7f8146d67c620d22ded5205c1c621f3bbb36256a4c80e866575d8f324ad0237cf8bc07579f3aeda393dd0db85e27fdaa1aab1b6d7b931d4416d13f82d560e22a SHA512 8131e0b37ac47052a29d4b3a3e4286b06b862f08e827d3307f179eadbe97e4bc3e10f5c93f35042c308435ee81546a813227bce665a9735cbbf2b5a4a1f4474a +DIST sanlock-4.0.0.tar.gz 288907 BLAKE2B e49037ff6976ae1912ceb1e345a65bf4e3689428309085d1e3c93cd6bad9ca816cabfb7c525cab2851870c4e8a96dd927934d1b0722cb5900d3cd0950e50075b SHA512 a478c8bbc09043d5dad18cc3ddbcaeefec0dd5587ab2807721424a1efc9d58ab82deacaa2f88289dc9990a2a6f95a80dabb727670e7aeaeba5ed0a57a3849c27 diff --git a/sys-cluster/sanlock/sanlock-4.0.0.ebuild b/sys-cluster/sanlock/sanlock-4.0.0.ebuild new file mode 100644 index 000000000000..8bbee1672e3b --- /dev/null +++ b/sys-cluster/sanlock/sanlock-4.0.0.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..13} ) +inherit flag-o-matic linux-info distutils-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} +" + +PATCHES=( + "${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 reset; do + emake -C ${d} + done + + if use python; then + pushd python + distutils-r1_src_compile + popd + fi +} + +src_install() { + for d in wdmd src reset; do + emake -C ${d} DESTDIR="${D}" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install + done + + if use python; then + distutils-r1_src_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 + + # systemd + local utildir="$(systemd_get_utildir)" + exeinto "${utildir#"${EPREFIX}"}" + doexe init.d/systemd-wdmd + systemd_newunit init.d/sanlock.service.native sanlock.service + systemd_dounit init.d/wdmd.service + systemd_dounit init.d/sanlk-resetd.service +}