Package: libclamunrar
Version: 0.99-4
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu artful ubuntu-patch

Dear Maintainer,

libclamunrar FTBFS when compiled against zlib 1.2.10 or newer, due to a
faulty configure check:
https://bugzilla.clamav.net/show_bug.cgi?id=11711

In Ubuntu, the attached patch (cherrypicked from upstream) was applied
to achieve the following:

  * debian/patches/bb111711.patch: fix FTBFS caused by zlib version
    check, cherrypicked from upstream.

Thanks for considering the patch.

-- System Information:
Debian Release: stretch/sid
  APT prefers xenial-updates
  APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 
'xenial'), (100, 'xenial-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-83-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru libclamunrar-0.99/debian/files libclamunrar-0.99/debian/files
--- libclamunrar-0.99/debian/files	1969-12-31 16:00:00.000000000 -0800
+++ libclamunrar-0.99/debian/files	2017-08-23 11:31:57.000000000 -0700
@@ -0,0 +1 @@
+libclamunrar_0.99-4ubuntu1_source.buildinfo non-free/libs extra
diff -Nru libclamunrar-0.99/debian/patches/bb111711.patch libclamunrar-0.99/debian/patches/bb111711.patch
--- libclamunrar-0.99/debian/patches/bb111711.patch	1969-12-31 16:00:00.000000000 -0800
+++ libclamunrar-0.99/debian/patches/bb111711.patch	2017-08-23 11:25:21.000000000 -0700
@@ -0,0 +1,25 @@
+From f0bcd186190fe6e67b3f0eaaceb7a99aa6a98865 Mon Sep 17 00:00:00 2001
+From: Steven Morgan <stevm...@cisco.com>
+Date: Thu, 5 Jan 2017 12:30:35 -0500
+Subject: [PATCH] bb111711 - fix zlib version check - patch by Daniel J. Luke.
+
+---
+ m4/reorganization/libs/libz.m4 | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/m4/reorganization/libs/libz.m4 b/m4/reorganization/libs/libz.m4
+index b5c74147b..f7b67ca10 100644
+--- a/m4/reorganization/libs/libz.m4
++++ b/m4/reorganization/libs/libz.m4
+@@ -29,9 +29,9 @@ then
+     AC_MSG_ERROR([Please install zlib and zlib-devel packages])
+ else
+ 
+-    vuln=`grep "ZLIB_VERSION \"1.2.0" $ZLIB_HOME/include/zlib.h`
++    vuln=`grep "ZLIB_VERSION \"1.2.0\"" $ZLIB_HOME/include/zlib.h`
+     if test -z "$vuln"; then
+-	vuln=`grep "ZLIB_VERSION \"1.2.1" $ZLIB_HOME/include/zlib.h`
++	vuln=`grep "ZLIB_VERSION \"1.2.1\"" $ZLIB_HOME/include/zlib.h`
+     fi
+ 
+     if test -n "$vuln"; then
diff -Nru libclamunrar-0.99/debian/patches/series libclamunrar-0.99/debian/patches/series
--- libclamunrar-0.99/debian/patches/series	2017-07-04 15:11:06.000000000 -0700
+++ libclamunrar-0.99/debian/patches/series	2017-08-23 11:25:21.000000000 -0700
@@ -4,3 +4,4 @@
 drop_openssl_check.patch
 bb11601_pt2.patch
 unrar-adding-proposed-changes-to-fix-RAR-VMSF_DELTA-.patch
+bb111711.patch

Reply via email to