From: Gordon Malm <gengor@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] [PMS] Add RESTRICT="distcc" capability
Date: Sun, 2 Nov 2008 12:11:10 -0700 [thread overview]
Message-ID: <200811021111.10124.gengor@gentoo.org> (raw)
In-Reply-To: <20081102112614.00851d36@snowmobile>
On Sunday, November 2, 2008 03:26:14 Ciaran McCreesh wrote:
> On Sat, 1 Nov 2008 18:29:03 -0700
>
> Gordon Malm <gengor@gentoo.org> wrote:
> > You're the one assuming the only purpose would be to mask parallel
> > make problems. Apparently it does have a purpose though since
> > avidemux builds fine in parallel but NOT via distcc.
>
> Have you conclusively established that they do build fine in parallel?
> If so, how? And why do they break in parallel only under distcc? Given
> how distcc works, this strikes me as somewhat implausible...
Yes it builds in parallel. By compiling it in parallel. I don't know why and
don't care to investigate for you. It's not my package, I'm not QA and my
team is short staffed enough as it is. We have to take care of our own
backyard. Maybe you could investigate the answers to your own questions?
How about you at least feign attempt at answering my questions for a change?
>
> > Back to your most recent post
> >
> > > *If* there's a legitimate use for RESTRICT=distcc then I am
> > > entirely in favour of it. But it looks like there isn't, with every
> > > issue being either a parallelism issue (which RESTRICT=distcc won't
> > > fix), a user configuration issue (which RESTRICT=distcc won't fix)
> > > or a hardened toolchain bug (for which RESTRICT=distcc is massive
> > > overkill, and thus the wrong solution). You've decided upon a
> > > solution before you've worked out what the problem is.
> >
> > You assumed it is a parallelism issue that people are trying to
> > solve. I haven't pointed to any user configuration issues. Using
> > RESTRICT=distcc on kernel modules is hardly overkill. This isn't
> > openoffice. I know exactly what the problem is, but since you have
> > such a better grasp on it....
>
> RESTRICT=distcc on kernel modules is unnecessary for the large
> proportion of users who don't use hardened. RESTRICTs can't be set
> dependent upon whether or not something like hardenened is enabled;
> other mechanisms are available that can be. So why aren't you
> considering those other mechanisms?
I agree with the first sentence, never said otherwise. Who says I am not
considering them? In fact, I have stated that I am. They are just more
hackish than adding the ability to RESTRICT distcc, hence my reason for
soliciting such a feature. I'm surprised that you'd suggest this after
debasing a RESTRICT option on the same grounds.
>
> > We have to build using different specs sets for kernel code than
> > userland. If we can't depend on the __KERNEL__ macro for detection,
> > how else do you propose one detect if gcc is building kernel code or
> > not?
>
> A macro is just a macro. All it does is affect the preprocessor stage.
> Hardened is trying to abuse it for something else entirely, which is why
> you're encountering problems.
You can cry "abuse" all you want. You FAIL to offer any alternatives or
solutions. I'll ask again, how do you detect that you are compiling code
destined to be run in-kernel from within gcc without checking for the
__KERNEL__ macro? I think we both know the answer.
We can't just hack the eclass to pass -fno-PIE because a particular package
might build more than just the kernel module itself. Patching kbuild in our
sources doesn't address any modules that don't use in-tree kbuild and is
stupid in so many ways anyway. That leaves patching every out-of-tree module
in portage manually and maintain those patches forward which would be very
time/effort intensive on an ongoing basis.
Go ahead and forget about it though. I'm done with this discussion. Because
we rely on the __KERNEL__ macro to determine which flags to apply, it only
makes sense to patch in-portage distcc in the case of hardened to pass it.
And that's exactly what I'll be doing. Problem solved and I like that option
better anyway. Sorry to everyone who e-mailed me who thought RESTRICT=distcc
would be somewhat useful.
>
> > I guess the larger question in all this is why does a third party who
> > has demonstrated his anti-Hardened (and anti-Gentoo) slant on
> > multiple occasions define what goes in our PMS?
>
> Uh, that's your answer to technical objections to a proposal? You
> aren't prepared to defend your proposal on its merits?
Why are you assuming this point is *at all* related to my proposal? It's not.
It's about Gentoo. But I stand corrected, a bunch of people rushed to tell
me you don't actually determine anything. ;)
Gordon Malm (gengor)
P.S. I've seen enough of these threads from you to know that you can't help
but respond with another post that does a lot of objecting but offers no
solutions. Go ahead and post again so you can feel like you had the last
word, now is your chance, I won't be posting back.
next prev parent reply other threads:[~2008-11-02 19:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-01 20:57 [gentoo-dev] [PMS] Add RESTRICT="distcc" capability Gordon Malm
2008-11-01 21:00 ` Ciaran McCreesh
2008-11-01 21:21 ` Gordon Malm
2008-11-01 21:28 ` Ciaran McCreesh
2008-11-01 21:58 ` Gordon Malm
2008-11-01 22:11 ` Ciaran McCreesh
2008-11-01 22:47 ` Gordon Malm
2008-11-01 22:57 ` Ciaran McCreesh
2008-11-01 23:28 ` Jan Kundrát
2008-11-02 1:29 ` Gordon Malm
2008-11-02 3:16 ` Jorge Manuel B. S. Vicetto
2008-11-02 11:26 ` Ciaran McCreesh
2008-11-02 19:11 ` Gordon Malm [this message]
2008-11-02 19:28 ` Ciaran McCreesh
2008-11-03 8:18 ` [gentoo-dev] " Steve Long
2008-11-03 10:22 ` [gentoo-dev] " Peter Volkov
2008-11-04 3:37 ` Gordon Malm
2008-11-02 0:11 ` David Leverton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200811021111.10124.gengor@gentoo.org \
--to=gengor@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox