1 |
commit: b4ec8c54b1a4fab045c0e26c565465de9e2d0c05 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Mar 31 23:31:14 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 1 00:17:37 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4ec8c54 |
7 |
|
8 |
sys-cluster/kronosnet: remove -Werror |
9 |
|
10 |
Closes: https://bugs.gentoo.org/781626 |
11 |
Closes: https://bugs.gentoo.org/750548 |
12 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/24841 |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
.../kronosnet/files/kronosnet-1.19-no-Werror.patch | 11 +++++ |
17 |
sys-cluster/kronosnet/kronosnet-1.19-r1.ebuild | 57 ++++++++++++++++++++++ |
18 |
2 files changed, 68 insertions(+) |
19 |
|
20 |
diff --git a/sys-cluster/kronosnet/files/kronosnet-1.19-no-Werror.patch b/sys-cluster/kronosnet/files/kronosnet-1.19-no-Werror.patch |
21 |
new file mode 100644 |
22 |
index 000000000000..a53d637f2525 |
23 |
--- /dev/null |
24 |
+++ b/sys-cluster/kronosnet/files/kronosnet-1.19-no-Werror.patch |
25 |
@@ -0,0 +1,11 @@ |
26 |
+--- a/configure.ac |
27 |
++++ b/configure.ac |
28 |
+@@ -307,7 +307,7 @@ |
29 |
+ GDB_FLAGS="-g" |
30 |
+ fi |
31 |
+ |
32 |
+-DEFAULT_CFLAGS="-Werror -Wall -Wextra" |
33 |
++DEFAULT_CFLAGS="-Wall -Wextra" |
34 |
+ |
35 |
+ # manual overrides |
36 |
+ # generates too much noise for stub APIs |
37 |
|
38 |
diff --git a/sys-cluster/kronosnet/kronosnet-1.19-r1.ebuild b/sys-cluster/kronosnet/kronosnet-1.19-r1.ebuild |
39 |
new file mode 100644 |
40 |
index 000000000000..6ca8e8f2a526 |
41 |
--- /dev/null |
42 |
+++ b/sys-cluster/kronosnet/kronosnet-1.19-r1.ebuild |
43 |
@@ -0,0 +1,57 @@ |
44 |
+# Copyright 2020-2022 Gentoo Authors |
45 |
+# Distributed under the terms of the GNU General Public License v2 |
46 |
+ |
47 |
+EAPI=7 |
48 |
+ |
49 |
+inherit autotools |
50 |
+ |
51 |
+DESCRIPTION="Network abstraction layer designed for High Availability use cases" |
52 |
+HOMEPAGE="https://kronosnet.org" |
53 |
+SRC_URI="https://kronosnet.org/releases/${P}.tar.xz" |
54 |
+ |
55 |
+LICENSE="LGPL-2.1" |
56 |
+SLOT="0/1" |
57 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86" |
58 |
+IUSE="doc nss +openssl zstd lz4 lzo2" |
59 |
+ |
60 |
+DEPEND=">=sys-cluster/libqb-2.0.0:= |
61 |
+ dev-libs/libnl:3 |
62 |
+ sys-libs/zlib:= |
63 |
+ app-arch/bzip2:= |
64 |
+ app-arch/xz-utils |
65 |
+ zstd? ( app-arch/zstd:= ) |
66 |
+ lzo2? ( dev-libs/lzo:2 ) |
67 |
+ lz4? ( app-arch/lz4:= ) |
68 |
+ nss? ( dev-libs/nss ) |
69 |
+ openssl? ( dev-libs/openssl:= )" |
70 |
+RDEPEND="${DEPEND}" |
71 |
+BDEPEND=" |
72 |
+ doc? ( |
73 |
+ >=sys-cluster/libqb-2.0.0 |
74 |
+ app-doc/doxygen[dot] |
75 |
+ )" |
76 |
+ |
77 |
+PATCHES=( "${FILESDIR}/${P}-no-Werror.patch" ) |
78 |
+ |
79 |
+src_prepare() { |
80 |
+ default |
81 |
+ eautoreconf |
82 |
+} |
83 |
+ |
84 |
+src_configure() { |
85 |
+ econf_opts=( |
86 |
+ $(use_enable doc man) \ |
87 |
+ --disable-static \ |
88 |
+ --enable-libnozzle \ |
89 |
+ --disable-libknet-sctp \ |
90 |
+ --enable-compress-zlib \ |
91 |
+ --enable-compress-bzip2 \ |
92 |
+ --enable-compress-lzma \ |
93 |
+ $(use_enable nss crypto-nss) \ |
94 |
+ $(use_enable openssl crypto-openssl) \ |
95 |
+ $(use_enable zstd compress-zstd) \ |
96 |
+ $(use_enable lz4 compress-lz4) \ |
97 |
+ $(use_enable lzo2 compress-lzo2) |
98 |
+ ) |
99 |
+ econf "${econf_opts[@]}" |
100 |
+} |