Created attachment 491236 [details] build.log Emerge fails with -----------8<---------------------------------------------- src/zfile.c:64:9: error: unknown type name ‘lzma_stream’ lzma_stream lzma; ^ src/zfile.c: In function ‘zfile_read’: src/zfile.c:210:5: error: unknown type name ‘lzma_ret’ lzma_ret lzret; ^ src/zfile.c:222:13: error: ‘LZMA_OK’ undeclared (first use in this function) lzret = LZMA_OK; -----------8<----------------------------------------------
Created attachment 491238 [details] emerge--info.txt
by looking at https://github.com/ggreer/the_silver_searcher/commit/2ec37825e589591e01d17a01673b4d2ac2da980c lzma support has to enabled, even if it's optional according to configure.ac before upstream fixes, i think it's make less sense to disable lzma support, assuming xz-utils. is part of basic system.
*** Bug 629494 has been marked as a duplicate of this bug. ***
This patch solved the problem for me: https://github.com/aswild/the_silver_searcher/commit/24995eb239799e52ae09d47b7520d50a3b8b606c.patch I only have the zlib flag enabled.
Hi Tim, shall we ship the patch in Comment 4 or force lzma support? The package is now broken.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e097638d594a9296c20670f63de9e0b4d0906b6 commit 0e097638d594a9296c20670f63de9e0b4d0906b6 Author: Benda Xu <heroxbd@gentoo.org> AuthorDate: 2018-01-13 03:54:49 +0000 Commit: Benda Xu <heroxbd@gentoo.org> CommitDate: 2018-01-13 03:55:03 +0000 sys-apps/the_silver_searcher: fix build when USE=-lzma Suggested-By: Oleg, Nicolas Porcel Closes: https://bugs.gentoo.org/629488 Package-Manager: Portage-2.3.19, Repoman-2.3.6 .../files/the_silver_searcher-2.1.0-lzma.patch | 491 +++++++++++++++++++++ .../the_silver_searcher-2.1.0.ebuild | 4 +- 2 files changed, 494 insertions(+), 1 deletion(-)