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.10-without-localdir.patch epic5-1.1.10-ruby-automagic-as-needed.patch epic5-1.1.10-tcl-automagic-as-needed.patch
Date: Wed, 03 Sep 2014 01:36:39
Message-Id: 20140903013635.562914905@oystercatcher.gentoo.org
1 binki 14/09/03 01:36:35
2
3 Added: epic5-1.1.10-without-localdir.patch
4 epic5-1.1.10-ruby-automagic-as-needed.patch
5 epic5-1.1.10-tcl-automagic-as-needed.patch
6 Log:
7 Bump to epic5-1.1.10 and eradicate einstall() for bug #521590.
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 743A52E86BA81050)
10
11 Revision Changes Path
12 1.1 net-irc/epic5/files/epic5-1.1.10-without-localdir.patch
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/epic5/files/epic5-1.1.10-without-localdir.patch?rev=1.1&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/epic5/files/epic5-1.1.10-without-localdir.patch?rev=1.1&content-type=text/plain
16
17 Index: epic5-1.1.10-without-localdir.patch
18 ===================================================================
19 From: Nathan Phillip Brink <binki@g.o>
20 Subject: Drop some automatic probing of /usr/local and /opt and etc., Gentoo users know to use CPPFLAGS/CFLAGS/LDFLAGS.
21 Date: 2014-08-30
22
23 --- a/configure.in
24 +++ b/configure.in
25 @@ -33,58 +33,6 @@
26 AC_AIX
27
28 dnl ----------------------------------------------------------
29 -AC_MSG_CHECKING([for an extra library directory])
30 -AC_ARG_WITH([localdir],
31 -[ --with-localdir=/usr/local An extra directory to look for stuff.],[
32 - if test "x$withval" = "x" ; then
33 - if test -d /usr/local/lib ; then
34 - withval="/usr/local"
35 - elif test -d /usr/pkg/lib ; then
36 - withval="/usr/pkg"
37 - elif test -d /opt/lib ; then
38 - withval="/opt"
39 - else
40 - with_extra_libdir="no"
41 - fi
42 - elif test -d "$withval" ; then
43 - with_extra_libdir="yes"
44 - else
45 - with_extra_libdir="no"
46 - fi
47 -
48 - if test "x$withval" != "x" ; then
49 - LIBS="-L$withval/lib $LIBS"
50 - CFLAGS="-I$withval/include/ $CFLAGS"
51 - localdir=$withdir
52 - with_extra_libdir="yes"
53 - else
54 - with_extra_libdir="no"
55 - fi
56 -],[
57 - if test "x$withval" = "x" ; then
58 - if test -d /usr/local/lib ; then
59 - withval="/usr/local"
60 - elif test -d /usr/pkg/lib ; then
61 - withval="/usr/pkg"
62 - elif test -d /opt/lib ; then
63 - withval="/opt"
64 - else
65 - with_extra_libdir="no"
66 - fi
67 - fi
68 -
69 - if test "x$withval" != "x" ; then
70 - LIBS="-L$withval/lib $LIBS"
71 - CFLAGS="-I$withval/include/ $CFLAGS"
72 - localdir=$withdir
73 - with_extra_libdir="yes"
74 - else
75 - with_extra_libdir="no"
76 - fi
77 -])
78 -AC_MSG_RESULT([$with_extra_libdir, $withval])
79 -
80 -dnl ----------------------------------------------------------
81 dnl ----------------------------------------------------------
82 dnl
83 dnl System specific checks
84
85
86
87
88 1.1 net-irc/epic5/files/epic5-1.1.10-ruby-automagic-as-needed.patch
89
90 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/epic5/files/epic5-1.1.10-ruby-automagic-as-needed.patch?rev=1.1&view=markup
91 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/epic5/files/epic5-1.1.10-ruby-automagic-as-needed.patch?rev=1.1&content-type=text/plain
92
93 Index: epic5-1.1.10-ruby-automagic-as-needed.patch
94 ===================================================================
95 From: Nathan Phillip Brink <binki@g.o>
96 Subject: Fix up linking against libruby when using
97 LDFLAGS=-Wl,--as-needed. Also allow ruby to be a non-automagic
98 dependency.
99
100 --- a/configure.in Tue Mar 25 07:39:34 2014 +0000
101 +++ b/configure.in Tue Mar 25 07:55:14 2014 +0000
102 @@ -1168,34 +1168,28 @@
103 dnl
104 dnl Ruby support?
105 dnl
106 -AC_ARG_WITH(ruby,
107 -[ --with-ruby[=PATH_TO_RUBY_EXE] Compile with ruby support.],
108 -[
109 - rubyexe=$withval
110 -],
111 - rubyexe=yes
112 -)
113 -
114 -if test "x$rubyexe" = "xyes"; then
115 - for i in ruby ruby20 ruby19 ruby18 ruby2.0 ruby1.9.1 ruby1.9 ruby1.8; do
116 - $i -h 2>&1 >/dev/null && rubyexe=$i && break
117 - done
118 - if test "x$rubyexe" = "xyes"; then
119 - rubyexe=no
120 - fi
121 -fi
122 +AC_ARG_WITH([ruby],
123 + [AS_HELP_STRING([--with-ruby[=PATH_TO_RUBY_EXE]], [Compile with ruby support.])],
124 + [], [with_ruby=maybe])
125
126 -if test "x$rubyexe" = "xno"; then
127 +with_ruby_errormsg="--with-ruby was specified but I could not locate ruby. Please try specifying --with-ruby=/path/to/ruby or --without-ruby."
128 +AC_MSG_CHECKING([whether to support Ruby])
129 +if test "x$with_ruby" = "xno" ; then
130 AC_MSG_CHECKING(whether to support Ruby)
131 AC_MSG_RESULT(no)
132 else
133 - AC_CHECK_PROG(RUBYPROG, $rubyexe, "yes", "no")
134 - AC_MSG_CHECKING(whether to support Ruby)
135 - if test $RUBYPROG != "yes" ; then
136 - AC_MSG_RESULT(no)
137 + AC_MSG_RESULT(yes)
138 + AS_IF([test "x$with_ruby" = "xyes" -o "x$with_ruby" = "xmaybe"],
139 + [rubyexe=ruby],
140 + [rubyexe="$with_ruby"])
141 + dnl Support --with-ruby being passed a full path instead of just an executable name.
142 + AS_IF([test -x "$rubyexe"],
143 + [RUBYPROG=yes],
144 + [AC_CHECK_PROG([RUBYPROG], [$rubyexe], [yes], [no])])
145 + if test "x$RUBYPROG" = xno ; then
146 + AS_IF([test "x$with_ruby" != "xmaybe"],
147 + [AC_MSG_ERROR([$with_ruby_errormsg])])
148 else
149 - AC_MSG_RESULT(yes)
150 -
151 dnl ----
152 dnl Look first for Ruby 1.9
153 incdir=`$rubyexe -rrbconfig -e 'puts RbConfig::CONFIG[["rubyhdrdir"]]'`
154 @@ -1208,15 +1205,15 @@
155
156 rubylibs=`$rubyexe -rrbconfig -e 'puts RbConfig::CONFIG[["LIBRUBYARG"]]'`
157 extralibs=`$rubyexe -rrbconfig -e 'puts RbConfig::CONFIG[["LIBS"]]'`
158 - RUBYLDFLAGS="$rubylibs $extralibs"
159 + RUBYLIBS="$rubylibs $extralibs"
160 RUBYDOTOH="ruby.o"
161
162 AC_MSG_CHECKING(whether embedded ruby works the way I expect)
163 have_embedded_ruby="no"
164 old_CFLAGS="$CFLAGS"
165 - old_LDFLAGS="$LDFLAGS"
166 + old_LIBS="$LIBS"
167 CFLAGS="$CFLAGS $RUBYCFLAGS"
168 - LDFLAGS="$LDFLAGS $RUBYLDFLAGS"
169 + LIBS="$LIBS $RUBYLIBS"
170 AC_TRY_LINK([
171 #include <ruby.h>
172 VALUE epic_echo (VALUE module, VALUE string)
173 @@ -1241,9 +1238,9 @@
174 AC_MSG_RESULT(no)
175 AC_MSG_CHECKING(whether ruby requires -pthread to link)
176 RUBYCFLAGS="$RUBYCFLAGS -pthread"
177 - RUBYLDFLAGS="$RUBYLDFLAGS -pthread"
178 - CFLAGS="$CFLAGS $RUBYCFLAGS"
179 - LDFLAGS="$LDFLAGS $RUBYLDFLAGS"
180 + RUBYLIBS="$RUBYLIBS -pthread"
181 + CFLAGS="$old_CFLAGS $RUBYCFLAGS"
182 + LIBS="$old_LIBS $RUBYLIBS"
183
184 AC_TRY_LINK([
185 #include <ruby.h>
186 @@ -1268,17 +1265,19 @@
187 fi
188
189 CFLAGS="$old_CFLAGS"
190 - LDFLAGS="$old_LDFLAGS"
191 + LIBS="$old_LIBS"
192 if test $have_embedded_ruby = "yes" ; then
193 AC_MSG_RESULT(yes)
194 AC_DEFINE(HAVE_RUBY)
195 AC_DEFINE(RUBYCFLAGS)
196 - AC_DEFINE(RUBYLDFLAGS)
197 + AC_DEFINE(RUBYLIBS)
198 else
199 + AS_IF([test "x$with_ruby" != "xmaybe"],
200 + [AC_MSG_ERROR([$with_ruby_errormsg])])
201 RUBYDOTOH=""
202 HAVE_RUBY=""
203 RUBYCFLAGS=""
204 - RUBYLDFLAGS=""
205 + RUBYLIBS=""
206 AC_MSG_RESULT(no, sorry)
207 fi
208 fi
209 @@ -1376,7 +1375,7 @@
210 AC_SUBST(LDFLAGS)
211 AC_SUBST(RUBYDOTOH)
212 AC_SUBST(RUBYCFLAGS)
213 -AC_SUBST(RUBYLDFLAGS)
214 +AC_SUBST(RUBYLIBS)
215 AC_SUBST(TCLDOTOH)
216 AC_SUBST(TCLCFLAGS)
217 AC_SUBST(TCLLDFLAGS)
218 --- a/source/Makefile.in Tue Mar 25 07:39:34 2014 +0000
219 +++ b/source/Makefile.in Tue Mar 25 07:55:14 2014 +0000
220 @@ -38,7 +38,7 @@
221 epic5: $(OBJECTS)
222 sh info.c.sh
223 $(CC) $(CFLAGS) $(INCLUDES) -c info.c
224 - $(CC) $(CFLAGS) $(LDFLAGS) -o epic5 $(OBJECTS) info.o @PERLLDFLAGS@ @TCLLDFLAGS@ @RUBYLDFLAGS@ $(LIBS)
225 + $(CC) $(CFLAGS) $(LDFLAGS) -o epic5 $(OBJECTS) info.o @PERLLDFLAGS@ @TCLLDFLAGS@ @RUBYLIBS@ $(LIBS)
226 $(RM) info.c info.o
227 clean::
228 $(RM) epic5 $(OBJECTS)
229
230
231
232 1.1 net-irc/epic5/files/epic5-1.1.10-tcl-automagic-as-needed.patch
233
234 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/epic5/files/epic5-1.1.10-tcl-automagic-as-needed.patch?rev=1.1&view=markup
235 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/epic5/files/epic5-1.1.10-tcl-automagic-as-needed.patch?rev=1.1&content-type=text/plain
236
237 Index: epic5-1.1.10-tcl-automagic-as-needed.patch
238 ===================================================================
239 From: Nathan Phillip Brink <binki@g.o>
240 Subject: Make dependence on TCL not be automagic (so that --with-tcl
241 errors out if TCL can't be found and not specifying --with-tcl
242 does the normal automagic behavior). Support
243 LDFLAGS=-Wl,--as-needed by using LIBS instead of LDFLAGS for
244 -ltcl as appropriate.
245
246 --- a/configure.in
247 +++ b/configure.in
248 @@ -1122,43 +1122,41 @@
249 dnl
250 dnl Tcl support?
251 dnl
252 -AC_ARG_WITH(tcl,
253 -[ --with-tcl[=PATH_TO_tclConfig.sh] Compile with tcl support.],
254 -[
255 - tclconfig=$withval
256 -],
257 - tclconfig="yes"
258 -)
259 -
260 -if test "x$tclconfig" = "xyes" ; then
261 - for i in /usr/lib $localdir/lib $localdir/lib/tcl8.4 ; do
262 - if test -r $i/tclConfig.sh ; then
263 - tclconfig=$i/tclConfig.sh
264 - break;
265 - fi
266 - done
267 -fi
268 +AC_ARG_WITH([tcl], [AS_HELP_STRING([--with-tcl[=PATH_TO_tclConfig.sh]], [Compile with tcl support.])],
269 + [], [with_tcl=maybe])
270
271 AC_MSG_CHECKING(whether to support TCL)
272 -if test "x$tclconfig" = "xno"; then
273 +if test "x$with_tcl" = "xno"; then
274 AC_MSG_RESULT(no)
275 else
276 - if test ! -r $tclconfig ; then
277 + 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."
278 + if test "x$with_tcl" = "xmaybe" -o "x$with_tcl" = "xyes"; then
279 + for i in /usr/lib /usr/local/lib /usr/local/lib/tcl8.4 ; do
280 + if test -r "$i"/tclConfig.sh ; then
281 + tclconfig="$i"/tclConfig.sh
282 + break;
283 + fi
284 + done
285 + else
286 + tclconfig="$with_tcl"
287 + fi
288 + if test ! -r "$tclconfig" ; then
289 + dnl Avoid being automagic unless if the user wants us to be.
290 + AS_IF([test "x$with_tcl" != "xmaybe"],
291 + [AC_MSG_ERROR([$with_tcl_errormsg])])
292 AC_MSG_RESULT(no)
293 else
294 AC_MSG_RESULT(yes)
295 - TCLCFLAGS=`(. $tclconfig && echo $TCL_INCLUDE_SPEC)`
296 - TCLLDFLAGS1=`(. $tclconfig && echo $TCL_LIB_SPEC)`
297 - TCLLDFLAGS2=`(. $tclconfig && echo $TCL_LIBS)`
298 - TCLLDFLAGS=$(eval echo "$TCLLDFLAGS1 $TCLLDFLAGS2")
299 + TCLCFLAGS=`(. "$tclconfig" && echo $TCL_INCLUDE_SPEC)`
300 + TCLLIBS=`(. "$tclconfig" && echo $TCL_LIB_SPEC $TCL_LIBS)`
301 TCLDOTOH="tcl.o"
302
303 AC_MSG_CHECKING(whether embedded tcl works the way I expect)
304 have_embedded_tcl="no"
305 old_CFLAGS="$CFLAGS"
306 - old_LDFLAGS="$LDFLAGS"
307 + old_LIBS="$LIBS"
308 CFLAGS="$CFLAGS $TCLCFLAGS"
309 - LDFLAGS="$LDFLAGS $TCLLDFLAGS"
310 + LIBS="$LIBS $TCLLIBS"
311 AC_TRY_LINK([
312 #include <tcl.h>
313 Tcl_Interp *my_tcl;
314 @@ -1175,14 +1173,16 @@
315 ], have_embedded_tcl="yes")
316
317 CFLAGS="$old_CFLAGS"
318 - LDFLAGS="$old_LDFLAGS"
319 + LIBS="$old_LIBS"
320 if test $have_embedded_tcl = "yes" ; then
321 AC_MSG_RESULT(yes)
322 AC_DEFINE(HAVE_TCL)
323 AC_DEFINE(TCLCFLAGS)
324 - AC_DEFINE(TCLLDFLAGS)
325 + AC_DEFINE(TCLLIBS)
326 else
327 - AC_MSG_RESULT(no, sorry)
328 + AS_IF([test "$with_tcl" != "xmaybe"],
329 + [AC_MSG_ERROR([$with_tcl_errormsg])])
330 + AC_MSG_RESULT(no, sorry)
331 fi
332 fi
333 fi
334 @@ -1383,7 +1383,7 @@
335 AC_SUBST(RUBYLIBS)
336 AC_SUBST(TCLDOTOH)
337 AC_SUBST(TCLCFLAGS)
338 -AC_SUBST(TCLLDFLAGS)
339 +AC_SUBST(TCLLIBS)
340 AC_SUBST(PERLDOTOH)
341 AC_SUBST(PERLCFLAGS)
342 AC_SUBST(PERLLDFLAGS)
343
344 --- a/source/Makefile.in
345 +++ b/source/Makefile.in
346 @@ -38,7 +38,7 @@
347 epic5: $(OBJECTS)
348 sh info.c.sh
349 $(CC) $(CFLAGS) $(INCLUDES) -c info.c
350 - $(CC) $(CFLAGS) $(LDFLAGS) -o epic5 $(OBJECTS) info.o @PERLLDFLAGS@ @TCLLDFLAGS@ @RUBYLIBS@ $(LIBS)
351 + $(CC) $(CFLAGS) $(LDFLAGS) -o epic5 $(OBJECTS) info.o @PERLLDFLAGS@ @TCLLIBS@ @RUBYLIBS@ $(LIBS)
352 $(RM) info.c info.o
353 clean::
354 $(RM) epic5 $(OBJECTS)