Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 333977 - sys-apps/moreutils could use a perl USE flag
Summary: sys-apps/moreutils could use a perl USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-22 15:39 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2011-03-10 06:14 UTC (History)
0 users

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


Attachments
Patch to moreutils-0.40.ebuild to add USE="+doc +perl" and supporting code (moreutils-0.40.ebuild.patch,1.37 KB, patch)
2010-08-26 22:18 UTC, Kevin Pyle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2010-08-22 15:39:40 UTC
Some of the utilities there are perl scripts, but quite a few aren't... given that you might want to have an embedded system without perl, it might be a good idea to have a perl USE flag and not install the perl scripts if it's disabled.

Thanks!
Diego
Comment 1 Kevin Pyle 2010-08-26 22:18:01 UTC
Created attachment 244805 [details, diff]
Patch to moreutils-0.40.ebuild to add USE="+doc +perl" and supporting code

Following the idea that an embedded system may want only pieces of this package, this patch adds USE=doc and USE=perl, both of which are switched on by default.  When both are enabled, the ebuild should behave exactly as it was before my patch.  With USE=-doc, the dependency on docbook is removed and the manual pages are not generated.  With USE=-perl, the runtime dependency on Perl is removed and the perl scripts are not installed.  In both cases, an einfo warns the user that they are getting less than the full package.  You may want to change this to an elog if you are concerned that users will miss it in the package compilation output.  Note that to remove perl as a build time dependency, you need both USE=-doc and USE=-perl, since a perl script is used to build the documentation.

Tested configurations:
- USE="-doc perl" => manual not built, scripts installed
- USE="-doc -perl" => manual not built, scripts not installed
Comment 2 Tim Harder gentoo-dev 2011-03-10 06:14:20 UTC
Thanks for the patch suggestions. I added both doc and perl USE flags to the latest version in the tree.