| Summary: | dev-java/boot-bin-2.7.1 - Failed to execute process '/usr/bin/boot'. Reason: exec: Exec format error - The file '/usr/bin/boot' is marked as an executable but could not be run by the operating system. | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Dennis Schridde <dschridde+gentoobugs> |
| Component: | Current packages | Assignee: | Kent Fredric (IRC: kent\n) (RETIRED) <kentnl> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | java, jstein |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50ca4579669dac5459ee428970e9f358ae41c498 commit 50ca4579669dac5459ee428970e9f358ae41c498 Author: Kent Fredric <kentnl@gentoo.org> AuthorDate: 2019-08-06 05:50:13 +0000 Commit: Kent Fredric <kentnl@gentoo.org> CommitDate: 2019-08-06 05:50:13 +0000 dev-java/boot-bin: Add missing shebang re bug #682984 Add a shebang to the boot bootup script so it works for users who have a native shell other than bash. -r1 bump necessary as if you already had it installed, it was possibly broken. Closes: https://bugs.gentoo.org/682984 Package-Manager: Portage-2.3.66, Repoman-2.3.16 Signed-off-by: Kent Fredric <kentnl@gentoo.org> dev-java/boot-bin/{boot-bin-2.7.1.ebuild => boot-bin-2.7.1-r1.ebuild} | 2 +- dev-java/boot-bin/files/boot | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) |
$ boot Failed to execute process '/usr/bin/boot'. Reason: exec: Exec format error The file '/usr/bin/boot' is marked as an executable but could not be run by the operating system. $ echo $SHELL /usr/bin/fish $ head /usr/bin/boot source /usr/share/boot-bin/package.env jarpath="/usr/share/boot-bin/lib/boot-bin.jar" declare -a "options=($BOOT_JVM_OPTIONS)" self="${BASH_SOURCE[0]}" exec ${BOOT_JAVA_COMMAND:-java} "${options[@]}" -Dboot.app.path="$jarpath" -jar "$jarpath" "$@" The shebang is clearly missing. I assume this works for bash, but fails for other shells.