Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[gentoo-dev] bash version in ebuilds/eclasses...non-compli..

 
   Linux (Home) -> Development RSS
Next:  Bug#100188: Blutjunges Teenie vor der Webcam  
Author Message
Jeremy Olexa

External


Since: Jul 10, 2008
Posts: 3



(Msg. 1) Posted: Wed Dec 17, 2008 12:50 am
Post subject: [gentoo-dev] bash version in ebuilds/eclasses...non-compliance and what to do?
Archived from groups: linux>gentoo>dev (more info?)

Exhibit A:
http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/python.eclass?r....48&r2=

This causes me pain on my hosts that don't have >=bash-3.1[0] for
/bin/bash. Because I can't install portage with an old bash until I
get a new python installed which uses python.eclass which isn't
supported with my /bin/bash (quite circular indeed)

Technically there are workarounds for me...but it is still annoying.
So...what do we do? A) Specifically allow >=bash-3.1 features in
ebuilds/eclasses. or B) revert the commit because the PMS says[1] that
we comply with >bash-3.0

Please discuss, thanks.
-Jeremy

[0]: See bash CHANGES file. "+=" is new to bash-3.1
[1]: "The ebuild file format is in its basic form a subset of the
format of a bash script. The interpreter is assumed to be GNU bash,
version 3.0 or later." -Chapter 6 "Ebuild File Format" [2]
[2]: http://dev.gentoo.org/~ferdy/pms/pms-eapi-2-approved-2008-09-25.pdf
Back to top
Login to vote
Steve Long

External


Since: Nov 03, 2006
Posts: 57



(Msg. 2) Posted: Sat Dec 20, 2008 6:50 am
Post subject: [gentoo-dev] Re: bash version in ebuilds/eclasses...non-compliance and what to do? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jeremy Olexa wrote:

> This causes me pain on my hosts that don't have >=bash-3.1[0] for
> /bin/bash. Because I can't install portage with an old bash until I
> get a new python installed which uses python.eclass which isn't
> supported with my /bin/bash (quite circular indeed)
>
> Technically there are workarounds for me...but it is still annoying.
> So...what do we do? A) Specifically allow >=bash-3.1 features in
> ebuilds/eclasses. or B) revert the commit because the PMS says[1] that
> we comply with >bash-3.0
>
> Please discuss, thanks.

I'd vote for updating the spec; it's going to be a pita trying to maintain
the tree without +=. From our discussion, you said it was fine for prefix
to specify a minimum version of bash for bootstrap, but clearly that can't
be 3.1 when the draft PMS says 3.0.

I note that bash-3.2_p17-r1 is stable on all the architectures that 3.0-r12
lists (it just adds the two -fbsd archs as unstable.) portage-2.1.4.5
requires at least that version (only unstable on mips as against 2.1.1-r2)
It might be worth skipping to 3.2, since that would simplify regex handling.

Not sure how that should be framed, or when it's okay to do it; clearly a
spec has to be updatable, whether it's by a specified policy, or
explicitly.
Back to top
Login to vote
Fabian Groffen

External


Since: May 26, 2007
Posts: 20



(Msg. 3) Posted: Sat Dec 20, 2008 10:50 am
Post subject: Re: [gentoo-dev] Re: bash version in ebuilds/eclasses...non-compliance and what to do? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 20-12-2008 05:35:25 +0000, Steve Long wrote:
> I note that bash-3.2_p17-r1 is stable on all the architectures that 3.0-r12
> lists (it just adds the two -fbsd archs as unstable.) portage-2.1.4.5
> requires at least that version (only unstable on mips as against 2.1.1-r2)
> It might be worth skipping to 3.2, since that would simplify regex handling.

The only problem we have there is that bash-3.2.17 only comes in patches
on top of 3.2. During bootstrap that's problematic, as gnu patch (or
any other patch) might not be available, or simply b0rked.
For that reason we bootstrap with a portage pre SVN revision 10460,
which does not require >=3.2.17.
See http://bugs.gentoo.org/show_bug.cgi?id=229677#c11 on why PMS should
require 3.2.17 over plain 3.2 if you decide to push the requirement
update.

We can work around it by using a self-made pre-patched tarball, though.


--
Fabian Groffen
Gentoo on a different level
Back to top
Login to vote
Steve Long

External


Since: Nov 03, 2006
Posts: 57



(Msg. 4) Posted: Wed Dec 24, 2008 12:50 pm
Post subject: [gentoo-dev] Re: Re: bash version in ebuilds/eclasses...non-compliance and what to do? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Fabian Groffen wrote:

> On 20-12-2008 05:35:25 +0000, Steve Long wrote:
>> I note that bash-3.2_p17-r1 is stable on all the architectures that
>> 3.0-r12 lists (it just adds the two -fbsd archs as unstable.)
>> portage-2.1.4.5 requires at least that version (only unstable on mips as
>> against 2.1.1-r2) It might be worth skipping to 3.2, since that would
>> simplify regex handling.
>
> The only problem we have there is that bash-3.2.17 only comes in patches
> on top of 3.2. During bootstrap that's problematic, as gnu patch (or
> any other patch) might not be available, or simply b0rked.
> For that reason we bootstrap with a portage pre SVN revision 10460,
> which does not require >=3.2.17.
> See http://bugs.gentoo.org/show_bug.cgi?id=229677#c11 on why PMS should
> require 3.2.17 over plain 3.2 if you decide to push the requirement
> update.
>
Yeah, that sounds great. Believe me I ran into troubles with early 3.2 Wink
which is why I'm deadset against unstable across the board.

Regex handling within BASH is quite important eg on cygwin where process
creation is expensive. While I'm happy keeping my scripts compatible across
3.x (they're not Gentoo-specific) ebuild syntax would be much more
perl-like if we were on 3.2.17+ (and would thus hold less gotchas for
people new to the format, as well as perhaps giving some old hands a bit of
new shiny;)

> We can work around it by using a self-made pre-patched tarball, though.
>
Indeed, and they can be pushed out to stages pretty painlessly. If metro is
politically unacceptable, I'm sure releng could do it with catalyst;
somehow I doubt it's as hard to bootstrap as perl, but please don't flame
me if you have something to say; just _add_ something technical.

Happy Holidays to all those whom I don't /ignore Wink
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[gentoo-dev] ruby gems vs. ebuilds - Howdy, Can someone point me to any documentation on why ebuilds are being created for ruby gems? Gem is the a nice, easy to use, standard package manager for ruby. The problem that I see is if you install the same package via both gem and portage all....

[gentoo-dev] aging ebuilds with unstable keywords - Hi, This is an automatically created email message. http://gentoo.tamperd.net/stable has just been updated with 11702 ebuilds. The page shows results from a number of tests that are run against the ebuilds. The tests are: * if a version has been masked...

[gentoo-dev] aging ebuilds with unstable keywords - Hi, This is an automatically created email message. http://gentoo.tamperd.net/stable has just been updated with 12071 ebuilds. The page shows results from a number of tests that are run against the ebuilds. The tests are: * if a version has been masked...

[gentoo-dev] aging ebuilds with unstable keywords - Hi, This is an automatically created email message. http://gentoo.tamperd.net/stable has just been updated with 12916 ebuilds. The page shows results from a number of tests that are run against the ebuilds. The tests are: * if a version has been masked...

[gentoo-dev] aging ebuilds with unstable keywords - Hi, This is an automatically created email message. http://gentoo.tamperd.net/stable has just been updated with 14452 ebuilds. The page shows results from a number of tests that are run against the ebuilds. The tests are: * if a version has been masked...
       Linux (Home) -> Development All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact