Gentoo Archives: gentoo-commits

From: "Akinori Hattori (hattya)" <hattya@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-scheme/gauche/files: gauche-0.9.1-list-queue.diff gauche-0.9.1-bzip2-info.diff gauche-rpath.diff gauche-ext-ldflags.diff gauche-0.9.1-vminexact.diff gauche-0.9.1-number.diff gauche-xz-info.diff
Date: Wed, 18 May 2011 14:11:21
Message-Id: 20110518141111.4C99D20054@flycatcher.gentoo.org
1 hattya 11/05/18 14:11:11
2
3 Added: gauche-0.9.1-list-queue.diff
4 gauche-0.9.1-bzip2-info.diff gauche-rpath.diff
5 gauche-ext-ldflags.diff gauche-0.9.1-vminexact.diff
6 gauche-0.9.1-number.diff gauche-xz-info.diff
7 Log:
8 new upstream release.
9
10 (Portage version: 2.1.9.42/cvs/Linux i686)
11
12 Revision Changes Path
13 1.1 dev-scheme/gauche/files/gauche-0.9.1-list-queue.diff
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/gauche/files/gauche-0.9.1-list-queue.diff?rev=1.1&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/gauche/files/gauche-0.9.1-list-queue.diff?rev=1.1&content-type=text/plain
17
18 Index: gauche-0.9.1-list-queue.diff
19 ===================================================================
20 From 9dd79566fbff234f43cbc7b01078fd942f9fb31a Mon Sep 17 00:00:00 2001
21 From: Shiro Kawai <shiro@×××.org>
22 Date: Wed, 22 Dec 2010 08:55:00 +0000
23 Subject: fix list->queue bug
24
25
26 diff --git a/ext/util/queue.scm b/ext/util/queue.scm
27 index 0f35361..12eb88d 100644
28 --- a/ext/util/queue.scm
29 +++ b/ext/util/queue.scm
30 @@ -257,7 +257,7 @@
31 (Q_LENGTH q) len)))
32 )
33
34 -(define (list->queue lis :optional (class <queue>) :rest (initargs '()))
35 +(define (list->queue lis :optional (class <queue>) :rest initargs)
36 (rlet1 q (apply make class initargs)
37 (%queue-set-content! q (list-copy lis))))
38
39 --
40 1.7.3.4
41
42
43
44
45 1.1 dev-scheme/gauche/files/gauche-0.9.1-bzip2-info.diff
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/gauche/files/gauche-0.9.1-bzip2-info.diff?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/gauche/files/gauche-0.9.1-bzip2-info.diff?rev=1.1&content-type=text/plain
49
50 Index: gauche-0.9.1-bzip2-info.diff
51 ===================================================================
52 From 49401e54747a1eb3e6d0ad684b01fb289f4fcce0 Mon Sep 17 00:00:00 2001
53 From: Shiro Kawai <shiro@×××.org>
54 Date: Fri, 18 Feb 2011 23:28:47 +0000
55 Subject: support bzip2-ed info
56
57
58 diff --git a/lib/gauche/interactive/info.scm b/lib/gauche/interactive/info.scm
59 index fa27a5a..926473c 100644
60 --- a/lib/gauche/interactive/info.scm
61 +++ b/lib/gauche/interactive/info.scm
62 @@ -83,7 +83,8 @@
63 :paths paths
64 :pred (lambda (p)
65 (or (file-is-readable? p)
66 - (file-is-readable? #`",|p|.gz"))))
67 + (file-is-readable? #`",|p|.gz")
68 + (file-is-readable? #`",|p|.bz2"))))
69 (errorf "couldn't find info file ~s in paths: ~s" *info-file* paths))
70 ))
71
72 diff --git a/lib/text/info.scm b/lib/text/info.scm
73 index 4fdc8f5..b433d66 100644
74 --- a/lib/text/info.scm
75 +++ b/lib/text/info.scm
76 @@ -62,25 +62,27 @@
77
78 ;; Find gunzip location
79 (define gunzip (find-file-in-paths "gunzip"))
80 +(define bzip2 (find-file-in-paths "bzip2"))
81
82 ;; Read an info file FILE, and returns a list of strings splitted by ^_ (#\x1f)
83 -;; If FILE is not found, look for gzipped one (FILE.gz) and decompress it.
84 +;; If FILE is not found, look for compressed one.
85 (define (read-info-file-split file opts)
86 (define (with-input-from-info thunk)
87 - (cond ((file-exists? file)
88 - (with-input-from-file file thunk))
89 - ((file-exists? #`",|file|.gz")
90 - (with-input-from-process #`",gunzip -c ,file" thunk))
91 - (else
92 - (error "can't find info file" file))))
93 + (cond [(file-exists? file)
94 + (with-input-from-file file thunk)]
95 + [(and gunzip (file-exists? #`",|file|.gz"))
96 + (with-input-from-process #`",gunzip -c ,file" thunk)]
97 + [(and bzip2 (file-exists? #`",|file|.bz2"))
98 + (with-input-from-process #`",bzip2 -c -d ,|file|.bz2" thunk)]
99 + [else (error "can't find info file" file)]))
100 (with-input-from-info
101 (lambda ()
102 - (let loop ((c (skip-while (char-set-complement #[\x1f])))
103 - (r '()))
104 + (let loop ([c (skip-while (char-set-complement #[\x1f]))]
105 + [r '()])
106 (if (eof-object? c)
107 (reverse! r)
108 - (let* ((head (next-token #[\x1f\n] '(#[\x1f\n] *eof*)))
109 - (body (next-token #[\n] '(#[\x1f] *eof*))))
110 + (let* ([head (next-token #[\x1f\n] '(#[\x1f\n] *eof*))]
111 + [body (next-token #[\n] '(#[\x1f] *eof*))])
112 (loop (read-char) (acons head body r)))))))
113 )
114
115 --
116 1.7.3.4
117
118
119
120
121 1.1 dev-scheme/gauche/files/gauche-rpath.diff
122
123 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/gauche/files/gauche-rpath.diff?rev=1.1&view=markup
124 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/gauche/files/gauche-rpath.diff?rev=1.1&content-type=text/plain
125
126 Index: gauche-rpath.diff
127 ===================================================================
128 --- Gauche-0.9.1.orig/configure.ac
129 +++ Gauche-0.9.1/configure.ac
130 @@ -709,7 +709,6 @@
131 fi
132 if test "$RPATH_FLAG" != ""; then
133 RPATH_TMP=$RPATH_FLAG'`pwd`'
134 - RPATH_REAL=$RPATH_FLAG'$(LIB_INSTALL_DIR)'
135 fi
136 fi
137 AC_SUBST(RPATH_FLAG)
138
139
140
141 1.1 dev-scheme/gauche/files/gauche-ext-ldflags.diff
142
143 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/gauche/files/gauche-ext-ldflags.diff?rev=1.1&view=markup
144 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/gauche/files/gauche-ext-ldflags.diff?rev=1.1&content-type=text/plain
145
146 Index: gauche-ext-ldflags.diff
147 ===================================================================
148 --- Gauche-0.9.1.orig/ext/Makefile.ext.in
149 +++ Gauche-0.9.1/ext/Makefile.ext.in
150 @@ -22,7 +22,7 @@
151 LIBS = $(XLIBS) @LIBS@
152 CFLAGS = @CFLAGS@ @SHLIB_SO_CFLAGS@ $(XCFLAGS)
153 CPPFLAGS = @CPPFLAGS@ $(XCPPFLAGS)
154 -LDFLAGS = $(LOCAL_LFLAGS) $(XLDFLAGS) @SHLIB_SO_LDFLAGS@
155 +LDFLAGS = $(LOCAL_LFLAGS) $(XLDFLAGS) @LDFLAGS@ @SHLIB_SO_LDFLAGS@
156
157 # These are set by configure
158 DEFS = @DEFS@
159
160
161
162 1.1 dev-scheme/gauche/files/gauche-0.9.1-vminexact.diff
163
164 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/gauche/files/gauche-0.9.1-vminexact.diff?rev=1.1&view=markup
165 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/gauche/files/gauche-0.9.1-vminexact.diff?rev=1.1&content-type=text/plain
166
167 Index: gauche-0.9.1-vminexact.diff
168 ===================================================================
169 From e1139a7ea5fea68520f3b41904bf60093cd6ba1a Mon Sep 17 00:00:00 2001
170 From: Shiro Kawai <shiro@×××.org>
171 Date: Sun, 27 Feb 2011 11:33:42 +0000
172 Subject: fixed binary compatibility of Scm_VMExactToInexact
173
174
175 diff --git a/src/gauche/number.h b/src/gauche/number.h
176 index b85b72d..f08e631 100644
177 --- a/src/gauche/number.h
178 +++ b/src/gauche/number.h
179 @@ -319,7 +319,8 @@ SCM_EXTERN void Scm_SetDefaultEndian(ScmObj endian);
180 SCM_EXTERN ScmObj Scm_VMNegate(ScmObj obj);
181 SCM_EXTERN ScmObj Scm_VMReciprocal(ScmObj obj);
182 SCM_EXTERN ScmObj Scm_VMReciprocalInexact(ScmObj obj);
183 -SCM_EXTERN ScmObj Scm_VMInexact(ScmObj obj);
184 +SCM_EXTERN ScmObj Scm_VMExactToInexact(ScmObj obj); /* during 0.9 for backward compatibility */
185 +#define Scm_VMInexact Scm_VMExactToInexact /* on 1.0, shorter name will be a real name */
186 SCM_EXTERN ScmObj Scm_VMAbs(ScmObj obj);
187 SCM_EXTERN ScmObj Scm_VMAdd(ScmObj arg1, ScmObj arg2);
188 SCM_EXTERN ScmObj Scm_VMSub(ScmObj arg1, ScmObj arg2);
189 --
190 1.7.3.4
191
192
193
194
195 1.1 dev-scheme/gauche/files/gauche-0.9.1-number.diff
196
197 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/gauche/files/gauche-0.9.1-number.diff?rev=1.1&view=markup
198 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/gauche/files/gauche-0.9.1-number.diff?rev=1.1&content-type=text/plain
199
200 Index: gauche-0.9.1-number.diff
201 ===================================================================
202 From da6fc0f158fa9c76e5df675f57b57aa8c7a4b1b7 Mon Sep 17 00:00:00 2001
203 From: Shiro Kawai <shiro@×××.org>
204 Date: Wed, 2 Feb 2011 14:35:21 +0000
205 Subject: correct error estimation of floating point number reader
206
207
208 diff --git a/src/number.c b/src/number.c
209 index 9a7d8f8..d121edd 100644
210 --- a/src/number.c
211 +++ b/src/number.c
212 @@ -3543,6 +3543,7 @@ static double algorithmR(ScmObj f, int e, double z)
213 case -1: /* d2 < y */
214 if (Scm_NumCmp(m, SCM_2_52) == 0
215 && sign_d < 0
216 + && k > -1074
217 && Scm_NumCmp(Scm_Ash(d2, 1), y) > 0) {
218 goto prevfloat;
219 } else {
220 diff --git a/test/number.scm b/test/number.scm
221 index d397630..eb6d7eb 100644
222 --- a/test/number.scm
223 +++ b/test/number.scm
224 @@ -270,6 +270,12 @@
225 (test* "flonum reader (minimum denormalized number -5.0e-324)" #t
226 (let1 x (- (expt 2.0 -1074))
227 (= x (string->number (number->string x)))))
228 +
229 +;; This hanged in 0.9.1. See Jens Thiele's message in gauche-devel
230 +;; in Feb. 2011.
231 +(test* "flonum reader (minimum normalized number)" #t
232 + (= (expt 2.0 (- 52 1074))
233 + (string->number "2.2250738585072012e-308")))
234
235
236 (test* "padding" '(10.0 #t) (flonum-test '1#))
237 --
238 1.7.3.4
239
240
241
242
243 1.1 dev-scheme/gauche/files/gauche-xz-info.diff
244
245 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/gauche/files/gauche-xz-info.diff?rev=1.1&view=markup
246 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-scheme/gauche/files/gauche-xz-info.diff?rev=1.1&content-type=text/plain
247
248 Index: gauche-xz-info.diff
249 ===================================================================
250 --- Gauche-0.9.1.orig/lib/gauche/interactive/info.scm
251 +++ Gauche-0.9.1/lib/gauche/interactive/info.scm
252 @@ -84,7 +84,8 @@
253 :pred (lambda (p)
254 (or (file-is-readable? p)
255 (file-is-readable? #`",|p|.gz")
256 - (file-is-readable? #`",|p|.bz2"))))
257 + (file-is-readable? #`",|p|.bz2")
258 + (file-is-readable? #`",|p|.xz"))))
259 (errorf "couldn't find info file ~s in paths: ~s" *info-file* paths))
260 ))
261
262 --- Gauche-0.9.1.orig/lib/text/info.scm
263 +++ Gauche-0.9.1/lib/text/info.scm
264 @@ -63,6 +63,7 @@
265 ;; Find gunzip location
266 (define gunzip (find-file-in-paths "gunzip"))
267 (define bzip2 (find-file-in-paths "bzip2"))
268 +(define xz (find-file-in-paths "xz"))
269
270 ;; Read an info file FILE, and returns a list of strings splitted by ^_ (#\x1f)
271 ;; If FILE is not found, look for compressed one.
272 @@ -74,6 +75,8 @@
273 (with-input-from-process #`",gunzip -c ,file" thunk)]
274 [(and bzip2 (file-exists? #`",|file|.bz2"))
275 (with-input-from-process #`",bzip2 -c -d ,|file|.bz2" thunk)]
276 + [(and xz (file-exists? #`",|file|.xz"))
277 + (with-input-from-process #`",xz -c -d ,|file|.xz" thunk)]
278 [else (error "can't find info file" file)]))
279 (with-input-from-info
280 (lambda ()