Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 613384

Summary: app-admin/sysklogd: add IUSE=+perl to control installation of utility perl scripts
Product: Gentoo Linux Reporter: Hank Leininger <hlein>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal CC: bkohler
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Make perl scripts depend on perl USE flag

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...