Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 547438 - app-shells/bash add USE=static
Summary: app-shells/bash add USE=static
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-22 21:46 UTC by Maciej Mrozowski
Modified: 2015-05-08 20:35 UTC (History)
0 users

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


Attachments
Partial patch (no nls) against bash ebuild with USE=static support (bash-4.2_p53.ebuild.patch,1.46 KB, patch)
2015-04-22 21:46 UTC, Maciej Mrozowski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Mrozowski gentoo-dev 2015-04-22 21:46:40 UTC
Created attachment 401838 [details, diff]
Partial patch (no nls) against bash ebuild with USE=static support

Original discussion in https://bugs.gentoo.org/show_bug.cgi?id=7714

There were some counter-suggestions like providing separate package for static bash or using sash. Separate package sounds like maintenance burden and sash is not a bash, hence the bug to possibly revisit the idea.

Attached patch requires updating - virtual/libintl needs static-libs USE flag.
(all providers, namely gettext - already have it)
Comment 1 Maciej Mrozowski gentoo-dev 2015-04-22 21:53:43 UTC
Some rationale:
Downgrade of sys-libs/readline breaks bash already during the emerge leaving the system without working primary shell.
Dependency constraints cannot prevent the downgrade when app-shells/bash is downgraded with sys-libs/readline at the same time.
Hence the idea to introduce static bash version, perhaps even enable the flag by default.
Comment 2 SpanKY gentoo-dev 2015-04-23 12:55:29 UTC
(In reply to Maciej Mrozowski from comment #0)

please read bug 7714 in full first.  specifically, comment #3.

(In reply to Maciej Mrozowski from comment #1)

SONAME changes aren't available (older ones are SLOT-ed), and even then, current readline-6.x packages shouldn't be a big deal ...
Comment 3 Maciej Mrozowski gentoo-dev 2015-05-07 22:09:01 UTC
Well, to me, if anything, comment #3 from bug 7714 is rather after providing private dynamic bash version (with private shared library deps) solely for portage purpose, not for forbidding static system bash.

> SONAME changes aren't available (older ones are SLOT-ed), and even then, current readline-6.x packages shouldn't be a big deal ...

But they are. This is what prompted me to open the bug, I switched to latest ~arch bash (4.2->4.3, needs readline 6.2->6.3) (to test bug 542796), then switched back (both bash and readline - switching readline was obviousy a mistake).

Now, I'm not saying bash downgrade is common/standard use-case...
Comment 4 SpanKY gentoo-dev 2015-05-08 01:59:30 UTC
(In reply to Maciej Mrozowski from comment #3)

yes, we could in theory build a dynamic bash just for ebuild usage.  but that isn't worth the trade-off imo.

i don't think the bash downgrade was your problem.  more likely the readline downgrade which used the same SONAME but had fewer ABI exports.
Comment 5 Maciej Mrozowski gentoo-dev 2015-05-08 20:35:58 UTC
Indeed that was the case.