Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-mta/exim/files: exim-4.74-pcre.patch exim-4.74-makefile-command-envs.patch exim-4.74-makefile-posix.patch
Date: Tue, 01 Feb 2011 11:42:12
Message-Id: 20110201114202.4473E20047@flycatcher.gentoo.org
1 grobian 11/02/01 11:42:02
2
3 Added: exim-4.74-pcre.patch
4 exim-4.74-makefile-command-envs.patch
5 exim-4.74-makefile-posix.patch
6 Log:
7 Grabbed some fixes from upstream to resolve misc building issues
8
9 (Portage version: 2.1.9.24/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.1 mail-mta/exim/files/exim-4.74-pcre.patch
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/files/exim-4.74-pcre.patch?rev=1.1&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/files/exim-4.74-pcre.patch?rev=1.1&content-type=text/plain
16
17 Index: exim-4.74-pcre.patch
18 ===================================================================
19 From: Nigel Metheringham <nigel@××××.org>
20 Date: Wed, 26 Jan 2011 11:04:32 +0000 (+0000)
21 Subject: Workround compile error with old PCRE versions
22 X-Git-Url: http://git.exim.org/exim.git/commitdiff_plain/aa097c4c00f62487128d74f65c521f9e877b184f
23
24 Workround compile error with old PCRE versions
25
26 Fixes bug #1073
27 ---
28
29 diff --git a/src/src/exim.c b/src/src/exim.c
30 index e236975..b3035ca 100644
31 --- a/src/src/exim.c
32 +++ b/src/src/exim.c
33 @@ -931,8 +931,13 @@ DEBUG(D_any) do {
34 " Runtime: %s\n",
35 PCRE_MAJOR, PCRE_MINOR,
36 /* PRE_PRERELEASE is either defined and empty or a string.
37 - * This should work: */
38 + * unless its an ancient version of PCRE in which case it
39 + * is not defined */
40 +#ifdef PCRE_PRERELEASE
41 PCRE_PRERELEASE "",
42 +#else
43 + "",
44 +#endif
45 pcre_version());
46
47 init_lookup_list();
48
49
50
51 1.1 mail-mta/exim/files/exim-4.74-makefile-command-envs.patch
52
53 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/files/exim-4.74-makefile-command-envs.patch?rev=1.1&view=markup
54 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/files/exim-4.74-makefile-command-envs.patch?rev=1.1&content-type=text/plain
55
56 Index: exim-4.74-makefile-command-envs.patch
57 ===================================================================
58 From: Phil Pennock <pdp@××××.org>
59 Date: Fri, 28 Jan 2011 00:07:05 +0000 (-0500)
60 Subject: Permit make values to be indented or in env.
61 X-Git-Url: http://git.exim.org/exim.git/commitdiff_plain/0cc9542ab26b35cba3a5523acb8991eb18ce0656
62
63 Permit make values to be indented or in env.
64
65 It appears some make(1)s are not complaining about variables defined
66 with leading whitespace on the line. Permit that where we can, for the
67 lookups, but it's not tenable for CFLAGS_DYNAMIC.
68
69 Some people are specifying knobs on the make command-line, so we get
70 them via the environment.
71
72 Tested: indented LOOKUP_CDB and commented out LOOKUP_DNSDB, supplying it
73 via { make LOOKUP_DNSDB=yes }. { exim -d --version } shows both are
74 built-in, no results from { fgrep DNSDB build-*/Makefile }.
75 ---
76
77 diff --git a/src/scripts/lookups-Makefile b/src/scripts/lookups-Makefile
78 index dd0472b..d5c450e 100755
79 --- a/src/scripts/lookups-Makefile
80 +++ b/src/scripts/lookups-Makefile
81 @@ -21,6 +21,9 @@ tab=' '
82 # We always do something now, since there should always be a lookup,
83 # and now we need to run in order to put the OBJ=$(OBJ)+ rules in.
84
85 +# nb: do not permit leading whitespace for this, as CFLAGS_DYNAMIC is exported
86 +# to the lookups subdir via a line with leading whitespace which otherwise
87 +# matches
88 if grep -q "^CFLAGS_DYNAMIC[ $tab]*=" "$defs_source"
89 then
90 # we have a definition, we're good to go
91 @@ -32,14 +35,23 @@ fi
92
93 tmp="$target.t"
94
95 +# For the want_ checks, we need to let the user override values from the make
96 +# command-line, not just check the Makefile.
97 +
98 want_dynamic() {
99 local dyn_name="$1"
100 - grep -q "^LOOKUP_${dyn_name}[ $tab]*=[ $tab]*2" "$defs_source"
101 + local re="LOOKUP_${dyn_name}[ $tab]*=[ $tab]*2"
102 + env | grep -q "^$re"
103 + if [ $? -eq 0 ]; then return 0; fi
104 + grep -q "^[ $tab]*$re" "$defs_source"
105 }
106
107 want_at_all() {
108 local want_name="$1"
109 - grep -q "^LOOKUP_${want_name}[ $tab]*=[ $tab]*." "$defs_source"
110 + local re="LOOKUP_${want_name}[ $tab]*=[ $tab]*."
111 + env | grep -q "^$re"
112 + if [ $? -eq 0 ]; then return 0; fi
113 + grep -q "^[ $tab]*$re" "$defs_source"
114 }
115
116 # The values of these variables will be emitted into the Makefile.
117
118
119
120 1.1 mail-mta/exim/files/exim-4.74-makefile-posix.patch
121
122 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/files/exim-4.74-makefile-posix.patch?rev=1.1&view=markup
123 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/files/exim-4.74-makefile-posix.patch?rev=1.1&content-type=text/plain
124
125 Index: exim-4.74-makefile-posix.patch
126 ===================================================================
127 From: Tony Finch <dot@×××××.at>
128 Date: Thu, 27 Jan 2011 16:26:36 +0000 (+0000)
129 Subject: Fix portability of Makefiles to HP-UX and other non-extended makes.
130 X-Git-Url: http://git.exim.org/exim.git/commitdiff_plain/159f52d231c010cbc4e149502b7f906293233f94
131
132 Fix portability of Makefiles to HP-UX and other non-extended makes.
133 ---
134
135 diff --git a/src/scripts/lookups-Makefile b/src/scripts/lookups-Makefile
136 index 2c4dc96..dd0472b 100755
137 --- a/src/scripts/lookups-Makefile
138 +++ b/src/scripts/lookups-Makefile
139 @@ -19,7 +19,7 @@ tag_marker='MAGIC-TAG-MODS-OBJ-RULES-GO-HERE'
140 tab=' '
141
142 # We always do something now, since there should always be a lookup,
143 -# and now we need to run in order to put the OBJ+= rules in.
144 +# and now we need to run in order to put the OBJ=$(OBJ)+ rules in.
145
146 if grep -q "^CFLAGS_DYNAMIC[ $tab]*=" "$defs_source"
147 then
148 @@ -42,6 +42,11 @@ want_at_all() {
149 grep -q "^LOOKUP_${want_name}[ $tab]*=[ $tab]*." "$defs_source"
150 }
151
152 +# The values of these variables will be emitted into the Makefile.
153 +
154 +MODS=""
155 +OBJ=""
156 +
157 emit_module_rule() {
158 local lookup_name="$1"
159 local mod_name
160 @@ -59,13 +64,13 @@ emit_module_rule() {
161 echo >&2 "Inhibited dynamic modules prevents building dynamic $lookup_name"
162 exit 1
163 fi
164 - echo "MODS += ${mod_name}.so"
165 + MODS="${MODS} ${mod_name}.so"
166 grep "^LOOKUP_${lookup_name}_" "$defs_source"
167 echo "LOOKUP_${mod_name}_INCLUDE = \$(LOOKUP_${lookup_name}_INCLUDE)"
168 echo "LOOKUP_${mod_name}_LIBS = \$(LOOKUP_${lookup_name}_LIBS)"
169 elif want_at_all "$lookup_name"
170 then
171 - echo "OBJ += ${mod_name}.o"
172 + OBJ="${OBJ} ${mod_name}.o"
173 fi
174 }
175
176 @@ -83,9 +88,18 @@ done
177
178 if want_at_all LDAP
179 then
180 - echo "OBJ += ldap.o"
181 + OBJ="${OBJ} ldap.o"
182 fi
183
184 +# Because the variable is EXPERIMENTAL_SPF and not LOOKUP_SPF we
185 +# always include spf.o and compile a dummy if EXPERIMENTAL_SPF is not
186 +# defined.
187 +
188 +OBJ="${OBJ} spf.o"
189 +
190 +echo "MODS = $MODS"
191 +echo "OBJ = $OBJ"
192 +
193 sed -n "/$tag_marker/,\$p" < "$input"
194
195 exec >&5
196 diff --git a/src/src/lookups/Makefile b/src/src/lookups/Makefile
197 index 623f24f..2495348 100644
198 --- a/src/src/lookups/Makefile
199 +++ b/src/src/lookups/Makefile
200 @@ -8,12 +8,6 @@
201 # This is called from the main make file, after cd'ing
202 # to the lookups subdirectory.
203
204 -# because the variable is EXPERIMENTAL_SPF and not LOOKUP_SPF
205 -# we put this one here by default and compile a dummy if
206 -# EXPERIMENTAL_SPF is not defined
207 -OBJ=spf.o
208 -MODS=
209 -
210 # MAGIC-TAG-MODS-OBJ-RULES-GO-HERE