* [gentoo-dev] distcc
@ 2003-02-08 11:46 MAL
2003-02-08 15:59 ` Eric Andresen
2003-02-09 11:21 ` Nick Jones
0 siblings, 2 replies; 7+ messages in thread
From: MAL @ 2003-02-08 11:46 UTC (permalink / raw
To: gentoo-user, gentoo-dev
This is a solved problem, but I thought i'd share it with you.
On my machine at least, distccd, (which was running as nobody), wasn't
getting the path to gcc, (as provided by sourcing /etc/profile.env).
This was resulting in remote compiles failing with: 'gcc: command not
found'.
This happens because distcc isn't being run in a login shell by
start-stop-daemon, and so /etc/profule isn't sourced, (as it is when you
login). On a side note, suing to root, didn't give me gcc either... I
had to add '. /etc/profile' to my root's .bashrc.
Anyway, to fix this I simply added '. /etc/profile' to
/etc/init.d/distccd, just before it starts distccd.
These dynamically pathed gcc's have caused me so many problems :/
MAL
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] distcc
2003-02-08 11:46 [gentoo-dev] distcc MAL
@ 2003-02-08 15:59 ` Eric Andresen
2003-02-09 11:21 ` Nick Jones
1 sibling, 0 replies; 7+ messages in thread
From: Eric Andresen @ 2003-02-08 15:59 UTC (permalink / raw
To: MAL; +Cc: gentoo-dev
This has been fixed in the newer releases of distcc (1.0 and above) by
calling gcc-config --get-bin-path. 1.0 and 1.1 are both in ~x86 due to
the stable portage freeze, but work fine.
On Sat, 2003-02-08 at 04:46, MAL wrote:
> This is a solved problem, but I thought i'd share it with you.
>
> On my machine at least, distccd, (which was running as nobody), wasn't
> getting the path to gcc, (as provided by sourcing /etc/profile.env).
>
> This was resulting in remote compiles failing with: 'gcc: command not
> found'.
>
> This happens because distcc isn't being run in a login shell by
> start-stop-daemon, and so /etc/profule isn't sourced, (as it is when you
> login). On a side note, suing to root, didn't give me gcc either... I
> had to add '. /etc/profile' to my root's .bashrc.
>
> Anyway, to fix this I simply added '. /etc/profile' to
> /etc/init.d/distccd, just before it starts distccd.
>
> These dynamically pathed gcc's have caused me so many problems :/
>
> MAL
>
>
> --
> gentoo-dev@gentoo.org mailing list
--
--Eric Andresen
ndiin@asu.edu
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] distcc
2003-02-08 11:46 [gentoo-dev] distcc MAL
2003-02-08 15:59 ` Eric Andresen
@ 2003-02-09 11:21 ` Nick Jones
2003-02-09 19:11 ` MAL
1 sibling, 1 reply; 7+ messages in thread
From: Nick Jones @ 2003-02-09 11:21 UTC (permalink / raw
To: MAL; +Cc: gentoo-user, gentoo-dev
> login). On a side note, suing to root, didn't give me gcc either... I
> had to add '. /etc/profile' to my root's .bashrc.
>
> Anyway, to fix this I simply added '. /etc/profile' to
> /etc/init.d/distccd, just before it starts distccd.
su -
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] distcc
2003-02-09 11:21 ` Nick Jones
@ 2003-02-09 19:11 ` MAL
2003-02-09 20:38 ` Jon Nall
2003-02-09 21:01 ` [gentoo-dev] Re: [gentoo-user] " Martin Schlemmer
0 siblings, 2 replies; 7+ messages in thread
From: MAL @ 2003-02-09 19:11 UTC (permalink / raw
To: Nick Jones; +Cc: gentoo-user, gentoo-dev
Nick Jones wrote:
>>login). On a side note, suing to root, didn't give me gcc either... I
>>had to add '. /etc/profile' to my root's .bashrc.
>>
>>Anyway, to fix this I simply added '. /etc/profile' to
>>/etc/init.d/distccd, just before it starts distccd.
>
> su -
Yes, I know why.. thus my adding to .bashrc. Remembering to type su -
every time to login, is not a solution, it's an additional problem.
MAL
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] distcc
2003-02-09 19:11 ` MAL
@ 2003-02-09 20:38 ` Jon Nall
2003-02-09 21:01 ` [gentoo-dev] Re: [gentoo-user] " Martin Schlemmer
1 sibling, 0 replies; 7+ messages in thread
From: Jon Nall @ 2003-02-09 20:38 UTC (permalink / raw
To: MAL; +Cc: gentoo-user, gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 685 bytes --]
why not just alias su="su -"? i did this (because i had the same
headaches you describe) and it hasn't bothered me since.
nall.
On Sun, 2003-02-09 at 13:11, MAL wrote:
> Nick Jones wrote:
> >>login). On a side note, suing to root, didn't give me gcc either... I
> >>had to add '. /etc/profile' to my root's .bashrc.
> >>
> >>Anyway, to fix this I simply added '. /etc/profile' to
> >>/etc/init.d/distccd, just before it starts distccd.
> >
> > su -
>
> Yes, I know why.. thus my adding to .bashrc. Remembering to type su -
> every time to login, is not a solution, it's an additional problem.
>
> MAL
>
>
> --
> gentoo-dev@gentoo.org mailing list
>
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gentoo-dev] Re: [gentoo-user] Re: [gentoo-dev] distcc
2003-02-09 19:11 ` MAL
2003-02-09 20:38 ` Jon Nall
@ 2003-02-09 21:01 ` Martin Schlemmer
2003-02-10 20:04 ` nealbirch
1 sibling, 1 reply; 7+ messages in thread
From: Martin Schlemmer @ 2003-02-09 21:01 UTC (permalink / raw
To: MAL; +Cc: carpaski, gentoo-user, gentoo-dev
On Sun, 09 Feb 2003 19:11:02 +0000
MAL <mal@komcept.com> wrote:
> Nick Jones wrote:
> >>login). On a side note, suing to root, didn't give me gcc either...
> >I >had to add '. /etc/profile' to my root's .bashrc.
> >>
> >>Anyway, to fix this I simply added '. /etc/profile' to
> >>/etc/init.d/distccd, just before it starts distccd.
> >
> > su -
>
> Yes, I know why.. thus my adding to .bashrc. Remembering to type su -
> every time to login, is not a solution, it's an additional problem.
>
Why ? It works fine form me and is an space and one char extra. Else
feel free to add hacks to .bashrc.
--
Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gentoo-dev] Re: [gentoo-user] Re: [gentoo-dev] distcc
2003-02-09 21:01 ` [gentoo-dev] Re: [gentoo-user] " Martin Schlemmer
@ 2003-02-10 20:04 ` nealbirch
0 siblings, 0 replies; 7+ messages in thread
From: nealbirch @ 2003-02-10 20:04 UTC (permalink / raw
To: gentoo-dev
Martin Schlemmer wrote:
> On Sun, 09 Feb 2003 19:11:02 +0000
> MAL <mal@komcept.com> wrote:
>
>
>>Nick Jones wrote:
>>
>>>>login). On a side note, suing to root, didn't give me gcc either...
>>>
>>>I >had to add '. /etc/profile' to my root's .bashrc.
>>>
>>>>Anyway, to fix this I simply added '. /etc/profile' to
>>>>/etc/init.d/distccd, just before it starts distccd.
>>>
>>>su -
>>
>>Yes, I know why.. thus my adding to .bashrc. Remembering to type su -
>>every time to login, is not a solution, it's an additional problem.
>>
>
>
> Why ? It works fine form me and is an space and one char extra. Else
> feel free to add hacks to .bashrc.
alias su="su -"
not much of a hack...
neal
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-02-10 20:12 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-08 11:46 [gentoo-dev] distcc MAL
2003-02-08 15:59 ` Eric Andresen
2003-02-09 11:21 ` Nick Jones
2003-02-09 19:11 ` MAL
2003-02-09 20:38 ` Jon Nall
2003-02-09 21:01 ` [gentoo-dev] Re: [gentoo-user] " Martin Schlemmer
2003-02-10 20:04 ` nealbirch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox