public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] bash-4 in ebuilds?
@ 2013-02-02 11:06 hasufell
  2013-02-02 11:11 ` hasufell
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: hasufell @ 2013-02-02 11:06 UTC (permalink / raw
  To: gentoo-dev

From a little discussion in this bug
https://bugs.gentoo.org/show_bug.cgi?id=454600#c11
it seems that it's not entirely sure what bash version can be assumed.

PMS says, that I have to assume 3.2 or later
https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-620006

But there is no stable bash version from 3.2 to 4.1
portage itself depends on >=app-shells/bash-4.2_p37

Is this a PMS bug or do we need to redefine this for EAPI=6?


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

* Re: [gentoo-dev] bash-4 in ebuilds?
  2013-02-02 11:06 [gentoo-dev] bash-4 in ebuilds? hasufell
@ 2013-02-02 11:11 ` hasufell
  2013-02-02 11:13 ` Ciaran McCreesh
  2013-02-03  7:59 ` [gentoo-dev] " Ryan Hill
  2 siblings, 0 replies; 7+ messages in thread
From: hasufell @ 2013-02-02 11:11 UTC (permalink / raw
  To: gentoo-dev

On 02/02/2013 12:06 PM, hasufell wrote:
> portage itself depends on >=app-shells/bash-4.2_p37
> 

strike that

|| ( >=app-shells/bash-4.2_p37[readline] ( <app-shells/bash-4.2_p37
>=app-shells/bash-3.2_p17 ) )

!<app-shells/bash-3.2_p17


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

* Re: [gentoo-dev] bash-4 in ebuilds?
  2013-02-02 11:06 [gentoo-dev] bash-4 in ebuilds? hasufell
  2013-02-02 11:11 ` hasufell
@ 2013-02-02 11:13 ` Ciaran McCreesh
  2013-02-02 11:56   ` hasufell
  2013-02-03  7:59 ` [gentoo-dev] " Ryan Hill
  2 siblings, 1 reply; 7+ messages in thread
From: Ciaran McCreesh @ 2013-02-02 11:13 UTC (permalink / raw
  To: gentoo-dev

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

On Sat, 02 Feb 2013 12:06:39 +0100
hasufell <hasufell@gentoo.org> wrote:
> From a little discussion in this bug
> https://bugs.gentoo.org/show_bug.cgi?id=454600#c11
> it seems that it's not entirely sure what bash version can be assumed.
> 
> PMS says, that I have to assume 3.2 or later
> https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-620006
> 
> But there is no stable bash version from 3.2 to 4.1
> portage itself depends on >=app-shells/bash-4.2_p37

It's irrelevant what Portage depends upon, since this is about the
upgrade path. PMS specifies what the Council voted upon last time this
came up.

-- 
Ciaran McCreesh

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

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

* Re: [gentoo-dev] bash-4 in ebuilds?
  2013-02-02 11:13 ` Ciaran McCreesh
@ 2013-02-02 11:56   ` hasufell
  0 siblings, 0 replies; 7+ messages in thread
From: hasufell @ 2013-02-02 11:56 UTC (permalink / raw
  To: gentoo-dev

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

On 02/02/2013 12:13 PM, Ciaran McCreesh wrote:
> On Sat, 02 Feb 2013 12:06:39 +0100 hasufell <hasufell@gentoo.org>
> wrote:
>> From a little discussion in this bug 
>> https://bugs.gentoo.org/show_bug.cgi?id=454600#c11 it seems that
>> it's not entirely sure what bash version can be assumed.
>> 
>> PMS says, that I have to assume 3.2 or later 
>> https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-620006
>> 
>> But there is no stable bash version from 3.2 to 4.1 portage
>> itself depends on >=app-shells/bash-4.2_p37
> 
> It's irrelevant what Portage depends upon, since this is about the 
> upgrade path. PMS specifies what the Council voted upon last time
> this came up.
> 

Yeah, from what I read and after checking council logs I don't see any
vote/discussion that would change this requirement.

for reference:
https://bugs.gentoo.org/show_bug.cgi?id=431340

I will push for allowing >=bash-4.0 in EAPI=6.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRDP7XAAoJEFpvPKfnPDWzwykH/joNViLyZlVVqFUSM9w+FKfs
i31Wegdo3WM7rJeeChyJW0JvI5e8VFzvkvLB116Z9VENFGMedEKLygtvTKYJRMt1
KmHdb5xmKf+v048u9YiWfAaseYOXlrnm3O6KoEVIGRB4LnqIhMOkmAu8MU6bTje7
ly7kaIEdga0E0OiCGKz7d3sXkVBnNBdjeUDdZfSYsQcEqE17lt1enuWiCfOn3dT6
BjCQvqN8pGU2t4CcAnWZuBUxefIv57/sC0qbzLiRvzPzeofc7hVcW7VeZDh4gi5j
k27zGnJUlQKj2M3t3qUAg46Za1kEjlwpJbjvb2Dc3RoYR63gkFxg7nJuMyKZW4Y=
=LgxJ
-----END PGP SIGNATURE-----


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

* [gentoo-dev] Re: bash-4 in ebuilds?
  2013-02-02 11:06 [gentoo-dev] bash-4 in ebuilds? hasufell
  2013-02-02 11:11 ` hasufell
  2013-02-02 11:13 ` Ciaran McCreesh
@ 2013-02-03  7:59 ` Ryan Hill
  2013-02-03  9:12   ` Ulrich Mueller
  2 siblings, 1 reply; 7+ messages in thread
From: Ryan Hill @ 2013-02-03  7:59 UTC (permalink / raw
  To: gentoo-dev

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

On Sat, 02 Feb 2013 12:06:39 +0100
hasufell <hasufell@gentoo.org> wrote:

> From a little discussion in this bug
> https://bugs.gentoo.org/show_bug.cgi?id=454600#c11
> it seems that it's not entirely sure what bash version can be assumed.

We have eclasses that require Bash 4 (eg. multiprocessing.eclass uses BASHPID).


-- 
gcc-porting
toolchain, wxwidgets            learn a language baby, it's that kind of place
@ gentoo.org                   where low card is hunger and high card is taste

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

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

* [gentoo-dev] Re: bash-4 in ebuilds?
  2013-02-03  7:59 ` [gentoo-dev] " Ryan Hill
@ 2013-02-03  9:12   ` Ulrich Mueller
  2013-02-03 18:07     ` Zac Medico
  0 siblings, 1 reply; 7+ messages in thread
From: Ulrich Mueller @ 2013-02-03  9:12 UTC (permalink / raw
  To: gentoo-dev

>>>>> On Sun, 3 Feb 2013, Ryan Hill wrote:

> We have eclasses that require Bash 4 (eg. multiprocessing.eclass
> uses BASHPID).

I wonder why it would be needed there. Doesn't $$ work?

Ulrich


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

* Re: [gentoo-dev] Re: bash-4 in ebuilds?
  2013-02-03  9:12   ` Ulrich Mueller
@ 2013-02-03 18:07     ` Zac Medico
  0 siblings, 0 replies; 7+ messages in thread
From: Zac Medico @ 2013-02-03 18:07 UTC (permalink / raw
  To: gentoo-dev

On 02/03/2013 01:12 AM, Ulrich Mueller wrote:
>>>>>> On Sun, 3 Feb 2013, Ryan Hill wrote:
> 
>> We have eclasses that require Bash 4 (eg. multiprocessing.eclass
>> uses BASHPID).
> 
> I wonder why it would be needed there. Doesn't $$ work?

In a subshell, I think $$ is the pid of the parent shell, while BASHPID
is the real pid of the current subshell. Test cases:

$ echo $$
24996
$ ( echo $$ )
24996
$ echo ${BASHPID}
24996
$ ( echo ${BASHPID} )
25006

However, multiprocessing.eclass does not appear to do anything with the
pid anyway. Inside multijob_finish_one it reads the pid from the pipe
and does nothing with it.
-- 
Thanks,
Zac


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

end of thread, other threads:[~2013-02-03 18:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-02 11:06 [gentoo-dev] bash-4 in ebuilds? hasufell
2013-02-02 11:11 ` hasufell
2013-02-02 11:13 ` Ciaran McCreesh
2013-02-02 11:56   ` hasufell
2013-02-03  7:59 ` [gentoo-dev] " Ryan Hill
2013-02-03  9:12   ` Ulrich Mueller
2013-02-03 18:07     ` Zac Medico

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