Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352075 - sys-devel/gcc-config-1.4.1 Weird and probably unnecessary dependency on sys-apps/openrc
Summary: sys-devel/gcc-config-1.4.1 Weird and probably unnecessary dependency on sys-a...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-18 23:55 UTC by 404 Error
Modified: 2012-02-23 19:31 UTC (History)
1 user (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 404 Error 2011-01-18 23:55:39 UTC
At the beginning of the ebuild a DEPEND is put on sys-apps/openrc.

A reason for that ? Else is probably totally useless, I don't see the relationship between a script that selects a compiler version and the scripts used at system startup.
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-01-19 01:04:30 UTC
uhm???

% grep openrc /usr/portage/sys-devel/gcc-config/gcc-config-1.4.1.ebuild
% (nothing)

Closing for now, reopen with more details.
Comment 2 Canek Peláez Valdés 2012-02-23 16:38:38 UTC
From /usr/bin/gcc-config, lines 8-12:


argv0=${0##*/}
source /etc/init.d/functions.sh || {
        echo "${argv0}: Could not source /etc/init.d/functions.sh!"
        exit 1
}

This creates an implicit dependency from openrc, even if it is not explicitly stated in the ebuild. As far as I can see, gcc-config only uses the functions from functions.sh to use things like ewarn and eerror, but if openrc is not installed, gcc-config just fails at runtime.
Comment 3 Canek Peláez Valdés 2012-02-23 19:31:35 UTC
Sorry the noise, I just found Bug #373219.