Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 722992 - "llvm-libunwind" USE flag for usage of sys-libs/llvm-libunwind
Summary: "llvm-libunwind" USE flag for usage of sys-libs/llvm-libunwind
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal with 1 vote (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-05-14 10:36 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2021-06-17 10:59 UTC (History)
3 users (show)

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


Attachments
Patch for sys-libs/libcxxabi (libcxxabi.patch,9.31 KB, patch)
2021-04-10 03:14 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff
Patch for sys-libs/libcxxabi (libcxxabi.patch,7.95 KB, patch)
2021-06-16 13:12 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff
Patch for sys-libs/libcxxabi (libcxxabi.patch,7.95 KB, patch)
2021-06-17 10:59 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2020-05-14 10:36:15 UTC
sys-libs/libcxxabi currently has this dependency:
>   libunwind? (
>     || (
>       >=sys-libs/libunwind-1.0.1-r1[static-libs?,${MULTILIB_USEDEP}]
>       >=sys-libs/llvm-libunwind-3.9.0-r1[static-libs?,${MULTILIB_USEDEP}]
>     )
>   )

sys-libs/libunwind and sys-libs/llvm-libunwind are ABI-incompatible, at least due to different sonames of libraries:
  sys-libs/libunwind provides libunwind.so.8
  sys-libs/llvm-libunwind provides libunwind.so.1

This means that switching between sys-libs/libunwind and sys-libs/llvm-libunwind requires rebuilding of all reverse dependencies.

I suggest introduction of global "llvm-libunwind" USE, which would indicate using sys-libs/llvm-libunwind instead of sys-libs/libunwind (similarly to "graphicsmagick" and "libressl" USE flags).

Above dependency would be rewritten to:
>   libunwind? (
>     llvm-libunwind? ( >=sys-libs/llvm-libunwind-3.9.0-r1[static-libs?,${MULTILIB_USEDEP}] )
>     !llvm-libunwind? ( >=sys-libs/libunwind-1.0.1-r1[static-libs?,${MULTILIB_USEDEP}] )
>   )
Comment 1 Larry the Git Cow gentoo-dev 2021-04-09 22:32:35 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=218a5ccc68d1eefeafebcccb831ec9c2034cfaee

commit 218a5ccc68d1eefeafebcccb831ec9c2034cfaee
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
AuthorDate: 2021-04-01 00:00:00 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-04-09 22:32:17 +0000

    profiles/use.desc: Add "llvm-libunwind" USE flag.
    
    Bug: https://bugs.gentoo.org/722992
    Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 profiles/use.desc | 1 +
 1 file changed, 1 insertion(+)
Comment 2 Arfrever Frehtes Taifersar Arahesis 2021-04-10 03:14:46 UTC
Created attachment 698862 [details, diff]
Patch for sys-libs/libcxxabi
Comment 3 Arfrever Frehtes Taifersar Arahesis 2021-06-16 13:12:17 UTC
Created attachment 716454 [details, diff]
Patch for sys-libs/libcxxabi
Comment 4 Arfrever Frehtes Taifersar Arahesis 2021-06-17 10:59:54 UTC
Created attachment 716586 [details, diff]
Patch for sys-libs/libcxxabi