Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 760504 - sys-libs/libcxxabi (and others?): consider disabling USE=static-libs by default (to allow sys-libs/libunwind[-static-libs])
Summary: sys-libs/libcxxabi (and others?): consider disabling USE=static-libs by defau...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
: 768978 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-12-17 17:26 UTC by Sergei Trofimovich (RETIRED)
Modified: 2021-03-12 17:28 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2020-12-17 17:26:30 UTC
Past iteration of a sys-libs/libunwind[-static-libs] default was a bug #612602 where 'clang -static' was mentioned as one of use cases that should work by default and thus USE=static-libs was kept for sys-libs/libcxxabi.

Now question of defaults came up again as libunwind grew extra optional zlib depend (enabled by default profile) and optional lzma depend (disabled by default).

toolchain@ could flip a sys-libs/libunwind[-static-libs] default again if llvm@ agrees to follow (or rather start). Otherwise we'll need start proliferating static-libs back to zlib and possibly lzma to make defaults less problematic.

Planned change:

--- libunwind-1.5.0.ebuild      2020-12-17 17:06:12.000000000 +0000
+++ libunwind-1.5.0-r1.ebuild   2020-12-17 17:07:40.000000000 +0000
@@ -15,4 +15,4 @@
 SLOT="0/8" # libunwind.so.8
-KEYWORDS="amd64 arm arm64 hppa ~ia64 ~mips ppc ~ppc64 -sparc x86 ~amd64-linux ~x86-linux"
-IUSE="debug debug-frame doc libatomic lzma +static-libs zlib"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug debug-frame doc libatomic lzma static-libs zlib"

WDYT?
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-12-17 17:34:53 UTC
I'm all for disabling static-libs by default.  I don't think static libc++ builds are killer feature for most of our users.
Comment 2 Larry the Git Cow gentoo-dev 2021-01-03 10:14:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a1f5cfcb5edc8de26883557bc352969331b9fa5

commit 7a1f5cfcb5edc8de26883557bc352969331b9fa5
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-01-03 10:13:27 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-01-03 10:13:27 +0000

    sys-libs/libunwind: don't enable USE=static-libs by default (take 2)
    
    Let's do only dynamic libraries by default. That way we avoid
    USE=static-libs conflict on:
    - sys-libs/zlib (default disabled)
    - app-arch/xz-utils (default disabled)
    
    The only user that expects sys-libs/libunwind[static-libs]
    is sys-libs/libcxxabi (+libunwind +static-libs). It will be
    fixed in https://bugs.gentoo.org/760504.
    
    Bug: https://bugs.gentoo.org/760504
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-libs/libunwind/libunwind-1.5.0-r1.ebuild | 107 +++++++++++++++++++++++++++
 1 file changed, 107 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2021-02-07 06:56:49 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=813d3bab893e257e2315cb9ba1c96dbb3c359179

commit 813d3bab893e257e2315cb9ba1c96dbb3c359179
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-02-07 06:53:42 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-02-07 06:56:43 +0000

    sys-libs/libcxx: disable USE=static-libs by default
    
    Bug: https://bugs.gentoo.org/760504
    Package-Manager: Portage-3.0.14, Repoman-3.0.2
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-libs/libcxx/libcxx-10.0.1.ebuild      | 4 ++--
 sys-libs/libcxx/libcxx-11.0.0.ebuild      | 2 +-
 sys-libs/libcxx/libcxx-11.0.1.ebuild      | 2 +-
 sys-libs/libcxx/libcxx-11.1.0_rc1.ebuild  | 2 +-
 sys-libs/libcxx/libcxx-11.1.0_rc2.ebuild  | 2 +-
 sys-libs/libcxx/libcxx-12.0.0.9999.ebuild | 2 +-
 sys-libs/libcxx/libcxx-12.0.0_rc1.ebuild  | 2 +-
 sys-libs/libcxx/libcxx-13.0.0.9999.ebuild | 2 +-
 sys-libs/libcxx/libcxx-9.0.1.ebuild       | 4 ++--
 9 files changed, 11 insertions(+), 11 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7efebd7f39451b58ea044854552699b798e747e1

commit 7efebd7f39451b58ea044854552699b798e747e1
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-02-07 06:51:40 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-02-07 06:56:42 +0000

    sys-libs/libcxxabi: disable USE=static-libs by default
    
    Bug: https://bugs.gentoo.org/760504
    Package-Manager: Portage-3.0.14, Repoman-3.0.2
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-libs/libcxxabi/libcxxabi-10.0.1.ebuild      | 4 ++--
 sys-libs/libcxxabi/libcxxabi-11.0.0.ebuild      | 2 +-
 sys-libs/libcxxabi/libcxxabi-11.0.1.ebuild      | 2 +-
 sys-libs/libcxxabi/libcxxabi-11.1.0_rc1.ebuild  | 2 +-
 sys-libs/libcxxabi/libcxxabi-11.1.0_rc2.ebuild  | 2 +-
 sys-libs/libcxxabi/libcxxabi-12.0.0.9999.ebuild | 2 +-
 sys-libs/libcxxabi/libcxxabi-12.0.0_rc1.ebuild  | 2 +-
 sys-libs/libcxxabi/libcxxabi-13.0.0.9999.ebuild | 2 +-
 sys-libs/libcxxabi/libcxxabi-9.0.1.ebuild       | 4 ++--
 9 files changed, 11 insertions(+), 11 deletions(-)

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

commit cdd3b24a02784a2e772fb995ad69a80710f1bc0a
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-02-07 06:50:05 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-02-07 06:56:42 +0000

    sys-libs/llvm-libunwind: disable USE=static-libs by default
    
    Bug: https://bugs.gentoo.org/760504
    Package-Manager: Portage-3.0.14, Repoman-3.0.2
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-libs/llvm-libunwind/llvm-libunwind-10.0.1.ebuild      | 4 ++--
 sys-libs/llvm-libunwind/llvm-libunwind-11.0.0.ebuild      | 4 ++--
 sys-libs/llvm-libunwind/llvm-libunwind-11.0.1.ebuild      | 2 +-
 sys-libs/llvm-libunwind/llvm-libunwind-11.1.0_rc1.ebuild  | 2 +-
 sys-libs/llvm-libunwind/llvm-libunwind-11.1.0_rc2.ebuild  | 2 +-
 sys-libs/llvm-libunwind/llvm-libunwind-12.0.0.9999.ebuild | 2 +-
 sys-libs/llvm-libunwind/llvm-libunwind-12.0.0_rc1.ebuild  | 2 +-
 sys-libs/llvm-libunwind/llvm-libunwind-13.0.0.9999.ebuild | 2 +-
 sys-libs/llvm-libunwind/llvm-libunwind-9.0.1.ebuild       | 4 ++--
 9 files changed, 12 insertions(+), 12 deletions(-)
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2021-02-07 06:58:42 UTC
*** Bug 768978 has been marked as a duplicate of this bug. ***
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2021-03-12 17:28:52 UTC
I think all related packages are sorted out. Closing.