public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/gloo/, sci-libs/gloo/files/
@ 2022-06-12 10:43 Alfredo Tupone
  0 siblings, 0 replies; 3+ messages in thread
From: Alfredo Tupone @ 2022-06-12 10:43 UTC (permalink / raw
  To: gentoo-commits

commit:     12595b3093aa9c5468bdaf7c7d1214c2a6173466
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 12 10:43:32 2022 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sun Jun 12 10:43:32 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12595b30

sci-libs/gloo: add to tree

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 sci-libs/gloo/Manifest                           |  1 +
 sci-libs/gloo/files/gloo-2022.05.18-gentoo.patch | 64 ++++++++++++++++++++++++
 sci-libs/gloo/gloo-2022.05.18.ebuild             | 49 ++++++++++++++++++
 sci-libs/gloo/metadata.xml                       | 15 ++++++
 4 files changed, 129 insertions(+)

diff --git a/sci-libs/gloo/Manifest b/sci-libs/gloo/Manifest
new file mode 100644
index 000000000000..97dd806d820c
--- /dev/null
+++ b/sci-libs/gloo/Manifest
@@ -0,0 +1 @@
+DIST gloo-2022.05.18.tar.gz 251778 BLAKE2B 90bd97cff437d030b87c333ebb6679f199491b97826f09278b7a6740d781ca750af4e8eda18f29a4311462473146aae1fd0686443a0eb2c73e8ba34e6837b0af SHA512 356b4bd4480fda0f9db039babd223c17ed24c35945877bdb6c5b28eb45ee8ce08def73d308bc906c478c4c9d485bb0f74080d90c7a4fafe84818df0a97a7f6e2

diff --git a/sci-libs/gloo/files/gloo-2022.05.18-gentoo.patch b/sci-libs/gloo/files/gloo-2022.05.18-gentoo.patch
new file mode 100644
index 000000000000..41a1ace42dc7
--- /dev/null
+++ b/sci-libs/gloo/files/gloo-2022.05.18-gentoo.patch
@@ -0,0 +1,64 @@
+--- a/CMakeLists.txt	2022-06-09 08:29:13.172119535 +0200
++++ b/CMakeLists.txt	2022-06-09 08:29:27.474929097 +0200
+@@ -2,6 +2,9 @@
+ 
+ project(gloo CXX C)
+ 
++include(GNUInstallDirs)
++include(CTest)
++
+ set(GLOO_VERSION_MAJOR 0)
+ set(GLOO_VERSION_MINOR 5)
+ set(GLOO_VERSION_PATCH 0)
+--- a/gloo/CMakeLists.txt	2022-06-09 08:41:09.883773600 +0200
++++ b/gloo/CMakeLists.txt	2022-06-09 08:42:39.045637103 +0200
+@@ -176,7 +176,7 @@
+ # want to statically link with Gloo and not install any artifacts.
+ if(GLOO_INSTALL)
+   install(TARGETS gloo EXPORT GlooTargets
+-      DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
++          DESTINATION ${CMAKE_INSTALL_LIBDIR})
+   if(USE_CUDA)
+     install(TARGETS gloo_cuda EXPORT GlooTargets
+         DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
+--- a/gloo/test/CMakeLists.txt	2022-06-10 22:17:03.682856314 +0200
++++ b/gloo/test/CMakeLists.txt	2022-06-10 22:17:49.671242697 +0200
+@@ -68,3 +68,4 @@
+   gloo_hip_add_executable(gloo_test_hip ${GLOO_TEST_HIP_SRCS})
+   target_link_libraries(gloo_test_hip gloo_hip gtest OpenSSL::SSL OpenSSL::Crypto)
+ endif()
++add_test(NAME gloo_test COMMAND gloo_test)
+--- a/gloo/test/memory_test.cc	2022-06-10 22:28:53.815371465 +0200
++++ b/gloo/test/memory_test.cc	2022-06-10 22:29:14.504094854 +0200
+@@ -52,7 +52,7 @@
+ class MemoryTest : public BaseTest,
+                    public ::testing::WithParamInterface<Param> {};
+ 
+-TEST_P(MemoryTest, ManySlotsNoLeaks) {
++TEST_P(MemoryTest, DISABLED_ManySlotsNoLeaks) {
+   const auto transport = GetParam();
+   spawn(transport, 2, [&](std::shared_ptr<Context> context) {
+     size_t tmp0;
+--- a/cmake/Dependencies.cmake	2022-06-11 23:38:57.367089917 +0200
++++ b/cmake/Dependencies.cmake	2022-06-11 23:48:57.690866797 +0200
+@@ -81,7 +81,7 @@
+       pkg_search_module(libuv REQUIRED libuv>=1.26)
+       find_file(
+         libuv_LIBRARY
+-        NAMES libuv.a libuv_a.a
++        NAMES libuv.so
+         PATHS ${libuv_LIBDIR}
+         NO_DEFAULT_PATH)
+       if(NOT EXISTS ${libuv_LIBRARY})
+@@ -90,10 +90,7 @@
+     endif()
+ 
+     add_library(uv_a INTERFACE IMPORTED)
+-    set_target_properties(uv_a PROPERTIES
+-      INTERFACE_INCLUDE_DIRECTORIES ${libuv_INCLUDE_DIRS}
+-      INTERFACE_LINK_LIBRARIES ${libuv_LIBRARY}
+-      )
++    list(APPEND gloo_DEPENDENCY_LIBS -luv)
+   endif()
+ endif()
+ 

diff --git a/sci-libs/gloo/gloo-2022.05.18.ebuild b/sci-libs/gloo/gloo-2022.05.18.ebuild
new file mode 100644
index 000000000000..5b1fc445c18d
--- /dev/null
+++ b/sci-libs/gloo/gloo-2022.05.18.ebuild
@@ -0,0 +1,49 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit cmake
+
+CommitId=5b143513263133af2b95547e97c07cebeb72bf72
+
+DESCRIPTION="library of floating-point neural network inference operators"
+HOMEPAGE="https://github.com/facebookincubator/gloo/"
+SRC_URI="https://github.com/facebookincubator/${PN}/archive/${CommitId}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="libuv mpi redis ssl test"
+
+RDEPEND="
+	libuv? ( dev-libs/libuv )
+	mpi? ( virtual/mpi )
+	redis? (
+		dev-db/redis
+		dev-libs/hiredis
+	)
+	ssl? ( dev-libs/openssl )
+"
+DEPEND="${RDEPEND}
+"
+
+BDEPEND="test? ( dev-cpp/gtest )"
+RESTRICT="test" # For some test the network is needed
+
+S="${WORKDIR}"/${PN}-${CommitId}
+
+PATCHES=(
+	"${FILESDIR}"/${P}-gentoo.patch
+)
+
+src_configure() {
+	local mycmakeargs=(
+		-DBUILD_TEST=$(usex test ON OFF)
+		-DUSE_LIBUV=$(usex libuv ON OFF)
+		-DUSE_MPI=$(usex mpi ON OFF)
+		-DUSE_REDIS=$(usex redis ON OFF)
+		-DUSE_TCP_OPENSSL_LINK=$(usex ssl ON OFF)
+	)
+	cmake_src_configure
+}

diff --git a/sci-libs/gloo/metadata.xml b/sci-libs/gloo/metadata.xml
new file mode 100644
index 000000000000..453b2878b484
--- /dev/null
+++ b/sci-libs/gloo/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>tupone@gentoo.org</email>
+		<name>Tupone Alfredo</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">facebookincubator/gloo</remote-id>
+	</upstream>
+	<use>
+		<flag name="libuv">Enable libuv support</flag>
+		<flag name="redis">Enable Redis backend for storage via <pkg>dev-libs/hiredis</pkg></flag>
+	</use>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-libs/gloo/, sci-libs/gloo/files/
@ 2023-11-27 22:00 Alfredo Tupone
  0 siblings, 0 replies; 3+ messages in thread
From: Alfredo Tupone @ 2023-11-27 22:00 UTC (permalink / raw
  To: gentoo-commits

commit:     b5e3325de0c1665d5c606f556680e973b188c422
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 27 21:53:34 2023 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Nov 27 21:55:39 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5e3325d

sci-libs/gloo: fix ssl3 build

Bug: https://bugs.gentoo.org/913685
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 sci-libs/gloo/files/gloo-2023.01.17-ssl3.patch        | 19 +++++++++++++++++++
 ...2023.01.17-r1.ebuild => gloo-2023.01.17-r2.ebuild} |  1 +
 2 files changed, 20 insertions(+)

diff --git a/sci-libs/gloo/files/gloo-2023.01.17-ssl3.patch b/sci-libs/gloo/files/gloo-2023.01.17-ssl3.patch
new file mode 100644
index 000000000000..f01beafa4596
--- /dev/null
+++ b/sci-libs/gloo/files/gloo-2023.01.17-ssl3.patch
@@ -0,0 +1,19 @@
+--- a/gloo/CMakeLists.txt	2023-11-27 22:39:53.709670525 +0100
++++ b/gloo/CMakeLists.txt	2023-11-27 22:42:29.784250524 +0100
+@@ -77,7 +77,7 @@
+ if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
+   set(GLOO_HAVE_TRANSPORT_TCP 1)
+   if(${USE_TCP_OPENSSL_LINK} OR ${USE_TCP_OPENSSL_LOAD})
+-    find_package(OpenSSL 1.1 REQUIRED EXACT)
++    find_package(OpenSSL 1.1...<4 REQUIRED)
+     set(GLOO_HAVE_TRANSPORT_TCP_TLS 1)
+   else()
+     set(GLOO_HAVE_TRANSPORT_TCP_TLS 0)
+--- a/gloo/test/CMakeLists.txt	2023-11-27 22:42:55.969844380 +0100
++++ b/gloo/test/CMakeLists.txt	2023-11-27 22:43:14.873551147 +0100
+@@ -1,4 +1,4 @@
+-find_package(OpenSSL 1.1 REQUIRED EXACT)
++find_package(OpenSSL 1.1...<4 REQUIRED)
+ 
+ set(GLOO_TEST_SRCS
+   "${CMAKE_CURRENT_SOURCE_DIR}/allgather_test.cc"

diff --git a/sci-libs/gloo/gloo-2023.01.17-r1.ebuild b/sci-libs/gloo/gloo-2023.01.17-r2.ebuild
similarity index 97%
rename from sci-libs/gloo/gloo-2023.01.17-r1.ebuild
rename to sci-libs/gloo/gloo-2023.01.17-r2.ebuild
index a2c76198f848..8518665b3cd4 100644
--- a/sci-libs/gloo/gloo-2023.01.17-r1.ebuild
+++ b/sci-libs/gloo/gloo-2023.01.17-r2.ebuild
@@ -37,6 +37,7 @@ S="${WORKDIR}"/${PN}-${CommitId}
 PATCHES=(
 	"${FILESDIR}"/${PN}-2022.05.18-gentoo.patch
 	"${FILESDIR}"/${P}-cuda.patch
+	"${FILESDIR}"/${P}-ssl3.patch
 )
 
 src_prepare() {


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-libs/gloo/, sci-libs/gloo/files/
@ 2024-09-06 20:08 Alfredo Tupone
  0 siblings, 0 replies; 3+ messages in thread
From: Alfredo Tupone @ 2024-09-06 20:08 UTC (permalink / raw
  To: gentoo-commits

commit:     0e7f41fb57f3aae0cb7473b161eb9a2d37adb6bf
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  6 20:08:06 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Sep  6 20:08:26 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e7f41fb

sci-libs/gloo: gcc15

Closes: https://bugs.gentoo.org/939097
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 sci-libs/gloo/files/gloo-2023.12.03-gcc15.patch | 10 ++++++++++
 sci-libs/gloo/gloo-2023.12.03.ebuild            |  1 +
 2 files changed, 11 insertions(+)

diff --git a/sci-libs/gloo/files/gloo-2023.12.03-gcc15.patch b/sci-libs/gloo/files/gloo-2023.12.03-gcc15.patch
new file mode 100644
index 000000000000..d68b4e551053
--- /dev/null
+++ b/sci-libs/gloo/files/gloo-2023.12.03-gcc15.patch
@@ -0,0 +1,10 @@
+--- a/gloo/types.h	2024-09-06 22:05:07.308213847 +0200
++++ b/gloo/types.h	2024-09-06 22:05:32.598941783 +0200
+@@ -5,6 +5,7 @@
+ #pragma once
+ 
+ #include <iostream>
++#include <cstdint>
+ 
+ #ifdef __CUDA_ARCH__
+ #include <cuda.h>

diff --git a/sci-libs/gloo/gloo-2023.12.03.ebuild b/sci-libs/gloo/gloo-2023.12.03.ebuild
index 16201cde8c0d..bb2bc3e914c1 100644
--- a/sci-libs/gloo/gloo-2023.12.03.ebuild
+++ b/sci-libs/gloo/gloo-2023.12.03.ebuild
@@ -38,6 +38,7 @@ PATCHES=(
 	"${FILESDIR}"/${PN}-2022.05.18-gentoo.patch
 	"${FILESDIR}"/${PN}-2023.01.17-cuda.patch
 	"${FILESDIR}"/${PN}-2023.01.17-ssl3.patch
+	"${FILESDIR}"/${P}-gcc15.patch
 )
 
 src_prepare() {


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-09-06 20:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-06 20:08 [gentoo-commits] repo/gentoo:master commit in: sci-libs/gloo/, sci-libs/gloo/files/ Alfredo Tupone
  -- strict thread matches above, loose matches on Subject: below --
2023-11-27 22:00 Alfredo Tupone
2022-06-12 10:43 Alfredo Tupone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox