Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306899 - BASHOPTS needs filtering from environment with bash-4.1
Summary: BASHOPTS needs filtering from environment with bash-4.1
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All All
: Highest blocker (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-26 04:09 UTC by Lord_Evil
Modified: 2010-02-26 13:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,57 bytes, text/plain)
2010-02-26 04:14 UTC, Lord_Evil
Details
build.log (build.log,843 bytes, text/plain)
2010-02-26 06:46 UTC, Lord_Evil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lord_Evil 2010-02-26 04:09:18 UTC
+++ This bug was initially created as a clone of Bug #297933 +++

bash-4.1 introduces a new read-only variable (BASHOPTS).  it'll need to be filtered when saving/restoring the environment.  i dont know how you guys manage these save/restore steps, but portage shows multiple:
/var/tmp/portage/app-shells/bash-4.1_rc1/temp/environment: line 7: declare: BASHOPTS: readonly variable

you'll probably want to get this fixed before bash-4.1 is released and i add to the tree ...
------------------------
Emerged app-shells/bash-4.1_p2 and after it whenever I try to emerge ANYTHING ELSE I get this bloody error.
Comment 1 Lord_Evil 2010-02-26 04:12:40 UTC
error: "BASHOPTS:readonly variable"
Comment 2 Lord_Evil 2010-02-26 04:14:34 UTC
Created attachment 221241 [details]
build.log
Comment 3 Zac Medico gentoo-dev 2010-02-26 05:34:04 UTC
(In reply to comment #0)
> Emerged app-shells/bash-4.1_p2 and after it whenever I try to emerge ANYTHING
> ELSE I get this bloody error.

The bash-4.1_p2 ebuild has a !<sys-apps/portage-2.1.7.16 blocker which prevents it from being installed incompatible versions of portage. I guess somehow you got it installed with older portage?
Comment 4 Lord_Evil 2010-02-26 06:46:44 UTC
Created attachment 221253 [details]
build.log
Comment 5 Lord_Evil 2010-02-26 06:49:15 UTC
Yea.. somehow.. maybe tree was buggy, what should I do now to fix it?
Comment 6 Zac Medico gentoo-dev 2010-02-26 08:06:55 UTC
You can try replacing /bin/bash with a compatible version. Maybe you can find a compatible binary in the tinderbox:

http://tinderbox.dev.gentoo.org/default-linux/x86/app-shells/bash-4.0_p35.tbz2
http://tinderbox.dev.gentoo.org/default-linux/amd64/app-shells/bash-4.0_p35.tbz2

You can use tar to extract the package and then manually copy /bin/bash out of it.