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
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
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: ---


Attachments
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
Details

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: https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/docs/rusticl.rst
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 https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/docs/rusticl.rst, 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: https://github.com/gentoo/gentoo/pull/28209/files#diff-6c473421061cb7b3f14120cd9f34d9e88cb35c258b00e1c776909a25eab0840fR404

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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9797e687d9bf332f49dc448791510e85efc20257

commit 9797e687d9bf332f49dc448791510e85efc20257
Author:     Niccolò Belli <niccolo.belli@linuxsystems.it>
AuthorDate: 2022-11-10 10:55:29 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
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
    
    Bug: https://bugs.gentoo.org/880615
    Closes: https://bugs.gentoo.org/872677
    Signed-off-by: Niccolò Belli <niccolo.belli@linuxsystems.it>
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 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(-)