Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 823041

Summary: virtual/libunwind: New virtual to allow selection between sys-libs/libunwind and sys-libs/llvm-libunwid
Product: Gentoo Linux Reporter: Jocelyn Mayer <l_indien>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: UNCONFIRMED ---    
Severity: enhancement CC: gentoo, ionen, jstein, l_indien, me, stuartmeya
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=791349
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Proposal for a fix using a new virtual/libunwind ebuild

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.