Sat Jul 18 03:04:41 2009 UTC ()
Change getline() to get_line()
(smb)
diff -r1.161 -r1.162 pkgsrc/graphics/netpbm/Makefile
diff -r1.67 -r1.68 pkgsrc/graphics/netpbm/distinfo
diff -r0 -r1.1 pkgsrc/graphics/netpbm/patches/patch-ea
diff -r0 -r1.1 pkgsrc/graphics/netpbm/patches/patch-eb
--- pkgsrc/graphics/netpbm/Makefile 2009/06/14 22:58:01 1.161
+++ pkgsrc/graphics/netpbm/Makefile 2009/07/18 03:04:41 1.162
| @@ -1,17 +1,17 @@ | | | @@ -1,17 +1,17 @@ |
1 | # $NetBSD: Makefile,v 1.161 2009/06/14 22:58:01 joerg Exp $ | | 1 | # $NetBSD: Makefile,v 1.162 2009/07/18 03:04:41 smb Exp $ |
2 | | | 2 | |
3 | DISTNAME= netpbm-10.34 | | 3 | DISTNAME= netpbm-10.34 |
4 | PKGREVISION= 1 | | 4 | PKGREVISION= 2 |
5 | CATEGORIES= graphics | | 5 | CATEGORIES= graphics |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netpbm/} | | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netpbm/} |
7 | EXTRACT_SUFX= .tgz | | 7 | EXTRACT_SUFX= .tgz |
8 | | | 8 | |
9 | MAINTAINER= adam@NetBSD.org | | 9 | MAINTAINER= adam@NetBSD.org |
10 | HOMEPAGE= http://netpbm.sourceforge.net/ | | 10 | HOMEPAGE= http://netpbm.sourceforge.net/ |
11 | COMMENT= Toolkit for conversion of images between different formats | | 11 | COMMENT= Toolkit for conversion of images between different formats |
12 | | | 12 | |
13 | MAKE_JOBS_SAFE= no | | 13 | MAKE_JOBS_SAFE= no |
14 | | | 14 | |
15 | PKG_INSTALLATION_TYPES= overwrite pkgviews | | 15 | PKG_INSTALLATION_TYPES= overwrite pkgviews |
16 | PKG_DESTDIR_SUPPORT= user-destdir | | 16 | PKG_DESTDIR_SUPPORT= user-destdir |
17 | | | 17 | |
--- pkgsrc/graphics/netpbm/distinfo 2009/04/07 08:09:06 1.67
+++ pkgsrc/graphics/netpbm/distinfo 2009/07/18 03:04:41 1.68
| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | $NetBSD: distinfo,v 1.67 2009/04/07 08:09:06 hasso Exp $ | | 1 | $NetBSD: distinfo,v 1.68 2009/07/18 03:04:41 smb Exp $ |
2 | | | 2 | |
3 | SHA1 (netpbm-10.34.tgz) = 530458871f9d3dc763a1bf82f227eeb79098c601 | | 3 | SHA1 (netpbm-10.34.tgz) = 530458871f9d3dc763a1bf82f227eeb79098c601 |
4 | RMD160 (netpbm-10.34.tgz) = 57a596efa6cacb981135d554a72cbaffc4cfe72c | | 4 | RMD160 (netpbm-10.34.tgz) = 57a596efa6cacb981135d554a72cbaffc4cfe72c |
5 | Size (netpbm-10.34.tgz) = 2507007 bytes | | 5 | Size (netpbm-10.34.tgz) = 2507007 bytes |
6 | SHA1 (patch-aa) = 28cfd7950d72a041cd4a7fe6660849561846c582 | | 6 | SHA1 (patch-aa) = 28cfd7950d72a041cd4a7fe6660849561846c582 |
7 | SHA1 (patch-ab) = 7781c51e9a8cc9de953540a04e19303244ef8d57 | | 7 | SHA1 (patch-ab) = 7781c51e9a8cc9de953540a04e19303244ef8d57 |
8 | SHA1 (patch-ac) = 0dd7205df79267045d6884ee59e07480e3192341 | | 8 | SHA1 (patch-ac) = 0dd7205df79267045d6884ee59e07480e3192341 |
9 | SHA1 (patch-ad) = b4a5833e18afd5a991aad897674386a3f00c3ee1 | | 9 | SHA1 (patch-ad) = b4a5833e18afd5a991aad897674386a3f00c3ee1 |
10 | SHA1 (patch-ae) = 33a5be2843dd85b530f5e6ba496cd0380cd5edd1 | | 10 | SHA1 (patch-ae) = 33a5be2843dd85b530f5e6ba496cd0380cd5edd1 |
11 | SHA1 (patch-af) = 17b17c99b61efa819d251ea559b689910946b9f8 | | 11 | SHA1 (patch-af) = 17b17c99b61efa819d251ea559b689910946b9f8 |
12 | SHA1 (patch-ag) = 59417c163c0ddc822a887a29e595d38323b87af5 | | 12 | SHA1 (patch-ag) = 59417c163c0ddc822a887a29e595d38323b87af5 |
13 | SHA1 (patch-ah) = f2a542983932edebee2110868e631b394f380b26 | | 13 | SHA1 (patch-ah) = f2a542983932edebee2110868e631b394f380b26 |
14 | SHA1 (patch-ai) = e9b3a473af2251f1779b3cd33b572002064d548a | | 14 | SHA1 (patch-ai) = e9b3a473af2251f1779b3cd33b572002064d548a |
| @@ -24,14 +24,16 @@ SHA1 (patch-ar) = 4e78f0002f568cb85a3dc2 | | | @@ -24,14 +24,16 @@ SHA1 (patch-ar) = 4e78f0002f568cb85a3dc2 |
24 | SHA1 (patch-as) = 3b479e30b5c19ab63045685ec705d600209fa8b4 | | 24 | SHA1 (patch-as) = 3b479e30b5c19ab63045685ec705d600209fa8b4 |
25 | SHA1 (patch-at) = 48cbc777fac07c7cfe12c06a9c37b54031b0c32d | | 25 | SHA1 (patch-at) = 48cbc777fac07c7cfe12c06a9c37b54031b0c32d |
26 | SHA1 (patch-au) = d098d29cd3b62236e3e4a84b1d74de18de85c06f | | 26 | SHA1 (patch-au) = d098d29cd3b62236e3e4a84b1d74de18de85c06f |
27 | SHA1 (patch-av) = ef10c607f40dc5cc64dc77c04b1daca4e0ce34eb | | 27 | SHA1 (patch-av) = ef10c607f40dc5cc64dc77c04b1daca4e0ce34eb |
28 | SHA1 (patch-aw) = bd890324e95fa7bb893d9d5cdab9d5a33dcff777 | | 28 | SHA1 (patch-aw) = bd890324e95fa7bb893d9d5cdab9d5a33dcff777 |
29 | SHA1 (patch-ax) = d50e56191192b4caf423ed081581868bb1a63de8 | | 29 | SHA1 (patch-ax) = d50e56191192b4caf423ed081581868bb1a63de8 |
30 | SHA1 (patch-ay) = 60ab532de6d6ec498ada140f795bba327a562e13 | | 30 | SHA1 (patch-ay) = 60ab532de6d6ec498ada140f795bba327a562e13 |
31 | SHA1 (patch-ca) = b63be9bd38dd182949edf3b892608b72d13c1fa0 | | 31 | SHA1 (patch-ca) = b63be9bd38dd182949edf3b892608b72d13c1fa0 |
32 | SHA1 (patch-cb) = b1be33ae6acfe57bf2f407cd48a6b140c3ddea85 | | 32 | SHA1 (patch-cb) = b1be33ae6acfe57bf2f407cd48a6b140c3ddea85 |
33 | SHA1 (patch-da) = 37b30f7b6674150685d406570802a7250dce51a6 | | 33 | SHA1 (patch-da) = 37b30f7b6674150685d406570802a7250dce51a6 |
34 | SHA1 (patch-db) = 028f1c8b879d640f3f04dfb252c5efca21949031 | | 34 | SHA1 (patch-db) = 028f1c8b879d640f3f04dfb252c5efca21949031 |
35 | SHA1 (patch-dc) = 8ed1365dccf5abb0e158a4f7a65749ff5b244ef3 | | 35 | SHA1 (patch-dc) = 8ed1365dccf5abb0e158a4f7a65749ff5b244ef3 |
36 | SHA1 (patch-dd) = b64f1826549ffd949e19cb986e1e367918ccf5ba | | 36 | SHA1 (patch-dd) = b64f1826549ffd949e19cb986e1e367918ccf5ba |
| | | 37 | SHA1 (patch-ea) = 49a135fe2466636f73e328ec67202dca065ce764 |
| | | 38 | SHA1 (patch-eb) = 5c3dfac08038fce372fabc7c526081bb8051e908 |
37 | SHA1 (patch-ppmdraw) = d901a690f8f21a1af940129d1edef509b369ea1a | | 39 | SHA1 (patch-ppmdraw) = d901a690f8f21a1af940129d1edef509b369ea1a |
$NetBSD: patch-ea,v 1.1 2009/07/18 03:04:41 smb Exp $
--- converter/ppm/xvminitoppm.c.orig 2009-07-17 22:51:05.000000000 -0400
+++ converter/ppm/xvminitoppm.c 2009-07-17 22:51:42.000000000 -0400
@@ -52,7 +52,7 @@
static void
-getline(FILE * const ifP,
+get_line(FILE * const ifP,
char * const buf,
size_t const size) {
@@ -105,7 +105,7 @@
int rc;
bool endOfComments;
- getline(ifP, buf, sizeof(buf));
+ get_line(ifP, buf, sizeof(buf));
if (!STRNEQ(buf, "P7 332", 6))
pm_error("Input is not a XV thumbnail picture. It does not "
@@ -113,14 +113,14 @@
endOfComments = FALSE;
while (!endOfComments) {
- getline(ifP, buf, sizeof(buf));
+ get_line(ifP, buf, sizeof(buf));
if (STRNEQ(buf, "#END_OF_COMMENTS", 16))
endOfComments = TRUE;
else if (STRNEQ(buf, "#BUILTIN", 8))
pm_error("This program does not know how to "
"convert builtin XV thumbnail pictures");
}
- getline(ifP, buf, sizeof(buf));
+ get_line(ifP, buf, sizeof(buf));
rc = sscanf(buf, "%u %u %u", &cols, &rows, &maxval);
if (rc != 3)
pm_error("error parsing dimension info '%s'. "
$NetBSD: patch-eb,v 1.1 2009/07/18 03:04:41 smb Exp $
--- converter/ppm/xpmtoppm.c.orig 2009-07-17 22:51:13.000000000 -0400
+++ converter/ppm/xpmtoppm.c 2009-07-17 22:51:33.000000000 -0400
@@ -121,7 +121,7 @@
static void
-getline(char * const line,
+get_line(char * const line,
size_t const size,
FILE * const stream) {
/*----------------------------------------------------------------------------
@@ -139,7 +139,7 @@
Exit program if the line doesn't fit in the buffer.
-----------------------------------------------------------------------------*/
if (size > sizeof(lastInputLine))
- pm_error("INTERNAL ERROR: getline() received 'size' parameter "
+ pm_error("INTERNAL ERROR: get_line() received 'size' parameter "
"which is out of bounds");
if (backup) {
@@ -355,7 +355,7 @@
int * const transparentP) {
/*----------------------------------------------------------------------------
Read the header of the XPM file on stream 'stream'. Assume the
- getline() stream is presently positioned to the beginning of the
+ get_line() stream is presently positioned to the beginning of the
file and it is a Version 3 XPM file. Leave the stream positioned
after the header.
@@ -386,25 +386,25 @@
*widthP = *heightP = *ncolorsP = *chars_per_pixelP = -1;
/* Read the XPM signature comment */
- getline(line, sizeof(line), stream);
+ get_line(line, sizeof(line), stream);
if (strncmp(line, xpm3_signature, strlen(xpm3_signature)) != 0)
pm_error("Apparent XPM 3 file does not start with '/* XPM */'. "
"First line is '%s'", xpm3_signature);
/* Read the assignment line */
- getline(line, sizeof(line), stream);
+ get_line(line, sizeof(line), stream);
if (strncmp(line, "static char", 11) != 0)
pm_error("Cannot find data structure declaration. Expected a "
"line starting with 'static char', but found the line "
"'%s'.", line);
/* Read the hints line */
- getline(line, sizeof(line), stream);
+ get_line(line, sizeof(line), stream);
/* skip the comment line if any */
if (!strncmp(line, "/*", 2)) {
while (!strstr(line, "*/"))
- getline(line, sizeof(line), stream);
- getline(line, sizeof(line), stream);
+ get_line(line, sizeof(line), stream);
+ get_line(line, sizeof(line), stream);
}
if (sscanf(line, "\"%d %d %d %d\",", widthP, heightP,
ncolorsP, chars_per_pixelP) != 4)
@@ -438,10 +438,10 @@
*transparentP = -1; /* initial value */
for (seqNum = 0; seqNum < *ncolorsP; seqNum++) {
- getline(line, sizeof(line), stream);
+ get_line(line, sizeof(line), stream);
/* skip the comment line if any */
if (!strncmp(line, "/*", 2))
- getline(line, sizeof(line), stream);
+ get_line(line, sizeof(line), stream);
interpretXpm3ColorTableLine(line, seqNum, *chars_per_pixelP,
*colorsP, *ptabP, transparentP);
@@ -456,7 +456,7 @@
pixel ** const colorsP, int ** const ptabP) {
/*----------------------------------------------------------------------------
Read the header of the XPM file on stream 'stream'. Assume the
- getline() stream is presently positioned to the beginning of the
+ get_line() stream is presently positioned to the beginning of the
file and it is a Version 1 XPM file. Leave the stream positioned
after the header.
@@ -475,7 +475,7 @@
/* Read the initial defines. */
processedStaticChar = FALSE;
while (!processedStaticChar) {
- getline(line, sizeof(line), stream);
+ get_line(line, sizeof(line), stream);
if (sscanf(line, "#define %s %d", str1, &v) == 2) {
char *t1;
@@ -523,7 +523,7 @@
/* If there's a monochrome color table, skip it. */
if (!strncmp(t1, "mono", 4)) {
for (;;) {
- getline(line, sizeof(line), stream);
+ get_line(line, sizeof(line), stream);
if (!strncmp(line, "static char", 11))
break;
}
@@ -546,7 +546,7 @@
/* Read color table. */
for (i = 0; i < *ncolorsP; ++i) {
- getline(line, sizeof(line), stream);
+ get_line(line, sizeof(line), stream);
if ((t1 = strchr(line, '"')) == NULL)
pm_error("D error scanning color table");
@@ -582,7 +582,7 @@
"static char ...").
*/
for (;;) {
- getline(line, sizeof(line), stream);
+ get_line(line, sizeof(line), stream);
if (strncmp(line, "static char", 11) == 0)
break;
}
@@ -686,7 +686,7 @@
backup = FALSE;
/* Read the header line */
- getline(line, sizeof(line), stream);
+ get_line(line, sizeof(line), stream);
backup = TRUE; /* back up so next read reads this line again */
rc = sscanf(line, "/* %s */", str1);
@@ -706,7 +706,7 @@
pm_error("Could not get %d bytes of memory for image", totalpixels);
cursor = *dataP;
maxcursor = *dataP + totalpixels - 1;
- getline(line, sizeof(line), stream);
+ get_line(line, sizeof(line), stream);
/* read next line (first line may not always start with comment) */
while (cursor <= maxcursor) {
if (strncmp(line, "/*", 2) == 0) {
@@ -716,7 +716,7 @@
ncolors, ptab, &cursor, maxcursor);
}
if (cursor <= maxcursor)
- getline(line, sizeof(line), stream);
+ get_line(line, sizeof(line), stream);
}
if (ptab) free(ptab);
}