Hello!

I tried install sysutils/nut and it requires installing graphics/gd which
fails.

My system is freshly upgraded to 4.4 i386 release. Nothing special. Mainly
firewall.

Is it problem with me or something else? I'm not very good with ports
yet...

I did as http://www.openbsd.org/ports.html suggested and first is pasted
portslogger and then .rej file.

Hannu Vuolasaho

+++ Fri Dec 26 20:20:09 EET 2008
===>  Cleaning for gd-2.0.35
===>  Checking files for gd-2.0.35
`/usr/ports/distfiles/gd-2.0.35.tar.gz' is up to date.
>> (SHA256) gd-2.0.35.tar.gz: OK
===>  gd-2.0.35 depends on: libtool-* - found
===>  gd-2.0.35 depends on: jpeg-* - found
===>  gd-2.0.35 depends on: png-* - found
===>  gd-2.0.35 depends on: libiconv-* - found
===>  Verifying specs: jpeg.>=62 png.>=2 iconv.>=2 jpeg.>=62 png.>=2
iconv.>=2 c
 expat fontconfig freetype m z c expat fontconfig freetype m z
===>  found jpeg.62.0 png.7.0 iconv.5.0 c.48.0 expat.9.0 fontconfig.5.1
freetype.16.1 m.3.0 z.4.1
===>  Extracting for gd-2.0.35
===>  Patching for gd-2.0.35
3 out of 5 hunks failed--saving rejects to gd_gif_in.c.rej
***>   patch-gd_gif_in_c did not apply cleanly
*** Error code 1

Stop in /usr/ports/graphics/gd (line 2066 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/graphics/gd (line 1422 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/graphics/gd (line 1962 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/graphics/gd (line 1452 of
/usr/ports/infrastructure/mk/bsd.port.mk).
--- Fri Dec 26 20:20:34 EET 2008


@@ -118,6 +118,7 @@
        char            version[4];
        /* 2.0.28: threadsafe storage */
        int ZeroDataBlock = FALSE;
+       int             maxcount = 1024;

        gdImagePtr im = 0;
        if (! ReadOK(fd,buf,6)) {
@@ -269,6 +272,7 @@
 DoExtension(gdIOCtx *fd, int label, int *Transparent, int
*ZeroDataBlockP)
 {
        static unsigned char     buf[256];
+       int                      maxcount = 1024;

        switch (label) {
        case 0xf9:              /* Graphic Control Extension */
@@ -281,13 +285,13 @@
                if ((buf[0] & 0x1) != 0)
                        *Transparent = buf[3];

-               while (GetDataBlock(fd, (unsigned char*) buf,
ZeroDataBlockP) != 0)
+               while (GetDataBlock(fd, (unsigned char*) buf,
ZeroDataBlockP) != 0 && --maxcount >= 0)
                        ;
                return FALSE;
        default:
                break;
        }
-       while (GetDataBlock(fd, (unsigned char*) buf, ZeroDataBlockP) !=
0)
+       while (GetDataBlock(fd, (unsigned char*) buf, ZeroDataBlockP) != 0
&& --maxcount >= 0)
                ;

        return FALSE;



Reply via email to