1 |
|
# Copyright 1999-2024 Gentoo Authors
|
|
1 |
# Copyright 1999-2025 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
4 |
EAPI=8
|
... | ... | |
6 |
6 |
inherit autotools
|
7 |
7 |
|
8 |
8 |
MY_PV="${PV/_p/-}"
|
9 |
|
EGIT_COMMIT="acfaf553f2f571b1f9256b6cd558eafa767d9172"
|
|
9 |
EGIT_COMMIT="37e382f8960a0cdf639dc9c55314a9b8d0733ead"
|
10 |
10 |
|
11 |
11 |
DESCRIPTION="Mstflint - an open source version of MFT (Mellanox Firmware Tools)"
|
12 |
12 |
HOMEPAGE="https://github.com/Mellanox/mstflint"
|
... | ... | |
15 |
15 |
|
16 |
16 |
LICENSE="|| ( GPL-2 BSD-2 )"
|
17 |
17 |
SLOT="0"
|
18 |
|
KEYWORDS="~amd64 ~x86"
|
|
18 |
KEYWORDS="~amd64 ~loong ~x86"
|
19 |
19 |
IUSE="adb-generic-tools inband ssl"
|
20 |
20 |
|
21 |
|
RDEPEND="
|
|
21 |
DEPEND="
|
22 |
22 |
dev-db/sqlite:3=
|
23 |
23 |
sys-libs/zlib:=
|
24 |
24 |
inband? ( sys-cluster/rdma-core )
|
... | ... | |
26 |
26 |
dev-libs/boost:=
|
27 |
27 |
dev-libs/expat:=
|
28 |
28 |
)
|
29 |
|
ssl? ( dev-libs/openssl:= )"
|
30 |
|
DEPEND="${RDEPEND}"
|
31 |
|
|
32 |
|
PATCHES=( "${FILESDIR}"/mstflint-4.23.0_p1-C99-compat.patch )
|
|
29 |
ssl? ( dev-libs/openssl:= )
|
|
30 |
"
|
|
31 |
RDEPEND="
|
|
32 |
${DEPEND}
|
|
33 |
sys-apps/pciutils
|
|
34 |
"
|
|
35 |
|
|
36 |
PATCHES=(
|
|
37 |
"${FILESDIR}/mstflint-4.29.0-build-system.patch"
|
|
38 |
"${FILESDIR}/mstflint-4.29.0-gcc15.patch"
|
|
39 |
)
|
33 |
40 |
|
34 |
41 |
src_prepare() {
|
35 |
42 |
default
|
36 |
|
sed -e 's: \*.o: .libs/*.o:' -e 's: tools_dev_types.o: .libs/tools_dev_types.o:' \
|
|
43 |
|
|
44 |
sed -e 's: \*.o: .libs/*.o:' \
|
|
45 |
-e 's: tools_dev_types.o: .libs/tools_dev_types.o:' \
|
37 |
46 |
-i cmdif/Makefile.am dev_mgt/Makefile.am reg_access/Makefile.am || die
|
38 |
|
echo '#define TOOLS_GIT_SHA "'${EGIT_COMMIT}'"' > ./common/gitversion.h || die
|
|
47 |
|
|
48 |
sed -e 's:_LDFLAGS = :_LDFLAGS = $(LDFLAGS) :' \
|
|
49 |
-i */Makefile.am mstdump/crd_main/Makefile.am || die
|
|
50 |
|
|
51 |
# https://bugs.gentoo.org/939944
|
|
52 |
sed -r -e 's:-Werror(=[a-zA-Z0-9-]+|) ::' \
|
|
53 |
-i configure.ac ext_libs/json/Makefile.am || die
|
|
54 |
|
|
55 |
printf -- '#define TOOLS_GIT_SHA "%s"' "${EGIT_COMMIT}" > ./common/gitversion.h || die
|
|
56 |
|
|
57 |
eautoreconf
|
39 |
58 |
}
|
40 |
59 |
|
41 |
60 |
src_configure() {
|
42 |
|
eautoreconf
|
43 |
|
econf $(use_enable inband) $(use_enable ssl openssl) \
|
44 |
|
$(use adb-generic-tools && printf -- '--enable-adb-generic-tools')
|
|
61 |
econf $(use_enable inband) \
|
|
62 |
$(use_enable ssl openssl) \
|
|
63 |
$(use adb-generic-tools && printf -- '--enable-adb-generic-tools')
|
45 |
64 |
}
|
46 |
65 |
|
47 |
66 |
src_compile() {
|