Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525068 - sys-devel/crossdev: cross-pkg-config should have /bin/bash shebang
Summary: sys-devel/crossdev: cross-pkg-config should have /bin/bash shebang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-11 15:19 UTC by Felix Janda
Modified: 2014-10-31 00:52 UTC (History)
1 user (show)

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


Attachments
proposed patch (0001-cross-pkg-config-need-bin-bash-for-var.patch,623 bytes, patch)
2014-10-11 15:20 UTC, Felix Janda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Janda 2014-10-11 15:19:18 UTC
cross-pkg-config uses bash extensions like ${!var} but a shebang #!/bin/sh. It therefore fails when /bin/sh is for example mksh.

Reproducible: Always
Comment 1 Felix Janda 2014-10-11 15:20:11 UTC
Created attachment 386438 [details, diff]
proposed patch
Comment 2 SpanKY gentoo-dev 2014-10-16 17:59:06 UTC
Comment on attachment 386438 [details, diff]
proposed patch

the intention is for the script to not require bash, so the ${!var} should be changed instead
Comment 3 Felix Janda 2014-10-29 22:24:34 UTC
One could use "eval libdir=\$$var". There does not seem to be a way to do it with POSIX sh without resorting to eval.