Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 682984 - 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.
Summary: dev-java/boot-bin-2.7.1 - Failed to execute process '/usr/bin/boot'. Reason: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Kent Fredric (IRC: kent\n) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-09 19:52 UTC by Dennis Schridde
Modified: 2019-08-06 05:50 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2019-04-09 19:52:21 UTC
$ 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.
Comment 1 Larry the Git Cow gentoo-dev 2019-08-06 05:50:36 UTC
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(-)