Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 872677 - media-libs/mesa-9999: add use flag for rusticl
Summary: media-libs/mesa-9999: add use flag for rusticl
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 4 votes (vote)
Assignee: Gentoo X packagers
Keywords: PullRequest
Depends on:
Reported: 2022-09-24 18:34 UTC by Linus Lotz
Modified: 2023-05-12 17:18 UTC (History)
3 users (show)

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

mesa-9999.ebuild with rusticl IUSE, RDEPEND and emesonargs (mesa-9999.ebuild,12.14 KB, text/plain)
2023-03-21 03:26 UTC, Jason Oliveira

Note You need to log in before you can comment on or make changes to this bug.
Description Linus Lotz 2022-09-24 18:34:30 UTC
The rust based opencl implementation rusticl was merged in mesa a while ago, but it is not possible to build mesa with rusticl, as there is no use flag for it.

Reproducible: Always

The documentation for building mesa with rusticl:
Comment 1 Jason Oliveira 2023-03-21 03:26:09 UTC
Created attachment 858507 [details]
mesa-9999.ebuild with rusticl IUSE, RDEPEND and emesonargs

According to, rustfmt is only needed for CI and debug, but bindgen is pulling it in, and the link says bindgen is required. 

Required Useflags:

dev-lang/rust rustfmt                                                                          
virtual/rust rustfmt                                                                           
media-libs/mesa rusticl
Comment 2 darkbasic 2023-03-21 11:04:23 UTC
Weird, PKG_CONFIG_LIBDIR needs to point to /usr/lib/llvm/15/lib64/pkgconfig or LLVMSPIRVLib won't be found:

Does it work for you without it?
Comment 3 Larry the Git Cow gentoo-dev 2023-05-12 17:18:54 UTC
The bug has been closed via the following commit(s):

commit 9797e687d9bf332f49dc448791510e85efc20257
Author:     Niccolò Belli <>
AuthorDate: 2022-11-10 10:55:29 +0000
Commit:     Matt Turner <>
CommitDate: 2023-05-12 17:18:42 +0000

    media-libs/mesa: use rusticl instead of clover
    This has two notable regressions:
      - No multilib support
      - No R600 support
    Signed-off-by: Niccolò Belli <>
    Signed-off-by: Matt Turner <>

 media-libs/mesa/mesa-9999.ebuild        | 32 +++++++++++++++++---------------
 media-libs/mesa/metadata.xml            |  2 +-
 profiles/arch/x86/package.use.mask      |  4 ++++
 profiles/features/wd40/package.use.mask |  4 ++++
 4 files changed, 26 insertions(+), 16 deletions(-)