View previous topic :: View next topic |
Author |
Message |
tostadora n00b
Joined: 09 Apr 2005 Posts: 18
|
Posted: Fri Aug 28, 2009 11:42 am Post subject: [Solved] Syntax error when using emerge |
|
|
When trying to use emerge or ebuild, I get the following message:
Quote: |
/usr/portage/eclass/python.eclass: line 596: syntax error in conditional expression: unexpected token `('
/usr/portage/eclass/python.eclass: line 596: syntax error near `^/usr/lib(3'
/usr/portage/eclass/python.eclass: line 596: ` if [[ "$1" =~ ^/usr/lib(32|64)?/python[[:digit:]]+\.[[:digit:]]+ ]]; then'
*
* ERROR: sys-apps/file-4.26 failed.
* Call stack:
* ebuild.sh, line 1702: Called source '/usr/portage/sys-apps/file/file-4.26.ebuild'
* file-4.26.ebuild, line 5: Called inherit 'eutils' 'distutils' 'libtool' 'flag-o-matic'
* ebuild.sh, line 1202: Called qa_source '/usr/portage/eclass/distutils.eclass'
* ebuild.sh, line 37: Called source '/usr/portage/eclass/distutils.eclass'
* distutils.eclass, line 16: Called inherit 'eutils' 'multilib' 'python'
* ebuild.sh, line 1202: Called die
* The specific snippet of code:
* qa_source "$location" || die "died sourcing $location in inherit()"
* The die message:
* died sourcing /usr/portage/eclass/python.eclass in inherit()
*
* If you need support, post the topmost build error, and the call stack if relevant.
*
|
I haven't been able to fix it. Any ideas?
Python: Python 2.6.2 (r262:71600, Aug 28 2009, 11:26:35)
Portage: Portage 2.1.4.5 (default-linux/x86, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.15-gentoo-r1 i686)
Last edited by tostadora on Wed Sep 09, 2009 11:28 am; edited 1 time in total |
|
Back to top |
|
|
judepereira Apprentice
Joined: 19 Jan 2008 Posts: 179 Location: Portage, yes, somewhere out there
|
Posted: Sat Aug 29, 2009 6:41 pm Post subject: |
|
|
Did you recently upgrade to the new python? Even I got the same errors, so I just switched back to my old one... You can try to run python-updater. It may work, if it doesn't, use an earlier version. _________________ Jude Pereira
(http://judepereira.com) |
|
Back to top |
|
|
Arfrever Bodhisattva
Joined: 29 Apr 2006 Posts: 2463 Location: 異世界
|
Posted: Wed Sep 02, 2009 2:29 am Post subject: |
|
|
Post the output of: |
|
Back to top |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Wed Sep 02, 2009 3:49 am Post subject: |
|
|
If the error is in the eclass, maybe try doing another `emerge --sync` in a couple of hours in case one of the mirrors is not up to date. |
|
Back to top |
|
|
tostadora n00b
Joined: 09 Apr 2005 Posts: 18
|
Posted: Wed Sep 09, 2009 11:28 am Post subject: |
|
|
I managed to solve it. I compiled a new updated python locally and used it to update.
Thanks for the replies. |
|
Back to top |
|
|
Evil.2000 n00b
Joined: 08 Jul 2006 Posts: 68 Location: Germany
|
Posted: Mon Nov 12, 2012 3:45 pm Post subject: |
|
|
Today i had the same problem.
I upgraded bash tp 4.2_p37 as stated here: https://bugs.gentoo.org/431058 which helped. _________________ ███ - All is a file. And if not, it should be. |
|
Back to top |
|
|
|