public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why?
@ 2013-07-27  7:37 Leho Kraav
  2013-07-27  7:59 ` Ulrich Mueller
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Leho Kraav @ 2013-07-27  7:37 UTC (permalink / raw
  To: gentoo-dev

php5-5 vs python2_7


Why, how did that happen?


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

* Re: [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why?
  2013-07-27  7:37 [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why? Leho Kraav
@ 2013-07-27  7:59 ` Ulrich Mueller
  2013-07-28 21:07   ` [gentoo-dev] PYTHON flags grammar? why? Walter Dnes
  2013-07-27  8:08 ` [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why? Michał Górny
  2013-07-27 15:16 ` Mike Gilbert
  2 siblings, 1 reply; 14+ messages in thread
From: Ulrich Mueller @ 2013-07-27  7:59 UTC (permalink / raw
  To: gentoo-dev

>>>>> On Sat, 27 Jul 2013, Leho Kraav wrote:

> php5-5 vs python2_7
> Why, how did that happen?

Using the hyphen is cleaner, because the underscore is used as the
separator for USE_EXPAND.

(OTOH, as long a nobody will introduce a PYTHON_TARGETS_PYTHON2
variable, python2_7 will also work fine.)

Ulrich


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

* Re: [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why?
  2013-07-27  7:37 [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why? Leho Kraav
  2013-07-27  7:59 ` Ulrich Mueller
@ 2013-07-27  8:08 ` Michał Górny
  2013-07-28 10:50   ` Leho Kraav
  2013-07-27 15:16 ` Mike Gilbert
  2 siblings, 1 reply; 14+ messages in thread
From: Michał Górny @ 2013-07-27  8:08 UTC (permalink / raw
  To: gentoo-dev; +Cc: leho

[-- Attachment #1: Type: text/plain, Size: 235 bytes --]

Dnia 2013-07-27, o godz. 10:37:04
Leho Kraav <leho@kraav.com> napisał(a):

> php5-5 vs python2_7
> 
> 
> Why, how did that happen?

Because some people like to type 'php_targets_php5-5'.

-- 
Best regards,
Michał Górny

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 966 bytes --]

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

* Re: [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why?
  2013-07-27  7:37 [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why? Leho Kraav
  2013-07-27  7:59 ` Ulrich Mueller
  2013-07-27  8:08 ` [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why? Michał Górny
@ 2013-07-27 15:16 ` Mike Gilbert
  2 siblings, 0 replies; 14+ messages in thread
From: Mike Gilbert @ 2013-07-27 15:16 UTC (permalink / raw
  To: Gentoo Dev

On Sat, Jul 27, 2013 at 3:37 AM, Leho Kraav <leho@kraav.com> wrote:
> php5-5 vs python2_7
>
>
> Why, how did that happen?
>

We had some discussion of this a while back. RUBY_TARGETS is yet
another permutation with no version separator at all.

As for why it happened: the eclasses involved were each written at
different times by different people with little to no coordination.


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

* Re: [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why?
  2013-07-27  8:08 ` [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why? Michał Górny
@ 2013-07-28 10:50   ` Leho Kraav
  2013-07-28 11:33     ` Dirkjan Ochtman
  0 siblings, 1 reply; 14+ messages in thread
From: Leho Kraav @ 2013-07-28 10:50 UTC (permalink / raw
  To: gentoo-dev

On 27.07.2013 11:08, Michał Górny wrote:
> Dnia 2013-07-27, o godz. 10:37:04
> Leho Kraav <leho@kraav.com> napisał(a):
>
>> php5-5 vs python2_7
>>
>>
>> Why, how did that happen?
>
> Because some people like to type 'php_targets_php5-5'.

Thanks everyone for replying.

Wondering if there's any plan for proper convergence at some point?


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

* Re: [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why?
  2013-07-28 10:50   ` Leho Kraav
@ 2013-07-28 11:33     ` Dirkjan Ochtman
  2013-07-28 16:22       ` Brian Dolbec
  0 siblings, 1 reply; 14+ messages in thread
From: Dirkjan Ochtman @ 2013-07-28 11:33 UTC (permalink / raw
  To: Gentoo Development

On Sun, Jul 28, 2013 at 12:50 PM, Leho Kraav <leho@kraav.com> wrote:
> Wondering if there's any plan for proper convergence at some point?

I'd guess that the value of further convergence is so small that it
will not be a priority for any of the teams.

Cheers,

Dirkjan


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

* Re: [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why?
  2013-07-28 11:33     ` Dirkjan Ochtman
@ 2013-07-28 16:22       ` Brian Dolbec
  2013-07-28 16:54         ` Diego Elio Pettenò
  0 siblings, 1 reply; 14+ messages in thread
From: Brian Dolbec @ 2013-07-28 16:22 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 435 bytes --]

On Sun, 2013-07-28 at 13:33 +0200, Dirkjan Ochtman wrote:
> On Sun, Jul 28, 2013 at 12:50 PM, Leho Kraav <leho@kraav.com> wrote:
> > Wondering if there's any plan for proper convergence at some point?
> 
> I'd guess that the value of further convergence is so small that it
> will not be a priority for any of the teams.
> 
> Cheers,
> 
> Dirkjan
> 

Ruby team has been very vocal about NOT changing it's way in the past.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 620 bytes --]

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

* Re: [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why?
  2013-07-28 16:22       ` Brian Dolbec
@ 2013-07-28 16:54         ` Diego Elio Pettenò
  2013-07-31  7:38           ` Ole Markus With
  0 siblings, 1 reply; 14+ messages in thread
From: Diego Elio Pettenò @ 2013-07-28 16:54 UTC (permalink / raw
  To: gentoo-dev@lists.gentoo.org

[-- Attachment #1: Type: text/plain, Size: 788 bytes --]

Because it would require us to change a whole load more than just the
targets variable.

Plus we actually were the first coming up with the solution...


Diego Elio Pettenò — Flameeyes
flameeyes@flameeyes.eu — http://blog.flameeyes.eu/


On Sun, Jul 28, 2013 at 5:22 PM, Brian Dolbec <dolsen@gentoo.org> wrote:

> On Sun, 2013-07-28 at 13:33 +0200, Dirkjan Ochtman wrote:
> > On Sun, Jul 28, 2013 at 12:50 PM, Leho Kraav <leho@kraav.com> wrote:
> > > Wondering if there's any plan for proper convergence at some point?
> >
> > I'd guess that the value of further convergence is so small that it
> > will not be a priority for any of the teams.
> >
> > Cheers,
> >
> > Dirkjan
> >
>
> Ruby team has been very vocal about NOT changing it's way in the past.
>

[-- Attachment #2: Type: text/html, Size: 1420 bytes --]

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

* [gentoo-dev] PYTHON flags grammar? why?
  2013-07-27  7:59 ` Ulrich Mueller
@ 2013-07-28 21:07   ` Walter Dnes
  2013-07-28 21:24     ` Alex Xu
  2013-07-28 22:52     ` Michał Górny
  0 siblings, 2 replies; 14+ messages in thread
From: Walter Dnes @ 2013-07-28 21:07 UTC (permalink / raw
  To: gentoo-dev

On Sat, Jul 27, 2013 at 09:59:38AM +0200, Ulrich Mueller wrote
> >>>>> On Sat, 27 Jul 2013, Leho Kraav wrote:
> 
> > php5-5 vs python2_7
> > Why, how did that happen?
> 
> Using the hyphen is cleaner, because the underscore is used as the
> separator for USE_EXPAND.
> 
> (OTOH, as long a nobody will introduce a PYTHON_TARGETS_PYTHON2
> variable, python2_7 will also work fine.)

  Out of sheer curiousity, why does make.conf need all 3 of...

PYTHON_SINGLE_TARGET="python2_7"
PYTHON_TARGETS="python2_7"
USE_PYTHON="2.7"

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


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

* Re: [gentoo-dev] PYTHON flags grammar? why?
  2013-07-28 21:07   ` [gentoo-dev] PYTHON flags grammar? why? Walter Dnes
@ 2013-07-28 21:24     ` Alex Xu
  2013-07-28 22:52     ` Michał Górny
  1 sibling, 0 replies; 14+ messages in thread
From: Alex Xu @ 2013-07-28 21:24 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1151 bytes --]

On 28/07/13 05:07 PM, Walter Dnes wrote:
> On Sat, Jul 27, 2013 at 09:59:38AM +0200, Ulrich Mueller wrote
>>>>>>> On Sat, 27 Jul 2013, Leho Kraav wrote:
>>
>>> php5-5 vs python2_7
>>> Why, how did that happen?
>>
>> Using the hyphen is cleaner, because the underscore is used as the
>> separator for USE_EXPAND.
>>
>> (OTOH, as long a nobody will introduce a PYTHON_TARGETS_PYTHON2
>> variable, python2_7 will also work fine.)
> 
>   Out of sheer curiousity, why does make.conf need all 3 of...
> 
> PYTHON_SINGLE_TARGET="python2_7"

Because some packages only accept a single version of Python. e.g.
Blender, systemd. I think this also applies to the default Python
version for packages that install executables.

> PYTHON_TARGETS="python2_7"

Because the Python ABI [*] requires different libraries to be built for
different versions and installed in different places. /usr/lib/python?.?

[*] not really a binary interface, but let's call it that
> USE_PYTHON="2.7"

This is deprecated, AFAIK and used for old packages that do not support
PYTHON_TARGETS. (something to do with EAPI or eclass or something like that)


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [gentoo-dev] PYTHON flags grammar? why?
  2013-07-28 21:07   ` [gentoo-dev] PYTHON flags grammar? why? Walter Dnes
  2013-07-28 21:24     ` Alex Xu
@ 2013-07-28 22:52     ` Michał Górny
  1 sibling, 0 replies; 14+ messages in thread
From: Michał Górny @ 2013-07-28 22:52 UTC (permalink / raw
  To: gentoo-dev; +Cc: waltdnes

[-- Attachment #1: Type: text/plain, Size: 865 bytes --]

Dnia 2013-07-28, o godz. 17:07:20
"Walter Dnes" <waltdnes@waltdnes.org> napisał(a):

> On Sat, Jul 27, 2013 at 09:59:38AM +0200, Ulrich Mueller wrote
> > >>>>> On Sat, 27 Jul 2013, Leho Kraav wrote:
> > 
> > > php5-5 vs python2_7
> > > Why, how did that happen?
> > 
> > Using the hyphen is cleaner, because the underscore is used as the
> > separator for USE_EXPAND.
> > 
> > (OTOH, as long a nobody will introduce a PYTHON_TARGETS_PYTHON2
> > variable, python2_7 will also work fine.)
> 
>   Out of sheer curiousity, why does make.conf need all 3 of...
> 
> PYTHON_SINGLE_TARGET="python2_7"
> PYTHON_TARGETS="python2_7"
> USE_PYTHON="2.7"

You could also search the archives instead of bringing up the same
questions again. The whole rationale was there.

And before yet another person asks: gmane!

-- 
Best regards,
Michał Górny

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 966 bytes --]

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

* Re: [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why?
  2013-07-28 16:54         ` Diego Elio Pettenò
@ 2013-07-31  7:38           ` Ole Markus With
  2013-07-31  8:26             ` Michał Górny
  2013-07-31 14:13             ` Mike Gilbert
  0 siblings, 2 replies; 14+ messages in thread
From: Ole Markus With @ 2013-07-31  7:38 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/28/2013 06:54 PM, Diego Elio Pettenò wrote:
> Because it would require us to change a whole load more than just
> the targets variable.
> 

This is sort of the same for PHP. We need to know the major and minor
version based on the flag value. We technically could assume that
major version would be one digit and the rest would be the minor
version, but didn't feel quite right to unnecessary remove information
from the variables and then try to hack it back in again.

I don't really care what the separator is. The reason I chose dash for
separation major/minor version was simply to distinguish between the
value and variable part of USE_EXPAND. Just seemed natural at the time.

The last time this discussion came up I offered to change the grammar,
but people did not seem to care enough for me to send all PHP users
through the hassle. I am also not quite sure how to change the grammar
in a clean way.

- -- 
Ole Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJR+L7oAAoJEGurSuXEqSv1uesH/1NOpI/VN+F4HlZuX9aokh8G
a2ycgHIQ+wdtoc3onIRqncJ8TRBZ610HGnim8e/70tsj0JkVGFEM5wuSC93m6nHi
3Uh4wX01LazdW5KnTlv4Pe2zKsfXwCO+mXvwXtrouUmhIhMzT8sP57kTr0cTeRsB
V+N1EWZjE16Tz5z/l9+9hcd3uUhRtdDYSRa5msGp5y2vBz/CwG4JKSUBlp6q57aK
82ZeTqONh8B1PyNKFTDYw2MFkKoan5eRLqUChEgD/aiyOoejXWESjCGyhpjn5UvN
WAEolV0NpW6ktZp8muMo0BxdLoI3Nmm/x8Ddbxgn65ISCNvC31lf0nn7auHNaPU=
=H9Er
-----END PGP SIGNATURE-----


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

* Re: [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why?
  2013-07-31  7:38           ` Ole Markus With
@ 2013-07-31  8:26             ` Michał Górny
  2013-07-31 14:13             ` Mike Gilbert
  1 sibling, 0 replies; 14+ messages in thread
From: Michał Górny @ 2013-07-31  8:26 UTC (permalink / raw
  To: gentoo-dev; +Cc: olemarkus

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Dnia 2013-07-31, o godz. 09:38:20
Ole Markus With <olemarkus@olemarkus.org> napisał(a):

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 07/28/2013 06:54 PM, Diego Elio Pettenò wrote:
> > Because it would require us to change a whole load more than just
> > the targets variable.
> > 
> 
> This is sort of the same for PHP. We need to know the major and minor
> version based on the flag value. We technically could assume that
> major version would be one digit and the rest would be the minor
> version, but didn't feel quite right to unnecessary remove information
> from the variables and then try to hack it back in again.

Well, I think the specific difference here is that ruby executables are
named 'ruby18', 'ruby19' and that fits RUBY_TARGETS. Python executables
have version separator in them so that makes dropping it at least
inconsistent.

- -- 
Best regards,
Michał Górny
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQJ8BAEBCgBmBQJR+MpMXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1RUJGMjBGOTk2RkIzQzIyQ0M2RkNBNDBC
QUJGMUQ1RkY4QzgxMTBBAAoJELq/HV/4yBEKab4P/2Ywho7CYuA1mo8eBuUPn24W
4LDLoavG44CLLeK2CS9TGk85JkpUyHCUY+X3Wx12VY/+itRmLS+vaLi0hwnS7BEA
j9uU+4+MUc7EjoWPeq04trfbATQCon8FqQMdjuZkJs+fULrZfXG+4kjeR6vmmuXW
l9zSEKuR8JxcSe5pcNk0cPEPX1EVwq62/o6xDhfXxP3k18/+w1XW1Fq7k3xgqohz
XNk0xU6xTDurYAxroJfTiO1s8hldGIz3zGJODjOPTU5jzQQcCDe9uYg9yyT7WTCZ
dYkPU3Xw1dQfQWxzKXuY4rkk+hAH94Njb4AkGV8j0BKps0R9GnuzM1YQuH53G+cL
ihkCeypCiwc0GL7B4aSKLxI28S1fI+AxXvSv+X2DG1rWGUvgMTe+b4U+Ppedxx6j
ozAXspkisBXy6V416ErSjqEuuZzhbsc2n9SKcohHSipzUUmgHoc9v/o7ppJXrqNb
1nNBUTO1BpO7h7Zk1UurZLUP/eHJTRZAmMZRd4uMAcGrwx2nmmtGGyf+KqXtVf+/
6f6+VMbY9nzf2ofO7yHkvjkxvcJG3BtqOEXTw7Xe0OOJ5PY+iBn7mRqZjpcnUyMw
KjuK6AjH62rTjfen/N8A6VbkS3sj7VMj5rSe6DwsJNxgKks27E3r7jk0Oz7Q5Gmu
8ngo89Rcqv+YeluommPp
=ufaE
-----END PGP SIGNATURE-----

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

* Re: [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why?
  2013-07-31  7:38           ` Ole Markus With
  2013-07-31  8:26             ` Michał Górny
@ 2013-07-31 14:13             ` Mike Gilbert
  1 sibling, 0 replies; 14+ messages in thread
From: Mike Gilbert @ 2013-07-31 14:13 UTC (permalink / raw
  To: Gentoo Dev

On Wed, Jul 31, 2013 at 3:38 AM, Ole Markus With
<olemarkus@olemarkus.org> wrote:
> I don't really care what the separator is. The reason I chose dash for
> separation major/minor version was simply to distinguish between the
> value and variable part of USE_EXPAND. Just seemed natural at the time.
>

I think a hyphen/dash would have been a better choice for python as
well, but it's a bit late to change that now. If someone has a way to
do it without causing a lot of work and breaking people's systems, I
would love to hear it.


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

end of thread, other threads:[~2013-07-31 14:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-27  7:37 [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why? Leho Kraav
2013-07-27  7:59 ` Ulrich Mueller
2013-07-28 21:07   ` [gentoo-dev] PYTHON flags grammar? why? Walter Dnes
2013-07-28 21:24     ` Alex Xu
2013-07-28 22:52     ` Michał Górny
2013-07-27  8:08 ` [gentoo-dev] PHP_TARGETS vs PYTHON_TARGETS different grammar, why? Michał Górny
2013-07-28 10:50   ` Leho Kraav
2013-07-28 11:33     ` Dirkjan Ochtman
2013-07-28 16:22       ` Brian Dolbec
2013-07-28 16:54         ` Diego Elio Pettenò
2013-07-31  7:38           ` Ole Markus With
2013-07-31  8:26             ` Michał Górny
2013-07-31 14:13             ` Mike Gilbert
2013-07-27 15:16 ` Mike Gilbert

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