First Commit
[librecmc/package-feed.git] / mail / mailman / patches / 200-nohostdnspython.patch
1 diff -Naur mailman-2.1.18-1/configure mailman-2.1.18-1_patched/configure
2 --- mailman-2.1.18-1/configure  2014-10-26 12:00:38.090360119 +0300
3 +++ mailman-2.1.18-1_patched/configure  2014-10-26 12:00:21.323016430 +0300
4 @@ -2236,35 +2236,35 @@
5  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
6  $as_echo "$version" >&6; }
7  
8 -# See if dnspython is installed.
9 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dnspython" >&5
10 -$as_echo_n "checking dnspython... " >&6; }
11 -
12 -cat > conftest.py <<EOF
13 -try:
14 -    import dns.resolver
15 -    res = 'ok'
16 -except ImportError:
17 -    res = 'no'
18 -fp = open("conftest.out", "w")
19 -fp.write("%s\n" % res)
20 -fp.close()
21 -EOF
22 -
23 -$PYTHON conftest.py
24 -havednspython=`cat conftest.out`
25 -rm -f conftest.out conftest.py
26 -if test "$havednspython" = "no"
27 -then
28 -    as_fn_error $? "
29 -
30 -***** dnspython not found. It is required for the new
31 -***** dmarc_moderation_action featurer. Get it from
32 -***** <http://www.dnspython.org/> or
33 -***** <https://pypi.python.org/pypi/dnspython/>" "$LINENO" 5
34 -fi
35 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $havednspython" >&5
36 -$as_echo "$havednspython" >&6; }
37 +## See if dnspython is installed.
38 +#{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dnspython" >&5
39 +#$as_echo_n "checking dnspython... " >&6; }
40 +#
41 +#cat > conftest.py <<EOF
42 +#try:
43 +#    import dns.resolver
44 +#    res = 'ok'
45 +#except ImportError:
46 +#    res = 'no'
47 +#fp = open("conftest.out", "w")
48 +#fp.write("%s\n" % res)
49 +#fp.close()
50 +#EOF
51 +#
52 +#$PYTHON conftest.py
53 +#havednspython=`cat conftest.out`
54 +#rm -f conftest.out conftest.py
55 +#if test "$havednspython" = "no"
56 +#then
57 +#    as_fn_error $? "
58 +#
59 +#***** dnspython not found. It is required for the new
60 +#***** dmarc_moderation_action featurer. Get it from
61 +#***** <http://www.dnspython.org/> or
62 +#***** <https://pypi.python.org/pypi/dnspython/>" "$LINENO" 5
63 +#fi
64 +#{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $havednspython" >&5
65 +#$as_echo "$havednspython" >&6; }
66  
67  # Check the email package version.
68  { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's email package" >&5