Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479998 - sys-devel/llvm: install to /usr/lib*/llvm or /usr/lib?
Summary: sys-devel/llvm: install to /usr/lib*/llvm or /usr/lib?
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 471330
  Show dependency tree
 
Reported: 2013-08-06 23:02 UTC by Michał Górny
Modified: 2013-12-28 10:02 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-08-06 23:02:48 UTC
We're currently hacking LLVM to install it to /usr/lib/llvm. I don't know how beneficial it is in the current (unversioned) form but one thing I know is that it causes issues.

Most importantly, changing the install dir enforces a fair bit of hackery on our side to change the libdir and add RPATHs to compiled executables and llvm-config. In the future, more hacks may become necessary to support that.

On the other hand, with that configuration we're not far from supporting installing multiple slots of LLVM in quite an easy way (bug 471330). We'd just have to add version to that directory (and since we're forcing it, it wouldn't be that hard), then hack the header-dir and llvm-config a bit.

Yet another alternative (but I haven't looked at the possibility of doing that) is to install slots in custom prefixes. That is, make whole llvm land in /usr/lib/llvm-${SLOT}/{bin,include,lib32,lib64}. I think getting llvm-config to output proper flags for that would be relatively easy. Hackery with executables would be worse.

When considering slotting, please think of how it was like with boost. I don't really want to introduce yet another semi-working mess, and waste my time improving it so that someone removes it the next day I finally achieved it.

How should we proceed?
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-10-12 12:32:40 UTC
Switched to /usr/lib with the multilib conversion some time ago.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-10-12 12:33:03 UTC
Oh wait, I moved clang and this is about llvm.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-12-28 10:02:53 UTC
Well, I've started moving stuff to /usr/lib*.