Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 236663 Details for
Bug 297255
cmake-utils.eclass uses array for mycmakeargs and it doesn't work with <=portage-2.1.6.x
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Prevents erasing cmake args by accident
eclass.diff (text/plain), 1.43 KB, created by
Lamarque V. Souza
on 2010-06-26 18:42:46 UTC
(
hide
)
Description:
Prevents erasing cmake args by accident
Filename:
MIME Type:
Creator:
Lamarque V. Souza
Created:
2010-06-26 18:42:46 UTC
Size:
1.43 KB
patch
obsolete
>diff -Nru a/cmake-utils.eclass b/cmake-utils.eclass >--- a/cmake-utils.eclass 2010-02-19 00:23:59.000000000 -0200 >+++ b/cmake-utils.eclass 2010-02-19 00:23:35.000000000 -0200 >@@ -314,7 +314,9 @@ > # Convert mycmakeargs to an array, for backwards compatibility > # Make the array a local variable since <=portage-2.1.6.x does not > # support global arrays (see bug #297255). >- if [[ $(declare -p mycmakeargs 2>&-) != "declare -a mycmakeargs="* ]]; then >+ # Lamarque 28/01/2010: acrescentei segunda condicao do if para evitar erro # na pessagem de parâmetros para o kdelibs. >+ if [[ $(declare -p mycmakeargs 2>&-) != "declare -a mycmakeargs="* ]] && >+ [[ $(declare -p mycmakeargs 2>&-) != "declare -ax mycmakeargs="* ]]; then > local mycmakeargs_local=(${mycmakeargs}) > else > local mycmakeargs_local=("${mycmakeargs[@]}") >diff -Nru a/kde4-base.eclass b/kde4-base.eclass >--- a/kde4-base.eclass 2010-02-19 00:24:07.000000000 -0200 >+++ b/kde4-base.eclass 2010-02-19 00:23:30.000000000 -0200 >@@ -607,7 +607,9 @@ > cmakeargs+=(-DSYSCONF_INSTALL_DIR="${EPREFIX}"/etc) > fi > >- if [[ $(declare -p mycmakeargs 2>&-) != "declare -a mycmakeargs="* ]]; then >+ # Lamarque 28/01/2010: acrescentei segunda condicao do if para evitar erro # na pessagem de parâmetros para o kdelibs. >+ if [[ $(declare -p mycmakeargs 2>&-) != "declare -a mycmakeargs="* ]] && >+ [[ $(declare -p mycmakeargs 2>&-) != "declare -ax mycmakeargs="* ]]; then > mycmakeargs=(${mycmakeargs}) > fi >
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 297255
:
213361
|
213362
| 236663