Skip to contentSkip to conversation

clamav: break configure breakage after zlib 1.2.10 version bump

PATCH New Peter Korsgaard 1 participant 3 messages Jan 4, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clamav: break configure breakage after zlib 1.2.10 version bump

Fixes:
http://autobuild.buildroot.net/results/b6b/b6ba2dfb42ee41ed0b8304aa8c78645245f3b341/
http://autobuild.buildroot.net/results/eef/eef9a2dda2c172cd600dc74c1e5e60476d92280d/
http://autobuild.buildroot.net/results/827/82798118795aa6334b4dd6eac06777682131da7f/

The clamav configure script by default checks for old zlib versions with known vulnerabilities and errors out if found:

configure: error: The installed zlib version may contain a security bug. Please upgrade to 1.2.2 or later: http://www.zlib.net. You can omit this check with --disable-zlib-vcheck but DO NOT REPORT any stability issues then!

The check is unfortunately not very robust as it simply checks for a version string matching '1.2.1' (which 1.2.10 does):

vuln=grep "ZLIB_VERSION \"1.2.1" $ZLIB_HOME/include/zlib.h

As a workaround, pass --disable-zlib-vcheck to skip this check.

---
 package/clamav/clamav.mk | 1 +
 1 file changed, 1 insertion(+)
package/clamav/clamav.mk +1 -0
index 6a82d66..36ab8be 100644
@@ -26,6 +26,7 @@ CLAMAV_CONF_OPTS = \
 	--with-dbdir=/var/lib/clamav \
 	--with-openssl=$(STAGING_DIR)/usr \
 	--with-zlib=$(STAGING_DIR)/usr \
+	--disable-zlib-vcheck \
 	--disable-rpath \
 	--disable-clamav \
 	--disable-fanotify \
Signature · 1 line
2.10.2
#1 lore raw

PATCH 1/1 clamav: break configure breakage after zlib 1.2.10 version bump

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

subject should naturally have been 's/break configure/fix configure/

Quoted 39 lines

Fixes:
http://autobuild.buildroot.net/results/b6b/b6ba2dfb42ee41ed0b8304aa8c78645245f3b341/
http://autobuild.buildroot.net/results/eef/eef9a2dda2c172cd600dc74c1e5e60476d92280d/
http://autobuild.buildroot.net/results/827/82798118795aa6334b4dd6eac06777682131da7f/

The clamav configure script by default checks for old zlib versions with known vulnerabilities and errors out if found:

configure: error: The installed zlib version may contain a security bug. Please upgrade to 1.2.2 or later: http://www.zlib.net. You can omit this check with --disable-zlib-vcheck but DO NOT REPORT any stability issues then!

The check is unfortunately not very robust as it simply checks for a version string matching '1.2.1' (which 1.2.10 does):

vuln=grep "ZLIB_VERSION \"1.2.1" $ZLIB_HOME/include/zlib.h

As a workaround, pass --disable-zlib-vcheck to skip this check.

---
 package/clamav/clamav.mk | 1 +
 1 file changed, 1 insertion(+)
package/clamav/clamav.mk +1 -0
index 6a82d66..36ab8be 100644
@@ -26,6 +26,7 @@ CLAMAV_CONF_OPTS = \
 	--with-dbdir=/var/lib/clamav \
 	--with-openssl=$(STAGING_DIR)/usr \
 	--with-zlib=$(STAGING_DIR)/usr \
+	--disable-zlib-vcheck \
 	--disable-rpath \
 	--disable-clamav \
 	--disable-fanotify \
Signature · 1 line
2.10.2
Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 clamav: break configure breakage after zlib 1.2.10 version bump

In reply to Peter Korsgaard
Quoted 15 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

Fixes:
http://autobuild.buildroot.net/results/b6b/b6ba2dfb42ee41ed0b8304aa8c78645245f3b341/
http://autobuild.buildroot.net/results/eef/eef9a2dda2c172cd600dc74c1e5e60476d92280d/
http://autobuild.buildroot.net/results/827/82798118795aa6334b4dd6eac06777682131da7f/

The clamav configure script by default checks for old zlib versions with known vulnerabilities and errors out if found:

configure: error: The installed zlib version may contain a security bug. Please upgrade to 1.2.2 or later: http://www.zlib.net. You can omit this check with --disable-zlib-vcheck but DO NOT REPORT any stability issues then!

Quoted 8 lines

The check is unfortunately not very robust as it simply checks for a version string matching '1.2.1' (which 1.2.10 does):

vuln=grep "ZLIB_VERSION \"1.2.1" $ZLIB_HOME/include/zlib.h

As a workaround, pass --disable-zlib-vcheck to skip this check.

Committed after fixing subject, thanks.

Signature · 1 line
Bye, Peter Korsgaard