Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 629488 - sys-apps/the_silver_searcher-2.1.0[-lzma] emerge failed error: unknown type name ‘lzma_stream’
Summary: sys-apps/the_silver_searcher-2.1.0[-lzma] emerge failed error: unknown type n...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tim Harder
: 629494 (view as bug list)
Depends on:
Reported: 2017-08-31 19:30 UTC by Jonas Stein
Modified: 2018-01-13 03:55 UTC (History)
7 users (show)

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

build.log (build.log,14.89 KB, text/x-log)
2017-08-31 19:30 UTC, Jonas Stein
emerge--info.txt (ebuild-info,5.61 KB, text/plain)
2017-08-31 19:31 UTC, Jonas Stein

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Stein gentoo-dev 2017-08-31 19:30:01 UTC
Created attachment 491236 [details]

Emerge fails with

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;
Comment 1 Jonas Stein gentoo-dev 2017-08-31 19:31:16 UTC
Created attachment 491238 [details]
Comment 2 Oleh 2017-09-03 00:53:43 UTC
by looking at
lzma support has to enabled, even if it's optional according to
before upstream fixes, i think it's make less sense to disable lzma support, assuming xz-utils. is part of basic system.
Comment 3 Brian Evans (RETIRED) gentoo-dev 2017-09-07 15:16:52 UTC
*** Bug 629494 has been marked as a duplicate of this bug. ***
Comment 4 Nicolas Porcel 2017-09-17 22:29:37 UTC
This patch solved the problem for me:

I only have the zlib flag enabled.
Comment 5 Benda Xu gentoo-dev 2017-11-05 02:06:54 UTC
Hi Tim, shall we ship the patch in Comment 4 or force lzma support?

The package is now broken.
Comment 6 Larry the Git Cow gentoo-dev 2018-01-13 03:55:16 UTC
The bug has been closed via the following commit(s):

commit 0e097638d594a9296c20670f63de9e0b4d0906b6
Author:     Benda Xu <>
AuthorDate: 2018-01-13 03:54:49 +0000
Commit:     Benda Xu <>
CommitDate: 2018-01-13 03:55:03 +0000

    sys-apps/the_silver_searcher: fix build when USE=-lzma
    Suggested-By: Oleg, Nicolas Porcel
    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(-)