Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510414 - =net-misc/wget-1.15 fails to use warc compression
Summary: =net-misc/wget-1.15 fails to use warc compression
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-15 17:58 UTC by Techwolf
Modified: 2014-05-16 11:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Techwolf 2014-05-15 17:58:39 UTC
Wget fails to use compression even though libz is on the system and use zlib is active. Why it fails is due to HAVE_LIBZ not being set in config.h.

I have trace the bug down to this patch: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-misc/wget/files/wget-1.15-pkg-config.patch?view=markup

A vanilla(not using portage) build will have HAVE_LIBZ set. While emerge will not have HAVE_LIBZ set.

From the config.h of the emerge build:
/* Define to 1 if you have the `z' library (-lz). */
/* #undef HAVE_LIBZ */


Reproducible: Always

Steps to Reproduce:
1.emerge wget
2.wget <url> --warc-file="test"
3.
Actual Results:  
warc file is "test.warc", not "test.warc.gz"

Expected Results:  
warc file is "test.warc.gz"

I think this patch is the cause: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-misc/wget/files/wget-1.15-pkg-config.patch?view=markup
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-05-15 20:17:52 UTC
I introduced the patch so I will look into this.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-05-16 11:00:10 UTC
+*wget-1.15-r1 (16 May 2014)
+
+  16 May 2014; Lars Wendler <polynomial-c@gentoo.org> -wget-1.15.ebuild,
+  +wget-1.15-r1.ebuild, files/wget-1.15-pkg-config.patch:
+  Fixed compilation with zlib, uuid, pcre and/or openssl (bug #510414). Removed
+  old.
+
Should be fixed now. Thanks for reporting this.