Package Details: zpipe 201-3

Git Clone URL: https://aur.archlinux.org/zpipe.git (read-only, click to copy)
Package Base: zpipe
Description: Incremental Journaling Backup Utility and Archiver
Upstream URL: http://mattmahoney.net/dc/zpaq.html
Licenses: GPL
Submitter: None
Maintainer: bitwave
Last Packager: bitwave
Votes: 4
Popularity: 0.000000
First Submitted: 2012-10-23 21:57 (UTC)
Last Updated: 2024-04-07 11:35 (UTC)

Dependencies (1)

Required by (0)

Sources (2)

Latest Comments

aperez commented on 2024-04-06 15:34 (UTC) (edited on 2024-04-06 15:39 (UTC) by aperez)

The following patch is enough to make zpipe work with rencent zpaq versions:

diff --git a/PKGBUILD b/PKGBUILD
index 65cbe9d..af3a340 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,9 +11,13 @@ arch=('i686' 'x86_64')
 url="http://mattmahoney.net/dc/zpaq.html"
 license=('GPL')
 depends=('zpaq')
-source=(http://mattmahoney.net/dc/zpipe.201.zip)
-sha512sums=('d126187ca868ccd0092f63bb47ac9fa7ebb6befb3f5de03857ee14b7e5e9177ba7c9b04c9e5a3b7dc3743773d0602882e00d877fa4daca9fab27922c30bda4ee')
+source=(http://mattmahoney.net/dc/zpipe.201.zip zpipe.patch)
+sha512sums=('d126187ca868ccd0092f63bb47ac9fa7ebb6befb3f5de03857ee14b7e5e9177ba7c9b04c9e5a3b7dc3743773d0602882e00d877fa4daca9fab27922c30bda4ee'
+            '6f142369874c0b2c3e443c22e47c490300c8ee7484eb6ab2411570689ca9cfb8d06158841d638cdb0a421fc7c9008ddef8ed8a4126c9d5ced91fdf2181ae57aa')

+prepare() {
+  patch -p1 "$srcdir/zpipe.cpp" zpipe.patch
+}

 build() {
   make -C $srcdir zpipe LDLIBS+="-lzpaq"
diff --git a/zpipe.patch b/zpipe.patch
new file mode 100644
index 0000000..4463083
--- /dev/null
+++ b/zpipe.patch
@@ -0,0 +1,28 @@
+--- a/zpipe.cpp    2010-10-14 21:55:56.000000000 +0300
++++ b/zpipe.cpp    2024-04-06 18:24:20.827965383 +0300
+@@ -74,8 +74,10 @@
+     "Usage: zpipe -option < input > output\n"
+     "Options are:\n"
+     "  -1   compress fastest\n"
+-    "  -2   compress average\n"
+-    "  -3   compress smallest\n"
++    "  -2   ...\n"
++    "  -3   compress average\n"
++    "  -4   ...\n"
++    "  -5   compress smallest\n"
+     "  -d   decompress\n", __DATE__);
+   exit(1);
+ }
+@@ -100,8 +102,10 @@
+   // Compress
+   if (option=='d')
+     libzpaq::decompress(&in, &out);
+-  else if (option>='1' && option<='3')
+-    libzpaq::compress(&in, &out, option-'0');
++  else if (option>='1' && option<='5') {
++    char method[2] = { option, '\0' };
++    libzpaq::compress(&in, &out, method);
++  }
+   else
+     usage();
+   return 0;

bitwave commented on 2020-02-19 09:12 (UTC)

This package is nearly unmaintained upstream. Use the zpaq package if you want to compress with it, otherwise use some modern, maintained stream compressor.

Ataraxy commented on 2018-09-12 06:23 (UTC)

I get a different error:

make: Entering directory '/home/var/ravi/.cache/aurman/zpipe/src'
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DNDEBUG -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now  zpipe.cpp  -lzpaq -o zpipe
zpipe.cpp: In function ‘int main(int, char**)’:
zpipe.cpp:104:40: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
     libzpaq::compress(&in, &out, option-'0');
                                  ~~~~~~^~~~
In file included from zpipe.cpp:58:
/usr/include/libzpaq.h:1501:52: note:   initializing argument 3 of ‘void libzpaq::compress(libzpaq::Reader*, libzpaq::Writer*, const char*, const char*, const char*, bool)’
 void compress(Reader* in, Writer* out, const char* method,
                                        ~~~~~~~~~~~~^~~~~~
make: *** [<builtin>: zpipe] Error 1

haawda commented on 2018-09-01 13:39 (UTC) (edited on 2018-09-01 13:39 (UTC) by haawda)

Same here, and if I change that line to libzpaq::compress(&in, &out, "3");

it builds, but segfaults.

Same with adding -fpermissive to the CXXFLAGS.

oconnor663 commented on 2017-10-04 16:33 (UTC)

I get a compile error from this package: make: Entering directory '/home/jacko/.cache/pacaur/zpipe/src' g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DNDEBUG -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now zpipe.cpp -lzpaq -o zpipe zpipe.cpp: In function ‘int main(int, char**)’: zpipe.cpp:104:40: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive] libzpaq::compress(&in, &out, option-'0'); ~~~~~~^~~~ In file included from zpipe.cpp:58:0: /usr/include/libzpaq.h:1501:6: note: initializing argument 3 of ‘void libzpaq::compress(libzpaq::Reader*, libzpaq::Writer*, const char*, const char*, const char*, bool)’ void compress(Reader* in, Writer* out, const char* method, ^~~~~~~~ make: *** [<builtin>: zpipe] Error 1 make: Leaving directory '/home/jacko/.cache/pacaur/zpipe/src'