Description of problem: $ ocamlify -help Fatal error: the file '/usr/bin/ocamlify' is not a bytecode executable file The fundamental problem is that you're building ocamlify as a bytecode binary which is contrary to Fedora guidelines for OCaml programs. It should be built as a native program. However I looked at the weird build system used by this package and I couldn't make head nor tail of it, so I've no idea how to actually build it properly. Version-Release number of selected component (if applicable): ocamlify-0.0.2-3.fc29.x86_64 How reproducible: 100% Steps to Reproduce: 1. Install ocamlify. 2. Try to run ocamlify.
I do not object compiling ocamlify to native program. But I guess the "correct" fix is to detect OCaml bytecode executable file and do not strip them. Right now all the Fedora supported architectures happen to be OCaml native targets, but I think it is also possible to have OCaml bytecode-only architectures in the future. After all, the `%ocaml_native_compiler` RPM macro is maintained for that possibility, right?
This isn't the right fix. The right fix is to compile the native version on architectures which support that (which right now is all of them): https://fedoraproject.org/wiki/Packaging:OCaml#Providing_best_possible_binaries The (currently theoretical) exception is for bytecode-only architectures, where you have to use a workaround for stripping: https://fedoraproject.org/wiki/Packaging:OCaml#Stripping_binaries But note this second is *not* a fix for this bug.
The fix looks good, thanks.