Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/libtool/files: libtool-2.2.2-AC_LIBLTDL_CONVENIENCE.patch libtool-2.2.2-flag-order.patch libtool-2.2.2-AC_ENABLE_SHARED.patch
Date: Tue, 22 Apr 2008 22:43:49
Message-Id: E1JoRDH-0003Zc-1w@stork.gentoo.org
1 vapier 08/04/22 22:43:47
2
3 Added: libtool-2.2.2-AC_LIBLTDL_CONVENIENCE.patch
4 libtool-2.2.2-flag-order.patch
5 libtool-2.2.2-AC_ENABLE_SHARED.patch
6 Log:
7 Add some fixes from upstream.
8 (Portage version: 2.2_pre5)
9
10 Revision Changes Path
11 1.1 sys-devel/libtool/files/libtool-2.2.2-AC_LIBLTDL_CONVENIENCE.patch
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/libtool/files/libtool-2.2.2-AC_LIBLTDL_CONVENIENCE.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/libtool/files/libtool-2.2.2-AC_LIBLTDL_CONVENIENCE.patch?rev=1.1&content-type=text/plain
15
16 Index: libtool-2.2.2-AC_LIBLTDL_CONVENIENCE.patch
17 ===================================================================
18 commit 9b00a3a6e7d231440029d8be120dff7faa15320e
19 Author: Andreas Schwab <schwab@××××.de>
20 Date: Tue Apr 22 21:32:32 2008 +0200
21
22 Fix default argument for AC_LIBLTDL_CONVENIENCE.
23
24 * libltdl/m4/ltdl.m4 (AC_LIBLTDL_CONVENIENCE): Default argument
25 to libltdl.
26 (AC_LIBLTDL_INSTALLABLE): Likewise.
27 * tests/configure-iface.at (convenience libltdl): New test.
28
29 Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@×××.de>
30
31 diff --git a/libltdl/m4/ltdl.m4 b/libltdl/m4/ltdl.m4
32 index bdecc9d..f6b1064 100644
33 --- a/libltdl/m4/ltdl.m4
34 +++ b/libltdl/m4/ltdl.m4
35 @@ -79,7 +79,7 @@ _$0()
36 # AC_LIBLTDL_CONVENIENCE accepted a directory argument in older libtools,
37 # now we have LT_CONFIG_LTDL_DIR:
38 AU_DEFUN([AC_LIBLTDL_CONVENIENCE],
39 -[_LT_CONFIG_LTDL_DIR([$1])
40 +[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
41 _LTDL_CONVENIENCE])
42
43 dnl aclocal-1.4 backwards compatibility:
44 @@ -135,7 +135,7 @@ _$0()
45 # AC_LIBLTDL_INSTALLABLE accepted a directory argument in older libtools,
46 # now we have LT_CONFIG_LTDL_DIR:
47 AU_DEFUN([AC_LIBLTDL_INSTALLABLE],
48 -[_LT_CONFIG_LTDL_DIR([$1])
49 +[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
50 _LTDL_INSTALLABLE])
51
52 dnl aclocal-1.4 backwards compatibility:
53 diff --git a/tests/configure-iface.at b/tests/configure-iface.at
54 index 3fcb0da..9a311dc 100644
55 --- a/tests/configure-iface.at
56 +++ b/tests/configure-iface.at
57 @@ -275,5 +275,33 @@ AT_CHECK([$MAKE -q main$EXEEXT || exit 1], [1], [ignore], [ignore])
58
59 AT_CLEANUP
60
61 +
62 +## -------------------- ##
63 +## Convenience libltdl. ##
64 +## -------------------- ##
65 +
66 +AT_SETUP([convenience libltdl])
67 +
68 +AT_DATA([configure.ac],
69 +[[AC_INIT
70 +AC_CONFIG_AUX_DIR([libltdl/config])
71 +AC_LIBLTDL_CONVENIENCE
72 +AC_LIBTOOL_DLOPEN
73 +AC_PROG_LIBTOOL
74 +AC_CONFIG_FILES(Makefile)
75 +AC_OUTPUT
76 +]])
77 +AT_DATA([Makefile.in],
78 +[[LIBLTDL = @LIBLTDL@
79 +print-ltdl:
80 + echo $(LIBLTDL)
81 +]])
82 +
83 +LT_AT_BOOTSTRAP([--ltdl], [-I libltdl/m4], [ignore], [ignore], [], [], [ignore])
84 +AT_CHECK([$MAKE print-ltdl], [], [stdout])
85 +AT_CHECK([grep libltdl/libltdlc.la stdout], [], [ignore])
86 +
87 +AT_CLEANUP
88 +
89 dnl Be careful not to let the definition leak into other tests
90 m4_popdef([_LT_AT_LTDL_SETUP])
91
92
93
94 1.1 sys-devel/libtool/files/libtool-2.2.2-flag-order.patch
95
96 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/libtool/files/libtool-2.2.2-flag-order.patch?rev=1.1&view=markup
97 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/libtool/files/libtool-2.2.2-flag-order.patch?rev=1.1&content-type=text/plain
98
99 Index: libtool-2.2.2-flag-order.patch
100 ===================================================================
101 http://lists.gnu.org/archive/html/libtool/2008-04/msg00122.html
102
103 commit 9c3ae35db6bbd9ce82bc5479354d99f53c46e888
104 Author: Ralf Wildenhues <Ralf.Wildenhues@×××.de>
105 Date: Tue Apr 22 21:43:06 2008 +0200
106
107 Fix regression over 1.5.26 with ccache $CC -all-static.
108
109 * libltdl/config/ltmain.m4sh (func_mode_link): Add
110 $link_static_flag to compile_command and link_command only
111 later, instead of right after a possible compiler wrapper.
112 * tests/static.at (ccache -all-static): New test.
113 * THANKS: Update.
114 Report by Richard Purdie.
115
116 Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@×××.de>
117
118 diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
119 index ff1e50d..ac334dc 100644
120 --- a/libltdl/config/ltmain.m4sh
121 +++ b/libltdl/config/ltmain.m4sh
122 @@ -3160,9 +3160,6 @@ func_mode_link ()
123 fi
124 if test -n "$link_static_flag"; then
125 dlopen_self=$dlopen_self_static
126 - # See comment for -static flag below, for more details.
127 - func_append compile_command " $link_static_flag"
128 - func_append finalize_command " $link_static_flag"
129 fi
130 prefer_static_libs=yes
131 ;;
132 @@ -3450,7 +3447,11 @@ func_mode_link ()
133
134 case $arg in
135 -all-static)
136 - # The effects of -all-static are defined in a previous loop.
137 + if test -n "$link_static_flag"; then
138 + # See comment for -static flag below, for more details.
139 + func_append compile_command " $link_static_flag"
140 + func_append finalize_command " $link_static_flag"
141 + fi
142 continue
143 ;;
144
145 diff --git a/tests/static.at b/tests/static.at
146 index 74b1c63..1a51d0d 100644
147 --- a/tests/static.at
148 +++ b/tests/static.at
149 @@ -352,3 +352,26 @@ for withdep in no yes; do
150 done
151
152 AT_CLEANUP
153 +
154 +
155 +AT_SETUP([ccache -all-static])
156 +
157 +AT_DATA([ccache],
158 +[[#! /bin/sh
159 +# poor man's ccache clone
160 +case $1 in
161 +-*) echo "bogus argument: $1" >&2; exit 1 ;;
162 +esac
163 +exec "$@"
164 +]])
165 +chmod +x ./ccache
166 +
167 +AT_DATA([a.c],
168 +[[int main(void) { return 0; }
169 +]])
170 +
171 +AT_CHECK([$CC $CPPFLAGS $CFLAGS -c a.c], [], [ignore])
172 +AT_CHECK([$LIBTOOL --mode=link --tag=CC ./ccache $CC $CFLAGS $LDFLAGS -all-static a.$OBJEXT -o a],
173 + [], [ignore])
174 +
175 +AT_CLEANUP
176
177
178
179 1.1 sys-devel/libtool/files/libtool-2.2.2-AC_ENABLE_SHARED.patch
180
181 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/libtool/files/libtool-2.2.2-AC_ENABLE_SHARED.patch?rev=1.1&view=markup
182 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/libtool/files/libtool-2.2.2-AC_ENABLE_SHARED.patch?rev=1.1&content-type=text/plain
183
184 Index: libtool-2.2.2-AC_ENABLE_SHARED.patch
185 ===================================================================
186 commit 1006ccc48c14d3715c569cca68dab54742207273
187 Author: Andreas Schwab <schwab@××××.de>
188 Date: Fri Apr 18 23:43:19 2008 +0200
189
190 Properly emulate AC_ENABLE_SHARED([no]) and others.
191
192 * libltdl/m4/ltoptions.m4 (AC_ENABLE_SHARED): Check optional
193 argument.
194 (AC_ENABLE_STATIC): Likewise.
195 (AC_ENABLE_FAST_INSTALL): Likewise.
196
197 Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@×××.de>
198
199 diff --git a/ChangeLog b/ChangeLog
200 index 268e369..e593406 100644
201 --- a/ChangeLog
202 +++ b/ChangeLog
203 @@ -1,3 +1,10 @@
204 +2008-04-18 Andreas Schwab <schwab@××××.de>
205 +
206 + * libltdl/m4/ltoptions.m4 (AC_ENABLE_SHARED): Check optional
207 + argument.
208 + (AC_ENABLE_STATIC): Likewise.
209 + (AC_ENABLE_FAST_INSTALL): Likewise.
210 +
211 2008-04-16 Eric Blake <ebb9@×××.net>
212
213 Make ChangeLog merges easier.
214 diff --git a/libltdl/m4/ltoptions.m4 b/libltdl/m4/ltoptions.m4
215 index a1c3aba..339d6f5 100644
216 --- a/libltdl/m4/ltoptions.m4
217 +++ b/libltdl/m4/ltoptions.m4
218 @@ -192,7 +192,7 @@ LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
219
220 # Old names:
221 AC_DEFUN([AC_ENABLE_SHARED],
222 -[_LT_SET_OPTION([LT_INIT], [shared])
223 +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
224 ])
225
226 AC_DEFUN([AC_DISABLE_SHARED],
227 @@ -246,7 +246,7 @@ LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
228
229 # Old names:
230 AC_DEFUN([AC_ENABLE_STATIC],
231 -[_LT_SET_OPTION([LT_INIT], [static])
232 +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
233 ])
234
235 AC_DEFUN([AC_DISABLE_STATIC],
236 @@ -300,7 +300,7 @@ LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no
237
238 # Old names:
239 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
240 -[_LT_SET_OPTION([LT_INIT], [fast-install])
241 +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
242 AC_DIAGNOSE([obsolete],
243 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
244 the `fast-install' option into LT_INIT's first parameter.])
245
246
247
248 --
249 gentoo-commits@l.g.o mailing list