Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 823041 - virtual/libunwind: New virtual to allow selection between sys-libs/libunwind and sys-libs/llvm-libunwid
Summary: virtual/libunwind: New virtual to allow selection between sys-libs/libunwind ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement with 2 votes (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-11 09:06 UTC by Jocelyn Mayer
Modified: 2021-12-17 11:10 UTC (History)
6 users (show)

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


Attachments
Proposal for a fix using a new virtual/libunwind ebuild (libunwind-0.ebuild,435 bytes, text/plain)
2021-11-11 09:06 UTC, Jocelyn Mayer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jocelyn Mayer 2021-11-11 09:06:48 UTC
Created attachment 750327 [details]
Proposal for a fix using a new virtual/libunwind ebuild

When compiling with LLVM / clang version 12, we can now use the sys-libs/llvm-libunwind package as default unwinder.
Some package currently using sys-libs/libunwind can benefit of the llvm unwinder when compiled using clang.
In order to simplify the changes for those packages, here's a new virtual/libunwind proposal.
Comment 1 Jocelyn Mayer 2021-11-11 09:07:40 UTC
This is related to net-fs/samba issue ID #791349
Comment 2 Ionen Wolkens gentoo-dev 2021-11-11 09:33:27 UTC
Note that some packages do need libunwind and don't work with llvm-libunwind (or at least, dev-lang/julia does last I know of -- unsure if there's more).

There's also the need to handle automatic rebuilds (subslot change, or to change the provider).

Not that *unwind is something I really looked into, just to say it's not that simple.
Comment 3 Jocelyn Mayer 2021-11-11 11:13:21 UTC
I have to admit I'm not aware of libunwind internal subtilities, then I won't claim this patch is to be applied to all packages using this feature.
But I still think this virtual can be an helper for some selected packages in order to build them using clang.