Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/pslib/files: pslib-getline.patch
Date: Mon, 03 Aug 2009 10:27:08
Message-Id: E1MXuky-0007w1-RC@stork.gentoo.org
1 aballier 09/08/03 10:27:04
2
3 Added: pslib-getline.patch
4 Log:
5 Add patch to build with glibc 2.10, by Viktor S <bugzilla@×××××××.org>, bug #277425
6 (Portage version: 2.2_rc33/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-libs/pslib/files/pslib-getline.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/pslib/files/pslib-getline.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/pslib/files/pslib-getline.patch?rev=1.1&content-type=text/plain
13
14 Index: pslib-getline.patch
15 ===================================================================
16 --- src/ps_afm.c 2007-07-11 20:18:00.000000000 +0200
17 +++ src/ps_afm.c.fix 2009-07-11 14:51:05.000000000 +0200
18 @@ -138,7 +138,7 @@
19 return (int)(acc>=0? floor(acc+0.5) : ceil(acc-0.5) ) ;
20 }
21
22 -static int getline(FILE *afmin) {
23 +static int pslib_getline(FILE *afmin) {
24 char *p ;
25 int c ;
26
27 @@ -616,7 +616,7 @@
28 return(-1);
29 }
30
31 - while (getline(fp)) {
32 + while (pslib_getline(fp)) {
33 switch(interest(paramstring())) {
34 case N:
35 handleprotusion(psdoc, metrics) ;
36 @@ -664,7 +664,7 @@
37 /*
38 * Read file line by line.
39 */
40 - while (getline(metric->afmin)) {
41 + while (pslib_getline(metric->afmin)) {
42 switch(interest(paramstring())) {
43 case FontName:
44 metric->fontname = paramnewstring(psdoc) ;
45 @@ -1039,7 +1039,7 @@
46
47 while (1) {
48 while (param == NULL || *param == '\0') {
49 - if (getline(metrics->afmin) == 0)
50 + if (pslib_getline(metrics->afmin) == 0)
51 ps_error(psdoc, PS_RuntimeError, _("Premature end of encoding file."));
52 for (p=buffer; *p != '\0'; p++)
53 if (*p == '%') {
54 @@ -1160,7 +1160,7 @@
55 psdoc->free(psdoc, e);
56 return -1;
57 }
58 - while (getline(metrics->afmin)) {
59 + while (pslib_getline(metrics->afmin)) {
60 for (p=buffer; *p != '\0'; p++)
61 if (*p == '%') {
62 if (ignoreligkern == 0)