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
I introduced the patch so I will look into this.
+*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.