Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 644024 - app-arch/lz4 support for xxhash.h installation
Summary: app-arch/lz4 support for xxhash.h installation
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Richard Yao (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-01-09 16:59 UTC by Rafal Lalik
Modified: 2018-03-19 20:27 UTC (History)
2 users (show)

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


Attachments
Adds support for xxhash installation (lz4-1.8.0-xxhash.patch,683 bytes, patch)
2018-01-09 16:59 UTC, Rafal Lalik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rafal Lalik 2018-01-09 16:59:19 UTC
Created attachment 513872 [details, diff]
Adds support for xxhash installation

Some external software, like ROOT-6 (available also as sci-physics/root) is checking for system lz4 to omit installation of built-in lz4. However, ROOT is checking for lz4.h, liblz4.so and *xxhash.h* whereas standard lz4 installation doesn't installs xxhash.h. Therefore even if lz4 is installed, ROOT-6 still compiles its own lz4 built-in copy.

I am proposing patch for lz4-1.8.0.ebuild (bump to -r1) which modifies original CMakeLists.txt and, if USE=xxhash is set, installs also this missing header. With this, ROOT-6 properly recognizes system's lz4 and skips its own installation.
Comment 1 Rafal Lalik 2018-01-09 17:01:41 UTC
Of course, sci-physics/root-6.12.04-r1 should now require app-arch/lz4[xxhash]
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-01-13 09:40:18 UTC
This is the wrong solution. xxHash is a separate project, and we shouldn't make random assumptions that packages should link to lz4 for it. If at all, we should look into packaging it separately, and possibly making lz4 link to it.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-01-13 09:41:44 UTC
That said, I think xxHash is generally meant to be bundled with software, supposedly for performance reasons.
Comment 4 Guilherme Amadio gentoo-dev 2018-01-16 14:18:57 UTC
I am aware of this problem, and I agree with Michał. I will package xxhash as its own package (see https://github.com/Cyan4973/xxHash/issues/111). Once that's done I will make ROOT use the externally provided xxhash. The real problem is how LZ4 is currently integrated in ROOT. ROOT uses xxhash independently of LZ4 to hash the compressed contents of ROOT files, so this needs to be resolved upstream too, to avoid this problem on other operating systems as well when LZ4 is present.
Comment 5 Guilherme Amadio gentoo-dev 2018-03-19 18:12:28 UTC
I added xxhash as dev-libs/xxhash. Maybe app-crypt is a better category for it in hindsight. Now sci-physics/root depends on xxhash and we can make app-arch/lz4 depend on it too. Not sure what to do for this bug, but I'm closing bug 644434 as fixed.