Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 427090 - app-text/openjade fails if /bin/sh is not bash
Summary: app-text/openjade fails if /bin/sh is not bash
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo SGML project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-18 12:58 UTC by Alexander Gehrke
Modified: 2012-07-19 23:43 UTC (History)
0 users

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


Attachments
Build log of the failed emerge (build.log,18.61 KB, text/plain)
2012-07-18 12:58 UTC, Alexander Gehrke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Gehrke 2012-07-18 12:58:15 UTC
openjade fails to build with lots of messages of the form "libtool: 1: eval: base_compile+= x86_64-pc-linux-gnu-g++: not found" (full log attached).
This only occurs if the /bin/sh symlink points to a shell, which does not have the += operator (in my case app-shells/dash).

Reproducible: Always

Steps to Reproduce:
1. emerge app-shells/dash
2. eselect sh set dash
3. emerge openjade
Actual Results:  
openjade build fails with "$XYZ not found" errors.

Expected Results:  
Should use bash explicitly or use POSIX operators.

As bash is required for portage anyway, one can easily work around it temporarily by selecting bash for sh during the build and switching back.
Comment 1 Alexander Gehrke 2012-07-18 12:58:58 UTC
Created attachment 318534 [details]
Build log of the failed emerge
Comment 2 Mike Gilbert gentoo-dev 2012-07-19 23:43:35 UTC
It looks like Makefile.comm should set SHELL=/bin/bash.

+  19 Jul 2012; Mike Gilbert <floppym@gentoo.org> openjade-1.3.2-r3.ebuild,
+  openjade-1.3.2-r4.ebuild:
+  Pass SHELL=/bin/bash on the emake command line to avoid bug 427090.