From: Craig Andrews <candrews@gentoo.org>
To: llvm@gentoo.org, gentoo-dev@lists.gentoo.org
Cc: gienah@gentoo.org, gentoo@holzke.net
Subject: [gentoo-dev] How to handle ROC forks of llvm and clang
Date: Fri, 14 Dec 2018 15:00:00 -0500 [thread overview]
Message-ID: <5d774dabaee69376e4780c076fb271a6@gentoo.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]
I'm working on packaging the Radeon Open Compute (ROC) packages for
Gentoo with first goal being to get the OpenCL runtime working.
The OpenCL runtime can be found at:
https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime
It has a mess of dependencies; I can handle most of them (not that it'll
be easy, but at least I know what to do). The 3 troublemakers I'd like
to discuss are the ROC forks of:
llvm: https://github.com/RadeonOpenCompute/llvm/
clang: https://github.com/RadeonOpenCompute/clang/
ldd: https://github.com/RadeonOpenCompute/ldd/
Potential approaches include:
1) Create new packages for each: sys-devel/radeon-open-compute-llvm,
sys-devel/radeon-open-compute-clang, sys-devel/radeon-open-compute-lld
2) Add use flags to existing packages that apply the ROC changes as a
patch
3) Add use flags to existing packages that use ROC archives as the
SRC_URIs
4) Take the approach justxi did in his overlay which is to bundle these
dependencies wherever they're needed; for example, take a look at
https://github.com/justxi/rocm/blob/master/media-libs/ROCm-OpenCL-Runtime/ROCm-OpenCL-Runtime-1.7.0-r3.ebuild
Personally, I dislike (4), as it's contrary to the bundling policy that
Gentoo tries to follow.
For (2), I'm concerned that generating and maintaining that patch may be
really annoying and a lot of work.
For (3), it's not great to have different base archives.
Since ROC will eventually upstream all of it's work, (2) is ideal - but
I have no idea what the timeline on that upstreaming effort may be, and
I can't find anything that gives a hint.
What is the best way forward? And what would be acceptable to the Gentoo
LLVM project?
Thanks,
~Craig
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next reply other threads:[~2018-12-14 20:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-14 20:00 Craig Andrews [this message]
2018-12-14 20:21 ` [gentoo-dev] Re: How to handle ROC forks of llvm and clang Luca Barbato
2018-12-14 21:02 ` [gentoo-dev] " Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5d774dabaee69376e4780c076fb271a6@gentoo.org \
--to=candrews@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
--cc=gentoo@holzke.net \
--cc=gienah@gentoo.org \
--cc=llvm@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox