1 |
voyageur 07/09/10 18:31:29 |
2 |
|
3 |
Added: terminal-0.9.5_pre20060324-size_t.patch |
4 |
terminal-0.9.5_pre20060324-solaris.patch |
5 |
digest-terminal-0.9.5_pre20060324-r1 |
6 |
Removed: digest-terminal-0.9.5_pre20060324 |
7 |
digest-terminal-0.9.5_pre20050315 |
8 |
Log: |
9 |
Version bump from the GNUstep overlay |
10 |
(Portage version: 2.1.3.9) |
11 |
|
12 |
Revision Changes Path |
13 |
1.1 gnustep-apps/terminal/files/terminal-0.9.5_pre20060324-size_t.patch |
14 |
|
15 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnustep-apps/terminal/files/terminal-0.9.5_pre20060324-size_t.patch?rev=1.1&view=markup |
16 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnustep-apps/terminal/files/terminal-0.9.5_pre20060324-size_t.patch?rev=1.1&content-type=text/plain |
17 |
|
18 |
Index: terminal-0.9.5_pre20060324-size_t.patch |
19 |
=================================================================== |
20 |
--- Terminal/TerminalParser_Linux.h |
21 |
+++ Terminal/TerminalParser_Linux.h |
22 |
@@ -31,7 +31,7 @@ |
23 |
int utf_count; |
24 |
|
25 |
unsigned char input_buf[16]; |
26 |
- int input_buf_len; |
27 |
+ size_t input_buf_len; |
28 |
|
29 |
#define TITLE_BUF_SIZE 255 |
30 |
char title_buf[TITLE_BUF_SIZE+1]; |
31 |
--- Terminal/TerminalParser_Linux.m |
32 |
+++ Terminal/TerminalParser_Linux.m |
33 |
@@ -1118,9 +1118,9 @@ |
34 |
screen_char_t ch; |
35 |
|
36 |
char *inp; |
37 |
- int in_size; |
38 |
+ size_t in_size; |
39 |
char *outp; |
40 |
- int out_size; |
41 |
+ size_t out_size; |
42 |
int char_width; |
43 |
|
44 |
int ret; |
45 |
@@ -1211,10 +1211,10 @@ |
46 |
if (iconv_input_state) |
47 |
{ |
48 |
unsigned int *inp; |
49 |
- int insize; |
50 |
+ size_t insize; |
51 |
char *outp; |
52 |
char buf[16+1]; |
53 |
- int outsize; |
54 |
+ size_t outsize; |
55 |
int ret; |
56 |
|
57 |
for (i=0;i<l;i++) |
58 |
|
59 |
|
60 |
|
61 |
1.1 gnustep-apps/terminal/files/terminal-0.9.5_pre20060324-solaris.patch |
62 |
|
63 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnustep-apps/terminal/files/terminal-0.9.5_pre20060324-solaris.patch?rev=1.1&view=markup |
64 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnustep-apps/terminal/files/terminal-0.9.5_pre20060324-solaris.patch?rev=1.1&content-type=text/plain |
65 |
|
66 |
Index: terminal-0.9.5_pre20060324-solaris.patch |
67 |
=================================================================== |
68 |
--- GNUmakefile |
69 |
+++ GNUmakefile |
70 |
@@ -44,7 +44,10 @@ |
71 |
\ |
72 |
Label.m |
73 |
|
74 |
-Terminal_LDFLAGS = -lutil |
75 |
+ifeq ($(findstring gnu, $(GNUSTEP_TARGET_OS)), gnu) |
76 |
+ # for forkpty on Linux |
77 |
+ Terminal_LDFLAGS = -lutil |
78 |
+endif |
79 |
|
80 |
Terminal_LOCALIZED_RESOURCE_FILES = Localizable.strings |
81 |
Terminal_LANGUAGES = English Swedish German French Spanish Hungarian Turkish \ |
82 |
--- TerminalView.m |
83 |
+++ TerminalView.m |
84 |
@@ -38,9 +38,11 @@ |
85 |
#include <fcntl.h> |
86 |
#ifndef freebsd |
87 |
#ifndef __NetBSD__ |
88 |
+#if !defined(solaris2) |
89 |
# include <pty.h> |
90 |
#endif |
91 |
#endif |
92 |
+#endif |
93 |
|
94 |
#include <Foundation/NSBundle.h> |
95 |
#include <Foundation/NSDebug.h> |
96 |
@@ -1692,6 +1692,91 @@ |
97 |
master_fd=-1; |
98 |
} |
99 |
|
100 |
+#if defined(solaris2) |
101 |
+#include <stdlib.h> |
102 |
+#include <unistd.h> |
103 |
+#include <fcntl.h> |
104 |
+#include <sys/ioctl.h> |
105 |
+#include <sys/stream.h> |
106 |
+#include <sys/stropts.h> |
107 |
+#include <sys/syscall.h> |
108 |
+#include <stdio.h> |
109 |
+#include <errno.h> |
110 |
+ |
111 |
+#define forkpty my_forkpty |
112 |
+ |
113 |
+/** |
114 |
+ * fork_pty() remplacement for Solaris, it ignores the last two |
115 |
+ * arguments for the moment. |
116 |
+ * http://bugs.mysql.com/bug.php?id=22429 |
117 |
+ */ |
118 |
+static int my_forkpty (int *amaster, |
119 |
+ char *name, |
120 |
+ void *unused1, |
121 |
+ void *unused2) |
122 |
+{ |
123 |
+ int master, slave; |
124 |
+ char *slave_name; |
125 |
+ pid_t pid; |
126 |
+ |
127 |
+ master = open("/dev/ptmx", O_RDWR); |
128 |
+ if (master < 0) |
129 |
+ return -1; |
130 |
+ |
131 |
+ if (grantpt(master) < 0) { |
132 |
+ close (master); |
133 |
+ return -1; |
134 |
+ } |
135 |
+ |
136 |
+ if (unlockpt(master) < 0) { |
137 |
+ close (master); |
138 |
+ return -1; |
139 |
+ } |
140 |
+ |
141 |
+ slave_name = ptsname(master); |
142 |
+ if (slave_name == NULL) { |
143 |
+ close (master); |
144 |
+ return -1; |
145 |
+ } |
146 |
+ |
147 |
+ slave = open(slave_name, O_RDWR); |
148 |
+ if (slave < 0) { |
149 |
+ close (master); |
150 |
+ return -1; |
151 |
+ } |
152 |
+ |
153 |
+ if (ioctl(slave, I_PUSH, "ptem") < 0 || |
154 |
+ ioctl(slave, I_PUSH, "ldterm") < 0) |
155 |
+ { |
156 |
+ close (slave); |
157 |
+ close (master); |
158 |
+ return -1; |
159 |
+ } |
160 |
+ |
161 |
+ if (amaster) |
162 |
+ *amaster = master; |
163 |
+ |
164 |
+ if (name) |
165 |
+ strcpy (name, slave_name); |
166 |
+ |
167 |
+ pid = fork(); |
168 |
+ switch (pid) { |
169 |
+ case -1: /* Error */ |
170 |
+ return -1; |
171 |
+ case 0: /* Child */ |
172 |
+ close(master); |
173 |
+ dup2(slave, STDIN_FILENO); |
174 |
+ dup2(slave, STDOUT_FILENO); |
175 |
+ dup2(slave, STDERR_FILENO); |
176 |
+ return 0; |
177 |
+ default: /* Parent */ |
178 |
+ close (slave); |
179 |
+ return pid; |
180 |
+ } |
181 |
+ |
182 |
+ return -1; |
183 |
+} |
184 |
+#endif |
185 |
|
186 |
-(void) runProgram: (NSString *)path |
187 |
withArguments: (NSArray *)args |
188 |
|
189 |
|
190 |
|
191 |
1.1 gnustep-apps/terminal/files/digest-terminal-0.9.5_pre20060324-r1 |
192 |
|
193 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnustep-apps/terminal/files/digest-terminal-0.9.5_pre20060324-r1?rev=1.1&view=markup |
194 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnustep-apps/terminal/files/digest-terminal-0.9.5_pre20060324-r1?rev=1.1&content-type=text/plain |
195 |
|
196 |
Index: digest-terminal-0.9.5_pre20060324-r1 |
197 |
=================================================================== |
198 |
MD5 306072aee8ffaa4eb496181a82cbf981 terminal-0.9.5_pre20060324.tar.bz2 64141 |
199 |
RMD160 c38df5e80b705c349370165db7ff49398894e167 terminal-0.9.5_pre20060324.tar.bz2 64141 |
200 |
SHA256 7a893eaefcfa80b89fbf083899d7b6ebc85ce6e3559d62b946a7b8ca685680e4 terminal-0.9.5_pre20060324.tar.bz2 64141 |
201 |
|
202 |
|
203 |
|
204 |
-- |
205 |
gentoo-commits@g.o mailing list |