Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461544 - fortran-2.eclass not compatible with bash-3.2
Summary: fortran-2.eclass not compatible with bash-3.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-12 17:18 UTC by Michał Górny
Modified: 2013-03-13 11:03 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-03-12 17:18:59 UTC
/usr/src/gx86/eclass/fortran-2.eclass: line 116: syntax error near unexpected token `>'
/usr/src/gx86/eclass/fortran-2.eclass: line 116: `	${fcomp} "${fcode}" -o "${fcode}.x" &>> "${T}"/_fortran_compile_test.log'
 * ERROR: sci-libs/fftw-3.2.2-r2 failed (depend phase):
 *   died sourcing /usr/src/gx86/eclass/fortran-2.eclass in inherit()
 * 
 * Call stack:
 *              ebuild.sh, line 551:  Called source '/usr/src/gx86/sci-libs/fftw/fftw-3.2.2-r2.ebuild'
 *   fftw-3.2.2-r2.ebuild, line   9:  Called inherit 'autotools' 'eutils' 'flag-o-matic' 'fortran-2' 'toolchain-funcs'
 *              ebuild.sh, line 286:  Called die
 * The specific snippet of code:
 *   		__qa_source "$location" || die "died sourcing $location in inherit()"
 * 
 * If you need support, post the output of `emerge --info '=sci-libs/fftw-3.2.2-r2'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/fftw-3.2.2-r2'`.
 * This ebuild used the following eclasses from overlays:
 *   /usr/src/gx86/eclass/autotools.eclass
 *   /usr/src/gx86/eclass/libtool.eclass
 *   /usr/src/gx86/eclass/multilib.eclass
 *   /usr/src/gx86/eclass/toolchain-funcs.eclass
 *   /usr/src/gx86/eclass/multiprocessing.eclass
 *   /usr/src/gx86/eclass/eutils.eclass
 *   /usr/src/gx86/eclass/user.eclass
 *   /usr/src/gx86/eclass/flag-o-matic.eclass
 *   /usr/src/gx86/eclass/fortran-2.eclass
 * This ebuild is from an overlay named 'gentoo-cvs': '/usr/src/gx86/'
 * Working directory: '/home/mgorny'
 * S: '/tmp/portage/sci-libs/fftw-3.2.2-r2/work/fftw-3.2.2'

[the overlay is just a gentoo CVS checkout]
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2013-03-12 17:27:54 UTC
Do I see it correctly that exchanging

&>> 

with

2>&1 >>

is sufficient?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-03-12 19:04:22 UTC
(In reply to comment #1)
> Do I see it correctly that exchanging
> 
> &>> 
> 
> with
> 
> 2>&1 >>
> 
> is sufficient?

Rather >>foo 2>&1.

2>&1 will cause dup of stdout to stderr, but you want to dup the replaced-stdout.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2013-03-13 11:03:39 UTC
Thanks for your help,

+  13 Mar 2013; Justin Lecher <jlec@gentoo.org> fortran-2.eclass:
+  Fix fortran-2.eclass for bash-3.2 compatibility
+