Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 145244 Details for
Bug 211949
Hyphens (or dashes) in environment variables causes Portage to fail
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
exclude variable names that begin with a digit or contain non-alphanumeric characters
filter_unsupported.patch (text/plain), 1.68 KB, created by
Zac Medico
on 2008-03-04 04:57:32 UTC
(
hide
)
Description:
exclude variable names that begin with a digit or contain non-alphanumeric characters
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2008-03-04 04:57:32 UTC
Size:
1.68 KB
patch
obsolete
>Index: bin/ebuild.sh >=================================================================== >--- bin/ebuild.sh (revision 9402) >+++ bin/ebuild.sh (revision 9430) >@@ -1384,9 +1384,14 @@ > > # @FUNCTION: filter_readonly_variables > # @DESCRIPTION: [--filter-sandbox] [--allow-extra-vars] >-# Read an environment from stdin and echo to stdout while filtering readonly >-# variables. >+# Read an environment from stdin and echo to stdout while filtering variables >+# with names that are known to cause interference: > # >+# * some specific variables for which bash does not allow assignment >+# * some specific variables that affect portage or sandbox behavior >+# * variable names that begin with a digit or that contain any >+# non-alphanumeric characters that are not be supported by bash >+# > # --filter-sandbox causes all SANDBOX_* variables to be filtered, which > # is only desired in certain cases, such as during preprocessing or when > # saving environment.bz2 for a binary or installed package. >@@ -1414,7 +1419,9 @@ > SANDBOX_DEBUG_LOG SANDBOX_DISABLED SANDBOX_LIB > SANDBOX_LOG SANDBOX_ON" > filtered_vars="${readonly_bash_vars} ${READONLY_PORTAGE_VARS} >- BASH_[_[:alnum:]]* PATH" >+ BASH_[_[:alnum:]]* PATH >+ [[:digit:]][_[:alnum:]]* >+ [^=[:space:]]*[^_[:alnum:]=[:space:]][^=[:space:]]*" > if hasq --filter-sandbox $* ; then > filtered_vars="${filtered_vars} SANDBOX_[_[:alnum:]]*" > else >Index: bin/filter-bash-environment.py >=================================================================== >--- bin/filter-bash-environment.py (revision 9402) >+++ bin/filter-bash-environment.py (revision 9430) >@@ -7,6 +7,7 @@ > > egrep_compat_map = { > "[:alnum:]" : r'\w', >+ "[:digit:]" : r'\d', > "[:space:]" : r'\s', > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 211949
:
144988
|
144990
|
145147
|
145185
|
145244