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

Bug 662106

Summary: sys-devel/clang: introduce 'utils' use flag for additional utility scripts
Product: Gentoo Linux Reporter: Christian Strahl <c.a.strahl>
Component: Current packagesAssignee: LLVM support project <llvm>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: jstein, mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=662104
Whiteboard:
Package list:
Runtime testing required: ---

Description Christian Strahl 2018-07-25 13:41:27 UTC
At the moment the clang ebuild installs utility scripts which needs additional packages to run.

This is documented via an elog post installation message:

  * You can find additional utility scripts in:
  *   //usr/lib/llvm/6/share/clang
  * To use these scripts, you will need Python 2.7. Some of them are vim
  * integration scripts (with instructions inside). The run-clang-tidy.py
  * scripts requires the following additional package:
  *   dev-python/pyyaml

I suggest to introduce a 'utility' use flag for this package.

If the flag is unset, the utility scripts shouldn't be installed.
If its set, the utility scripts should be installed and the runtime deps should be pulled in as well.

Reproducible: Always
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-08-07 07:42:04 UTC
Not without runtime-switchable flags.  Otherwise, we'll end up having people rebuild whole LLVM just because they missed the flag.