Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/mu/files/
Date: Tue, 14 Sep 2021 12:27:04
Message-Id: 1631622403.ae0f5a2aebc3f74a56e9907a391ad336439372e1.flow@gentoo
1 commit: ae0f5a2aebc3f74a56e9907a391ad336439372e1
2 Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
3 AuthorDate: Tue Sep 14 11:19:40 2021 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 14 12:26:43 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae0f5a2a
7
8 net-mail/mu: remove unused patches
9
10 Package-Manager: Portage-3.0.22, Repoman-3.0.3
11 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/22296
13 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
14
15 net-mail/mu/files/mu-1.4.15-guile3-1.patch | 141 -----------------------------
16 net-mail/mu/files/mu-1.4.15-guile3-2.patch | 17 ----
17 2 files changed, 158 deletions(-)
18
19 diff --git a/net-mail/mu/files/mu-1.4.15-guile3-1.patch b/net-mail/mu/files/mu-1.4.15-guile3-1.patch
20 deleted file mode 100644
21 index 671a4685a27..00000000000
22 --- a/net-mail/mu/files/mu-1.4.15-guile3-1.patch
23 +++ /dev/null
24 @@ -1,141 +0,0 @@
25 -From 623cf787ad009c42b2adf3767be5f01fec56ff5a Mon Sep 17 00:00:00 2001
26 -From: Danny O'Brien <danny@×××××××××××.space>
27 -Date: Mon, 7 Sep 2020 19:52:17 -0700
28 -Subject: [PATCH] guile: support version 3.0.
29 -
30 -Includes an update to the guile m4 package, and tweaks the build so that
31 -both 2.2 and 3.0 should work fine.
32 ----
33 - configure.ac | 14 +++++++-------
34 - guile/Makefile.am | 2 +-
35 - guile/mu/Makefile.am | 4 +---
36 - m4/Makefile.am | 2 +-
37 - m4/{guile-2.2.m4 => guile.m4} | 15 +++++++++------
38 - 5 files changed, 19 insertions(+), 18 deletions(-)
39 - rename m4/{guile-2.2.m4 => guile.m4} (97%)
40 -
41 -diff --git a/configure.ac b/configure.ac
42 -index eb5629696..cc43f43db 100644
43 ---- a/configure.ac
44 -+++ b/configure.ac
45 -@@ -212,22 +212,22 @@ AM_CONDITIONAL(BUILD_GUI,[test "x$have_webkit" = "xyes" -a "x$have_gtk" = "xyes"
46 - ###############################################################################
47 -
48 - ###############################################################################
49 --# build with guile2.2 when available and not disabled.
50 -+# build with guile 3.0/2.2 when available and not disabled.
51 - AC_ARG_ENABLE([guile], AS_HELP_STRING([--disable-guile],[Disable guile]))
52 - AS_IF([test "x$enable_guile" != "xno"],[
53 -- PKG_CHECK_MODULES(GUILE22, guile-2.2, [have_guile22=yes],[have_guile22=no])
54 -- # this is a bit hacky; GUILE_PKG
55 -- AS_IF([test "x$have_guile22" = "xyes"],[
56 -- GUILE_PKG([2.2])
57 -+ PKG_CHECK_MODULES(GUILE, [guile-3.0], [have_guile=yes],[
58 -+ PKG_CHECK_MODULES(GUILE, [guile-2.2], [have_guile=yes], [have_guile=no])])
59 -+ AS_IF([test "x$have_guile" = "xyes"],[
60 -+ GUILE_PKG([3.0 2.2])
61 - GUILE_PROGS
62 - GUILE_FLAGS
63 - AC_DEFINE_UNQUOTED([GUILE_BINARY],"$GUILE",[guile binary])
64 - AC_DEFINE(BUILD_GUILE,[1], [Do we support Guile?])
65 - AC_SUBST(GUILE_SNARF, [guile-snarf])
66 -- guile_version=$($PKG_CONFIG guile-2.2 --modversion)
67 -+ guile_version=$($PKG_CONFIG guile-$GUILE_EFFECTIVE_VERSION --modversion)
68 - ])
69 - ])
70 --AM_CONDITIONAL(BUILD_GUILE,[test "x$have_guile22" = "xyes"])
71 -+AM_CONDITIONAL(BUILD_GUILE,[test "x$have_guile" = "xyes"])
72 - ###############################################################################
73 -
74 - ###############################################################################
75 -diff --git a/guile/Makefile.am b/guile/Makefile.am
76 -index ed613068b..5c06ccc95 100644
77 ---- a/guile/Makefile.am
78 -+++ b/guile/Makefile.am
79 -@@ -69,7 +69,7 @@ SUFFIXES = .x .doc
80 -
81 - # FIXME: GUILE_SITEDIR would be better, but that
82 - # breaks 'make distcheck'
83 --scmdir=${prefix}/share/guile/site/2.2/
84 -+scmdir=${prefix}/share/guile/site/${GUILE_EFFECTIVE_VERSION}
85 - scm_DATA=mu.scm
86 -
87 - EXTRA_DIST=$(scm_DATA)
88 -diff --git a/guile/mu/Makefile.am b/guile/mu/Makefile.am
89 -index f531822cd..9339ad973 100644
90 ---- a/guile/mu/Makefile.am
91 -+++ b/guile/mu/Makefile.am
92 -@@ -16,9 +16,7 @@
93 -
94 - include $(top_srcdir)/gtest.mk
95 -
96 --# FIXME: GUILE_SITEDIR would be better, but that
97 --# breaks 'make distcheck'
98 --scmdir=${prefix}/share/guile/site/2.2/mu/
99 -+scmdir=${prefix}/share/guile/site/${GUILE_EFFECTIVE_VERSION}/mu/
100 -
101 - scm_DATA= \
102 - stats.scm \
103 -diff --git a/m4/Makefile.am b/m4/Makefile.am
104 -index eeb8a05a4..27a49eebe 100644
105 ---- a/m4/Makefile.am
106 -+++ b/m4/Makefile.am
107 -@@ -41,7 +41,7 @@ EXTRA_DIST= \
108 - ax_lib_readline.m4 \
109 - ax_require_defined.m4 \
110 - ax_valgrind_check.m4 \
111 -- guile-2.2.m4 \
112 -+ guile.m4 \
113 - lib-ld.m4 \
114 - lib-link.m4 \
115 - lib-prefix.m4
116 -diff --git a/m4/guile-2.2.m4 b/m4/guile.m4
117 -similarity index 97%
118 -rename from m4/guile-2.2.m4
119 -rename to m4/guile.m4
120 -index 89823e9c3..696897364 100644
121 ---- a/m4/guile-2.2.m4
122 -+++ b/m4/guile.m4
123 -@@ -47,8 +47,8 @@
124 - # for an available version of Guile.
125 - #
126 - # By default, this macro will search for the latest stable version of
127 --# Guile (e.g. 2.2), falling back to the previous stable version
128 --# (e.g. 2.0) if it is available. If no guile-@var{VERSION}.pc file is
129 -+# Guile (e.g. 3.0), falling back to the previous stable version
130 -+# (e.g. 2.2) if it is available. If no guile-@var{VERSION}.pc file is
131 - # found, an error is signalled. The found version is stored in
132 - # @var{GUILE_EFFECTIVE_VERSION}.
133 - #
134 -@@ -60,8 +60,11 @@
135 - # @code{AC_SUBST}.
136 - #
137 - AC_DEFUN([GUILE_PKG],
138 -- [PKG_PROG_PKG_CONFIG
139 -- _guile_versions_to_search="m4_default([$1], [2.2 2.0 1.8])"
140 -+ [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
141 -+ if test "x$PKG_CONFIG" = x; then
142 -+ AC_MSG_ERROR([pkg-config is missing, please install it])
143 -+ fi
144 -+ _guile_versions_to_search="m4_default([$1], [3.0 2.2 2.0])"
145 - if test -n "$GUILE_EFFECTIVE_VERSION"; then
146 - _guile_tmp=""
147 - for v in $_guile_versions_to_search; do
148 -@@ -221,7 +224,7 @@ AC_DEFUN([GUILE_SITE_DIR],
149 - # as well.
150 - #
151 - # By default, this macro will search for the latest stable version of
152 --# Guile (e.g. 2.2). x.y or x.y.z versions can be specified. If an older
153 -+# Guile (e.g. 3.0). x.y or x.y.z versions can be specified. If an older
154 - # version is found, the macro will signal an error.
155 - #
156 - # The effective version of the found @code{guile} is set to
157 -@@ -237,7 +240,7 @@ AC_DEFUN([GUILE_SITE_DIR],
158 - AC_DEFUN([GUILE_PROGS],
159 - [_guile_required_version="m4_default([$1], [$GUILE_EFFECTIVE_VERSION])"
160 - if test -z "$_guile_required_version"; then
161 -- _guile_required_version=2.2
162 -+ _guile_required_version=3.0
163 - fi
164 -
165 - _guile_candidates=guile
166
167 diff --git a/net-mail/mu/files/mu-1.4.15-guile3-2.patch b/net-mail/mu/files/mu-1.4.15-guile3-2.patch
168 deleted file mode 100644
169 index 6aa47d25230..00000000000
170 --- a/net-mail/mu/files/mu-1.4.15-guile3-2.patch
171 +++ /dev/null
172 @@ -1,17 +0,0 @@
173 ----
174 - lib/mu-script.c | 2 +-
175 - 1 file changed, 1 insertion(+), 1 deletion(-)
176 -
177 -diff --git a/lib/mu-script.c b/lib/mu-script.c
178 -index 1175a60e3..92a63992e 100644
179 ---- a/lib/mu-script.c
180 -+++ b/lib/mu-script.c
181 -@@ -318,7 +318,7 @@ mu_script_guile_run (MuScriptInfo *msi, const char *muhome,
182 - g_return_val_if_fail (muhome, FALSE);
183 -
184 - argv = g_new0 (char*, 6);
185 -- argv[0] = g_strdup("guile2.2");
186 -+ argv[0] = g_strdup(GUILE_BINARY);
187 - argv[1] = g_strdup("-l");
188 -
189 - if (access (mu_script_info_path (msi), R_OK) != 0) {