Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 222211 - [PATCH] app-shells/bash should install examples with USE=examples
Summary: [PATCH] app-shells/bash should install examples with USE=examples
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-15 06:40 UTC by Donnie Berkholz (RETIRED)
Modified: 2008-05-17 09:02 UTC (History)
0 users

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


Attachments
bash-3.2_p39-install-examples.patch (bash-3.2_p39-install-examples.patch,986 bytes, patch)
2008-05-15 06:41 UTC, Donnie Berkholz (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Donnie Berkholz (RETIRED) gentoo-dev 2008-05-15 06:40:03 UTC
The bash tarball is distributed with a ton of really useful example scripts that never make it onto the live system in Gentoo. One particular one of extreme interest to me is shprof, a line profiler for shell scripts, which I've been wanting forever. I'm attaching a patch to the ebuild to install examples on demand.
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2008-05-15 06:41:23 UTC
Created attachment 153189 [details, diff]
bash-3.2_p39-install-examples.patch
Comment 2 SpanKY gentoo-dev 2008-05-15 10:00:12 UTC
i think it'd be better to install into /usr/share/doc/${PF}/examples/${d} as that is typically where people go for documentation (which examples are a class of)
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2008-05-15 10:08:09 UTC
That's reasonable too. I just checked my system for /usr/share/*/examples when making this, and 4-5 dirs existed, so I used it.

Want a new patch, or want to just make the change from doins/doexe to dodoc yourself?
Comment 4 SpanKY gentoo-dev 2008-05-15 15:06:15 UTC
if you change the path (and add a space before each semicolon), then the change looks good ... feel free to merge it
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2008-05-17 09:02:55 UTC
Done, thanks!