Date: Mon, 22 Jul 2013 23:36:09 GMT From: John Marino <freebsd@marino.st> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/180748: [PATCH] Fix for lang/ofc provided Message-ID: <201307222336.r6MNa9I1085138@oldred.freebsd.org> Resent-Message-ID: <201307222340.r6MNe1Ka009545@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 180748 >Category: ports >Synopsis: [PATCH] Fix for lang/ofc provided >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 22 23:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: John Marino >Release: >Organization: >Environment: >Description: lang/ofc is does not work with zlib 1.2.7 and higher. Now that FreeBSD (and DragonFly) come with zlib 1.2.8, lang/ofc no longer builds. Add the two attached patches to restore the build by fixing zlib interface. Passes 4X redports with these patches: https://redports.org/buildarchive/20130722221400-45212/ >How-To-Repeat: >Fix: Patch attached with submission follows: Index: lang/ofc/files/patch-ofc_DGZipFile.h =================================================================== --- lang/ofc/files/patch-ofc_DGZipFile.h (revision 0) +++ lang/ofc/files/patch-ofc_DGZipFile.h (working copy) @@ -0,0 +1,19 @@ +--- ofc/DGZipFile.h.orig 2008-08-02 15:15:11.000000000 +0000 ++++ ofc/DGZipFile.h +@@ -46,6 +46,7 @@ + #endif + + #ifdef HAVE_DGZIPFILE ++#include <zlib.h> + + // the seek origins + #define DGZ_SEEK_SET (0) // Seek from the start of the file +@@ -114,7 +115,7 @@ + @interface DGZipFile : Object <DTextReadable,DTextWritable,DDataReadable,DDataWritable> + { + @private +- void *_file; // the file pointer ++ gzFile _file; // the file pointer + } + + #endif Property changes on: lang/ofc/files/patch-ofc_DGZipFile.h ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: lang/ofc/files/patch-ofc_DGZipFile.m =================================================================== --- lang/ofc/files/patch-ofc_DGZipFile.m (revision 0) +++ lang/ofc/files/patch-ofc_DGZipFile.m (working copy) @@ -0,0 +1,22 @@ +--- ofc/DGZipFile.m.orig 2008-08-02 05:58:14.000000000 +0000 ++++ ofc/DGZipFile.m +@@ -31,10 +31,6 @@ + #include <stdio.h> + #include <string.h> + +-#ifdef HAVE_DGZIPFILE +-#include <zlib.h> +-#endif +- + #include "ofc/DDatable.h" + + +@@ -123,7 +119,7 @@ + @interface DGZipFile : Object <DTextReadable,DTextWritable,DDataReadable,DDataWritable> + { + @private +- void *_file; // the file pointer ++ gzFile _file; // the file pointer + } + + #endif Property changes on: lang/ofc/files/patch-ofc_DGZipFile.m ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307222336.r6MNa9I1085138>