Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 370983 - syntax error in libtool.eclass
Summary: syntax error in libtool.eclass
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal critical (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-10 07:41 UTC by Christopher Smith
Modified: 2011-06-14 14:14 UTC (History)
1 user (show)

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


Attachments
build log for sqlite (build.log,3.50 KB, text/plain)
2011-06-10 07:42 UTC, Christopher Smith
Details
the offending libtool.eclass (libtool.eclass,12.87 KB, text/plain)
2011-06-10 07:43 UTC, Christopher Smith
Details
output of emerge --info (emerge.info,16.24 KB, text/plain)
2011-06-10 15:20 UTC, Christopher Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Smith 2011-06-10 07:41:32 UTC
I synced the Portage tree yesterday and got an updated libtool.eclass dated 9 June.  When trying to build any packages that inherit it, Portage dies while evaluating the eclass.

Reproducible: Always

Steps to Reproduce:
Emerge any package inheriting libtool.eclass.



/usr/portage/eclass/libtool.eclass: line 34: syntax error near unexpected token `>'
/usr/portage/eclass/libtool.eclass: line 34: `  ) &>> "${T}/elibtool.log"'
Comment 1 Christopher Smith 2011-06-10 07:42:56 UTC
Created attachment 276473 [details]
build log for sqlite
Comment 2 Christopher Smith 2011-06-10 07:43:49 UTC
Created attachment 276475 [details]
the offending libtool.eclass
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-06-10 10:11:58 UTC
Can you please attach emerge --info? Because none of my five systems here has trouble with that syntax.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-06-10 10:14:55 UTC
I've switched to a safer syntax, but I'd still like to see your emerge --info.
Comment 5 Christopher Smith 2011-06-10 15:20:23 UTC
Created attachment 276531 [details]
output of emerge --info
Comment 6 Christopher Smith 2011-06-10 16:13:36 UTC
I'm now getting a complaint about the same item on a different line; I don't think it was the parentheses:

/usr/portage/eclass/libtool.eclass: line 32: syntax error near unexpected token `>'
/usr/portage/eclass/libtool.eclass: line 32: `          &>> "${T}/elibtool.log"'


It looks like it (bash?) doesn't like the second ">" in "&>>", and I don't see anything matching "&>>" in the list of esoteric redirections.  What's it supposed to do?
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-06-10 16:18:19 UTC
Sigh, it looks like only bash4 supports that (which actually makes me wonder why you got bash 3 still).
Comment 8 Christopher Smith 2011-06-13 04:33:11 UTC
Upgrading to bash-4 resolved the issue, and apparently that ebuild didn't trigger the bug.  Not sure if this makes it "resolved" or "invalid", but my problem's fixed.  Thanks!