From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E8061158095 for ; Tue, 26 Jul 2022 20:09:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 00CEDE0F44; Tue, 26 Jul 2022 20:09: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 pigeon.gentoo.org (Postfix) with ESMTPS id CF843E0F44 for ; Tue, 26 Jul 2022 20:09:22 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C9F6B341049 for ; Tue, 26 Jul 2022 20:09:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0E0BE448 for ; Tue, 26 Jul 2022 20:09:20 +0000 (UTC) From: "Mike Pagano" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Pagano" Message-ID: <1658865991.74eafbcfd69fe761ba6bc13c66f84fac3089677d.mpagano@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/knem/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/knem/Manifest sys-cluster/knem/knem-1.1.4.ebuild X-VCS-Directories: sys-cluster/knem/ X-VCS-Committer: mpagano X-VCS-Committer-Name: Mike Pagano X-VCS-Revision: 74eafbcfd69fe761ba6bc13c66f84fac3089677d X-VCS-Branch: master Date: Tue, 26 Jul 2022 20:09:20 +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: f5d58e20-d2e6-4ebb-9fa2-c7fc58af5e72 X-Archives-Hash: 31bb945502360c37fe60ff9f1d650d06 commit: 74eafbcfd69fe761ba6bc13c66f84fac3089677d Author: Mike Pagano gentoo org> AuthorDate: Tue Jul 26 20:06:31 2022 +0000 Commit: Mike Pagano gentoo org> CommitDate: Tue Jul 26 20:06:31 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74eafbcf sys-cluster/knem: add 1.1.4, bump to EAPI 8 With permission from folks in gentoo-cluster, I have bumped the version of both the package and the EAPI version. I did some minimal testing. Closes: https://bugs.gentoo.org/778755 Signed-off-by: Mike Pagano gentoo.org> sys-cluster/knem/Manifest | 1 + sys-cluster/knem/knem-1.1.4.ebuild | 85 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) diff --git a/sys-cluster/knem/Manifest b/sys-cluster/knem/Manifest index b258d70ac673..311a0e0c71ab 100644 --- a/sys-cluster/knem/Manifest +++ b/sys-cluster/knem/Manifest @@ -1 +1,2 @@ DIST knem-1.1.3.tar.gz 330109 BLAKE2B 0aa5a2b5cd329e7183800b8b4e6b76297c85325cef218dc0ae27293ffb3aaf8a6896bc237ca745bb8df97a446c2ecc5542b96fc9eb4bbead6a1c9b894dd38f51 SHA512 ab72b3a803898c8de1bb775857da346e16ade285cdf17b9339eef3dc939c5d50ef5b3442e96418e414d64cd3e1e1a922b5e8c74462c5d6866b842ee9749db3eb +DIST knem-1.1.4.tar.gz 336148 BLAKE2B e7273040c563c63e5e5c1a4a6b822a4b34b6fbb7214a7a37b4ff06f23aa47fe80c55ed1781ce85d974ed7e53059b509db98a94baaa7bddfc8860d503cf89869d SHA512 4f142a910ac51a590952aa1f36010fc2a1361162a0d5fd98f47d1c90dedbb293d56bd990bded5d4ec91fcc8df3fa3bcf0d126651b5868c557ffb9f3a588cb948 diff --git a/sys-cluster/knem/knem-1.1.4.ebuild b/sys-cluster/knem/knem-1.1.4.ebuild new file mode 100644 index 000000000000..a5299c2ab493 --- /dev/null +++ b/sys-cluster/knem/knem-1.1.4.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +inherit autotools linux-mod linux-info toolchain-funcs udev + +DESCRIPTION="High-Performance Intra-Node MPI Communication" +HOMEPAGE="https://knem.gforge.inria.fr/" +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://gforge.inria.fr/git/knem/knem.git" + inherit git-r3 +else + SRC_URI="https://gitlab.inria.fr/knem/knem/uploads/4a43e3eb860cda2bbd5bf5c7c04a24b6/${P}.tar.gz" + KEYWORDS="~amd64 ~riscv ~x86" +fi + +LICENSE="GPL-2 LGPL-2" +SLOT="0" +IUSE="debug modules" + +DEPEND=" + sys-apps/hwloc:= + virtual/linux-sources" +RDEPEND=" + sys-apps/hwloc:= + sys-apps/kmod[tools]" + +MODULE_NAMES="knem(misc:${S}/driver/linux)" +BUILD_TARGETS="all" +BUILD_PARAMS="KDIR=${KERNEL_DIR}" + +pkg_setup() { + linux-info_pkg_setup + CONFIG_CHECK="DMA_ENGINE" + check_extra_config + linux-mod_pkg_setup + ARCH="$(tc-arch-kernel)" + ABI="${KERNEL_ABI}" +} + +src_prepare() { + sed 's:driver/linux::g' -i Makefile.am + eautoreconf + default +} + +src_configure() { + econf \ + --enable-hwloc \ + --with-linux="${KERNEL_DIR}" \ + --with-linux-release=${KV_FULL} \ + $(use_enable debug) +} + +src_compile() { + default + if use modules; then + cd "${S}/driver/linux" + linux-mod_src_compile || die "failed to build driver" + fi +} + +src_install() { + default + if use modules; then + cd "${S}/driver/linux" + linux-mod_src_install || die "failed to install driver" + fi + + # Drop funny unneded stuff + rm "${ED}/usr/sbin/knem_local_install" || die + rmdir "${ED}/usr/sbin" || die + # install udev rules + udev_dorules "${FILESDIR}/45-knem.rules" + rm "${ED}/etc/10-knem.rules" || die +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +}