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...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tim Harder
URL: https://github.com/ggreer/the_silver_...
Whiteboard:
Keywords:
: 629494 (view as bug list)
Depends on:
Blocks:
 
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: ---


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

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