Trying to fix the broken OCaml mainstream, but I have zero previous experience with Alpine, so if anyone wants to take a look - I would appreciate this:
- Issue - libbfd-2.32.so (missing): required by: ocaml-4.08.1-r0[so:libbfd-2.32.so]
- Pull Request trying to fix this issue
- Pull Request upgrading OCaml to 4.09
I tried to build packages locally then install with
apk --allow-untrusted, it installs fine, but the binaries compiled with this now throw this error:
Error relocating ./mybinary: secure_getenv: symbol not found
P.S. What is worse, I can’t base my image on Alpine:3.10 release e.g., because both 4.08.1 and 4.09.0 releases fail with this bug https://github.com/ocaml/ocaml/issues/8965. It was fixed, but no release available yet.
P.P.S. If I try to use
opam repository add beta --all-switches git+https://github.com/ocaml/ocaml-beta-repository.git && \ opam switch create 4.09.0+trunk --repositories=default,beta && \ opam switch 4.09.0+trunk
it fails with the following error:
[ERROR] The compilation of ocaml failed at "/home/user/.opam/4.09.0+trunk/bin/ocaml /home/user/.opam/4.09.0+trunk/share/ocaml-config/gen_ocaml_config.ml 4.09.0 ocaml". #=== ERROR while compiling ocaml.4.09.0 =======================================# # context 2.0.3 | linux/x86_64 | ocaml-variants.4.09.0+trunk | https://opam.ocaml.org#f70ee2a2 # path ~/.opam/4.09.0+trunk/.opam-switch/build/ocaml.4.09.0 # command ~/.opam/4.09.0+trunk/bin/ocaml /home/user/.opam/4.09.0+trunk/share/ocaml-config/gen_ocaml_config.ml 4.09.0 ocaml # exit-code 1 # env-file ~/.opam/log/ocaml-35-ebe0e0.env # output-file ~/.opam/log/ocaml-35-ebe0e0.out ### output ### # OCaml version mismatch: 4.09.1, expected 4.09.0
P.P.P.S I can’t use 4.10+trunk because many dependencies I use will not build.
Any single way I try to workaround that broken package basically I hit the wall…