View | Details | Raw Unified | Return to bug 181360
Collapse All | Expand All

(-)archivers/quazip/Makefile (-3 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	quazip
4
PORTNAME=	quazip
5
PORTVERSION=	0.5.1
5
PORTVERSION=	0.5.1
6
#PORTREVISION=	0
6
PORTREVISION=	1
7
CATEGORIES=	archivers
7
CATEGORIES=	archivers
8
MASTER_SITES=	SF
8
MASTER_SITES=	SF
9
9
Lines 12-19 Link Here
12
12
13
LICENSE=	LGPL21
13
LICENSE=	LGPL21
14
14
15
BROKEN=		Does not build
16
17
QMAKE_ARGS=	PREFIX=${PREFIX} ${QMAKE_PRO}
15
QMAKE_ARGS=	PREFIX=${PREFIX} ${QMAKE_PRO}
18
QMAKE_PRO=	${WRKSRC}/${PORTNAME}.pro
16
QMAKE_PRO=	${WRKSRC}/${PORTNAME}.pro
19
17
(-)archivers/quazip/files/patch-qztest__testquagzipfile.cpp (-9 / +19 lines)
Lines 1-20 Link Here
1
--- ./qztest/testquagzipfile.cpp.orig	2013-06-15 14:53:18.000000000 +0200
1
--- qztest/testquagzipfile.cpp.orig	2012-09-05 15:24:35.000000000 +0000
2
+++ ./qztest/testquagzipfile.cpp	2013-06-15 14:51:57.000000000 +0200
2
+++ qztest/testquagzipfile.cpp
3
@@ -8,7 +8,7 @@
3
@@ -8,9 +8,9 @@ void TestQuaGzipFile::read()
4
 {
4
 {
5
     QDir curDir;
5
     QDir curDir;
6
     curDir.mkpath("tmp");
6
     curDir.mkpath("tmp");
7
-    voidp gzFile = gzopen("tmp/test.gz", "wb");
7
-    voidp gzFile = gzopen("tmp/test.gz", "wb");
8
+    gzFile_s* /*voidp*/ gzFile = gzopen("tmp/test.gz", "wb");
8
-    gzwrite(gzFile, "test", 4);
9
     gzwrite(gzFile, "test", 4);
9
-    gzclose(gzFile);
10
     gzclose(gzFile);
10
+    gzFile gzf = gzopen("tmp/test.gz", "wb");
11
+    gzwrite(gzf, "test", 4);
12
+    gzclose(gzf);
11
     QuaGzipFile testFile("tmp/test.gz");
13
     QuaGzipFile testFile("tmp/test.gz");
12
@@ -32,7 +32,7 @@
14
     QVERIFY(testFile.open(QIODevice::ReadOnly));
15
     char buf[5];
16
@@ -32,11 +32,11 @@ void TestQuaGzipFile::write()
13
     QCOMPARE(testFile.write("test", 4), static_cast<qint64>(4));
17
     QCOMPARE(testFile.write("test", 4), static_cast<qint64>(4));
14
     testFile.close();
18
     testFile.close();
15
     QVERIFY(!testFile.isOpen());
19
     QVERIFY(!testFile.isOpen());
16
-    voidp gzFile = gzopen("tmp/test.gz", "rb");
20
-    voidp gzFile = gzopen("tmp/test.gz", "rb");
17
+    gzFile_s* /*voidp*/ gzFile = gzopen("tmp/test.gz", "rb");
21
+    gzFile gzf = gzopen("tmp/test.gz", "rb");
18
     char buf[5];
22
     char buf[5];
19
     buf[4] = '\0';
23
     buf[4] = '\0';
20
     QCOMPARE(gzread(gzFile, buf, 5), 4);
24
-    QCOMPARE(gzread(gzFile, buf, 5), 4);
25
-    gzclose(gzFile);
26
+    QCOMPARE(gzread(gzf, buf, 5), 4);
27
+    gzclose(gzf);
28
     QCOMPARE(static_cast<const char*>(buf), "test");
29
     curDir.remove("tmp/test.gz");
30
     curDir.rmdir("tmp");

Return to bug 181360