FreeBSD Bugzilla – Attachment 136215 Details for
Bug 181360
[PATCH] unbreak archivers/quazip
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.22 KB, created by
John Marino
on 2013-08-17 21:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
John Marino
Created:
2013-08-17 21:20:00 UTC
Size:
2.22 KB
patch
obsolete
>Index: archivers/quazip/Makefile >=================================================================== >--- archivers/quazip/Makefile (revision 324691) >+++ archivers/quazip/Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= quazip > PORTVERSION= 0.5.1 >-#PORTREVISION= 0 >+PORTREVISION= 1 > CATEGORIES= archivers > MASTER_SITES= SF > >@@ -12,8 +12,6 @@ > > LICENSE= LGPL21 > >-BROKEN= Does not build >- > QMAKE_ARGS= PREFIX=${PREFIX} ${QMAKE_PRO} > QMAKE_PRO= ${WRKSRC}/${PORTNAME}.pro > >Index: archivers/quazip/files/patch-qztest__testquagzipfile.cpp >=================================================================== >--- archivers/quazip/files/patch-qztest__testquagzipfile.cpp (revision 324691) >+++ archivers/quazip/files/patch-qztest__testquagzipfile.cpp (working copy) >@@ -1,20 +1,30 @@ >---- ./qztest/testquagzipfile.cpp.orig 2013-06-15 14:53:18.000000000 +0200 >-+++ ./qztest/testquagzipfile.cpp 2013-06-15 14:51:57.000000000 +0200 >-@@ -8,7 +8,7 @@ >+--- qztest/testquagzipfile.cpp.orig 2012-09-05 15:24:35.000000000 +0000 >++++ qztest/testquagzipfile.cpp >+@@ -8,9 +8,9 @@ void TestQuaGzipFile::read() > { > QDir curDir; > curDir.mkpath("tmp"); > - voidp gzFile = gzopen("tmp/test.gz", "wb"); >-+ gzFile_s* /*voidp*/ gzFile = gzopen("tmp/test.gz", "wb"); >- gzwrite(gzFile, "test", 4); >- gzclose(gzFile); >+- gzwrite(gzFile, "test", 4); >+- gzclose(gzFile); >++ gzFile gzf = gzopen("tmp/test.gz", "wb"); >++ gzwrite(gzf, "test", 4); >++ gzclose(gzf); > QuaGzipFile testFile("tmp/test.gz"); >-@@ -32,7 +32,7 @@ >+ QVERIFY(testFile.open(QIODevice::ReadOnly)); >+ char buf[5]; >+@@ -32,11 +32,11 @@ void TestQuaGzipFile::write() > QCOMPARE(testFile.write("test", 4), static_cast<qint64>(4)); > testFile.close(); > QVERIFY(!testFile.isOpen()); > - voidp gzFile = gzopen("tmp/test.gz", "rb"); >-+ gzFile_s* /*voidp*/ gzFile = gzopen("tmp/test.gz", "rb"); >++ gzFile gzf = gzopen("tmp/test.gz", "rb"); > char buf[5]; > buf[4] = '\0'; >- QCOMPARE(gzread(gzFile, buf, 5), 4); >+- QCOMPARE(gzread(gzFile, buf, 5), 4); >+- gzclose(gzFile); >++ QCOMPARE(gzread(gzf, buf, 5), 4); >++ gzclose(gzf); >+ QCOMPARE(static_cast<const char*>(buf), "test"); >+ curDir.remove("tmp/test.gz"); >+ curDir.rmdir("tmp");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 181360
: 136215