summaryrefslogtreecommitdiff
path: root/sys-cluster/ucx
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/ucx')
-rw-r--r--sys-cluster/ucx/Manifest6
-rw-r--r--sys-cluster/ucx/files/ucx-1.13.0-binutils-2.39-ptr-typedef.patch25
-rw-r--r--sys-cluster/ucx/files/ucx-1.13.0-drop-werror.patch33
-rw-r--r--sys-cluster/ucx/files/ucx-1.13.0-fix-bashisms.patch44
-rw-r--r--sys-cluster/ucx/files/ucx-1.13.0-fix-fcntl-include-musl.patch103
-rw-r--r--sys-cluster/ucx/ucx-1.13.0.ebuild56
6 files changed, 267 insertions, 0 deletions
diff --git a/sys-cluster/ucx/Manifest b/sys-cluster/ucx/Manifest
index 9cbf9385e7ab..11541862df17 100644
--- a/sys-cluster/ucx/Manifest
+++ b/sys-cluster/ucx/Manifest
@@ -1,6 +1,12 @@
AUX ucx-1.10.0_rc5-drop-werror.patch 1822 BLAKE2B 4a0f9310f8cfd6691f0aac4d86570f60da05e5bc747445884b03618cf67fc583faa75f5789a2147dfa0ecf0c0bd651d87526bc3127a6b9eb092037a90927da22 SHA512 677f9c5a85e6971b7ed4dc9b9f71f69574797df048f6cde25a1c3e61700af71975c4ecbba73d6bcd8ccea582905701a4ea839cfa5b4b81312e09cd729317798e
+AUX ucx-1.13.0-binutils-2.39-ptr-typedef.patch 957 BLAKE2B 848012972fd7e2c8469ee47e6f4cd01459fa16bab4afd75c474a71f77824677b8c17d03ab0e0482d6d2ec389d6b9f14e43e5ee8951c6361b0d4fc751a3cf09ab SHA512 c65625d00757c1689b55213d070779f1d3b4462411c50aa989a00a73742f9011329cb08ab9e92ea3635935dc2bd6d28914ba7a495360dccf9f219b7bb5ece293
+AUX ucx-1.13.0-drop-werror.patch 835 BLAKE2B eaf0a5a5ae7339e49a74f8382491d9b59a2cd25eff7fa6c7d3b38eb4352106a44c66824a1eac25553ea0d53fee1bfe959a58f95e13a04e3bf01e5aecf9b2cd69 SHA512 504a64f03c258afc41b54f656ba7354258d699141d90954343ed19caef5712dee147bdff148c01a553fc75eb30ecab31227fe9a37be9c85af3a478692527acdb
+AUX ucx-1.13.0-fix-bashisms.patch 1846 BLAKE2B a2fe4b6f0ca98632ab67131aecb70a52bcba23861883f5750c8cea5536ca799b487f0a76dcd99c5d3b370a303feeb06bcec467b24d0db1dde7530e1b34cc5efc SHA512 040aa3740f7317fa32bd9383461a35565521ba0282da6abd55afb76f55beecdb1991cb76dc9e31f568c9cf834c65ff0704f79375611c7b126e2ec8a4fe2c5c25
+AUX ucx-1.13.0-fix-fcntl-include-musl.patch 3007 BLAKE2B 1383a52232d93871f89e5f0ae1eeb24fbb3e07683780b0a6672a0025f4be383baf657240f5ea9f8b635c33830a0ec7bdfda0ecb1417465a8a91e2b8a9756604e SHA512 7607ae95df0649a512b28f93e17beae9246f72bf315b60423cd519281f1dbaccaa97446376cad61b1665e22d3edd2352011c6e059313cb18ac30f6c71e7ac946
DIST ucx-1.10.0_rc5.tar.gz 2399950 BLAKE2B f6f78d2a3e0cd7f252354d59b9d667992c5f9f4d8ee4a41356decf4a1ed72382d8ce5213395bc6bacf1d8658f95808082cc0f825230857ddbbff19ed060efa5c SHA512 b772ad030e80bc5b0ab25d590117950d363f5f7ea1b7ed5ce0bba285d0a932205ee4d73705c094cef077c751b1cf8b6efdd4608c7df6b39d813771a0a31460ac
+DIST ucx-1.13.0.tar.gz 2770439 BLAKE2B 779bf7913ec1d0f5aebfd12d4eda90c83f6dae746e82bb818c4d981f6f564ecb37b6e003c3718db4ad74f25aa19fcbeb0ff98ed6349e254b7c707b4dda3c8974 SHA512 bea02adeb5c4286df360cfe788b40afde3e0404c659678497b53e753851e091de766f32aef39bd6f76e71802c88f0e0ed49c31af0c908ce2d9f3edc79ed6f933
DIST ucx-1.9.0.tar.gz 2467338 BLAKE2B 4d2d18c530f99a56baeb1dec88a7dba813970d3f501eb08f637dc7cefcfe5e564bc121e50c1842ea94e927a0fd657847c571241e3dd9601cdde207729d32d721 SHA512 2e8507e9cbba9ea445efdf8be5b5128dfc76cce30111805e9f7a5618bbbbb77d2bb449b6ad5e415f086b3156b63128306671d3a906583248cde720edb4241c67
EBUILD ucx-1.10.0_rc5.ebuild 787 BLAKE2B e194162df091517e92d11ce58c2c0219eabed5b3e21fa0b4cd8db0abcdf94d1f64165a6b40991513bfb25c17437d84caf0eb823ef6dd05c58f563735b085cce5 SHA512 562b0ce8c4550ecfcb2cd289e4af9cd3c7acf7a91d5e577f7f814381254519bab1e3926aae0eca196450b4ad7fe3980904f7a74356cdf2c8e8f66367b21d7bf5
+EBUILD ucx-1.13.0.ebuild 1153 BLAKE2B e586d7410850e82f67fa4c575ae2424ffa7411ec6728cdb3ab15ac6600ba0b09d2f577a5ef855414e2e86c712da9b5a3fb5b9c86e6477122ed6c2411be41945d SHA512 c104f2f1265d714f49445ee997d5c7a5b2716fa557779ac3314b3c06085d041fce659809ef5723a63e5764a526e5738be15a6ca74212d51feb840550ce0f56fa
EBUILD ucx-1.9.0.ebuild 608 BLAKE2B c6b01f62989d841ccc7be1dffb3ddf356d8f59bc5621bef514a300984d9f63317cb5c5b51cbf031689e292d262477082b7c4365fb899c0ddab91f6541abe8e5d SHA512 cbb8fe1196f36f2d68803c004ad6343378ff1a8eb693249c5bbe0c196fb9b72d5dddead0def92857c1afd771d440ccaed287b106d878e6424cc0f694b2a83d5e
MISC metadata.xml 415 BLAKE2B 314b20a7f39116af997a15309552142ad7141940d12646a6e4ddca3131b53b62d62522915e353374cf0667af236ff92d8929e81291ed090eec3f49a0b8cfc6fe SHA512 c86ba7f79718e898e7c45856029d6bdb4b638a23af5a3362202d1ff8d890f79696535fee123812428f4bfe3b91408b8a5c9ebb8172dfd01ae65e63feeac9a6d0
diff --git a/sys-cluster/ucx/files/ucx-1.13.0-binutils-2.39-ptr-typedef.patch b/sys-cluster/ucx/files/ucx-1.13.0-binutils-2.39-ptr-typedef.patch
new file mode 100644
index 000000000000..2eb863e6bdea
--- /dev/null
+++ b/sys-cluster/ucx/files/ucx-1.13.0-binutils-2.39-ptr-typedef.patch
@@ -0,0 +1,25 @@
+https://github.com/openucx/ucx/commit/edd14921fa0a3e8cf631ef1a08fc724e44d072df
+https://bugs.gentoo.org/868117
+
+From 6b6128efd416831cec3a1820f7d1c8e648b79448 Mon Sep 17 00:00:00 2001
+From: Hui Zhou <hzhou321@anl.gov>
+Date: Sun, 14 Aug 2022 23:29:09 -0500
+Subject: [PATCH] UCS/DEBUG: replace PTR with void *
+
+The PTR macro is missing on the latest Arch linux.
+--- a/src/ucs/debug/debug.c
++++ b/src/ucs/debug/debug.c
+@@ -272,10 +272,10 @@ static int load_file(struct backtrace_file *file)
+ goto err_close;
+ }
+
+- symcount = bfd_read_minisymbols(file->abfd, 0, (PTR)&file->syms, &size);
++ symcount = bfd_read_minisymbols(file->abfd, 0, (void *)&file->syms, &size);
+ if (symcount == 0) {
+ free(file->syms);
+- symcount = bfd_read_minisymbols(file->abfd, 1, (PTR)&file->syms, &size);
++ symcount = bfd_read_minisymbols(file->abfd, 1, (void *)&file->syms, &size);
+ }
+ if (symcount < 0) {
+ goto err_close;
+
diff --git a/sys-cluster/ucx/files/ucx-1.13.0-drop-werror.patch b/sys-cluster/ucx/files/ucx-1.13.0-drop-werror.patch
new file mode 100644
index 000000000000..a0901ce23c18
--- /dev/null
+++ b/sys-cluster/ucx/files/ucx-1.13.0-drop-werror.patch
@@ -0,0 +1,33 @@
+--- a/config/m4/compiler.m4
++++ b/config/m4/compiler.m4
+@@ -10,7 +10,7 @@
+ #
+ # Initialize CFLAGS
+ #
+-BASE_CFLAGS="-g -Wall -Werror"
++BASE_CFLAGS="-g -Wall"
+
+
+ #
+--- a/examples/Makefile.am
++++ b/examples/Makefile.am
+@@ -26,7 +26,7 @@ EXAMPLE_CUDA_CFLAGS = $(CFLAGS_PEDANTIC)
+ EXAMPLE_CUDA_CPPFLAGS =
+ endif
+
+-EXAMPLE_CCLD_FLAGS = -lucs -I$(includedir) -L$(libdir) -Wall -Werror -Wl,-rpath,$(libdir) \
++EXAMPLE_CCLD_FLAGS = -lucs -I$(includedir) -L$(libdir) -Wall -Wl,-rpath,$(libdir) \
+ $(EXAMPLE_CUDA_LD_FLAGS) $(EXAMPLE_CUDA_LIBS) $(EXAMPLE_CUDA_CPPFLAGS)
+
+ installcheck-local:
+--- a/test/apps/sockaddr/Makefile.am
++++ b/test/apps/sockaddr/Makefile.am
+@@ -12,7 +12,7 @@ noinst_HEADERS = \
+ sa_util.h
+
+ sa_CXXFLAGS = \
+- -std=c++11 -g -Wall -Werror
++ -std=c++11 -g -Wall
+
+ sa_CPPFLAGS = $(BASE_CPPFLAGS)
+
diff --git a/sys-cluster/ucx/files/ucx-1.13.0-fix-bashisms.patch b/sys-cluster/ucx/files/ucx-1.13.0-fix-bashisms.patch
new file mode 100644
index 000000000000..f152c152fcbb
--- /dev/null
+++ b/sys-cluster/ucx/files/ucx-1.13.0-fix-bashisms.patch
@@ -0,0 +1,44 @@
+https://github.com/openucx/ucx/pull/8494
+
+From c65087d7984f516485c11b4b732d9ac2676a494e Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Sat, 3 Sep 2022 00:28:28 +0100
+Subject: [PATCH] config: Fix bashisms in configure
+
+configure scripts need to be runnable with a POSIX-compliant /bin/sh.
+
+On many (but not all!) systems, /bin/sh is provided by Bash, so errors
+like this aren't spotted. Notably Debian defaults to /bin/sh provided
+by dash which doesn't tolerate such bashisms as '=='.
+
+This retains compatibility with bash.
+
+Fixes configure warnings/errors like:
+```
+checking for go... yes
+./configure: 26781: test: xyes: unexpected operator
+```
+
+Signed-off-by: Sam James <sam@gentoo.org>
+--- a/config/m4/go.m4
++++ b/config/m4/go.m4
+@@ -21,7 +21,7 @@ AS_IF([test "x$with_go" != xno],
+ [AS_VERSION_COMPARE([1.16], [`go version | awk '{print substr($3, 3, length($3)-2)}'`],
+ [go_happy="yes"], [go_happy="yes"], [go_happy=no])],
+ [go_happy=no])
+- AS_IF([test "x$go_happy" == xno],
++ AS_IF([test "x$go_happy" = xno],
+ [AS_IF([test "x$with_go" = "xguess"],
+ [AC_MSG_WARN([Disabling GO support - GO compiler version 1.16 or newer not found.])],
+ [AC_MSG_ERROR([GO support was explicitly requested, but go compiler not found.])])])
+--- a/configure.ac
++++ b/configure.ac
+@@ -159,7 +159,7 @@ AC_ARG_WITH([docs_only],
+ AC_DEFUN([UCX_DX_ENABLE_CHECK],
+ [AS_IF([DX_TEST_FEATURE($1)],
+ [],
+- [AS_IF([test "x$enable_doxygen_$1" == xyes],
++ [AS_IF([test "x$enable_doxygen_$1" = xyes],
+ [AC_MSG_ERROR([--enable-doxygen-$1 was specified, but $1 tools were not found])],
+ [])])])
+
diff --git a/sys-cluster/ucx/files/ucx-1.13.0-fix-fcntl-include-musl.patch b/sys-cluster/ucx/files/ucx-1.13.0-fix-fcntl-include-musl.patch
new file mode 100644
index 000000000000..2d80ffeaa3d6
--- /dev/null
+++ b/sys-cluster/ucx/files/ucx-1.13.0-fix-fcntl-include-musl.patch
@@ -0,0 +1,103 @@
+https://github.com/openucx/ucx/pull/8495
+
+From 77ea0b015bc2d18f4a6bc2ba0fb9b71ac7532199 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Sat, 3 Sep 2022 00:44:28 +0100
+Subject: [PATCH 1/2] UCM: Fix deprecated <sys/fcntl.h> includes
+
+Fix deprecation warnings like:
+```
+In file included from /var/tmp/portage/sys-cluster/ucx-1.10.0_rc5/work/ucx-1.10.0-rc5/src/ucs/sys/sys.h:29,
+ from mmap/install.c:21:
+/usr/include/sys/fcntl.h:1:2: error: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Werror=cpp[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wcpp]]
+ 1 | #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
+ | ^~~~~~~
+```
+
+Bug: https://bugs.gentoo.org/832966
+Signed-off-by: Sam James <sam@gentoo.org>
+--- a/src/tools/profile/read_profile.c
++++ b/src/tools/profile/read_profile.c
+@@ -13,12 +13,12 @@
+ #include <ucs/sys/string.h>
+
+ #include <sys/signal.h>
+-#include <sys/fcntl.h>
+ #include <sys/ioctl.h>
+ #include <sys/mman.h>
+ #include <sys/stat.h>
+ #include <stdlib.h>
+ #include <getopt.h>
++#include <fcntl.h>
+ #include <unistd.h>
+ #include <string.h>
+ #include <assert.h>
+--- a/src/ucm/util/reloc.c
++++ b/src/ucm/util/reloc.c
+@@ -17,7 +17,6 @@
+ #include <ucs/sys/string.h>
+ #include <ucs/sys/sys.h>
+
+-#include <sys/fcntl.h>
+ #include <sys/mman.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+--- a/test/apps/sockaddr/sa_tcp.cc
++++ b/test/apps/sockaddr/sa_tcp.cc
+@@ -8,8 +8,8 @@
+
+ #include <sys/socket.h>
+ #include <sys/epoll.h>
+-#include <sys/fcntl.h>
+ #include <arpa/inet.h>
++#include <fcntl.h>
+ #include <unistd.h>
+ #include <cstring>
+ #include <cerrno>
+
+From 9f9e50e5472e390c86147b9031ddd8525207822a Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Sat, 3 Sep 2022 00:44:56 +0100
+Subject: [PATCH 2/2] UCS: Fix deprecated <sys/fcntl.h> includes
+
+Fix deprecation warnings like:
+```
+In file included from /var/tmp/portage/sys-cluster/ucx-1.10.0_rc5/work/ucx-1.10.0-rc5/src/ucs/sys/sys.h:29,
+ from mmap/install.c:21:
+/usr/include/sys/fcntl.h:1:2: error: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Werror=cpp[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wcpp]]
+ 1 | #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
+ | ^~~~~~~
+```
+
+Bug: https://bugs.gentoo.org/832966
+Signed-off-by: Sam James <sam@gentoo.org>
+--- a/src/ucs/sys/sys.h
++++ b/src/ucs/sys/sys.h
+@@ -26,7 +26,6 @@
+ #include <sys/time.h>
+ #include <sys/types.h>
+ #include <sys/uio.h>
+-#include <sys/fcntl.h>
+ #include <sys/stat.h>
+ #include <sys/syscall.h>
+ #include <sys/param.h>
+@@ -36,6 +35,7 @@
+ #include <stdlib.h>
+ #include <stdint.h>
+ #include <assert.h>
++#include <fcntl.h>
+ #include <stdio.h>
+ #include <stdarg.h>
+ #include <string.h>
+--- a/test/gtest/ucs/test_vfs.cc
++++ b/test/gtest/ucs/test_vfs.cc
+@@ -12,7 +12,7 @@ extern "C" {
+ #include <ucs/vfs/sock/vfs_sock.h>
+ }
+
+-#include <sys/fcntl.h>
++#include <fcntl.h>
+ #include <time.h>
+
+
+
diff --git a/sys-cluster/ucx/ucx-1.13.0.ebuild b/sys-cluster/ucx/ucx-1.13.0.ebuild
new file mode 100644
index 000000000000..983466a7cf98
--- /dev/null
+++ b/sys-cluster/ucx/ucx-1.13.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools toolchain-funcs
+
+MY_PV=${PV/_/-}
+DESCRIPTION="Unified Communication X"
+HOMEPAGE="https://www.openucx.org"
+SRC_URI="https://github.com/openucx/ucx/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 -riscv ~x86 ~amd64-linux ~x86-linux"
+IUSE="+numa +openmp"
+
+RDEPEND="
+ sys-libs/binutils-libs:=
+ numa? ( sys-process/numactl )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.13.0-drop-werror.patch
+ "${FILESDIR}"/${PN}-1.13.0-fix-bashisms.patch
+ "${FILESDIR}"/${PN}-1.13.0-fix-fcntl-include-musl.patch
+ "${FILESDIR}"/${P}-binutils-2.39-ptr-typedef.patch
+)
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ BASE_CFLAGS="" econf \
+ --disable-compiler-opt \
+ --without-fuse3 \
+ --without-go \
+ $(use_enable numa) \
+ $(use_enable openmp)
+}
+
+src_compile() {
+ BASE_CFLAGS="" emake
+}