Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-misc/bsd-games/files/
Date: Sat, 26 Nov 2016 17:59:19
Message-Id: 1480183146.34995edad0c954187760e28c488f1d99c1cc1954.soap@gentoo
1 commit: 34995edad0c954187760e28c488f1d99c1cc1954
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Sat Nov 26 16:14:12 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 26 17:59:06 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34995eda
7
8 games-misc/bsd-games: remove unused patches
9
10 Closes: https://github.com/gentoo/gentoo/pull/2919
11
12 .../bsd-games/files/bsd-games-2.17-64bit.patch | 43 -----
13 .../bsd-games/files/bsd-games-2.17-gcc43.patch | 16 --
14 .../bsd-games/files/bsd-games-2.17-glibc2.10.patch | 185 ---------------------
15 3 files changed, 244 deletions(-)
16
17 diff --git a/games-misc/bsd-games/files/bsd-games-2.17-64bit.patch b/games-misc/bsd-games/files/bsd-games-2.17-64bit.patch
18 deleted file mode 100644
19 index a56ea84..00000000
20 --- a/games-misc/bsd-games/files/bsd-games-2.17-64bit.patch
21 +++ /dev/null
22 @@ -1,43 +0,0 @@
23 -David Leverton writes about adventure/crc.c:
24 -
25 -The 'adventure' game from the games-misc/bsd-games-2.13 package crashes
26 -when saving the game on AMD64 (and probably other 64-bit systems, but I
27 -haven't checked). Find attached to fix this.
28 -
29 -http://bugs.gentoo.org/show_bug.cgi?id=77032
30 -
31 -
32 -About utmpentry.c:
33 -
34 -the utmpx structure defines the ut_tv member a little differently on
35 -64bit hosts so that a 32bit and 64bit structure can be shared. So the
36 -ut_tv is a custom 32bit structure rather than the native 64bit timeval
37 -structure. Work around is to assign the submembers instead.
38 -
39 -http://bugs.gentoo.org/show_bug.cgi?id=102667
40 -
41 ---- bsd-games/adventure/crc.c
42 -+++ bsd-games/adventure/crc.c
43 -@@ -134,7 +134,8 @@
44 - if (step >= sizeof(crctab) / sizeof(crctab[0]))
45 - step = 0;
46 - }
47 -- crcval = (crcval << 8) ^ crctab[i];
48 -+ /* Mask to 32 bits. */
49 -+ crcval = ((crcval << 8) ^ crctab[i]) & 0xffffffff;
50 - }
51 -- return crcval & 0xffffffff; /* Mask to 32 bits. */
52 -+ return crcval;
53 - }
54 ---- bsd-games/dm/utmpentry.c
55 -+++ bsd-games/dm/utmpentry.c
56 -@@ -291,7 +291,8 @@
57 - e->line[sizeof(e->line) - 1] = '\0';
58 - (void)strncpy(e->host, up->ut_host, sizeof(up->ut_host));
59 - e->name[sizeof(e->host) - 1] = '\0';
60 -- e->tv = up->ut_tv;
61 -+ e->tv.tv_sec = up->ut_tv.tv_sec;
62 -+ e->tv.tv_usec = up->ut_tv.tv_usec;
63 - adjust_size(e);
64 - }
65 - #endif
66
67 diff --git a/games-misc/bsd-games/files/bsd-games-2.17-gcc43.patch b/games-misc/bsd-games/files/bsd-games-2.17-gcc43.patch
68 deleted file mode 100644
69 index 8009454..00000000
70 --- a/games-misc/bsd-games/files/bsd-games-2.17-gcc43.patch
71 +++ /dev/null
72 @@ -1,16 +0,0 @@
73 ---- dab/gamescreen.h.orig
74 -+++ dab/gamescreen.h
75 -@@ -70,9 +70,9 @@
76 - virtual void redraw(void) = 0; // Refresh
77 - virtual int getinput(void) = 0; // Get user input
78 - virtual void bell(void) = 0; // Beep
79 -- virtual void score(size_t p, const PLAYER& p) = 0; // Post current score
80 -- virtual void games(size_t p, const PLAYER& p) = 0; // Post games won
81 -- virtual void total(size_t p, const PLAYER& p) = 0; // Post total score
82 -+ virtual void score(size_t s, const PLAYER& p) = 0; // Post current score
83 -+ virtual void games(size_t s, const PLAYER& p) = 0; // Post games won
84 -+ virtual void total(size_t s, const PLAYER& p) = 0; // Post total score
85 - virtual void ties(const PLAYER& p) = 0; // Post tie games
86 - };
87 -
88 -
89
90 diff --git a/games-misc/bsd-games/files/bsd-games-2.17-glibc2.10.patch b/games-misc/bsd-games/files/bsd-games-2.17-glibc2.10.patch
91 deleted file mode 100644
92 index 2efdc57..00000000
93 --- a/games-misc/bsd-games/files/bsd-games-2.17-glibc2.10.patch
94 +++ /dev/null
95 @@ -1,185 +0,0 @@
96 ---- boggle/boggle/bog.c
97 -+++ boggle/boggle/bog.c
98 -@@ -336,7 +336,7 @@
99 - }
100 -
101 - while (1) {
102 -- if (getline(buf) == NULL) {
103 -+ if (get_line(buf) == NULL) {
104 - if (feof(stdin))
105 - clearerr(stdin);
106 - break;
107 ---- boggle/boggle/extern.h
108 -+++ boggle/boggle/extern.h
109 -@@ -43,7 +43,7 @@
110 - long dictseek(FILE *, long, int);
111 - void findword(void);
112 - void flushin(FILE *);
113 --char *getline(char *);
114 -+char *get_line(char *);
115 - void getword(char *);
116 - int help(void);
117 - int inputch(void);
118 ---- boggle/boggle/mach.c
119 -+++ boggle/boggle/mach.c
120 -@@ -168,7 +168,7 @@
121 - * - doesn't accept words longer than MAXWORDLEN or containing caps
122 - */
123 - char *
124 --getline(q)
125 -+get_line(q)
126 - char *q;
127 - {
128 - int ch, done;
129 ---- cribbage/cribbage.h
130 -+++ cribbage/cribbage.h
131 -@@ -77,7 +77,7 @@
132 - int fifteens(const CARD [], int);
133 - void game(void);
134 - void gamescore(void);
135 --char *getline(void);
136 -+char *get_line(void);
137 - int getuchar(void);
138 - int incard(CARD *);
139 - int infrom(const CARD [], int, const char *);
140 ---- cribbage/crib.c
141 -+++ cribbage/crib.c
142 -@@ -221,7 +221,7 @@
143 - if (!rflag) { /* player cuts deck */
144 - msg(quiet ? "Cut for crib? " :
145 - "Cut to see whose crib it is -- low card wins? ");
146 -- getline();
147 -+ get_line();
148 - }
149 - i = (rand() >> 4) % CARDS; /* random cut */
150 - do { /* comp cuts deck */
151 -@@ -397,7 +397,7 @@
152 - if (!rflag) { /* random cut */
153 - msg(quiet ? "Cut the deck? " :
154 - "How many cards down do you wish to cut the deck? ");
155 -- getline();
156 -+ get_line();
157 - }
158 - i = (rand() >> 4) % (CARDS - pos);
159 - turnover = deck[i + pos];
160 ---- cribbage/io.c
161 -+++ cribbage/io.c
162 -@@ -245,7 +245,7 @@
163 -
164 - retval = FALSE;
165 - rnk = sut = EMPTY;
166 -- if (!(line = getline()))
167 -+ if (!(line = get_line()))
168 - goto gotit;
169 - p = p1 = line;
170 - while (*p1 != ' ' && *p1 != '\0')
171 -@@ -346,7 +346,7 @@
172 -
173 - for (sum = 0;;) {
174 - msg(prompt);
175 -- if (!(p = getline()) || *p == '\0') {
176 -+ if (!(p = get_line()) || *p == '\0') {
177 - msg(quiet ? "Not a number" :
178 - "That doesn't look like a number");
179 - continue;
180 -@@ -528,12 +528,12 @@
181 - }
182 -
183 - /*
184 -- * getline:
185 -+ * get_line:
186 - * Reads the next line up to '\n' or EOF. Multiple spaces are
187 - * compressed to one space; a space is inserted before a ','
188 - */
189 - char *
190 --getline()
191 -+get_line()
192 - {
193 - char *sp;
194 - int c, oy, ox;
195 ---- gomoku/bdisp.c
196 -+++ gomoku/bdisp.c
197 -@@ -241,7 +241,7 @@
198 - }
199 -
200 - int
201 --getline(buf, size)
202 -+get_line(buf, size)
203 - char *buf;
204 - int size;
205 - {
206 ---- gomoku/gomoku.h
207 -+++ gomoku/gomoku.h
208 -@@ -263,7 +263,7 @@
209 -
210 - void bdinit(struct spotstr *);
211 - void init_overlap(void);
212 --int getline(char *, int);
213 -+int get_line(char *, int);
214 - void ask(const char *);
215 - void dislog(const char *);
216 - void bdump(FILE *);
217 ---- gomoku/main.c
218 -+++ gomoku/main.c
219 -@@ -155,7 +155,7 @@
220 - if (inputfp == NULL && test == 0) {
221 - for (;;) {
222 - ask("black or white? ");
223 -- getline(buf, sizeof(buf));
224 -+ get_line(buf, sizeof(buf));
225 - if (buf[0] == 'b' || buf[0] == 'B') {
226 - color = BLACK;
227 - break;
228 -@@ -172,7 +172,7 @@
229 - }
230 - } else {
231 - setbuf(stdout, 0);
232 -- getline(buf, sizeof(buf));
233 -+ get_line(buf, sizeof(buf));
234 - if (strcmp(buf, "black") == 0)
235 - color = BLACK;
236 - else if (strcmp(buf, "white") == 0)
237 -@@ -244,7 +244,7 @@
238 - getinput:
239 - if (interactive)
240 - ask("move? ");
241 -- if (!getline(buf, sizeof(buf))) {
242 -+ if (!get_line(buf, sizeof(buf))) {
243 - curmove = RESIGN;
244 - break;
245 - }
246 -@@ -256,7 +256,7 @@
247 - FILE *fp;
248 -
249 - ask("save file name? ");
250 -- (void)getline(buf, sizeof(buf));
251 -+ (void)get_line(buf, sizeof(buf));
252 - if ((fp = fopen(buf, "w")) == NULL) {
253 - glog("cannot create save file");
254 - goto getinput;
255 -@@ -309,14 +309,14 @@
256 - if (i != RESIGN) {
257 - replay:
258 - ask("replay? ");
259 -- if (getline(buf, sizeof(buf)) &&
260 -+ if (get_line(buf, sizeof(buf)) &&
261 - (buf[0] == 'y' || buf[0] == 'Y'))
262 - goto again;
263 - if (strcmp(buf, "save") == 0) {
264 - FILE *fp;
265 -
266 - ask("save file name? ");
267 -- (void)getline(buf, sizeof(buf));
268 -+ (void)get_line(buf, sizeof(buf));
269 - if ((fp = fopen(buf, "w")) == NULL) {
270 - glog("cannot create save file");
271 - goto replay;
272 -@@ -367,7 +367,7 @@
273 - quit();
274 - top:
275 - ask("cmd? ");
276 -- if (!getline(fmtbuf, sizeof(fmtbuf)))
277 -+ if (!get_line(fmtbuf, sizeof(fmtbuf)))
278 - quit();
279 - switch (*fmtbuf) {
280 - case '\0':