public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Deps on slotted executables (implicit @system tangent)
@ 2014-11-14 14:08 Michael Orlitzky
  2014-11-14 14:49 ` Andrew Savchenko
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Michael Orlitzky @ 2014-11-14 14:08 UTC (permalink / raw
  To: gentoo-dev

On 11/13/2014 10:17 AM, Ian Stakenvicius wrote:

>> Isn't it possible to disable C++ in GCC with USE="-cxx"?
> 
> It is..  but unfortunately there's no way in DEPEND to ensure it's
> satisfied, as you can have a gcc installed with that flag enabled but
> have a second one (that's actually selected in gcc-config) with it
> disabled.  A pkg_pretend check or a pkg_setup check (if you don't want
> it to just fail in src_configure) is probably the best way to enforce
> that one at this time.  Unless there are other ways I'm not aware of??

Is this a case (as was recently suggested) where we're doing something
stupid rather than asking for help from the PMS? This problem shows up
in a few places -- off the top of my head:

  * GCC (see sys-apps/systemd-217.ebuild)
  * PHP (see comment in app-text/XML-Schema-learner-1.0.0.ebuild)
  * Python (all over the place)
  * Ruby (all over the place)

Since all of the above are slotted, we can DEPEND on them, but we can't
actually be sure that we're using the right slot at build time. The
package manager knows that the right version is there, but it's not at
the moment prepared to find and use it.

Question 1: is it desirable to e.g. switch compilers, compile systemd,
and then switch back? At first I thought the PM should respect my
selected compiler, but after thinking about it for a few minutes, I've
changed my mind. The compiler deps are just like anything else: if I ask
portage to install systemd, it should do what it takes to install
systemd assuming I approve the build plan.

Question2: Is it technically possible to fix this in a new EAPI? I have
no idea.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-11-14 20:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-14 14:08 [gentoo-dev] Deps on slotted executables (implicit @system tangent) Michael Orlitzky
2014-11-14 14:49 ` Andrew Savchenko
2014-11-14 15:50   ` Andreas K. Huettel
2014-11-14 17:26     ` Ian Stakenvicius
2014-11-14 18:11     ` Andrew Savchenko
2014-11-14 14:58 ` Michał Górny
2014-11-14 18:12   ` Zac Medico
2014-11-14 18:22 ` Ciaran McCreesh
2014-11-14 19:17   ` Rich Freeman
2014-11-14 19:23     ` Ciaran McCreesh
2014-11-14 20:07       ` Pacho Ramos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox