]> git.pld-linux.org Git - packages/libreoffice.git/blame - openoffice-system-zlib.patch
- use system zlib... though no idea if it works... I can't check :(
[packages/libreoffice.git] / openoffice-system-zlib.patch
CommitLineData
dc27e5fc
MM
1--- oo_1.0.2_src.orig/zlib/prj/d.lst Mon Apr 22 17:26:14 2002
2+++ oo_1.0.2_src/zlib/prj/d.lst Sun Feb 23 00:15:32 2003
3@@ -1,9 +1,10 @@
4 mkdir: %_DEST%\inc%_EXT%\external\zlib
5
6-..\%__SRC%\inc\zlib.h %_DEST%\inc%_EXT%\external\zlib\zlib.h
7-..\%__SRC%\inc\zconf.h %_DEST%\inc%_EXT%\external\zconf.h
8+\usr\include\zlib.h %_DEST%\inc%_EXT%\external\zlib\zlib.h
9+\usr\include\zconf.h %_DEST%\inc%_EXT%\external\zconf.h
10+\usr\include\zutil.h %_DEST%\inc%_EXT%\external\zutil.h
11
12-..\%__SRC%\lib\libzlib.a %_DEST%\lib%_EXT%\libzlib.a
13+\lib\libz.so* %_DEST%\lib%_EXT%\libz.so*
14 ..\%__SRC%\slb\zlib.lib %_DEST%\lib%_EXT%\zlib.lib
15 ..\%__SRC%\slb\zlib.lin %_DEST%\lib%_EXT%\zlib.lin
16
17--- oo_1.0.2_src/solenv/inc/libs.mk~ Thu Feb 13 17:46:00 2003
18+++ oo_1.0.2_src/solenv/inc/libs.mk Sun Feb 23 00:25:42 2003
19@@ -171,7 +171,7 @@
20 LNGLIB=-llng$(OFFICEUPD)$(DLLPOSTFIX)
21 EXPAT3RDLIB=-lexpat_xmlparse -lexpat_xmltok
22 EXPATASCII3RDLIB=-lascii_expat_xmlparse -lexpat_xmltok
23-ZLIB3RDLIB=-lzlib
24+ZLIB3RDLIB=-lz
25 JPEG3RDLIB=-ljpeglib
26 NEON3RDLIB=-lneon
27 BERKELEYLIB=-ldb-4.1
28--- oo_1.0.2_src.orig/package/source/zipapi/Deflater.cxx Thu Nov 15 20:16:11 2001
29+++ oo_1.0.2_src/package/source/zipapi/Deflater.cxx Tue Feb 25 15:53:38 2003
30@@ -150,7 +150,7 @@
31 pStream->avail_in = nLength;
32 pStream->avail_out = nNewLength;
33
34- nResult = z_deflateParams(pStream, nLevel, nStrategy);
35+ nResult = deflateParams(pStream, nLevel, nStrategy);
36 switch (nResult)
37 {
38 case Z_OK:
39@@ -174,7 +174,7 @@
40 pStream->avail_in = nLength;
41 pStream->avail_out = nNewLength;
42
43- nResult = z_deflate(pStream, bFinish ? Z_FINISH : Z_NO_FLUSH);
44+ nResult = deflate(pStream, bFinish ? Z_FINISH : Z_NO_FLUSH);
45 switch (nResult)
46 {
47 case Z_STREAM_END:
48@@ -220,7 +220,7 @@
49 {
50 // do error handling
51 }
52- sal_Int32 nResult = z_deflateSetDictionary(pStream, (const unsigned char*)rBuffer.getConstArray()+nOffset, nLength);
53+ sal_Int32 nResult = deflateSetDictionary(pStream, (const unsigned char*)rBuffer.getConstArray()+nOffset, nLength);
54 }
55 void SAL_CALL Deflater::setDictionary( const uno::Sequence< sal_Int8 >& rBuffer )
56 {
57@@ -230,7 +230,7 @@
58 VOS_DEBUG_ONLY("No stream!");
59
60 }
61- sal_Int32 nResult = z_deflateSetDictionary(pStream, (const unsigned char*)rBuffer.getConstArray(), rBuffer.getLength());
62+ sal_Int32 nResult = deflateSetDictionary(pStream, (const unsigned char*)rBuffer.getConstArray(), rBuffer.getLength());
63 }
64 void SAL_CALL Deflater::setStrategy( sal_Int32 nNewStrategy )
65 {
66@@ -295,7 +295,7 @@
67 }
68 void SAL_CALL Deflater::reset( )
69 {
70- z_deflateReset(pStream);
71+ deflateReset(pStream);
72 bFinish = sal_False;
73 bFinished = sal_False;
74 nOffset = nLength = 0;
75@@ -304,7 +304,7 @@
76 {
77 if (pStream != NULL)
78 {
79- z_deflateEnd(pStream);
80+ deflateEnd(pStream);
81 delete pStream;
82 }
83 pStream = NULL;
84--- oo_1.0.2_src.orig/package/source/zipapi/Inflater.cxx Thu Nov 15 20:17:02 2001
85+++ oo_1.0.2_src/package/source/zipapi/Inflater.cxx Tue Feb 25 16:17:19 2003
86@@ -133,7 +133,7 @@
87 {
88 // do error handling
89 }
90- z_inflateSetDictionary(pStream, (const unsigned char*)rBuffer.getConstArray() + nNewOffset,
91+ inflateSetDictionary(pStream, (const unsigned char*)rBuffer.getConstArray() + nNewOffset,
92 nNewLength);
93 }
94
95@@ -143,7 +143,7 @@
96 {
97 // do error handling
98 }
99- z_inflateSetDictionary(pStream, (const unsigned char*)rBuffer.getConstArray(),
100+ inflateSetDictionary(pStream, (const unsigned char*)rBuffer.getConstArray(),
101 rBuffer.getLength());
102 }
103
104@@ -202,7 +202,7 @@
105
106 void SAL_CALL Inflater::reset( )
107 {
108- z_inflateReset(pStream);
109+ inflateReset(pStream);
110 bFinish = bNeedDict = bFinished = sal_False;
111 nOffset = nLength = 0;
112 }
113@@ -211,7 +211,7 @@
114 {
115 if (pStream != NULL)
116 {
117- z_inflateEnd(pStream);
118+ inflateEnd(pStream);
119 delete pStream;
120 }
121 pStream = NULL;
122@@ -225,7 +225,7 @@
123 pStream->next_out = reinterpret_cast < unsigned char* > ( rBuffer.getArray() + nNewOffset );
124 pStream->avail_out = nNewLength;
125
126- nResult = ::z_inflate(pStream, bFinish ? Z_SYNC_FLUSH : Z_PARTIAL_FLUSH);
127+ nResult = ::inflate(pStream, bFinish ? Z_SYNC_FLUSH : Z_PARTIAL_FLUSH);
128
129 switch (nResult)
130 {
This page took 0.042746 seconds and 4 git commands to generate.