Package: wit
Version: 2.31a-1
Severity: normal
Tags: patch

Unfortunately:

!! wit: ERROR #15 [INVALID GCZ] in SetupReadGCZ() @ src/lib-gcz.c#475
!!      Invalid GCZ file: ./WW.gcz

1 object scanned, 1 supported file found.
* COPY/SCRUB 1/1 WIA:WW.wia -> GCZ:/tmp/WW.gcz
!! wit: ERROR #40 [NOT IMPLEMENTED YET] in ZLIB_MISSING() @ src/lib-gcz.c#180
!!      GCZ support is not implemented, because of missing `zlibĀ“ support: 
/tmp/.WW.gcz.1ODuVG.tmp
wit: Command 'COPY' returns with status #40 [NOT IMPLEMENTED YET]

Seems the fix is quite easy. See attachment.

Also I noticed a small warning while trying to build a package:

dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/wit/usr/bin/wfuse was not linked against libdl.so.2 (it uses none
of the library's symbols)

I tried to fix that, see second patch (even if that probably doesn't
change anything in the dependencies).

Regards, Tobias


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages wit depends on:
ii  libbz2-1.0  1.0.6-8
ii  libc6       2.21-9
ii  libfuse2    2.9.5-1
ii  libmhash2   0.9.9.9-7

wit recommends no packages.

wit suggests no packages.

-- no debconf information
>From 2d62c4f593254208dae982ebbef680769370d90c Mon Sep 17 00:00:00 2001
From: Tobias Gruetzmacher <tobias-...@23.gs>
Date: Tue, 23 Feb 2016 22:06:17 +0100
Subject: [PATCH 1/2] Add zlib support.

---
 debian/control   | 2 +-
 debian/rules     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index f380840..7617826 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: wit
 Section: utils
 Priority: extra
 Maintainer: Michael Stapelberg <stapelb...@debian.org>
-Build-Depends: debhelper (>= 8.0.0), dpkg-dev (>= 1.16.1~), libmhash-dev, libbz2-dev, libfuse-dev
+Build-Depends: debhelper (>= 8.0.0), dpkg-dev (>= 1.16.1~), libmhash-dev, libbz2-dev, libfuse-dev, zlib1g-dev
 Standards-Version: 3.9.4
 Homepage: http://wit.wiimm.de/
 Vcs-Git: git://anonscm.debian.org/collab-maint/wit.git
diff --git a/debian/rules b/debian/rules
index 9d0d250..633cb0c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -31,7 +31,7 @@ override_dh_auto_clean:
 override_dh_auto_test:
 
 override_dh_auto_build:
-	$(MAKE) INSTALL_PATH=$(CURDIR)/debian/wit/usr
+	$(MAKE) INSTALL_PATH=$(CURDIR)/debian/wit/usr HAVE_ZLIB=1
 	$(MAKE) INSTALL_PATH=$(CURDIR)/debian/wit/usr doc
 
 override_dh_auto_install:
-- 
2.7.0

>From 269782faa52bf4e252730b26f770d3a6bf4669d5 Mon Sep 17 00:00:00 2001
From: Tobias Gruetzmacher <tobias-...@23.gs>
Date: Tue, 23 Feb 2016 22:45:33 +0100
Subject: [PATCH 2/2] Don't link wfuse against libdl.

---
 .../0003-Don-t-link-wfuse-against-libdl.patch      | 22 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 23 insertions(+)
 create mode 100644 debian/patches/0003-Don-t-link-wfuse-against-libdl.patch

diff --git a/debian/patches/0003-Don-t-link-wfuse-against-libdl.patch b/debian/patches/0003-Don-t-link-wfuse-against-libdl.patch
new file mode 100644
index 0000000..9a1ec9b
--- /dev/null
+++ b/debian/patches/0003-Don-t-link-wfuse-against-libdl.patch
@@ -0,0 +1,22 @@
+From: Tobias Gruetzmacher <tobias-...@23.gs>
+Date: Tue, 23 Feb 2016 22:26:50 +0100
+Subject: Don't link wfuse against libdl.
+
+It's not necessary.
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 3ebb4d4..862ceef 100644
+--- a/Makefile
++++ b/Makefile
+@@ -158,7 +158,7 @@ endif
+ TOPT_wit	:= $(OPT_STATIC)
+ TOPT_wwt	:= $(OPT_STATIC)
+ TOPT_wdf	:= $(OPT_STATIC)
+-TOPT_wfuse	:= -lfuse -lpthread -ldl
++TOPT_wfuse	:= -lfuse -lpthread
+ 
+ #TOPT_ALL	:= $(TOPT_wit) $(TOPT_wwt) $(TOPT_wdf) $(TOPT_wfuse)
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 46f0563..a969d11 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 use-libbz2-and-mhash.patch
 fix-usr-local.patch
+0003-Don-t-link-wfuse-against-libdl.patch
-- 
2.7.0

Reply via email to