Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 629488

Summary: sys-apps/the_silver_searcher-2.1.0[-lzma] emerge failed error: unknown type name ‘lzma_stream’
Product: Gentoo Linux Reporter: Jonas Stein <jstein>
Component: Current packagesAssignee: Tim Harder <radhermit>
Status: RESOLVED FIXED    
Severity: normal CC: dharding, gentoo-user, jstein, nelo, remi, thev00d00, toralf
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/ggreer/the_silver_searcher/issues/1147
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge--info.txt

Description Jonas Stein gentoo-dev 2017-08-31 19:30:01 UTC
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<----------------------------------------------
Comment 1 Jonas Stein gentoo-dev 2017-08-31 19:31:16 UTC
Created attachment 491238 [details]
emerge--info.txt
Comment 2 Oleh 2017-09-03 00:53:43 UTC
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.
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:

https://github.com/aswild/the_silver_searcher/commit/24995eb239799e52ae09d47b7520d50a3b8b606c.patch

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):

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(-)