Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951975 - llvm-utils.eclass: llvm_prepend_path variable "prefix" is unset if no option is given
Summary: llvm-utils.eclass: llvm_prepend_path variable "prefix" is unset if no option ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-24 16:11 UTC by Esteve Varela Colominas
Modified: 2025-03-24 19:09 UTC (History)
1 user (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 Esteve Varela Colominas 2025-03-24 16:11:15 UTC
In llvm-r1.eclass, llvm_prepend_path is called without any arguments other than the LLVM_SLOT. This causes build failures in gentoo prefix, as the PATH variable will now contain an absolute path into /usr, which may contain tools and configuration files with different options.

I think the "prefix" variable in this function should be initialized to ${EPREFIX}, if not be disallowed from being called without specifying a prefixed option (I'm not 100% sure in what circumstances you want BROOT or ESYSROOT, respectively).
Comment 1 Esteve Varela Colominas 2025-03-24 16:12:42 UTC
Worth noting is that in llvm-r2.eclass, the function is called with `-b`, so it might make sense to default on that.

get_llvm_prefix() in llvm-r2.eclass has this same issue.