1 |
commit: c0507ac8482881f315fc92b4b6f89fc58bd4b1f9 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 31 03:02:27 2017 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 31 03:27:31 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0507ac8 |
7 |
|
8 |
mail-filter/spamassassin: disable interactive prompts properly. |
9 |
|
10 |
The PERL_MM_USE_DEFAULT variable is used to disable the interactive |
11 |
prompts in SpamAssassin's build system. However, when I dropped the |
12 |
perl-module.eclass a while back, I only set the variable where it |
13 |
seemed to be necessary. Where it is necessary turns out to depend on |
14 |
the package manager, because different package managers may treat the |
15 |
controlling terminal and file descriptors differently, and that's how |
16 |
MakeMaker decides whether or not to prompt you. |
17 |
|
18 |
That problem manifests in Paludis, and is hopefully fixed by exporting |
19 |
PERL_MM_USE_DEFAULT=1 sooner, in src_configure(). This change should |
20 |
only affect the build, so it is made without a new revision. |
21 |
|
22 |
Gentoo-Bug: 604518 |
23 |
|
24 |
Package-Manager: portage-2.3.0 |
25 |
|
26 |
mail-filter/spamassassin/spamassassin-3.4.1-r10.ebuild | 13 +++++++------ |
27 |
1 file changed, 7 insertions(+), 6 deletions(-) |
28 |
|
29 |
diff --git a/mail-filter/spamassassin/spamassassin-3.4.1-r10.ebuild b/mail-filter/spamassassin/spamassassin-3.4.1-r10.ebuild |
30 |
index 9ba34fc..c2776ef 100644 |
31 |
--- a/mail-filter/spamassassin/spamassassin-3.4.1-r10.ebuild |
32 |
+++ b/mail-filter/spamassassin/spamassassin-3.4.1-r10.ebuild |
33 |
@@ -1,4 +1,4 @@ |
34 |
-# Copyright 1999-2016 Gentoo Foundation |
35 |
+# Copyright 1999-2017 Gentoo Foundation |
36 |
# Distributed under the terms of the GNU General Public License v2 |
37 |
# $Id$ |
38 |
|
39 |
@@ -104,6 +104,10 @@ src_prepare() { |
40 |
} |
41 |
|
42 |
src_configure() { |
43 |
+ # This is how and where the perl-module eclass disables the |
44 |
+ # MakeMaker interactive prompt. |
45 |
+ export PERL_MM_USE_DEFAULT=1 |
46 |
+ |
47 |
# Set SYSCONFDIR explicitly so we can't get bitten by bug 48205 again |
48 |
# (just to be sure, nobody knows how it could happen in the first place). |
49 |
# |
50 |
@@ -124,11 +128,8 @@ src_configure() { |
51 |
} |
52 |
|
53 |
src_compile() { |
54 |
- PERL_MM_USE_DEFAULT=1 emake |
55 |
- |
56 |
- if use qmail; then |
57 |
- emake spamc/qmail-spamc |
58 |
- fi |
59 |
+ emake |
60 |
+ use qmail && emake spamc/qmail-spamc |
61 |
} |
62 |
|
63 |
src_install () { |