diff options
author | Sam James <sam@gentoo.org> | 2022-09-03 00:46:37 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-09-03 00:50:08 +0100 |
commit | b1701a3522a4a51e4dcd57a531b608a739c620b6 (patch) | |
tree | f53447c78ed36352c1439c7036cb7154725677b6 /sys-cluster/ucx/files | |
parent | sys-auth/AusweisApp2: drop 1.24.0 (diff) | |
download | gentoo-b1701a3522a4a51e4dcd57a531b608a739c620b6.tar.gz gentoo-b1701a3522a4a51e4dcd57a531b608a739c620b6.tar.bz2 gentoo-b1701a3522a4a51e4dcd57a531b608a739c620b6.zip |
sys-cluster/ucx: add 1.13.0
Bug: https://bugs.gentoo.org/861653
Closes: https://bugs.gentoo.org/798051
Closes: https://bugs.gentoo.org/822132
Closes: https://bugs.gentoo.org/832966
Closes: https://bugs.gentoo.org/868117
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-cluster/ucx/files')
4 files changed, 205 insertions, 0 deletions
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> + + + |