Summary: | sys-devel/gcc with /bin/sh ->dash : /usr/sbin/fix_libtool_files.sh: 41: [: unexpected operator | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Paolo Pedroni <paolo.pedroni> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 526268 |
Description
Paolo Pedroni
2017-11-28 13:26:24 UTC
This is due to using the operator == instead of = in the EPREFIX comparison. The checkbashisms tool finds another problem on the same line: % checkbashisms /usr/sbin/fix_libtool_files.sh possible bashism in /usr/sbin/fix_libtool_files.sh line 41 ($EUID should be "$(id -u)"): if [ ${EUID:-0} -ne 0 -a "${EPREFIX}" == '' ] ; then possible bashism in /usr/sbin/fix_libtool_files.sh line 41 (should be 'b = a'): if [ ${EUID:-0} -ne 0 -a "${EPREFIX}" == '' ] ; then So this line should be replaced by: if [ "$(id -u)" -ne 0 -a "${EPREFIX}" = '' ] ; then The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dec6b1b3be2b497a5c9e6f068f259c02275781c0 commit dec6b1b3be2b497a5c9e6f068f259c02275781c0 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2017-12-04 23:27:09 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2017-12-04 23:27:21 +0000 sys-devel/gcc: fix bash-specific == comparison, bug #639054 Reported-by: Paolo Pedroni Closes: https://bugs.gentoo.org/639054 Package-Manager: Portage-2.3.16, Repoman-2.3.6 sys-devel/gcc/files/fix_libtool_files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) I've pushed s/==/=/ to the tree. Thanks everyone! |