Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538656 - sys-devel/crossdev should not source /etc/init.d/functions.sh
Summary: sys-devel/crossdev should not source /etc/init.d/functions.sh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: init.d_functions.sh
  Show dependency tree
 
Reported: 2015-02-03 11:55 UTC by Yurii Ivanov
Modified: 2016-02-20 14:55 UTC (History)
6 users (show)

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


Attachments
small patch for crossdev (crossdev.patch,348 bytes, patch)
2015-09-11 02:39 UTC, Alec Ten Harmsel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yurii Ivanov 2015-02-03 11:55:43 UTC
See [url=https://bugs.gentoo.org/show_bug.cgi?id=504116]bug 504116[/url].
Comment 1 Alec Ten Harmsel 2015-09-11 02:39:53 UTC
Created attachment 411582 [details, diff]
small patch for crossdev
Comment 2 Alec Ten Harmsel 2015-09-11 02:53:46 UTC
The patch in my above comment allows crossdev to at least run on my system (no openrc, so no /etc/init.d/functions.sh), even though it doesn't get very far building an AVR toolchain.
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2016-01-10 19:29:17 UTC
On my system only
    /lib64/gentoo/functions.sh
exists
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-02-19 22:01:02 UTC
(In reply to Sergei Trofimovich from comment #3)
> On my system only
>     /lib64/gentoo/functions.sh
> exists

It looks like your system is broken then, for some reason. I have separate /lib, /lib32 and /lib64, and gentoo-functions is installed in /lib.
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2016-02-19 22:18:23 UTC
(In reply to Michał Górny from comment #4)
> (In reply to Sergei Trofimovich from comment #3)
> > On my system only
> >     /lib64/gentoo/functions.sh
> > exists
> 
> It looks like your system is broken then, for some reason. I have separate
> /lib, /lib32 and /lib64, and gentoo-functions is installed in /lib.

Yeah, it's an orphan file.

But I have that file (also orphan) on many gentoo systems.
I'm sure I did not copy it manually.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-02-19 22:23:06 UTC
(In reply to Sergei Trofimovich from comment #5)
> (In reply to Michał Górny from comment #4)
> > (In reply to Sergei Trofimovich from comment #3)
> > > On my system only
> > >     /lib64/gentoo/functions.sh
> > > exists
> > 
> > It looks like your system is broken then, for some reason. I have separate
> > /lib, /lib32 and /lib64, and gentoo-functions is installed in /lib.
> 
> Yeah, it's an orphan file.
> 
> But I have that file (also orphan) on many gentoo systems.
> I'm sure I did not copy it manually.

Maybe it'd worth to try to report a bug about this to gentoo-scripts maintainers and try to investigate. In any case, this isn't a blocker to this request.

I've merged the PR fixing this.
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2016-02-20 09:32:38 UTC
(In reply to Michał Górny from comment #6)
> Maybe it'd worth to try to report a bug about this to gentoo-scripts
> maintainers and try to investigate. In any case, this isn't a blocker to
> this request.
> 
> I've merged the PR fixing this.

If it's a 

    https://gitweb.gentoo.org/repo/gentoo.git/commit/sys-devel/crossdev?id=83ff3dd2c6eea0aeb079ccfcd57f0608d9572827

then it's slightly incorrect. sys-apps/gentoo-functions needs to be a runtime depend.
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-02-20 14:55:22 UTC
Pushed, thanks.
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-02-20 14:55:31 UTC
I meant 'fixed' ;-).