Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 613384 - app-admin/sysklogd: add IUSE=+perl to control installation of utility perl scripts
Summary: app-admin/sysklogd: add IUSE=+perl to control installation of utility perl sc...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-03-21 05:00 UTC by Hank Leininger
Modified: 2020-01-14 18:04 UTC (History)
1 user (show)

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


Attachments
Make perl scripts depend on perl USE flag (sysklogd_IUSE_perl.patch,884 bytes, patch)
2017-03-21 05:00 UTC, Hank Leininger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hank Leininger 2017-03-21 05:00:56 UTC
Created attachment 467758 [details, diff]
Make perl scripts depend on perl USE flag

app-admin/sysklogd unconditionally installs some helper perl scripts derived from the debian patch set, which in turn makes it depend on perl.

Working on some minimal system installs, I realized I have never used those perl scripts, and wouldn't miss them.

Attached is a patch that adds IUSE=+perl, and makes the dependency and deployment of those scripts conditional on USE=perl.

This would preserve the current behavior for most people, but give the option to specify -perl for sysklogd.
Comment 1 Ben Kohler gentoo-dev 2020-01-14 15:48:43 UTC
We have a policy against adding USE flags to control the installation of small text files like this.

For the record, these 2 scripts are <4kB each.
Comment 2 Hank Leininger 2020-01-14 18:04:21 UTC
(In reply to Ben Kohler from comment #1)
> We have a policy against adding USE flags to control the installation of
> small text files like this.
> 
> For the record, these 2 scripts are <4kB each.

Hm.  In my case my goal was to get rid of the unconditional RDEPEND on dev-lang/perl, which is quite a bit more than 4kb.

Probably obsolete anyway as sysklogd-2.x is in the tree now (although only ~ so far) and it drops the perl scripts.  It also breaks working setups in other ways so I've masked it locally, but that's another matter...