install fails with dash as /bin/sh
I'm using Gentoo, as you might be able to tell from the paths in the log snippets below. I am reporting this bug here rather than there because it appears to be caused by the upstream build system. If dash is /bin/sh, the installation phase of the build fails because it relies on bash brace expansion. The offending line in the build log is:
install -d /var/tmp/portage/xfce-extra/xfce4-panel-profiles-1.0.12/image//usr/share/icons/hicolor/{128x128,48x48,16x16,scalable}/apps
which causes the literal directory /usr/share/icons/hicolor/{128x128,48x48,16x16,scalable}/apps
to be created in DESTDIR
, rather than the 4 different directories implied by bash brace expansion. This causes the following failure 2 lines below in the log:
/usr/bin/install: cannot create regular file '/var/tmp/portage/xfce-extra/xfce4-panel-profiles-1.0.12/image//usr/share/icons/hicolor/128x128/apps': No such file or directory
Temporarily making /bin/sh
a symlink to /bin/bash
instead of /bin/dash
allows xfce4-panel-profiles to build successfully.
This issue should be fixed by either forcing the build system to explicitly use /bin/bash
instead of /bin/sh
as the shell, or by not using bash brace expansion.