Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500974 - sys-cluster/ceph-0.72.2-r2 should not RDEPEND on sys-apps/hdparm sys-block/parted sys-fs/cryptsetup sys-fs/btrfs-progs (...?)
Summary: sys-cluster/ceph-0.72.2-r2 should not RDEPEND on sys-apps/hdparm sys-block/pa...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-11 10:21 UTC by Changyuan Yu
Modified: 2018-01-02 19:25 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Changyuan Yu 2014-02-11 10:21:58 UTC
The new ceph-0.72.2-r2 ebuild add a lot of runtime dependency(including the dependency of dependency).

The extra filesystem/disk related tools might be used by ceph setup scripts and other python packages might be for some http related stuff, correct me if I am wrong.

The official ceph document recommends run mds, ods & mon in separate machines, I think this is the common use case of ceph. In these condition, filesystem and disk related packages might be already installed or not necessary(after all, I have fdisk why I need parted, or my all fs is either ext4 or xfs, why install btrfsprogs?), and most of the time ceph(and its friends ceph-mon, ceph-osd & ceph-mds) command is already enough.

Not to count if only want to mount cephfs with fuse, which I think the only command need is ceph-fuse. 

PS, I find some discuss about this: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705262#89

Reproducible: Always

Steps to Reproduce:
1. emerge sys-cluster/ceph-0.72.2-r2

Actual Results:  
Some unnecessary runtime dependency packages are installed but never have any usage for most conditions.


Expected Results:  
Provide USE or other mechanism to make these runtime dependency optional, only install when necessary.
Comment 1 Yixun Lan gentoo-dev 2014-02-18 11:17:20 UTC
@gentoo-qa recommand to not to use optional RDEPs (see bug #498832)

it would be tedious to add "osd, mds, mon" USE flags to control specific use case. so to address your problem, I did following changes, slightly improve the situation.

sys-apps/hdparm
   used by fle src/os/FileJournal.cc, check for disk file cache. I'll keep it, probably used by OSD

sys-block/parted, sys-fs/cryptsetup 
   used by ceph-disk (probably used by OSD), I will drop it from RDEPEND, put a notice in pkg_postinst()

sys-fs/btrfs-progs
   same as above, will be dropped.
Comment 2 Changyuan Yu 2014-02-19 08:31:00 UTC
(In reply to Yixun Lan from comment #1)
> @gentoo-qa recommand to not to use optional RDEPs (see bug #498832)
> 
> it would be tedious to add "osd, mds, mon" USE flags to control specific use
> case. so to address your problem, I did following changes, slightly improve
> the situation.
> 
> sys-apps/hdparm
>    used by fle src/os/FileJournal.cc, check for disk file cache. I'll keep
> it, probably used by OSD
> 
> sys-block/parted, sys-fs/cryptsetup 
>    used by ceph-disk (probably used by OSD), I will drop it from RDEPEND,
> put a notice in pkg_postinst()
> 
> sys-fs/btrfs-progs
>    same as above, will be dropped.

In fact, I am more care about these python packages, which have a lager dependency tree, and some of them is hard masked on arm arch.
Comment 3 Michael Jones 2018-01-02 19:25:30 UTC
Does this bug still apply to >=sys-cluster/ceph-10 ? 0.72 is no longer in the tree.