Gentoo Archives: gentoo-commits

From: Haelwenn Monnier <contact@×××××××××.me>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/launchmon/, sys-cluster/launchmon/files/
Date: Fri, 27 Aug 2021 16:11:03
Message-Id: 1629878416.eaef5aaf71caab2641d55ba1e4b4f090847cdb8d.lanodan@gentoo
1 commit: eaef5aaf71caab2641d55ba1e4b4f090847cdb8d
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Wed Aug 25 07:23:24 2021 +0000
4 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
5 CommitDate: Wed Aug 25 08:00:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=eaef5aaf
7
8 sys-cluster/launchmon: EAPI 8, enable tests, fix bashism
9
10 Closes: https://bugs.gentoo.org/802231
11 Package-Manager: Portage-3.0.22, Repoman-3.0.3
12 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
13
14 .../launchmon-1.0.2_p20210430-fix-bashism.patch | 80 ++++++++++++++++++++++
15 ....ebuild => launchmon-1.0.2_p20210430-r2.ebuild} | 8 ++-
16 2 files changed, 86 insertions(+), 2 deletions(-)
17
18 diff --git a/sys-cluster/launchmon/files/launchmon-1.0.2_p20210430-fix-bashism.patch b/sys-cluster/launchmon/files/launchmon-1.0.2_p20210430-fix-bashism.patch
19 new file mode 100644
20 index 000000000..5088c99e3
21 --- /dev/null
22 +++ b/sys-cluster/launchmon/files/launchmon-1.0.2_p20210430-fix-bashism.patch
23 @@ -0,0 +1,80 @@
24 +From 1a651a0bb19ad8c0752b497eed125a901d7f83da Mon Sep 17 00:00:00 2001
25 +From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
26 +Date: Wed, 25 Aug 2021 09:13:37 +0200
27 +Subject: [PATCH] fix == bashism
28 +
29 +---
30 + config/x_ac_handshake.m4 | 20 ++++++++++----------
31 + 1 file changed, 10 insertions(+), 10 deletions(-)
32 +
33 +--- a/config/x_ac_handshake.m4
34 ++++ b/config/x_ac_handshake.m4
35 +@@ -50,7 +50,7 @@ AC_DEFUN([X_AC_HANDSHAKE],[
36 +
37 + #Check for munge availability
38 + PKG_CHECK_MODULES(MUNGE, munge, , [AC_MSG_NOTICE([pkg-config could not find munge])])
39 +- if test "x$MUNGE_LIBS" == "x"; then
40 ++ if test "x$MUNGE_LIBS" = "x"; then
41 + MUNGE_LIBS=-lmunge
42 + fi
43 + CFLAGS="$CFLAGS $MUNGE_CFLAGS"
44 +@@ -66,26 +66,26 @@ AC_DEFUN([X_AC_HANDSHAKE],[
45 +
46 + #If the user did not specify security options, then make some choices based on what we have
47 + if test "x$EXPLICIT_SEC" != "xtrue"; then
48 +- if test "x$HAVE_MUNGE" == "xtrue"; then
49 ++ if test "x$HAVE_MUNGE" = "xtrue"; then
50 + MUNGE="true"
51 + else
52 + ENABLE_NULL_ENCRYPTION="true"
53 + fi
54 + fi
55 +
56 +- if test "x$WANT_MUNGE" == "xtrue"; then
57 +- if test "x$HAVE_MUNGE" == "xtrue"; then
58 ++ if test "x$WANT_MUNGE" = "xtrue"; then
59 ++ if test "x$HAVE_MUNGE" = "xtrue"; then
60 + MUNGE="true"
61 + else
62 + AC_MSG_ERROR([Could not find munge])
63 + fi
64 + fi
65 +
66 +- if test "x$WANT_KEYFILE" == "xtrue"; then
67 ++ if test "x$WANT_KEYFILE" = "xtrue"; then
68 + KEYFILE="true"
69 + fi
70 +
71 +- if test "x$WANT_NOSEC" == "xtrue"; then
72 ++ if test "x$WANT_NOSEC" = "xtrue"; then
73 + ENABLE_NULL_ENCRYPTION="true"
74 + fi
75 +
76 +@@ -100,7 +100,7 @@ AC_DEFUN([X_AC_HANDSHAKE],[
77 + #if test "x$KEYFILE" != "x"; then
78 + # AC_MSG_ERROR([Keyfile security is not supported at this time])
79 + #fi
80 +- #if test "x$ENABLE_NULL_ENCRYPTION x$MUNGE" == "xtrue xtrue"; then
81 ++ #if test "x$ENABLE_NULL_ENCRYPTION x$MUNGE" = "xtrue xtrue"; then
82 + # AC_MSG_ERROR([Cannot support multiple security models at this time])
83 + #fi
84 + #Remove above when expanding to more than munge
85 +@@ -108,15 +108,15 @@ AC_DEFUN([X_AC_HANDSHAKE],[
86 + AC_DEFINE_UNQUOTED([SEC_KEYDIR], "[$SEC_KEYDIR]",[Directory to store key files in])
87 + AC_SUBST(MUNGE_CFLAGS)
88 + AC_SUBST(MUNGE_LIBS)
89 +- if test "x$MUNGE" == "xtrue"; then
90 ++ if test "x$MUNGE" = "xtrue"; then
91 + AC_MSG_NOTICE([Enabling munge for security authentication])
92 + AC_DEFINE([MUNGE], [1], [Use munge for authentication])
93 + fi
94 +- if test "x$KEYFILE" == "xtrue"; then
95 ++ if test "x$KEYFILE" = "xtrue"; then
96 + AC_MSG_NOTICE([Enabling keyfile for security authentication])
97 + AC_DEFINE([KEYFILE], [1], [Use keyfile for authentication])
98 + fi
99 +- if test "x$ENABLE_NULL_ENCRYPTION" == "xtrue"; then
100 ++ if test "x$ENABLE_NULL_ENCRYPTION" = "xtrue"; then
101 + AC_MSG_NOTICE([WARNING: No secure handshake will be used for the COBO layer!!!]);
102 + AC_DEFINE([ENABLE_NULL_ENCRYPTION], [1], [Allow NULL encryption])
103 + fi])
104
105 diff --git a/sys-cluster/launchmon/launchmon-1.0.2_p20210430-r1.ebuild b/sys-cluster/launchmon/launchmon-1.0.2_p20210430-r2.ebuild
106 similarity index 89%
107 rename from sys-cluster/launchmon/launchmon-1.0.2_p20210430-r1.ebuild
108 rename to sys-cluster/launchmon/launchmon-1.0.2_p20210430-r2.ebuild
109 index 0f1da7dba..0d55c8226 100644
110 --- a/sys-cluster/launchmon/launchmon-1.0.2_p20210430-r1.ebuild
111 +++ b/sys-cluster/launchmon/launchmon-1.0.2_p20210430-r2.ebuild
112 @@ -1,7 +1,7 @@
113 # Copyright 2019-2021 Gentoo Authors
114 # Distributed under the terms of the GNU General Public License v2
115
116 -EAPI=7
117 +EAPI=8
118
119 COMMIT="98ab769c53563f47c4319ce3c98ac394b4870bac"
120 MYPV="$(ver_cut 1-3)"
121 @@ -16,18 +16,22 @@ S="${WORKDIR}/LaunchMON-${COMMIT}"
122 LICENSE="LGPL-2.1"
123 SLOT="0"
124 KEYWORDS="~amd64"
125 -IUSE="+munge tracing-cost"
126 +IUSE="+munge test tracing-cost"
127
128 RDEPEND="
129 dev-libs/boost:=
130 dev-libs/libgcrypt
131 dev-libs/libgpg-error
132 virtual/libelf
133 + virtual/mpi
134
135 munge? ( sys-auth/munge )
136 "
137 DEPEND="${RDEPEND}"
138
139 +PATCHES=( "${FILESDIR}/${P}-fix-bashism.patch" )
140 +RESTRICT="!test? ( test )"
141 +
142 src_prepare() {
143 default
144 sed -e "s|m4_esyscmd.*|${MYPV})|g" -i configure.ac || die