Gentoo Archives: gentoo-commits

From: "Nathan Phillip Brink (binki)" <binki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-irc/epic5/files: epic5-1.1.2-libarchive-automagic.patch epic5-1.1.2-ruby-automagic-as-needed.patch epic5-1.1.2-tcl-automagic-as-needed.patch epic5-1.1.2-perl-automagic-as-needed.patch
Date: Wed, 01 Jun 2011 14:45:20
Message-Id: 20110601144508.81F0820054@flycatcher.gentoo.org
1 binki 11/06/01 14:45:08
2
3 Added: epic5-1.1.2-libarchive-automagic.patch
4 epic5-1.1.2-ruby-automagic-as-needed.patch
5 epic5-1.1.2-tcl-automagic-as-needed.patch
6 epic5-1.1.2-perl-automagic-as-needed.patch
7 Log:
8 Bump to epic5-1.1.2 for bug #258144. Includes patches for a lot of automagic problems and LDFLAGS abuses (which were breaking LDFLAGS=-Wl,--as-needed) and adds new archive and valgrind useflags.
9
10 (Portage version: 2.2.0_alpha34-r1/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.1 net-irc/epic5/files/epic5-1.1.2-libarchive-automagic.patch
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/epic5/files/epic5-1.1.2-libarchive-automagic.patch?rev=1.1&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/epic5/files/epic5-1.1.2-libarchive-automagic.patch?rev=1.1&content-type=text/plain
17
18 Index: epic5-1.1.2-libarchive-automagic.patch
19 ===================================================================
20 From: Nathan Phillip Brink <binki@g.o>
21 Subject: Prevent libarchive check from being automagic.
22
23 --- a/configure.in
24 +++ b/configure.in
25 @@ -231,22 +231,28 @@
26 dnl XXX I don't understand why this is even necessary.
27 -have_libarchive=""
28 -orig_LIBS="$LIBS"
29 -AC_CHECK_LIB(archive, archive_read_new, [LIBS="$LIBS -larchive"])
30 -AC_MSG_CHECKING(whether libarchive works the way I expect)
31 -AC_TRY_LINK([#include <archive.h>], [
32 - struct archive *x;
33 - const char *s = "bogus.zip";
34 - x = archive_read_new();
35 - archive_read_support_format_all(x);
36 - archive_read_open_file(x, s, 10240);
37 -], have_libarchive="yes")
38 -if test "x$have_libarchive" = "x"; then
39 - LIBS="$orig_LIBS"
40 - AC_MSG_RESULT(no)
41 -else
42 - AC_MSG_RESULT(yes)
43 - AC_DEFINE(HAVE_LIBARCHIVE)
44 -fi
45 +AC_ARG_WITH([libarchive], [AS_HELP_STRING([--without-libarchive], [Disable libarchive support.])],
46 + [], [with_libarchive=maybe])
47 +AS_IF([test "x$with_libarchive" != "xno"],
48 + [
49 + have_libarchive=""
50 + orig_LIBS="$LIBS"
51 + AC_CHECK_LIB(archive, archive_read_new, [LIBS="$LIBS -larchive"])
52 + AC_MSG_CHECKING(whether libarchive works the way I expect)
53 + AC_TRY_LINK([#include <archive.h>], [
54 + struct archive *x;
55 + const char *s = "bogus.zip";
56 + x = archive_read_new();
57 + archive_read_support_format_all(x);
58 + archive_read_open_file(x, s, 10240);
59 + ], have_libarchive="yes")
60 + if test "x$have_libarchive" = "x"; then
61 + LIBS="$orig_LIBS"
62 + AC_MSG_RESULT(no)
63 + AS_IF([test "x$with_libarchive" = "xyes"],
64 + [AC_MSG_ERROR([--with-libarchive was specified but libarchive could not be found. Please do not specify --with-libarchive or install libarchive.])])
65 + else
66 + AC_MSG_RESULT(yes)
67 + AC_DEFINE(HAVE_LIBARCHIVE)
68 + fi])
69
70 dnl -----
71 AC_ARG_WITH(ssl,
72
73
74
75
76 1.1 net-irc/epic5/files/epic5-1.1.2-ruby-automagic-as-needed.patch
77
78 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/epic5/files/epic5-1.1.2-ruby-automagic-as-needed.patch?rev=1.1&view=markup
79 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/epic5/files/epic5-1.1.2-ruby-automagic-as-needed.patch?rev=1.1&content-type=text/plain
80
81 Index: epic5-1.1.2-ruby-automagic-as-needed.patch
82 ===================================================================
83 From: Nathan Phillip Brink <binki@g.o>
84 Subject: Fix up linking against libruby when using
85 LDFLAGS=-Wl,--as-needed. Also allow ruby to be a non-automagic
86 dependency.
87
88 --- a/configure.in
89 +++ b/configure.in
90 @@ -1191,34 +1191,32 @@
91 dnl
92 dnl Ruby support?
93 dnl
94 -AC_ARG_WITH(ruby,
95 -[ --with-ruby[=PATH_TO_RUBY_EXE] Compile with ruby support.],
96 -[
97 - rubyexe=$withval
98 -],
99 - rubyexe=yes
100 -)
101 -
102 -if test "x$rubyexe" = "xyes"; then
103 - rubyexe=ruby
104 -fi
105 +AC_ARG_WITH([ruby],
106 + [AS_HELP_STRING([--with-ruby[=PATH_TO_RUBY_EXE]], [Compile with ruby support.])],
107 + [], [with_ruby=maybe])
108
109 +with_ruby_errormsg="--with-ruby was specified but I could not locate ruby. Please try specifying --with-ruby=/path/to/ruby or --without-ruby."
110 +AC_MSG_CHECKING([whether to support Ruby])
111 +if test "x$with_ruby" = "xno" ; then
112 -if test "x$rubyexe" = "xno"; then
113 - AC_MSG_CHECKING(whether to support Ruby)
114 AC_MSG_RESULT(no)
115 else
116 + AC_MSG_RESULT(yes)
117 + AS_IF([test "x$with_ruby" = "xyes" -o "x$with_ruby" = "xmaybe"],
118 + [rubyexe=ruby],
119 + [rubyexe="$with_ruby"])
120 + dnl Support --with-ruby being passed a full path instead of just an executable name.
121 + AS_IF([test -x "$rubyexe"],
122 + [RUBYPROG=yes],
123 + [AC_CHECK_PROG([RUBYPROG], [$rubyexe], [yes], [no])])
124 + if test "x$RUBYPROG" = xno ; then
125 + AS_IF([test "x$with_ruby" != "xmaybe"],
126 + [AC_MSG_ERROR([$with_ruby_errormsg])])
127 - AC_CHECK_PROG(RUBYPROG, $rubyexe, "yes", "no")
128 - AC_MSG_CHECKING(whether to support Ruby)
129 - if test $RUBYPROG != "yes" ; then
130 - AC_MSG_RESULT(no)
131 else
132 - AC_MSG_RESULT(yes)
133 -
134 incdir=`$rubyexe -rrbconfig -e 'puts Config::CONFIG[["archdir"]]'`
135 rubylibs=`$rubyexe -rrbconfig -e 'puts Config::CONFIG[["LIBRUBYARG"]]'`
136 extralibs=`$rubyexe -rrbconfig -e 'puts Config::CONFIG[["LIBS"]]'`
137 RUBYCFLAGS="-I$incdir"
138 - RUBYLDFLAGS="$rubylibs $extralibs"
139 + RUBYLIBS="$rubylibs $extralibs"
140 RUBYDOTOH="ruby.o"
141
142 AC_MSG_CHECKING(whether embedded ruby works the way I expect)
143 @@ -1226,7 +1220,7 @@
144 old_CFLAGS="$CFLAGS"
145 - old_LDFLAGS="$LDFLAGS"
146 + old_LIBS="$LIBS"
147 CFLAGS="$CFLAGS $RUBYCFLAGS"
148 - LDFLAGS="$LDFLAGS $RUBYLDFLAGS"
149 + LIBS="$LDFLAGS $RUBYLIBS"
150 AC_TRY_LINK([
151 #include <ruby.h>
152 VALUE epic_echo (VALUE module, VALUE string)
153 @@ -1251,9 +1245,9 @@
154 AC_MSG_RESULT(no)
155 AC_MSG_CHECKING(whether ruby requires -pthread to link)
156 RUBYCFLAGS="$RUBYCFLAGS -pthread"
157 - RUBYLDFLAGS="$RUBYLDFLAGS -pthread"
158 + RUBYLIBS="$RUBYLIBS -pthread"
159 - CFLAGS="$CFLAGS $RUBYCFLAGS"
160 - LDFLAGS="$LDFLAGS $RUBYLDFLAGS"
161 + CFLAGS="$old_CFLAGS $RUBYCFLAGS"
162 + LIBS="$old_LIBS $RUBYLIBS"
163
164 AC_TRY_LINK([
165 #include <ruby.h>
166 @@ -1279,16 +1273,18 @@
167
168 CFLAGS="$old_CFLAGS"
169 - LDFLAGS="$old_LDFLAGS"
170 + LIBS="$old_LIBS"
171 if test $have_embedded_ruby = "yes" ; then
172 AC_MSG_RESULT(yes)
173 AC_DEFINE(HAVE_RUBY)
174 AC_DEFINE(RUBYCFLAGS)
175 - AC_DEFINE(RUBYLDFLAGS)
176 + AC_DEFINE(RUBYLIBS)
177 else
178 + AS_IF([test "x$with_ruby" != "xmaybe"],
179 + [AC_MSG_ERROR([$with_ruby_errormsg])])
180 RUBYDOTOH=""
181 HAVE_RUBY=""
182 RUBYCFLAGS=""
183 - RUBYLDFLAGS=""
184 + RUBYLIBS=""
185 AC_MSG_RESULT(no, sorry)
186 fi
187 fi
188 @@ -1386,7 +1380,7 @@
189 AC_SUBST(LDFLAGS)
190 AC_SUBST(RUBYDOTOH)
191 AC_SUBST(RUBYCFLAGS)
192 -AC_SUBST(RUBYLDFLAGS)
193 +AC_SUBST(RUBYLIBS)
194 AC_SUBST(TCLDOTOH)
195 AC_SUBST(TCLCFLAGS)
196 AC_SUBST(TCLLDFLAGS)
197
198 --- a/source/Makefile.in
199 +++ b/source/Makefile.in
200 @@ -38,7 +38,7 @@
201 epic5: $(OBJECTS)
202 sh info.c.sh
203 $(CC) $(CFLAGS) $(INCLUDES) -c info.c
204 - $(CC) $(CFLAGS) $(LDFLAGS) -o epic5 $(OBJECTS) info.o @PERLLDFLAGS@ @TCLLDFLAGS@ @RUBYLDFLAGS@ $(LIBS)
205 + $(CC) $(CFLAGS) $(LDFLAGS) -o epic5 $(OBJECTS) info.o @PERLLDFLAGS@ @TCLLDFLAGS@ @RUBYLIBS@ $(LIBS)
206 $(RM) info.c info.o
207 clean::
208 $(RM) epic5 $(OBJECTS)
209
210
211
212 1.1 net-irc/epic5/files/epic5-1.1.2-tcl-automagic-as-needed.patch
213
214 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/epic5/files/epic5-1.1.2-tcl-automagic-as-needed.patch?rev=1.1&view=markup
215 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/epic5/files/epic5-1.1.2-tcl-automagic-as-needed.patch?rev=1.1&content-type=text/plain
216
217 Index: epic5-1.1.2-tcl-automagic-as-needed.patch
218 ===================================================================
219 From: Nathan Phillip Brink <binki@g.o>
220 Subject: Make dependence on TCL not be automagic (so that --with-tcl
221 errors out if TCL can't be found and not specifying --with-tcl
222 does the normal automagic behavior). Support
223 LDFLAGS=-Wl,--as-needed by using LIBS instead of LDFLAGS for
224 -ltcl as appropriate.
225
226 --- a/configure.in
227 +++ b/configure.in
228 @@ -1122,43 +1122,41 @@
229 dnl
230 dnl Tcl support?
231 dnl
232 -AC_ARG_WITH(tcl,
233 -[ --with-tcl[=PATH_TO_tclConfig.sh] Compile with tcl support.],
234 -[
235 - tclconfig=$withval
236 -],
237 - tclconfig="yes"
238 -)
239 -
240 -if test "x$tclconfig" = "xyes" ; then
241 - for i in /usr/lib /usr/local/lib /usr/local/lib/tcl8.4 ; do
242 - if test -r $i/tclConfig.sh ; then
243 - tclconfig=$i/tclConfig.sh
244 - break;
245 - fi
246 - done
247 -fi
248 +AC_ARG_WITH([tcl], [AS_HELP_STRING([--with-tcl[=PATH_TO_tclConfig.sh]], [Compile with tcl support.])],
249 + [], [with_tcl=maybe])
250
251 AC_MSG_CHECKING(whether to support TCL)
252 -if test "x$tclconfig" = "xno"; then
253 +if test "x$with_tcl" = "xno"; then
254 AC_MSG_RESULT(no)
255 else
256 - if test ! -r $tclconfig ; then
257 + with_tcl_errormsg="You specified --with-tcl=$with_tcl but I could not find TCL. Please specify --with-tcl=/path/to/tclConfig.sh or remove --with-tcl from ./configure's commandline."
258 + if test "x$with_tcl" = "xmaybe" -o "x$with_tcl" = "xyes"; then
259 + for i in /usr/lib /usr/local/lib /usr/local/lib/tcl8.4 ; do
260 + if test -r "$i"/tclConfig.sh ; then
261 + tclconfig="$i"/tclConfig.sh
262 + break;
263 + fi
264 + done
265 + else
266 + tclconfig="$with_tcl"
267 + fi
268 + if test ! -r "$tclconfig" ; then
269 + dnl Avoid being automagic unless if the user wants us to be.
270 + AS_IF([test "x$with_tcl" != "xmaybe"],
271 + [AC_MSG_ERROR([$with_tcl_errormsg])])
272 AC_MSG_RESULT(no)
273 else
274 AC_MSG_RESULT(yes)
275 - TCLCFLAGS=`(. $tclconfig && echo $TCL_INCLUDE_SPEC)`
276 - TCLLDFLAGS1=`(. $tclconfig && echo $TCL_LIB_SPEC)`
277 - TCLLDFLAGS2=`(. $tclconfig && echo $TCL_LIBS)`
278 - TCLLDFLAGS=$(eval echo "$TCLLDFLAGS1 $TCLLDFLAGS2")
279 + TCLCFLAGS=`(. "$tclconfig" && echo $TCL_INCLUDE_SPEC)`
280 + TCLLIBS=`(. "$tclconfig" && echo $TCL_LIB_SPEC $TCL_LIBS)`
281 TCLDOTOH="tcl.o"
282
283 AC_MSG_CHECKING(whether embedded tcl works the way I expect)
284 have_embedded_tcl="no"
285 old_CFLAGS="$CFLAGS"
286 - old_LDFLAGS="$LDFLAGS"
287 + old_LIBS="$LIBS"
288 CFLAGS="$CFLAGS $TCLCFLAGS"
289 - LDFLAGS="$LDFLAGS $TCLLDFLAGS"
290 + LIBS="$LIBS $TCLLIBS"
291 AC_TRY_LINK([
292 #include <tcl.h>
293 Tcl_Interp *my_tcl;
294 @@ -1175,14 +1173,16 @@
295 ], have_embedded_tcl="yes")
296
297 CFLAGS="$old_CFLAGS"
298 - LDFLAGS="$old_LDFLAGS"
299 + LIBS="$old_LIBS"
300 if test $have_embedded_tcl = "yes" ; then
301 AC_MSG_RESULT(yes)
302 AC_DEFINE(HAVE_TCL)
303 AC_DEFINE(TCLCFLAGS)
304 - AC_DEFINE(TCLLDFLAGS)
305 + AC_DEFINE(TCLLIBS)
306 else
307 - AC_MSG_RESULT(no, sorry)
308 + AS_IF([test "$with_tcl" != "xmaybe"],
309 + [AC_MSG_ERROR([$with_tcl_errormsg])])
310 + AC_MSG_RESULT(no, sorry)
311 fi
312 fi
313 fi
314 @@ -1383,7 +1383,7 @@
315 AC_SUBST(RUBYLIBS)
316 AC_SUBST(TCLDOTOH)
317 AC_SUBST(TCLCFLAGS)
318 -AC_SUBST(TCLLDFLAGS)
319 +AC_SUBST(TCLLIBS)
320 AC_SUBST(PERLDOTOH)
321 AC_SUBST(PERLCFLAGS)
322 AC_SUBST(PERLLDFLAGS)
323
324 --- a/source/Makefile.in
325 +++ b/source/Makefile.in
326 @@ -38,7 +38,7 @@
327 epic5: $(OBJECTS)
328 sh info.c.sh
329 $(CC) $(CFLAGS) $(INCLUDES) -c info.c
330 - $(CC) $(CFLAGS) $(LDFLAGS) -o epic5 $(OBJECTS) info.o @PERLLDFLAGS@ @TCLLDFLAGS@ @RUBYLIBS@ $(LIBS)
331 + $(CC) $(CFLAGS) $(LDFLAGS) -o epic5 $(OBJECTS) info.o @PERLLDFLAGS@ @TCLLIBS@ @RUBYLIBS@ $(LIBS)
332 $(RM) info.c info.o
333 clean::
334 $(RM) epic5 $(OBJECTS)
335
336
337
338 1.1 net-irc/epic5/files/epic5-1.1.2-perl-automagic-as-needed.patch
339
340 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/epic5/files/epic5-1.1.2-perl-automagic-as-needed.patch?rev=1.1&view=markup
341 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/epic5/files/epic5-1.1.2-perl-automagic-as-needed.patch?rev=1.1&content-type=text/plain
342
343 Index: epic5-1.1.2-perl-automagic-as-needed.patch
344 ===================================================================
345 From: Nathan Phillip Brink <binki@g.o>
346 Subject: Fix perl being automagic and to be safe with
347 LDFLAGS=-Wl,--as-needed.
348
349 --- a/configure.in
350 +++ b/configure.in
351 @@ -1033,37 +1033,38 @@
352 dnl
353 dnl Perl support?
354 dnl
355 -AC_ARG_WITH(perl,
356 -[ --with-perl[=PATH_TO_PERL_EXE] Compile with perl support.],
357 -[
358 - perlexe=$withval
359 -],
360 - perlexe=yes
361 -)
362 -
363 -if test "x$perlexe" = "xyes"; then
364 - perlexe=perl
365 -fi
366 -
367 -if test "x$perlexe" = "xno"; then
368 +AC_ARG_WITH([perl], [AS_HELP_STRING([--with-perl=[PATH_TO_PERL_EXE]], [Compile with perl support.])],
369 + [], [with_perl=maybe])
370 +AS_IF([test "x$with_perl" = "xno"],
371 + [
372 AC_MSG_CHECKING(whether to support Perl)
373 AC_MSG_RESULT(no)
374 -else
375 - AC_CHECK_PROG(PERLPROG, $perlexe, "yes", "no")
376 - AC_MSG_CHECKING(whether to support Perl)
377 - if test $PERLPROG != "yes" ; then
378 + ],
379 + [
380 + with_perl_errormsg="You specified --with-perl=$with_perl but I could not find a working perl. Please run ./configure with --without-perl or specify a path to a working perl executable."
381 + AS_IF([test "x$with_perl" = "xyes" -o "x$with_perl" = "xmaybe"],
382 + [perlexe=perl],
383 + [perlexe="$with_perl"])
384 + dnl Allow a full path to be specified in --with-perl
385 + AS_IF([test -x "$perlexe"],
386 + [PERLPROG=yes],
387 + [AC_CHECK_PROG(PERLPROG, $perlexe, "yes", "no")])
388 + AC_MSG_CHECKING([whether to support Perl])
389 + if test $PERLPROG != "yes" ; then
390 + AS_IF([test "x$with_perl" != "xmaybe"],
391 + [AC_MSG_ERROR([$with_perl_errormsg])])
392 AC_MSG_RESULT(no)
393 else
394 AC_MSG_RESULT(yes)
395 PERLCFLAGS=`$perlexe -MExtUtils::Embed -e ccopts`
396 - PERLLDFLAGS=`$perlexe -MExtUtils::Embed -e ldopts`
397 + PERLLIBS=`$perlexe -MExtUtils::Embed -e ldopts`
398
399 AC_MSG_CHECKING(whether embedded perl works the way I expect)
400 have_embedded_perl="no"
401 old_CFLAGS="$CFLAGS"
402 - old_LDFLAGS="$LDFLAGS"
403 + old_LIBS="$LIBS"
404 CFLAGS="$CFLAGS $PERLCFLAGS"
405 - LDFLAGS="$LDFLAGS $PERLLDFLAGS"
406 + LIBS="$LIBS $PERLLIBS"
407 AC_TRY_RUN([
408 #include <EXTERN.h>
409 #include <perl.h>
410 @@ -1101,20 +1102,22 @@
411 have_embedded_perl="no",:)
412
413 CFLAGS="$old_CFLAGS"
414 - LDFLAGS="$old_LDFLAGS"
415 + LIBS="$old_LIBS"
416 if test $have_embedded_perl = "yes" ; then
417 AC_MSG_RESULT(yes)
418 AC_DEFINE(HAVE_PERL)
419 AC_DEFINE(PERLCFLAGS)
420 - AC_DEFINE(PERLLDFLAGS)
421 + AC_DEFINE(PERLLIBS)
422 PERLDOTOH="perl.o"
423 else
424 + AS_IF([test "x$with_perl" != "xmaybe"],
425 + [AC_MSG_ERROR([$with_perl_errormsg])])
426 PERLCFLAGS=""
427 - PERLLDFLAGS=""
428 + PERLLIBS=""
429 AC_MSG_RESULT(no, sorry)
430 PERLCFLAGS=""
431 - PERLLDFLAGS=""
432 + PERLLIBS=""
433 fi
434 fi
435 -fi
436 + ])
437
438 @@ -1392,7 +1395,7 @@
439 AC_SUBST(TCLLIBS)
440 AC_SUBST(PERLDOTOH)
441 AC_SUBST(PERLCFLAGS)
442 -AC_SUBST(PERLLDFLAGS)
443 +AC_SUBST(PERLLIBS)
444 AC_SUBST(WSERV_BIN)
445 AC_SUBST(WSERV_INSTALL)
446 AC_SUBST(bindir)
447
448 --- a/source/Makefile.in
449 +++ b/source/Makefile.in
450 @@ -38,7 +38,7 @@
451 epic5: $(OBJECTS)
452 sh info.c.sh
453 $(CC) $(CFLAGS) $(INCLUDES) -c info.c
454 - $(CC) $(CFLAGS) $(LDFLAGS) -o epic5 $(OBJECTS) info.o @PERLLDFLAGS@ @TCLLIBS@ @RUBYLIBS@ $(LIBS)
455 + $(CC) $(CFLAGS) $(LDFLAGS) -o epic5 $(OBJECTS) info.o @PERLLIBS@ @TCLLIBS@ @RUBYLIBS@ $(LIBS)
456 $(RM) info.c info.o
457 clean::
458 $(RM) epic5 $(OBJECTS)