summaryrefslogtreecommitdiff
path: root/sys-fabric
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-21 12:11:53 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-21 12:11:53 +0100
commit1fd1215c62ee14dc2e94fa04d6e3622391c9ab57 (patch)
tree909630a900b1ac6b180d8af2e2345a171417d59f /sys-fabric
parentd60aa36cd97fb2193f756b45820d7c073a49229d (diff)
gentoo auto-resync : 21:09:2024 - 12:11:53
Diffstat (limited to 'sys-fabric')
-rw-r--r--sys-fabric/Manifest.gzbin885 -> 887 bytes
-rw-r--r--sys-fabric/mstflint/Manifest3
-rw-r--r--sys-fabric/mstflint/files/mstflint-4.29.0-build-system.patch112
-rw-r--r--sys-fabric/mstflint/mstflint-4.29.0_p1.ebuild68
4 files changed, 183 insertions, 0 deletions
diff --git a/sys-fabric/Manifest.gz b/sys-fabric/Manifest.gz
index 66512890e9fd..d2e26c044e0a 100644
--- a/sys-fabric/Manifest.gz
+++ b/sys-fabric/Manifest.gz
Binary files differ
diff --git a/sys-fabric/mstflint/Manifest b/sys-fabric/mstflint/Manifest
index bb9022f6668b..c3c4885e5d91 100644
--- a/sys-fabric/mstflint/Manifest
+++ b/sys-fabric/mstflint/Manifest
@@ -1,4 +1,7 @@
AUX mstflint-4.23.0_p1-C99-compat.patch 1787 BLAKE2B 848e050e532d28bdd01e58770a0a5730edd46e874b4e9f8a221b7e7e5bf9665441656cce5661d3468afb85cd17b1a0b42fd665452b657ef3502f4bd781f58206 SHA512 f639e65d6a152fc6e8f466230d413c9891ad3ae9a0abaea146281d32e164b46de6b719fdb0dcde3be4b61ece710a46857ddea7e922018d17b14867e8f744432d
+AUX mstflint-4.29.0-build-system.patch 5198 BLAKE2B bf15ed94b298160b72330500cfeb961a2ebea5e810c5a072da48727f2556f1a212ae3febfb89c15defe658f8982716ae311fca7f2ff470c1ac423a2084bfeb4f SHA512 69b96e310e0f1120b7b030d5e1ed319a749b3b6b5f915168f69baf7737c2d827e4ddf8f92dd1e6fcc5d8e6ab61fc043e3433cfd2f0687a9085abc90e5ae6eab1
DIST mstflint-4.23.0_p1.tar.gz 6269497 BLAKE2B 95c8fda6a1532baa50de7bcfffc128d24f30c41e670ee9fb19193025dee75fecf3b3e5bebec30bfd7ce9cc138c8eb61ba66a24d14ccec304cc75cae95d62995f SHA512 e0f98587272334d30910b7e8ea4c61ee0404924c85bfedd298ef0ae9321b177d56c8469588a2f59bc1584da79cd2908a222f3608b240d3b5498fb0cd87c06146
+DIST mstflint-4.29.0_p1.tar.gz 6427725 BLAKE2B c3e725f91b9571e1d604b1474052768abb6efa4f171aed2c12ae0c35640f66d0ced4dd23c9b144dc04cdbfb7cf112f4fb099fad698da15e41071f475bf7fdc0a SHA512 3f80c03b536edf6801140f5f6faef7efe07d254038308cdbc5321018668c3e7c0d4789f1e47a95f525aa9f4d93b368234c7a6aaf0f5e1a0e5e4d2a580ead391a
EBUILD mstflint-4.23.0_p1.ebuild 1371 BLAKE2B 054e007ea31c7c98119c7955dba0f0bec6b130241fe00a3deed8ec17b5367821b14c821914cbbb9ec38367a9565e188e023636ca263859a8b660f071c745211f SHA512 7bc5bf8644b2f506ef6a9a2c3c4f90e13828be3cbf5f9029d60ffcf7986f9ad4d46dec78b72b628682c8e34dfe2eb6f5ada781914a4e4a5095c8bb52f8b27cc7
+EBUILD mstflint-4.29.0_p1.ebuild 1516 BLAKE2B db73d1dccd6b5c2221913d2e9718877ec9cd8f5149c8eed28342598648d40ee08fecdc7b7522d03cf2dff4928ef0908c28187c84bd1d0df24866caf8758cbc5c SHA512 27aa4df3bdd08aff63106cd07feb4e1d8baa8743c60cb22a03942f80cbdbe5ee1af012bb987dfd2bcc04af073c56a28f69b9f032d7937193a7cffbace97f5b07
MISC metadata.xml 535 BLAKE2B 1e72f523ffe6502539cb60113b7c5c65528552aff7b5aab7e944afa982b0551a8c561cd58b516ba6daa76380598d8f24ec47eb63b7890c092f2aa40ba5f1af41 SHA512 5b95d56f53b0e89ace5a1032a063a3f606c44f5a913e87e9d7c2b61e7dac1a9c44c44819648996668c53c106bb085e9f50c10050fca6e457f39b40d48fea79c8
diff --git a/sys-fabric/mstflint/files/mstflint-4.29.0-build-system.patch b/sys-fabric/mstflint/files/mstflint-4.29.0-build-system.patch
new file mode 100644
index 000000000000..62efd1580e7e
--- /dev/null
+++ b/sys-fabric/mstflint/files/mstflint-4.29.0-build-system.patch
@@ -0,0 +1,112 @@
+diff --git a/cmdif/Makefile.am b/cmdif/Makefile.am
+index 7bb332aa..3ffdf7d6 100644
+--- a/cmdif/Makefile.am
++++ b/cmdif/Makefile.am
+@@ -53,7 +53,7 @@ libcmdif_la_SOURCES = tools_cif.c tools_cif.h icmd_cif_common.c icmd_cif_common.
+ cmdif_pylibdir = $(libdir)/mstflint/python_tools/
+ cmdif_pylib_DATA = ${CCMDIF_SO} cmdif.py
+ ${CCMDIF_SO}: libcmdif.la
+- $(CC) -g -Wall -pthread -shared ${CFLAGS} *.o -o ${CCMDIF_SO} \
++ $(CC) -g -Wall -pthread -shared ${CFLAGS} ${LDFLAGS} *.o -o ${CCMDIF_SO} \
+ $(top_builddir)/tools_layouts/.libs/libtools_layouts.a $(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a
+
+ CLEANFILES = ${CCMDIF_SO}
+diff --git a/configure.ac b/configure.ac
+index bd510607..2ae22057 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -59,9 +59,6 @@ AC_COMPILE_IFELSE(
+ ]])], [OPENSSL_VERSION_VALID=yes], [OPENSSL_VERSION_VALID=no])
+ OS=$(uname -s)
+ KERNEL_VER=`uname -r | egrep -E -o '[[0-9]]+\.[[0-9]]+' | head -1`
+-OFED_VER=`ofed_info -s | egrep -E -o '[[0-9]]+\.[[0-9]]+' | head -1`
+-OFED_EXIST=`ofed_info -s`
+-OFED_NOT_EXIST="ofed_info: command not found"
+ MTCR_CONF_DIR=""
+ LDL=""
+ default_en_inband=""
+diff --git a/dev_mgt/Makefile.am b/dev_mgt/Makefile.am
+index a5f66e9f..0d1417da 100644
+--- a/dev_mgt/Makefile.am
++++ b/dev_mgt/Makefile.am
+@@ -50,7 +50,7 @@ dev_mgt_pylib_DATA = c_dev_mgt.so
+ dist_dev_mgt_pylib_DATA = dev_mgt.py
+
+ c_dev_mgt.so: libdev_mgt.la
+- $(CC) -g -Wall -pthread -shared ${CFLAGS} tools_dev_types.o -o c_dev_mgt.so \
++ $(CC) -g -Wall -pthread -shared ${CFLAGS} ${LDFLAGS} tools_dev_types.o -o c_dev_mgt.so \
+ $(top_builddir)/reg_access/.libs/libreg_access.a \
+ $(top_builddir)/tools_layouts/.libs/libtools_layouts.a \
+ $(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a
+diff --git a/mtcr_py/Makefile.am b/mtcr_py/Makefile.am
+index 46fa4e60..d032257d 100644
+--- a/mtcr_py/Makefile.am
++++ b/mtcr_py/Makefile.am
+@@ -35,6 +35,6 @@ mtcr_pylibdir = $(libdir)/mstflint/python_tools/
+ mtcr_pylib_DATA = cmtcr.so
+ dist_mtcr_pylib_DATA = mtcr.py
+ cmtcr.so:
+- $(CC) -g -Wall -pthread -shared ${CFLAGS} -o cmtcr.so -Wl,--whole-archive $(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a -Wl,--no-whole-archive
++ $(CC) -g -Wall -pthread -shared ${CFLAGS} ${LDFLAGS} -o cmtcr.so -Wl,--whole-archive $(top_builddir)/${MTCR_CONF_DIR}/libmtcr_ul.a -Wl,--no-whole-archive
+
+ CLEANFILES = cmtcr.so
+diff --git a/mtcr_ul/Makefile.am b/mtcr_ul/Makefile.am
+index a2a644ee..8c5c6f3b 100644
+--- a/mtcr_ul/Makefile.am
++++ b/mtcr_ul/Makefile.am
+@@ -32,7 +32,8 @@
+
+ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include/mtcr_ul -I$(top_srcdir)/common -I$(top_srcdir)/dev_mgt
+
+-pkglib_LTLIBRARIES = libmtcr_ul.la
++noinst_LIBRARIES = libmtcr_ul.a
++noinst_LTLIBRARIES = libmtcr_ul.la
+
+ libmtcr_ul_la_SOURCES = mtcr_ul.c mtcr_ib.h mtcr_int_defs.h\
+ mtcr_ib_res_mgt.h mtcr_ib_res_mgt.c\
+@@ -45,14 +46,13 @@ libmtcr_ul_la_SOURCES = mtcr_ul.c mtcr_ib.h mtcr_int_defs.h\
+ packets_layout.c packets_layout.h \
+ fwctrl.c fwctrl.h fwctrl_ioctl.h
+ libmtcr_ul_la_CFLAGS = -W -Wall -g -MP -MD -fPIC -DMTCR_API="" -DMST_UL
++libmtcr_ul_a_CFLAGS = -W -Wall -g -MP -MD -fPIC -DMTCR_API="" -DMST_UL
+
+ if ENABLE_INBAND
+ libmtcr_ul_la_SOURCES += mtcr_ib_ofed.c
+ endif
+
++libmtcr_ul_a_SOURCES = $(libmtcr_ul_la_SOURCES)
++
+ libraryincludedir=$(includedir)/mstflint
+ libraryinclude_HEADERS = $(top_srcdir)/include/mtcr_ul/mtcr.h $(top_srcdir)/include/mtcr_ul/mtcr_com_defs.h $(top_srcdir)/include/mtcr_ul/mtcr_mf.h
+-
+-install-exec-hook:
+- rm -f $(DESTDIR)$(pkglibdir)/libmtcr_ul.so* $(DESTDIR)$(pkglibdir)/libmtcr_ul.la
+- ln -snf mstflint/libmtcr_ul.a $(DESTDIR)$(libdir)/
+diff --git a/reg_access/Makefile.am b/reg_access/Makefile.am
+index 8e38c473..6228b45a 100644
+--- a/reg_access/Makefile.am
++++ b/reg_access/Makefile.am
+@@ -57,7 +57,7 @@ reg_access_pylib_DATA = ${RREG_ACCESS_SO}
+ dist_reg_access_pylib_DATA = regaccess.py regaccess_hca_ext_structs.py regaccess_switch_ext_structs.py
+
+ ${RREG_ACCESS_SO}: libreg_access.la
+- $(CC) -g -Wall -pthread -shared ${CFLAGS} *.o -o ${RREG_ACCESS_SO} \
++ $(CC) -g -Wall -pthread -shared ${CFLAGS} ${LDFLAGS} *.o -o ${RREG_ACCESS_SO} \
+ $(top_builddir)/tools_layouts/.libs/libtools_layouts.a $(top_builddir)/${MTCR_CONF_DIR}/.libs/libmtcr_ul.a
+
+ CLEANFILES = ${RREG_ACCESS_SO}
+diff --git a/resourcetools/resourcedump_lib/src/sdk/Makefile.am b/resourcetools/resourcedump_lib/src/sdk/Makefile.am
+index aefc88a4..5cdd37a6 100644
+--- a/resourcetools/resourcedump_lib/src/sdk/Makefile.am
++++ b/resourcetools/resourcedump_lib/src/sdk/Makefile.am
+@@ -86,8 +86,8 @@ resource_dump_sdk_so_DEPS = \
+
+ # if !WIN_BUILD
+ libresource_dump_sdk.so: libresource_dump_sdk.la
+- $(CC) -Wall -pthread -shared ${CFLAGS} $(COMPILER_FPIC) libresource_dump_sdk_la-resource_dump_sdk.o \
+- -o libresource_dump_sdk.so ${AM_LDFLAGS} $(resource_dump_sdk_so_DEPS)
++ $(CC) -Wall -pthread -shared ${CFLAGS} $(COMPILER_FPIC) .libs/libresource_dump_sdk_la-resource_dump_sdk.o \
++ -o libresource_dump_sdk.so ${AM_LDFLAGS} ${LDFLAGS} $(resource_dump_sdk_so_DEPS)
+ # else
+ # libresource_dump_sdk.dll: libresource_dump_sdk.la
+ # $(CC) -Wall -pthread -shared -Wl,--no-undefined,--enable-runtime-pseudo-reloc ${CFLAGS} $(COMPILER_FPIC) libresource_dump_sdk_la-resource_dump_sdk.o \
diff --git a/sys-fabric/mstflint/mstflint-4.29.0_p1.ebuild b/sys-fabric/mstflint/mstflint-4.29.0_p1.ebuild
new file mode 100644
index 000000000000..0588270f7aa7
--- /dev/null
+++ b/sys-fabric/mstflint/mstflint-4.29.0_p1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+MY_PV="${PV/_p/-}"
+EGIT_COMMIT="f5b9f306d90e108ba58bc7355b34926761a9eab0"
+
+DESCRIPTION="Mstflint - an open source version of MFT (Mellanox Firmware Tools)"
+HOMEPAGE="https://github.com/Mellanox/mstflint"
+SRC_URI="https://github.com/Mellanox/mstflint/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="|| ( GPL-2 BSD-2 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="adb-generic-tools inband ssl"
+
+DEPEND="
+ dev-db/sqlite:3=
+ sys-libs/zlib:=
+ inband? ( sys-cluster/rdma-core )
+ adb-generic-tools? (
+ dev-libs/boost:=
+ dev-libs/expat:=
+ )
+ ssl? ( dev-libs/openssl:= )
+"
+RDEPEND="
+ ${DEPEND}
+ sys-apps/pciutils
+"
+
+PATCHES=(
+ "${FILESDIR}/mstflint-4.29.0-build-system.patch"
+)
+
+src_prepare() {
+ default
+
+ sed -e 's: \*.o: .libs/*.o:' \
+ -e 's: tools_dev_types.o: .libs/tools_dev_types.o:' \
+ -i cmdif/Makefile.am dev_mgt/Makefile.am reg_access/Makefile.am || die
+
+ sed -e 's:_LDFLAGS = :_LDFLAGS = $(LDFLAGS) :' \
+ -i */Makefile.am mstdump/crd_main/Makefile.am || die
+
+ printf -- '#define TOOLS_GIT_SHA "%s"' "${EGIT_COMMIT}" > ./common/gitversion.h || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable inband) \
+ $(use_enable ssl openssl) \
+ $(use adb-generic-tools && printf -- '--enable-adb-generic-tools')
+}
+
+src_compile() {
+ if use adb-generic-tools; then
+ pushd ext_libs/json >/dev/null || die
+ emake
+ popd >/dev/null || die
+ fi
+ default
+}