Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 721370 - media-gfx/zbar-0.23.1 configure fails with /bin/sh != bash: "Bad substitution"
Summary: media-gfx/zbar-0.23.1 configure fails with /bin/sh != bash: "Bad substitution"
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Yury Martynov
Keywords: PullRequest
Depends on:
Blocks: nonbash
  Show dependency tree
Reported: 2020-05-07 06:42 UTC by Matt Whitlock
Modified: 2020-05-17 16:42 UTC (History)
3 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Matt Whitlock 2020-05-07 06:42:10 UTC
zbar's contains a Bashism (substring replacement in variable substitution):

JAVAC=${JAVAC/ecj/ecj -1.5}

This causes configure to fail with the following error when /bin/sh is not Bash:

/var/tmp/portage/media-gfx/zbar-0.23.1/work/zbar-0.23.1/configure: 25279: /var/tmp/portage/media-gfx/zbar-0.23.1/work/zbar-0.23.1/configure: Bad substitution

Suggest setting CONFIG_SHELL=/bin/bash when running configure. This eliminates the error and allows configure to succeed.
Comment 1 Larry the Git Cow gentoo-dev 2020-05-17 16:42:05 UTC
The bug has been closed via the following commit(s):

commit 7da97a920351fe66ee3fad7264817341342334e6
Author:     Yury Martynov <>
AuthorDate: 2020-05-10 05:47:41 +0000
Commit:     Joonas Niilola <>
CommitDate: 2020-05-17 16:41:51 +0000

    media-gfx/zbar: 0.23.1 configure fails with /bin/sh != bash
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Yury Martynov <>
    Signed-off-by: Joonas Niilola <>

 media-gfx/zbar/zbar-0.23.1.ebuild | 2 ++
 1 file changed, 2 insertions(+)